"use strict"
define("vault/adapters/-json-api",["exports","@ember-data/adapter/json-api"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.default}})})),define("vault/adapters/application",["exports","@ember-data/adapter/error","@ember-data/adapter/rest","@ember/service","@ember/object","rsvp","vault/config/environment"],(function(e,t,n,l,i,r,a){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
const{APP:o}=a.default,{POLLING_URLS:s,NAMESPACE_ROOT_URLS:u}=o
e.default=n.default.extend({auth:(0,l.service)(),namespaceService:(0,l.service)("namespace"),controlGroup:(0,l.service)(),flashMessages:(0,l.service)(),namespace:"v1/sys",shouldReloadAll:()=>!0,shouldReloadRecord:()=>!0,shouldBackgroundReloadRecord:()=>!1,addHeaders(e,t,n){const l=t.clientToken||this.auth.currentToken,i={}
l&&!t.unauthenticated&&(i["X-Vault-Token"]=l),t.wrapTTL&&(i["X-Vault-Wrap-TTL"]=t.wrapTTL),"PATCH"===n&&(i["Content-Type"]="application/merge-patch+json")
const r=void 0===t.namespace?this.namespaceService.path:t.namespace
r&&!u.some((t=>e.includes(t)))&&(i["X-Vault-Namespace"]=r),t.headers=Object.assign(t.headers||{},i)},_preRequest(e,t,n){this.addHeaders(e,t,n)
return s.some((t=>e.includes(t)))||this.auth.setLastFetch(Date.now()),t.timeout=6e4,t},ajax(e,t,n={}){let l=e,i=t,r=n
const a=this.controlGroup,o=a.tokenForUrl(l)
o&&(l="/v1/sys/wrapping/unwrap",i="POST",r={clientToken:o.token,data:{token:o.token}})
const s=this._preRequest(l,r,t)
return this._super(l,i,s).then(((...e)=>{o&&a.deleteControlGroupToken(o.accessor)
const[t]=e
if(t&&t.warnings&&!r.skipWarnings){const e=this.flashMessages
t.warnings.forEach((t=>{e.info(t)}))}return a.checkForControlGroup(e,t,r.wrapTTL)}))},rawRequest(e,t,n={}){const l=this._preRequest(e,n)
return fetch(e,{method:t||"GET",headers:l.headers||{},body:l.body,signal:l.signal}).then((e=>e.status>=200&&e.status<300?r.default.resolve(e):r.default.reject(e)))},handleResponse(e,n,l,r){const a=this._super(...arguments)
return a instanceof t.default&&((0,i.set)(a,"httpStatus",e),(0,i.set)(a,"path",r.url),l?.data?.error&&!l.errors&&(0,i.set)(a,"errors",[l.data.error])),a}})})),define("vault/adapters/auth-config/_base",["exports","vault/adapters/application"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default=t.default.extend({namespace:"/v1/auth",pathForType(e){const t=e.split("/").pop()
return"identity-accesslist"===t||"roletag-denylist"===t?`tidy/${t}`:t},buildURL(e,t,n){const l=t||n.belongsTo("backend").id
let i=`${this.namespace}/${l}/config`
return e.includes("aws")&&(i=`${i}/${this.pathForType(e)}`),i},createRecord(e,t,n){const l=n.belongsTo("backend").id
return this._super(...arguments).then((()=>({id:l})))},updateRecord(e,t,n){const l=n.belongsTo("backend").id
return this._super(...arguments).then((()=>({id:l})))}})})),define("vault/adapters/auth-config/aws/client",["exports","vault/adapters/auth-config/_base"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default=t.default.extend()})),define("vault/adapters/auth-config/aws/identity-accesslist",["exports","vault/adapters/auth-config/_base"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default=t.default.extend()})),define("vault/adapters/auth-config/aws/roletag-denylist",["exports","vault/adapters/auth-config/_base"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default=t.default.extend()})),define("vault/adapters/auth-config/azure",["exports","vault/adapters/auth-config/_base"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default=t.default.extend()})),define("vault/adapters/auth-config/gcp",["exports","vault/adapters/auth-config/_base"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default=t.default.extend()})),define("vault/adapters/auth-config/github",["exports","vault/adapters/auth-config/_base"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default=t.default.extend()})),define("vault/adapters/auth-config/jwt",["exports","vault/adapters/auth-config/_base"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default=t.default.extend()})),define("vault/adapters/auth-config/kubernetes",["exports","vault/adapters/auth-config/_base"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default=t.default.extend()})),define("vault/adapters/auth-config/ldap",["exports","vault/adapters/auth-config/_base"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default=t.default.extend()})),define("vault/adapters/auth-config/oidc",["exports","vault/adapters/auth-config/_base"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default=t.default.extend()})),define("vault/adapters/auth-config/okta",["exports","vault/adapters/auth-config/_base"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default=t.default.extend()})),define("vault/adapters/auth-config/radius",["exports","vault/adapters/auth-config/_base"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default=t.default.extend()})),define("vault/adapters/auth-method",["exports","@ember-data/adapter/error","@ember/object","vault/adapters/application","vault/utils/path-encoding-helpers"],(function(e,t,n,l,i){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default=l.default.extend({url(e){const t=`${this.buildURL()}/auth`
return e?t+"/"+(0,i.encodePath)(e):t},pathForType:()=>"mounts/auth",findAll(e,l,i,r){const a=r?.adapterOptions?.unauthenticated,o=r?.adapterOptions?.useMountsEndpoint
if(a||o){const e=`/${this.urlPrefix()}/internal/ui/mounts`
return this.ajax(e,"GET",{unauthenticated:a}).then((e=>({data:e.data.auth}))).catch((e=>{if(a)return{data:{}}
throw e instanceof t.default&&(0,n.set)(e,"policyPath","sys/internal/ui/mounts"),e}))}return this.ajax(this.url(),"GET").catch((e=>{throw e instanceof t.default&&(0,n.set)(e,"policyPath","sys/auth"),e}))},createRecord(e,t,n){const l=e.serializerFor(t.modelName).serialize(n),i=n.attr("path")
return this.ajax(this.url(i),"POST",{data:l}).then((()=>(l.config.id=i,{data:{...l,path:i+"/",id:i}})))},urlForDeleteRecord(e,t,n){return this.url(n.id)},exchangeOIDC(e,t,n){return this.ajax(`/v1/auth/${(0,i.encodePath)(e)}/oidc/callback`,"GET",{data:{state:t,code:n}})},pollSAMLToken(e,t,n){return this.ajax(`/v1/auth/${(0,i.encodePath)(e)}/token`,"PUT",{data:{token_poll_id:t,client_verifier:n}})},tune(e,t){const n=`${this.buildURL()}/${this.pathForType()}/${(0,i.encodePath)(e)}tune`
return this.ajax(n,"POST",{data:t})},resetPassword(e,t,n){const l=`/v1/auth/${(0,i.encodePath)(e)}/users/${(0,i.encodePath)(t)}/password`
return this.ajax(l,"POST",{data:{password:n}})}})})),define("vault/adapters/aws-credential",["exports","vault/adapters/application"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default=t.default.extend({createRecord(e,t,n){const l=n.attr("ttl"),i=n.attr("roleArn"),r=n.attr("credentialType")
let a,o="POST"
const s={}
"iam_user"===r?o="GET":(l&&(s.ttl=l),"assumed_role"===r&&i&&(s.role_arn=i),a=s.ttl||s.role_arn?{data:s}:{})
const u=n.attr("role"),c=`/v1/${u.backend}/creds/${u.name}`
return this.ajax(c,o,a).then((l=>{l.id=n.id,l.modelName=t.modelName,e.pushPayload(t.modelName,l)}))}})})),define("vault/adapters/aws/lease-config",["exports","vault/adapters/application","vault/utils/path-encoding-helpers"],(function(e,t,n){function l(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e
var n=e[Symbol.toPrimitive]
if(void 0!==n){var l=n.call(e,t||"default")
if("object"!=typeof l)return l
throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string")
return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
class i extends t.default{constructor(...e){super(...e),l(this,"namespace","v1")}queryRecord(e,t,l){const{backend:i}=l
return this.ajax(`${this.buildURL()}/${(0,n.encodePath)(i)}/config/lease`,"GET").then((e=>({...e,id:i,backend:i})))}createOrUpdate(e,t,n){const l=e.serializerFor(t.modelName).serialize(n),i=n.record.backend
return this.ajax(`${this.buildURL()}/${i}/config/lease`,"POST",{data:l}).then((e=>({...e,id:i})))}createRecord(){return this.createOrUpdate(...arguments)}updateRecord(){return this.createOrUpdate(...arguments)}}e.default=i})),define("vault/adapters/aws/root-config",["exports","vault/adapters/application","vault/utils/path-encoding-helpers"],(function(e,t,n){function l(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e
var n=e[Symbol.toPrimitive]
if(void 0!==n){var l=n.call(e,t||"default")
if("object"!=typeof l)return l
throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string")
return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
class i extends t.default{constructor(...e){super(...e),l(this,"namespace","v1")}queryRecord(e,t,l){const{backend:i}=l
return this.ajax(`${this.buildURL()}/${(0,n.encodePath)(i)}/config/root`,"GET").then((e=>({...e,id:i,backend:i})))}createOrUpdate(e,t,n){const l=e.serializerFor(t.modelName).serialize(n),i=n.record.backend
return this.ajax(`${this.buildURL()}/${i}/config/root`,"POST",{data:l}).then((e=>({...e,id:i})))}createRecord(){return this.createOrUpdate(...arguments)}updateRecord(){return this.createOrUpdate(...arguments)}}e.default=i})),define("vault/adapters/capabilities",["exports","@ember-data/adapter/error","@ember/object","vault/adapters/application","core/utils/sanitize-path"],(function(e,t,n,l,i){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
class r extends l.default{pathForType(){return"capabilities-self"}_formatPath(e){const{relativeNamespace:t}=this.namespaceService
return t?`${t}/${(0,i.sanitizeStart)(e)}`:e}async findRecord(e,l,r){const a=[this._formatPath(r)]
return this.ajax(this.buildURL(l),"POST",{data:{paths:a},namespace:(0,i.sanitizePath)(this.namespaceService.userRootNamespace)}).catch((e=>{throw e instanceof t.default&&(0,n.set)(e,"policyPath","sys/capabilities-self"),e}))}queryRecord(e,t,n){const{id:l}=n
if(l)return this.findRecord(e,t,l).then((e=>(e.path=l,e)))}query(e,l,r){const a=r?.paths.reduce(((e,t)=>{const n=this._formatPath(t)
return n&&(e[n]=t),e}),{})
return this.ajax(this.buildURL(l),"POST",{data:{paths:Object.keys(a)},namespace:(0,i.sanitizePath)(this.namespaceService.userRootNamespace)}).then((e=>(e&&(e.pathMap=a),e))).catch((e=>{throw e instanceof t.default&&(0,n.set)(e,"policyPath","sys/capabilities-self"),e}))}}e.default=r})),define("vault/adapters/clients/activity",["exports","vault/utils/query-param-string","vault/adapters/application","core/utils/client-count-utils","@ember/debug"],(function(e,t,n,l,i){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
class r extends n.default{formatTimeParam(e,t=!1){let n
if(e)try{n=e.timestamp||(0,l.formatDateObject)(e,t)}catch(i){}return n}formatQueryParams(e){const t={},n=this.formatTimeParam(e?.start_time),l=this.formatTimeParam(e?.end_time,!0)
return n&&(t.start_time=n),l&&(t.end_time=l),t}queryRecord(e,t,n){const l=`${this.buildURL()}/internal/counters/activity`,i={data:this.formatQueryParams(n)}
return n?.namespace&&(i.namespace=n.namespace),this.ajax(l,"GET",i).then((e=>{const t=e||{}
return t.id=t.request_id||"no-data",t}))}async exportData(e){const n=`${this.buildURL()}/internal/counters/activity/export${(0,t.default)({format:e?.format||"csv",start_time:e?.start_time??void 0,end_time:e?.end_time??void 0})}`
let l
try{const t=e?.namespace?{namespace:e.namespace}:{},i=await this.rawRequest(n,"GET",t)
if(200===i.status)return i.blob()
l="no data to export in provided time range."}catch(i){const{errors:e}=await i.json()
l=e?.join(". ")}if(l)throw new Error(l)}findRecord(e,t,n){"clients/activity"!==n&&(0,i.debug)(`findRecord('clients/activity') should pass 'clients/activity' as the id, you passed: '${n}'`)
const l=`${this.buildURL()}/internal/counters/activity`
return this.ajax(l,"GET",{skipWarnings:!0})}}e.default=r})),define("vault/adapters/clients/config",["exports","vault/adapters/application"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default=t.default.extend({queryRecord(){return this.ajax(this.urlForQuery(),"GET").then((e=>(e.id=e.request_id,e)))},urlForUpdateRecord(){return this.buildURL()+"/internal/counters/config"},urlForQuery(){return this.buildURL()+"/internal/counters/config"}})})),define("vault/adapters/clients/version-history",["exports","vault/adapters/application"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
class n extends t.default{findAll(){return this.ajax(this.buildURL()+"/version-history","GET",{data:{list:!0}}).then((e=>e))}}e.default=n})),define("vault/adapters/cluster",["exports","@ember-data/adapter/error","@ember/service","rsvp","@ember/debug","ember-inflector","vault/adapters/application"],(function(e,t,n,l,i,r,a){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
const o=["health","seal-status","tokens","token","seal","unseal","init","capabilities-self","license"]
e.default=a.default.extend({version:(0,n.service)(),namespaceService:(0,n.service)("namespace"),shouldBackgroundReloadRecord:()=>!0,findRecord(e,n,i,r){const a={health:this.health(),sealStatus:this.sealStatus().catch((e=>e))}
return this.version.isEnterprise&&this.namespaceService.inRootNamespace&&(a.replicationStatus=this.replicationStatus().catch((e=>e))),(0,l.hash)(a).then((({health:e,sealStatus:n,replicationStatus:a})=>{let o={id:i,name:r.attr("name")}
return o=Object.assign(o,e),n instanceof t.default==!1&&(o=Object.assign(o,{nodes:[n]})),a&&a instanceof t.default==!1?o=Object.assign(o,a.data):a instanceof t.default&&a?.errors.find((e=>"disabled path"===e))&&(o=Object.assign(o,{replication_redacted:!0})),(0,l.resolve)(o)}))},pathForType:e=>"cluster"===e?"clusters":(0,r.pluralize)(e),health(){return this.ajax(this.urlFor("health"),"GET",{data:{standbycode:200,sealedcode:200,uninitcode:200,drsecondarycode:200,performancestandbycode:200},unauthenticated:!0}).catch((()=>({has_chroot_namespace:!0})))},features(){return this.ajax(`${this.urlFor("license")}/features`,"GET",{unauthenticated:!0})},sealStatus(e=!0){return this.ajax(this.urlFor("seal-status"),"GET",{unauthenticated:e})},seal(){return this.ajax(this.urlFor("seal"),"PUT")},unseal(e){return this.ajax(this.urlFor("unseal"),"PUT",{data:e,unauthenticated:!0})},initCluster(e){return this.ajax(this.urlFor("init"),"PUT",{data:e,unauthenticated:!0})},authenticate({backend:e,data:t}){const{role:n,jwt:l,token:i,password:r,username:a,path:o,nonce:s}=t,u=this.urlForAuth(e,a,o),c="token"===e?"GET":"POST",d={unauthenticated:!0}
return"token"===e?d.headers={"X-Vault-Token":i}:d.data="jwt"===e||"oidc"===e?{role:n,jwt:l}:"okta"===e?{password:r,nonce:s}:i?{token:i,password:r}:{password:r},this.ajax(u,c,d)},mfaValidate({mfa_request_id:e,mfa_constraints:t}){const n={data:{mfa_request_id:e,mfa_payload:t.reduce(((e,{selectedMethod:t,passcode:n})=>{let l=[]
return n&&(l="duo"!==t.type||n.includes("passcode=")?[n]:[`passcode=${n}`]),e[t.id]=l,e}),{})}}
return this.ajax("/v1/sys/mfa/validate","POST",n)},urlFor(e){if(!o.includes(e))throw new Error(`Calls to a ${e} endpoint are not currently allowed in the vault cluster adapter`)
return`${this.buildURL()}/${e}`},urlForAuth(e,t,n){const l=e.toLowerCase(),i={github:"login",jwt:"login",oidc:"login",userpass:`login/${encodeURIComponent(t)}`,ldap:`login/${encodeURIComponent(t)}`,okta:`login/${encodeURIComponent(t)}`,radius:`login/${encodeURIComponent(t)}`,token:"lookup-self"}[l],r=n&&"token"!==l?n:l
if(!i)throw new Error(`There is no auth url for ${e}.`)
return`/v1/auth/${r}/${i}`},urlForReplication(e,t,n){let l
return l=t?`${e}/${t}/${n}`:`${n}`,`${this.buildURL()}/replication/${l}`},replicationStatus(){return this.ajax(`${this.buildURL()}/replication/status`,"GET",{unauthenticated:!0})},replicationDrPromote(e,t){const n=t&&t.checkStatus?"GET":"PUT"
return this.ajax(`${this.buildURL()}/replication/dr/secondary/promote`,n,{data:e,unauthenticated:!0})},generateDrOperationToken(e,t){let n="POST",l=`${this.buildURL()}/replication/dr/secondary/generate-operation-token/`
return t?.cancel?(n="DELETE",l+="attempt"):t?.checkStatus?(n="GET",l+="attempt"):l+=e?.pgp_key||e?.attempt?"attempt":"update",this.ajax(l,n,{data:e,unauthenticated:!0})},replicationAction(e,t,n,l){const i="recover"===e||"reindex"===e?this.urlForReplication(t,null,e):this.urlForReplication(t,n,e)
return this.ajax(i,"POST",{data:l})}})})),define("vault/adapters/config-ui/message",["exports","vault/adapters/application"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
class n extends t.default{pathForType(){return"config/ui/custom-messages"}query(e,t,n){const{authenticated:l,type:i,active:r}=n,a={authenticated:l,list:!0}
return i&&(a.type=i),"boolean"==typeof r&&(a.active=r),super.query(e,t,a)}queryRecord(e,t,n){return this.ajax(`${this.buildURL(t)}/${n}`,"GET")}updateRecord(e,t,n){return this.ajax(`${this.buildURL(t)}/${n.record.id}`,"POST",{data:this.serialize(n.record)})}}e.default=n})),define("vault/adapters/console",["exports","vault/adapters/application"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default=t.default.extend({namespace:"v1",pathForType:e=>e})})),define("vault/adapters/control-group-config",["exports","vault/adapters/application"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default=t.default.extend({pathForType:()=>"config/control-group",urlForDeleteRecord(e,t){return this.buildURL(t)},urlForFindRecord(e,t){return this.buildURL(t)},urlForUpdateRecord(e,t){return this.buildURL(t)}})})),define("vault/adapters/control-group",["exports","vault/adapters/application"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default=t.default.extend({pathForType:()=>"control-group",async findRecord(e,t,n){const l=this.buildURL(t.modelName)
return this.ajax(`${l}/request`,"POST",{data:{accessor:n}}).then((e=>(e.id=n,e)))},urlForUpdateRecord(e,t){return`${this.buildURL(t)}/authorize`}})})),define("vault/adapters/database/connection",["exports","vault/adapters/application"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default=t.default.extend({namespace:"v1",urlFor(e,t,n=""){if("ROTATE"===n)return`${this.buildURL()}/${e}/rotate-root/${t}`
if("RESET"===n)return`${this.buildURL()}/${e}/reset/${t}`
let l=`${this.buildURL()}/${e}/config`
return t&&(l=`${this.buildURL()}/${e}/config/${t}`),l},optionsForQuery(e){const t={}
return e||(t.list=!0),{data:t}},fetchByQuery(e,t){const{backend:n,id:l}=t
return this.ajax(this.urlFor(n,l),"GET",this.optionsForQuery(l)).then((e=>(e.backend=n,l&&(e.id=l),e)))},query(e,t,n){return this.fetchByQuery(e,n)},queryRecord(e,t,n){return this.fetchByQuery(e,n)},createRecord(e,t,n){const l=e.serializerFor(t.modelName).serialize(n),i=n.attr("name"),r=n.attr("backend")
return this.ajax(this.urlFor(r,i),"POST",{data:l}).then((()=>({data:{id:i,name:i,...l}})))},updateRecord(){return this.createRecord(...arguments)},deleteRecord(e,t,n){const l=n.id,i=n.attr("backend")
return this.ajax(this.urlFor(i,l),"DELETE")},rotateRootCredentials(e,t){return this.ajax(this.urlFor(e,t,"ROTATE"),"POST")},resetConnection(e,t){return this.ajax(this.urlFor(e,t,"RESET"),"POST")}})})),define("vault/adapters/database/credential",["exports","rsvp","vault/adapters/application","vault/lib/control-group-error"],(function(e,t,n,l){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default=n.default.extend({namespace:"v1",_staticCreds(e,t){return this.ajax(`${this.buildURL()}/${encodeURIComponent(e)}/static-creds/${encodeURIComponent(t)}`,"GET").then((e=>({...e,roleType:"static"})))},_dynamicCreds(e,t){return this.ajax(`${this.buildURL()}/${encodeURIComponent(e)}/creds/${encodeURIComponent(t)}`,"GET").then((e=>({...e,roleType:"dynamic"})))},fetchByQuery(e,n){const{backend:i,secret:r}=n
return"static"===n.roleType?this._staticCreds(i,r):"dynamic"===n.roleType?this._dynamicCreds(i,r):(0,t.allSettled)([this._staticCreds(i,r),this._dynamicCreds(i,r)]).then((([e,t])=>{if("rejected"===e.state&&"rejected"===t.state){let n=e.reason
if(t.reason instanceof l.default)throw t.reason
throw n?.httpStatus<t.reason?.httpStatus&&(n=t.reason),n}return e.value||t.value}))},queryRecord(e,t,n){return this.fetchByQuery(e,n)},rotateRoleCredentials(e,t){return this.ajax(`${this.buildURL()}/${encodeURIComponent(e)}/rotate-role/${encodeURIComponent(t)}`,"POST")}})}))
define("vault/adapters/database/role",["exports","@ember/debug","vault/lib/control-group-error","vault/adapters/application","rsvp","vault/helpers/add-to-array","vault/helpers/remove-from-array"],(function(e,t,n,l,i,r,a){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default=l.default.extend({namespace:"v1",pathForType(){},urlFor(e,t,n="dynamic"){let l="roles"
"static"===n&&(l="static-roles")
let i=`${this.buildURL()}/${e}/${l}`
return t&&(i=`${this.buildURL()}/${e}/${l}/${t}`),i},staticRoles(e,t){return this.ajax(this.urlFor(e,t,"static"),"GET",this.optionsForQuery(t)).then((n=>t?{...n,type:"static",backend:e,id:t}:n))},dynamicRoles(e,t){return this.ajax(this.urlFor(e,t),"GET",this.optionsForQuery(t)).then((n=>t?{...n,type:"dynamic",backend:e,id:t}:n))},optionsForQuery(e){const t={}
return e||(t.list=!0),{data:t}},queryRecord(e,t,l){const{backend:r,id:a}=l
return"static"===l.type?this.staticRoles(r,a):"dynamic"===l?.type?this.dynamicRoles(r,a):(0,i.allSettled)([this.staticRoles(r,a),this.dynamicRoles(r,a)]).then((([e,t])=>{if("rejected"===e.state&&"rejected"===t.state){let l=e.reason
if(t.reason instanceof n.default)throw t.reason
throw l?.httpStatus<t.reason?.httpStatus&&(l=t.reason),l}const l=e.value?"static":"dynamic",i=e.value||t.value,o={data:{},backend:r,id:a,type:l}
return o.data={...i.data},o}))},query(e,t,n){const{backend:l}=n,r=this.staticRoles(l),a=this.dynamicRoles(l)
return(0,i.allSettled)([r,a]).then((([e,t])=>{const n={backend:l,data:{keys:[]}}
if(e.reason&&t.reason)throw t.reason
let i=[],r=[]
return e.value&&(i=e.value.data.keys),t.value&&(r=t.value.data.keys),n.data={...n.data,keys:[...i,...r],backend:l,staticRoles:i,dynamicRoles:r},n}))},async _updateAllowedRoles(e,{role:t,backend:n,db:l,type:i="add"}){const o=await e.queryRecord("database/connection",{backend:n,id:l}),s=[...o.allowed_roles||[]],u="add"===i?(0,r.addToArray)(s,t):(0,a.removeFromArray)(s,t)
return o.allowed_roles=u,o.save()},async createRecord(e,t,n){const l=e.serializerFor(t.modelName).serialize(n),i=n.attr("type"),r=n.attr("backend"),a=n.attr("name"),o=n.attr("database")
try{await this._updateAllowedRoles(e,{role:a,backend:r,db:o[0]})}catch(s){this.checkError(s)}return this.ajax(this.urlFor(r,a,i),"POST",{data:l}).then((()=>({data:{...l,...a}})))},async deleteRecord(e,t,n){const l=n.attr("type"),i=n.attr("backend"),r=n.attr("name"),a=n.attr("database")
try{await this._updateAllowedRoles(e,{role:r,backend:i,db:a[0],type:"remove"})}catch(o){this.checkError(o)}return this.ajax(this.urlFor(i,r,l),"DELETE")},async updateRecord(e,t,n){const l=e.serializerFor(t.modelName).serialize(n),i=n.attr("type"),r=n.attr("backend"),a=n.attr("name")
return this.ajax(this.urlFor(r,a,i),"POST",{data:l}).then((()=>l))},checkError(e){if(403!==e.httpStatus)throw new Error(`Could not update allowed roles for selected database: ${e.errors.join(", ")}`)}})})),define("vault/adapters/generated-item-list",["exports","vault/adapters/application","ember-concurrency","@ember/service"],(function(e,t,n,l){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default=t.default.extend({store:(0,l.service)(),namespace:"v1",urlForItem(){},dynamicApiPath:"",getDynamicApiPath:(0,n.task)((function*(e){const t=yield this.store.peekRecord("auth-method",e)
this.dynamicApiPath=t.apiPath})),fetchByQuery:(0,n.task)((function*(e,t,n){const{id:l}=t,i={}
return n&&(i.list=!0,yield this.getDynamicApiPath.perform(l)),this.ajax(this.urlForItem(l,n,this.dynamicApiPath),"GET",{data:i}).then((e=>({...e,...{id:l,method:l}})))})),query(e,t,n){return this.fetchByQuery.perform(e,n,!0)},queryRecord(e,t,n){return this.fetchByQuery.perform(e,n)}})})),define("vault/adapters/identity/base",["exports","vault/adapters/application"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default=t.default.extend({namespace:"v1",pathForType:e=>e,urlForQuery(){return this._super(...arguments)+"?list=true"},query(e,t){return this.ajax(this.buildURL(t.modelName,null,null,"query"),"GET")},buildURL(e,t,n,l,i){return"createRecord"===l?this._super(...arguments):this._super(`${e}/id`,t,n,l,i)}})})),define("vault/adapters/identity/entity-alias",["exports","vault/adapters/identity/base"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default=t.default.extend()})),define("vault/adapters/identity/entity-merge",["exports","vault/adapters/identity/base"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default=t.default.extend({buildURL(){const[,...e]=arguments
return this._super("identity/entity/merge",...e)},createRecord(e,t,n){return this._super(...arguments).then((()=>({id:n.attr("toEntityId")})))}})})),define("vault/adapters/identity/entity",["exports","vault/adapters/identity/base"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default=t.default.extend({lookup(e,t){const n=`/${this.urlPrefix()}/identity/lookup/entity`
return this.ajax(n,"POST",{data:t}).then((t=>{if(!t)return
const n="identity/entity"
return e.push(e.serializerFor(n).normalizeResponse(e,e.modelFor(n),t,t.data.id,"findRecord")),t}))}})})),define("vault/adapters/identity/group-alias",["exports","vault/adapters/identity/base"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default=t.default.extend()})),define("vault/adapters/identity/group",["exports","vault/adapters/identity/base"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default=t.default.extend({lookup(e,t){const n=`/${this.urlPrefix()}/identity/lookup/group`
return this.ajax(n,"POST",{data:t}).then((t=>{if(!t)return
const n="identity/group"
return e.push(e.serializerFor(n).normalizeResponse(e,e.modelFor(n),t,t.data.id,"findRecord")),t}))}})})),define("vault/adapters/identity/oidc/config",["exports","vault/adapters/application"],(function(e,t){function n(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e
var n=e[Symbol.toPrimitive]
if(void 0!==n){var l=n.call(e,t||"default")
if("object"!=typeof l)return l
throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string")
return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
class l extends t.default{constructor(...e){super(...e),n(this,"namespace","v1")}queryRecord(){return this.ajax(`${this.buildURL()}/identity/oidc/config`,"GET").then((e=>({...e,id:"identity-oidc-config"})))}createOrUpdate(e,t,n){const l=e.serializerFor(t.modelName).serialize(n)
return this.ajax(`${this.buildURL()}/identity/oidc/config`,"POST",{data:l}).then((e=>({...e})))}createRecord(){return this.createOrUpdate(...arguments)}updateRecord(){return this.createOrUpdate(...arguments)}}e.default=l})),define("vault/adapters/keymgmt/key",["exports","vault/adapters/application","vault/utils/path-encoding-helpers","vault/lib/control-group-error","@ember/service"],(function(e,t,n,l,i){var r,a
function o(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e
var n=e[Symbol.toPrimitive]
if(void 0!==n){var l=n.call(e,t||"default")
if("object"!=typeof l)return l
throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string")
return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function s(e,t){const n={}
return Object.keys(e).forEach((l=>{t.indexOf(l)>=0&&(n[l]=e[l])})),n}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default=(r=class extends t.default{constructor(...e){var t,n,l,i
super(...e),t=this,n="store",i=this,(l=a)&&Object.defineProperty(t,n,{enumerable:l.enumerable,configurable:l.configurable,writable:l.writable,value:l.initializer?l.initializer.call(i):void 0}),o(this,"namespace","v1")}pathForType(){return"key"}buildURL(e,t,n,l,i){let r=super.buildURL(...arguments)
return n?r=r.replace("key",`${n.attr("backend")}/key`):i&&(r=r.replace("key",`${i.backend}/key`)),r}url(e,t,l){const i=`${this.buildURL()}/${e}/key`
return t?"ROTATE"===l?i+"/"+(0,n.encodePath)(t)+"/rotate":"PROVIDERS"===l?i+"/"+(0,n.encodePath)(t)+"/kms":i+"/"+(0,n.encodePath)(t):i}_updateKey(e,t,n){const l=s(n,["deletion_allowed","min_enabled_version"])
return this.ajax(this.url(e,t),"PUT",{data:l})}_createKey(e,t,n){const l=s(n,["type"])
return this.ajax(this.url(e,t),"POST",{data:l})}async createRecord(e,t,n){const l=e.serializerFor(t.modelName).serialize(n),i=n.attr("name"),r=n.attr("backend")
if(await this._createKey(r,i,l),n.attr("deletionAllowed"))try{await this._updateKey(r,i,l)}catch{throw new Error(`Key ${i} was created, but not all settings were saved`)}return{data:{...l,id:i,backend:r}}}updateRecord(e,t,n){const l=e.serializerFor(t.modelName).serialize(n),i=n.attr("name"),r=n.attr("backend")
return this._updateKey(r,i,l)}distribute(e,t,l,i){return this.ajax(`${this.buildURL()}/${e}/kms/${(0,n.encodePath)(t)}/key/${(0,n.encodePath)(l)}`,"PUT",{data:{...i}})}async getProvider(e,t){try{const n=await this.ajax(this.url(e,t,"PROVIDERS"),"GET",{data:{list:!0}})
return n.data.keys?n.data.keys[0]:null}catch(c){if(404===c.httpStatus)return null
if(403===c.httpStatus)return{permissionsError:!0}
throw c}}getDistribution(e,t,n){const i=`${this.buildURL()}/${e}/kms/${t}/key/${n}`
return this.ajax(i,"GET").then((e=>({...e.data,purposeArray:e.data.purpose.split(",")}))).catch((e=>{if(e instanceof l.default)throw e
return null}))}async queryRecord(e,t,n){const{id:l,backend:i,recordOnly:r=!1}=n,a=await this.ajax(this.url(i,l),"GET")
let o,s
return a.data.id=l,a.data.backend=i,r||(o=await this.getProvider(i,l),o&&!o.permissionsError&&(s=await this.getDistribution(i,o,l))),{...a,provider:o,distribution:s}}async query(e,t,n){const{backend:l,provider:i}=n,r=e.adapterFor("keymgmt/provider"),a=i?r.buildKeysURL(n):this.url(l)
return this.ajax(a,"GET",{data:{list:!0}}).then((e=>(e.backend=l,e)))}async rotateKey(e,t){const n=this.store.peekRecord("keymgmt/key",t),l=await this.ajax(this.url(e,t,"ROTATE"),"PUT")
return await n.reload(),l}removeFromProvider(e){const t=`${this.buildURL()}/${e.backend}/kms/${e.provider}/key/${e.name}`
return this.ajax(t,"DELETE").then((()=>{e.provider=null}))}},u=r.prototype,c="store",d=[i.service],p={configurable:!0,enumerable:!0,writable:!0,initializer:null},m={},Object.keys(p).forEach((function(e){m[e]=p[e]})),m.enumerable=!!m.enumerable,m.configurable=!!m.configurable,("value"in m||m.initializer)&&(m.writable=!0),m=d.slice().reverse().reduce((function(e,t){return t(u,c,e)||e}),m),f&&void 0!==m.initializer&&(m.value=m.initializer?m.initializer.call(f):void 0,m.initializer=void 0),a=void 0===m.initializer?(Object.defineProperty(u,c,m),null):m,r)
var u,c,d,p,f,m})),define("vault/adapters/keymgmt/provider",["exports","vault/adapters/application","rsvp"],(function(e,t,n){function l(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e
var n=e[Symbol.toPrimitive]
if(void 0!==n){var l=n.call(e,t||"default")
if("object"!=typeof l)return l
throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string")
return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
class i extends t.default{constructor(...e){super(...e),l(this,"namespace","v1"),l(this,"listPayload",{data:{list:!0}})}pathForType(){return"kms"}buildURL(e,t,n,l,i){let r=super.buildURL(...arguments)
return n?r=r.replace("kms",`${n.attr("backend")}/kms`):i&&(r=r.replace("kms",`${i.backend}/kms`)),r}buildKeysURL(e){return`${this.buildURL("keymgmt/provider",null,null,"query",e)}/${e.provider}/key`}async createRecord(e,{modelName:t},n){const l=e.serializerFor(t).serialize(n),i=this.buildURL(t,n.attr("name"),n,"updateRecord")
return this.ajax(i,"PUT",{data:l}).then((()=>l))}findRecord(e,t,n){return super.findRecord(...arguments).then((e=>(e.data={...e.data,name:n},e)))}async query(e,t,l){const{backend:i}=l,r=this.buildURL(t.modelName,null,null,"query",l)
return this.ajax(r,"GET",this.listPayload).then((async r=>{const a=await(0,n.all)(r.data.keys.map((n=>this.findRecord(e,t,n,this._mockSnapshot(l.backend)))))
return r.data.keys=a.map((e=>e.data)),r.backend=i,r}))}async queryRecord(e,t,n){return this.findRecord(e,t,n.id,this._mockSnapshot(n.backend))}_mockSnapshot(e){return{attr:t=>"backend"===t?e:null}}}e.default=i})),define("vault/adapters/kmip/base",["exports","vault/adapters/application","vault/utils/path-encoding-helpers"],(function(e,t,n){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default=t.default.extend({namespace:"v1",pathForType:e=>e.replace("kmip/",""),_url(e,t={},l){const{backend:i,scope:r,role:a}=t,o=this.pathForType(e)
let s
switch(o){case"scope":s=`${(0,n.encodePath)(i)}/scope`
break
case"role":s=`${(0,n.encodePath)(i)}/scope/${(0,n.encodePath)(r)}/role`
break
case"credential":s=`${(0,n.encodePath)(i)}/scope/${(0,n.encodePath)(r)}/role/${(0,n.encodePath)(a)}/credential`}return l&&"credential"===o?`/v1/${s}/lookup?serial_number=${(0,n.encodePath)(l)}`:l?`/v1/${s}/${(0,n.encodePath)(l)}`:`/v1/${s}`},urlForQuery(e,t){return this._url(t,e)+"?list=true"},query(e,t,n){return this.ajax(this.urlForQuery(n,t.modelName),"GET").then((e=>{const{...t}=n
return e._requestQuery=t,e}))},queryRecord(e,t,n){const l=n.id
return delete n.id,this.ajax(this._url(t.modelName,n,l),"GET").then((e=>(e.id=l,e={...e,...n})))},buildURL(e,t,n,l,i){return"createRecord"===l?this._super(...arguments):this._super(`${e}`,t,n,l,i)}})})),define("vault/adapters/kmip/ca",["exports","vault/adapters/kmip/base"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default=t.default.extend({urlForFindRecord(e,t,n){const l=this.pathForType(t)
return this.buildURL(e,l,n)}})})),define("vault/adapters/kmip/config",["exports","vault/adapters/kmip/base"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default=t.default.extend({_url(e,t,n){const l=this.pathForType(t)
return this.buildURL(e,l,n)},urlForFindRecord(){return this._url(...arguments)},urlForCreateRecord(e,t){return this._url(t.id,e,t)},urlForUpdateRecord(){return this._url(...arguments)}})})),define("vault/adapters/kmip/credential",["exports","vault/adapters/kmip/base"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default=t.default.extend({createRecord(e,t,n){let l=this._url(t.modelName,{backend:n.record.backend,scope:n.record.scope,role:n.record.role})
return l=`${l}/generate`,this.ajax(l,"POST",{data:n.serialize()}).then((e=>(e.data.id=e.data.serial_number,e)))},deleteRecord(e,t,n){let l=this._url(t.modelName,{backend:n.record.backend,scope:n.record.scope,role:n.record.role})
return l=`${l}/revoke`,this.ajax(l,"POST",{data:{serial_number:n.id}})}})})),define("vault/adapters/kmip/role",["exports","vault/adapters/kmip/base","@ember/string","@ember/object"],(function(e,t,n,l){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default=t.default.extend({createRecord(e,t,n){const l=n.id||n.attr("name"),i=this._url(t.modelName,{backend:n.record.backend,scope:n.record.scope},l)
return this.ajax(i,"POST",{data:this.serialize(n)}).then((()=>({id:l,name:l,backend:n.record.backend,scope:n.record.scope})))},deleteRecord(e,t,n){const l=n.id||n.attr("name"),i=this._url(t.modelName,{backend:n.record.backend,scope:n.record.scope},l)
return this.ajax(i,"DELETE")},serialize(e){const t=e.serialize(),i=e.record.nonOperationFields.map(n.decamelize),r=(0,l.getProperties)(t,i)
for(const n in r)null==r[n]&&delete r[n]
return t.operation_all?{operation_all:!0,...r}:t.operation_none?{operation_none:!0,...r}:(delete t.operation_none,delete t.operation_all,t)},updateRecord(){return this.createRecord(...arguments)}})})),define("vault/adapters/kmip/scope",["exports","vault/adapters/kmip/base"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default=t.default.extend({createRecord(e,t,n){const l=n.attr("name")
return this.ajax(this._url(t.modelName,{backend:n.record.backend},l),"POST").then((()=>({id:l,name:l})))},deleteRecord(e,t,n){let l=this._url(t.modelName,{backend:n.record.backend},n.id)
return l=`${l}?force=true`,this.ajax(l,"DELETE")}})})),define("vault/adapters/kubernetes/config",["exports","vault/adapters/secrets-engine-path"],(function(e,t){function n(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e
var n=e[Symbol.toPrimitive]
if(void 0!==n){var l=n.call(e,t||"default")
if("object"!=typeof l)return l
throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string")
return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
class l extends t.default{constructor(...e){super(...e),n(this,"path","config")}checkConfigVars(e){return this.ajax(`${this._getURL(e,"check")}`,"GET")}}e.default=l})),define("vault/adapters/kubernetes/role",["exports","vault/adapters/named-path","vault/utils/path-encoding-helpers"],(function(e,t,n){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
class l extends t.default{getURL(e,t){const l=`${this.buildURL()}/${(0,n.encodePath)(e)}/roles`
return t?`${l}/${t}`:l}urlForQuery({backend:e}){return this.getURL(e)}urlForUpdateRecord(e,t,n){return this.getURL(n.attr("backend"),e)}urlForDeleteRecord(e,t,n){return this.getURL(n.attr("backend"),e)}query(e,t,n){const{backend:l}=n
return this.ajax(this.getURL(l),"GET",{data:{list:!0}}).then((e=>e.data.keys.map((e=>({name:e,backend:l})))))}queryRecord(e,t,n){const{backend:l,name:i}=n
return this.ajax(this.getURL(l,i),"GET").then((e=>(e.data.backend=l,e.data.name=i,e.data)))}generateCredentials(e,t){const l=`${this.buildURL()}/${(0,n.encodePath)(e)}/creds/${t.role}`
return delete t.role,this.ajax(l,"POST",{data:t}).then((e=>{const{lease_id:t,lease_duration:n,data:l}=e
return{lease_id:t,lease_duration:n,...l}}))}}e.default=l})),define("vault/adapters/kv/config",["exports","vault/adapters/application"],(function(e,t){function n(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e
var n=e[Symbol.toPrimitive]
if(void 0!==n){var l=n.call(e,t||"default")
if("object"!=typeof l)return l
throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string")
return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
class l extends t.default{constructor(...e){super(...e),n(this,"namespace","v1")}urlForFindRecord(e){return`${this.buildURL()}/${e}/config`}}e.default=l})),define("vault/adapters/kv/data",["exports","vault/adapters/application","vault/utils/kv-path","@ember/debug","vault/lib/control-group-error"],(function(e,t,n,l,i){function r(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e
var n=e[Symbol.toPrimitive]
if(void 0!==n){var l=n.call(e,t||"default")
if("object"!=typeof l)return l
throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string")
return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
class a extends t.default{constructor(...e){super(...e),r(this,"namespace","v1")}_url(e){return`${this.buildURL()}/${e}`}createRecord(e,t,l){const{backend:i,path:r}=l.record,a=this._url((0,n.kvDataPath)(i,r))
return this.ajax(a,"POST",{data:this.serialize(l)}).then((e=>({data:{id:(0,n.kvDataPath)(i,r,e.data.version),backend:i,path:r,...e.data}})))}fetchSubkeys(e,t,l){const i=this._url((0,n.kvSubkeysPath)(e,t,l))
return this.ajax(i,"GET").then((e=>e.data)).catch((n=>this.parseErrorOrResponse(n,{backend:e,path:t},!0)))}fetchWrapInfo(e){const{backend:t,path:l,version:i,wrapTTL:r}=e,a=(0,n.kvDataPath)(t,l,i)
return this.ajax(this._url(a),"GET",{wrapTTL:r}).then((e=>e.wrap_info))}patchSecret(e,t,l,i){const r=this._url((0,n.kvDataPath)(e,t)),a={options:{cas:i},data:l}
return this.ajax(r,"PATCH",{data:a})}queryRecord(e,t,l){const{backend:i,path:r,version:a}=l
let o=(0,n.kvDataPath)(i,r,a)
return this.ajax(this._url(o),"GET").then((e=>(a||(o=(0,n.kvDataPath)(i,r,e.data.metadata.version)),{...e,data:{id:o,backend:i,path:r,...e.data}}))).catch((e=>this.parseErrorOrResponse(e,{id:o,backend:i,path:r,version:a})))}deleteRecord(e,t,l){const{backend:i,path:r}=l.record,{deleteType:a,deleteVersions:o}=l.adapterOptions
if(!i||!r)throw new Error("The request to delete or undelete is missing required attributes.")
switch(a){case"delete-latest-version":return this.ajax(this._url((0,n.kvDataPath)(i,r)),"DELETE")
case"delete-version":return this.ajax(this._url((0,n.kvDeletePath)(i,r)),"POST",{data:{versions:o}})
case"destroy":return this.ajax(this._url((0,n.kvDestroyPath)(i,r)),"PUT",{data:{versions:o}})
case"undelete":return this.ajax(this._url((0,n.kvUndeletePath)(i,r)),"POST",{data:{versions:o}})}}handleResponse(e,t,n,l){return 404===e&&n.data?.metadata?super.handleResponse(200,t,n,l):super.handleResponse(...arguments)}parseErrorOrResponse(e,t,n=!1){if(e instanceof i.default)throw e
const l=e.httpStatus
if(403===l)return{data:{...t,fail_read_error_code:l}}
if(e.data)return n?e.data:{...e,data:{...t,...e.data}}
throw e}}e.default=a})),define("vault/adapters/kv/metadata",["exports","vault/adapters/application","vault/utils/kv-path"],(function(e,t,n){function l(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e
var n=e[Symbol.toPrimitive]
if(void 0!==n){var l=n.call(e,t||"default")
if("object"!=typeof l)return l
throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string")
return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
class i extends t.default{constructor(...e){super(...e),l(this,"namespace","v1")}_url(e){return`${this.buildURL()}/${e}`}createRecord(e,t,l){const{backend:i,path:r}=l.record,a=(0,n.kvMetadataPath)(i,r),o=this._url(a),s=this.serialize(l)
return this.ajax(o,"POST",{data:s}).then((()=>({id:a,data:s})))}updateRecord(e,t,l){const{backend:i,path:r}=l.record,a=(0,n.kvMetadataPath)(i,r),o=this._url(a),s=this.serialize(l)
return this.ajax(o,"POST",{data:s}).then((()=>({id:a,data:s})))}query(e,t,l){const{backend:i,pathToSecret:r}=l
return this.ajax(this._url((0,n.kvMetadataPath)(i,r)),"GET",{data:{list:!0}}).then((e=>(e.backend=i,e.path=r,e)))}queryRecord(e,t,l){const{backend:i,path:r}=l,a=(0,n.kvMetadataPath)(i,r)
return this.ajax(this._url(a),"GET").then((e=>({id:a,...e,data:{backend:i,path:r,...e.data}})))}deleteRecord(e,t,l){const{backend:i,path:r,fullSecretPath:a}=l.record
return this.ajax(this._url((0,n.kvMetadataPath)(i,a||r)),"DELETE")}deleteMetadata(e,t){return this.ajax(this._url((0,n.kvMetadataPath)(e,t)),"DELETE")}}e.default=i})),define("vault/adapters/ldap/config",["exports","vault/adapters/secrets-engine-path"],(function(e,t){function n(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e
var n=e[Symbol.toPrimitive]
if(void 0!==n){var l=n.call(e,t||"default")
if("object"!=typeof l)return l
throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string")
return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
class l extends t.default{constructor(...e){super(...e),n(this,"path","config")}async rotateRoot(e){return this.ajax(this._getURL(e,"rotate-root"),"POST")}}e.default=l})),define("vault/adapters/ldap/library",["exports","vault/adapters/named-path","vault/utils/path-encoding-helpers"],(function(e,t,n){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
class l extends t.default{getURL(e,t){const l=`${this.buildURL()}/${(0,n.encodePath)(e)}/library`
return t?`${l}/${t}`:l}urlForUpdateRecord(e,t,n){return this.getURL(n.attr("backend"),e)}urlForDeleteRecord(e,t,n){return this.getURL(n.attr("backend"),e)}query(e,t,n){const{backend:l}=n
return this.ajax(this.getURL(l),"GET",{data:{list:!0}}).then((e=>e.data.keys.map((e=>({name:e,backend:l}))))).catch((e=>{if(404===e.httpStatus)return[]
throw e}))}queryRecord(e,t,n){const{backend:l,name:i}=n
return this.ajax(this.getURL(l,i),"GET").then((e=>({...e.data,backend:l,name:i})))}fetchStatus(e,t){const n=`${this.getURL(e,t)}/status`
return this.ajax(n,"GET").then((e=>{const n=[]
for(const l in e.data){const i={...e.data[l],account:l,library:t}
n.push(i)}return n}))}checkOutAccount(e,t,n){const l=`${this.getURL(e,t)}/check-out`
return this.ajax(l,"POST",{data:{ttl:n}}).then((e=>{const{lease_id:t,lease_duration:n,renewable:l}=e,{service_account_name:i,password:r}=e.data
return{account:i,password:r,lease_id:t,lease_duration:n,renewable:l}}))}checkInAccount(e,t,n){const l=`${this.getURL(e,t)}/check-in`
return this.ajax(l,"POST",{data:{service_account_names:n}}).then((e=>e.data))}}e.default=l})),define("vault/adapters/ldap/role",["exports","vault/adapters/application","vault/utils/path-encoding-helpers","@ember/service","@ember-data/adapter/error","vault/helpers/add-to-array","vault/utils/sort-objects"],(function(e,t,n,l,i,r,a){var o,s
function u(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e
var n=e[Symbol.toPrimitive]
if(void 0!==n){var l=n.call(e,t||"default")
if("object"!=typeof l)return l
throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string")
return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}Object.defineProperty(e,"__esModule",{value:!0}),e.ldapRoleID=e.default=void 0
const c=(e,t)=>`type:${e}::name:${t}`
e.ldapRoleID=c
e.default=(o=class extends t.default{constructor(...e){var t,n,l,i
super(...e),u(this,"namespace","v1"),t=this,n="flashMessages",i=this,(l=s)&&Object.defineProperty(t,n,{enumerable:l.enumerable,configurable:l.configurable,writable:l.writable,value:l.initializer?l.initializer.call(i):void 0})}_constructRecord({backend:e,name:t,type:n}){return{id:c(n,t),backend:e,name:t,type:n}}_getURL(e,t,l){const i=`${this.buildURL()}/${(0,n.encodePath)(e)}/${t}`
return l?`${i}/${l}`:i}_pathForRoleType(e,t){return"static"===e?t?"static-cred":"static-role":t?"creds":"role"}_createOrUpdate(e,t,n){const{backend:l,name:i,type:r}=n.record,a=n.serialize()
return this.ajax(this._getURL(l,this._pathForRoleType(r),i),"POST",{data:a}).then((()=>({data:this._constructRecord({backend:l,name:i,type:r})})))}createRecord(){return this._createOrUpdate(...arguments)}updateRecord(){return this._createOrUpdate(...arguments)}urlForDeleteRecord(e,t,n){const{backend:l,type:i,name:r}=n.record
return this._getURL(l,this._pathForRoleType(i),r)}async query(e,t,n,l,i){const{showPartialError:r,roleAncestry:a}=i.adapterOptions||{},{backend:o}=n
return a?this._querySubdirectory(o,a):this._queryAll(o,r)}async _queryAll(e,t){let n=[]
const l=[]
for(const i of["static","dynamic"]){const t=this._getURL(e,this._pathForRoleType(i))
try{const l=await this.ajax(t,"GET",{data:{list:!0}}).then((t=>t.data.keys.map((t=>this._constructRecord({backend:e,name:t,type:i})))))
n=(0,r.addManyToArray)(n,l)}catch(o){404!==o.httpStatus&&l.push(o)}}if(l.length){const e=l.reduce(((e,t)=>(t.errors.forEach((n=>{e.push(`${t.path}: ${n}`)})),e)),[])
if(2===l.length){const t=new i.default(e)
throw t.message="Error fetching roles:",t}t&&this.flashMessages.info(`Error fetching roles from ${e.join(", ")}`)}return{data:{keys:(0,a.default)(n,"name")}}}async _querySubdirectory(e,t){const{path_to_role:n,type:l}=t,i=`${this._getURL(e,this._pathForRoleType(l))}/${n}`,r=await this.ajax(i,"GET",{data:{list:!0}}).then((t=>t.data.keys.map((t=>({...this._constructRecord({backend:e,name:t,type:l}),path_to_role:n})))))
return{data:{keys:(0,a.default)(r,"name")}}}queryRecord(e,t,n){const{backend:l,name:i,type:r}=n,a=this._getURL(l,this._pathForRoleType(r),i)
return this.ajax(a,"GET").then((e=>({...e.data,...this._constructRecord({backend:l,name:i,type:r})})))}fetchCredentials(e,t,n){const l=this._getURL(e,this._pathForRoleType(t,!0),n)
return this.ajax(l,"GET").then((e=>{if("dynamic"===t){const{lease_id:n,lease_duration:l,renewable:i}=e
return{...e.data,lease_id:n,lease_duration:l,renewable:i,type:t}}return{...e.data,type:t}}))}rotateStaticPassword(e,t){const n=this._getURL(e,"rotate-role",t)
return this.ajax(n,"POST")}},d=o.prototype,p="flashMessages",f=[l.service],m={configurable:!0,enumerable:!0,writable:!0,initializer:null},b={},Object.keys(m).forEach((function(e){b[e]=m[e]})),b.enumerable=!!b.enumerable,b.configurable=!!b.configurable,("value"in b||b.initializer)&&(b.writable=!0),b=f.slice().reverse().reduce((function(e,t){return t(d,p,e)||e}),b),h&&void 0!==b.initializer&&(b.value=b.initializer?b.initializer.call(h):void 0,b.initializer=void 0),s=void 0===b.initializer?(Object.defineProperty(d,p,b),null):b,o)
var d,p,f,m,h,b})),define("vault/adapters/lease",["exports","vault/adapters/application","vault/utils/path-encoding-helpers"],(function(e,t,n){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default=t.default.extend({revokePrefix(e){let t=this.buildURL()+"/leases/revoke-prefix/"+(0,n.encodePath)(e)
return t=t.replace(/\/$/,""),this.ajax(t,"PUT")},forceRevokePrefix(e){let t=this.buildURL()+"/leases/revoke-force/"+(0,n.encodePath)(e)
return t=t.replace(/\/$/,""),this.ajax(t,"PUT")},renew(e,t){const n=this.buildURL()+"/leases/renew"
return this.ajax(n,"PUT",{data:{lease_id:e,increment:t}})},deleteRecord(e,t,n){const l=n.id
return this.ajax(this.buildURL()+"/leases/revoke","PUT",{data:{lease_id:l}})},queryRecord(e,t,n){const{lease_id:l}=n
return this.ajax(this.buildURL()+"/leases/lookup","PUT",{data:{lease_id:l}})},query(e,t,l){const i=l.prefix||""
return this.ajax(this.buildURL()+"/leases/lookup/"+(0,n.encodePath)(i),"GET",{data:{list:!0}}).then((e=>(i&&(e.prefix=i),e)))}})})),define("vault/adapters/license",["exports","vault/adapters/cluster"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default=t.default.extend({pathForType:()=>"license/status"})})),define("vault/adapters/mfa-login-enforcement",["exports","vault/adapters/application"],(function(e,t){function n(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e
var n=e[Symbol.toPrimitive]
if(void 0!==n){var l=n.call(e,t||"default")
if("object"!=typeof l)return l
throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string")
return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
class l extends t.default{constructor(...e){super(...e),n(this,"namespace","v1")}pathForType(){return"identity/mfa/login-enforcement"}_saveRecord(e,{modelName:t},n){const l=e.serializerFor(t).serialize(n)
return this.ajax(this.urlForUpdateRecord(n.attr("name"),t,n),"POST",{data:l}).then((()=>l))}createRecord(){return this._saveRecord(...arguments)}updateRecord(){return this._saveRecord(...arguments)}query(e,t,n){const l=this.urlForQuery(n,t.modelName)
return this.ajax(l,"GET",{data:{list:!0}})}}e.default=l})),define("vault/adapters/mfa-method",["exports","vault/adapters/application"],(function(e,t){function n(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e
var n=e[Symbol.toPrimitive]
if(void 0!==n){var l=n.call(e,t||"default")
if("object"!=typeof l)return l
throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string")
return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
class l extends t.default{constructor(...e){super(...e),n(this,"namespace","v1")}pathForType(){return"identity/mfa/method"}createOrUpdate(e,t,n){const l=e.serializerFor(t.modelName).serialize(n),{id:i}=n
return this.ajax(this.buildURL(t.modelName,i,n,"POST"),"POST",{data:l}).then((e=>({data:{...l,id:e?.data?.method_id||i}})))}createRecord(){return this.createOrUpdate(...arguments)}updateRecord(){return this.createOrUpdate(...arguments)}urlForDeleteRecord(e,t,n){return this.buildURL(t,e,n,"POST")}query(e,t,n){const l=this.urlForQuery(n,t.modelName)
return this.ajax(l,"GET",{data:{list:!0}})}buildURL(e,t,n,l){if("POST"===l){const l=`${super.buildURL(e)}/${n.attr("type")}`
return t?`${l}/${t}`:l}return super.buildURL(...arguments)}}e.default=l})),define("vault/adapters/mfa-setup",["exports","vault/adapters/application"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
class n extends t.default{currentTokenGenerate(e){return this.ajax("/v1/identity/mfa/method/totp/generate","POST",{data:e})}adminDestroy(e){return this.ajax("/v1/identity/mfa/method/totp/admin-destroy","POST",{data:e})}}e.default=n}))
define("vault/adapters/named-path",["exports","vault/adapters/application","@ember/debug"],(function(e,t,n){function l(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e
var n=e[Symbol.toPrimitive]
if(void 0!==n){var l=n.call(e,t||"default")
if("object"!=typeof l)return l
throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string")
return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
class i extends t.default{constructor(...e){super(...e),l(this,"namespace","v1"),l(this,"saveMethod","POST")}_saveRecord(e,{modelName:t},n){const l=e.serializerFor(t).serialize(n),i=e.serializerFor(t).primaryKey
return this.ajax(this.urlForUpdateRecord(n.attr("name"),t,n),this.saveMethod,{data:l}).then((()=>(l[i]=n.attr(i),l)))}createRecord(){const[e,{modelName:t},n]=arguments,l=n.attr("name")
if(e.hasRecordForId(t,l))throw new Error(`A record already exists with the name: ${l}`)
return this._saveRecord(...arguments)}updateRecord(){return this._saveRecord(...arguments)}findRecord(e,t,n){return super.findRecord(...arguments).then((e=>(e.data.name||(e.data.name=n),e)))}async query(e,t,n){const l=this.urlForQuery(n,t.modelName),{paramKey:i,filterFor:r,allowed_client_id:a}=n,o={list:!0,...a&&{allowed_client_id:a}},s=await this.ajax(l,"GET",{data:o})
if(s.data.key_info&&r&&i&&!r.includes("*")){const e=this.filterListResponse(i,r,s.data.key_info)
return{...s,data:e}}return s}filterListResponse(e,t,n){const l=Object.entries(n).filter((n=>{const l=n[1]
return t.includes(l[e])})),i=Object.fromEntries(l)
return{keys:Object.keys(i),key_info:i}}}e.default=i})),define("vault/adapters/namespace",["exports","vault/adapters/application"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
class n extends t.default{pathForType(){return"namespaces"}urlForFindAll(e,t){return t.adapterOptions&&t.adapterOptions.forUser?`/${this.urlPrefix()}/internal/ui/namespaces`:`/${this.urlPrefix()}/namespaces?list=true`}urlForCreateRecord(e,t){const n=t.attr("path")
return this.buildURL(e,n)}createRecord(e,t,n){const l=n.attr("path")
return super.createRecord(...arguments).then((()=>({id:l})))}findAll(e,t,n,l){return l.adapterOptions&&void 0!==l.adapterOptions.namespace?this.ajax(this.urlForFindAll("namespace",l),"GET",{namespace:l.adapterOptions.namespace}):super.findAll(...arguments)}query(){return this.ajax(`/${this.urlPrefix()}/namespaces?list=true`)}}e.default=n})),define("vault/adapters/node",["exports","vault/adapters/application"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default=t.default.extend()})),define("vault/adapters/oidc/assignment",["exports","vault/adapters/named-path"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
class n extends t.default{pathForType(){return"identity/oidc/assignment"}}e.default=n})),define("vault/adapters/oidc/client",["exports","vault/adapters/named-path"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
class n extends t.default{pathForType(){return"identity/oidc/client"}}e.default=n})),define("vault/adapters/oidc/key",["exports","vault/adapters/named-path"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
class n extends t.default{pathForType(){return"identity/oidc/key"}rotate(e,t){const n=t?{verification_ttl:t}:{}
return this.ajax(`${this.urlForUpdateRecord(e,"oidc/key")}/rotate`,"POST",{data:n})}}e.default=n})),define("vault/adapters/oidc/provider",["exports","vault/adapters/named-path"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
class n extends t.default{pathForType(){return"identity/oidc/provider"}}e.default=n})),define("vault/adapters/oidc/scope",["exports","vault/adapters/named-path"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
class n extends t.default{pathForType(){return"identity/oidc/scope"}}e.default=n})),define("vault/adapters/path-filter-config",["exports","vault/adapters/application"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default=t.default.extend({url(e){return`${this.buildURL()}/replication/performance/primary/paths-filter/${e}`},findRecord(e,t,n){return this.ajax(this.url(n),"GET").then((e=>(e.id=n,e)))},createRecord(e,t,n){return this.ajax(this.url(n.id),"PUT",{data:this.serialize(n)})},updateRecord(){return this.createRecord(...arguments)},deleteRecord(e,t,n){return this.ajax(this.url(n.id),"DELETE")}})})),define("vault/adapters/permissions",["exports","vault/adapters/application"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default=t.default.extend({query(){const e=this.namespaceService.userRootNamespace??this.namespaceService.path
return this.ajax(this.urlForQuery(),"GET",{namespace:e})},urlForQuery(){return this.buildURL()+"/internal/ui/resultant-acl"}})})),define("vault/adapters/pki/action",["exports","@ember/debug","vault/utils/path-encoding-helpers","vault/adapters/application"],(function(e,t,n,l){function i(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e
var n=e[Symbol.toPrimitive]
if(void 0!==n){var l=n.call(e,t||"default")
if("object"!=typeof l)return l
throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string")
return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
class r extends l.default{constructor(...e){super(...e),i(this,"namespace","v1")}urlForCreateRecord(e,t){const{type:l}=t.record,{actionType:i,useIssuer:r,issuerRef:a,mount:o}=t.adapterOptions,s=o||t.record.backend
if(!s||!i)throw new Error("URL for create record is missing required attributes")
const u=`${this.buildURL()}/${(0,n.encodePath)(s)}`
switch(i){case"import":return r?`${u}/issuers/import/bundle`:`${u}/config/ca`
case"generate-root":return r?`${u}/issuers/generate/root/${l}`:`${u}/root/generate/${l}`
case"generate-csr":return r?`${u}/issuers/generate/intermediate/${l}`:`${u}/intermediate/generate/${l}`
case"sign-intermediate":return`${u}/issuer/${(0,n.encodePath)(a)}/sign-intermediate`
case"rotate-root":return`${u}/root/rotate/${l}`}}createRecord(e,t,n){const l=e.serializerFor(t.modelName),i=this.urlForCreateRecord(t.modelName,n),r=l.serialize(n,n.adapterOptions.actionType)
return this.ajax(i,"POST",{data:r}).then((e=>({id:e.request_id,...e})))}}e.default=r})),define("vault/adapters/pki/certificate/base",["exports","vault/utils/path-encoding-helpers","vault/adapters/application"],(function(e,t,n){function l(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e
var n=e[Symbol.toPrimitive]
if(void 0!==n){var l=n.call(e,t||"default")
if("object"!=typeof l)return l
throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string")
return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
class i extends n.default{constructor(...e){super(...e),l(this,"namespace","v1")}getURL(e,n){const l=`${this.buildURL()}/${(0,t.encodePath)(e)}`
return n?`${l}/cert/${n}`:`${l}/certs`}fetchByQuery(e){const{backend:t,id:n}=e,l=n?{}:{list:!0}
return this.ajax(this.getURL(t,n),"GET",{data:l}).then((e=>(e.data.backend=t,n&&(e.data.id=n,e.data.serial_number=n),e)))}query(e,t,n){return this.fetchByQuery(n)}queryRecord(e,t,n){return this.fetchByQuery(n)}updateRecord(e,n,l){const{backend:i,serialNumber:r,certificate:a}=l.record,o=r?{serial_number:r}:{certificate:a}
return this.ajax(`${this.buildURL()}/${(0,t.encodePath)(i)}/revoke`,"POST",{data:o}).then((e=>({data:{...this.serialize(l),...e.data}})))}}e.default=i})),define("vault/adapters/pki/certificate/generate",["exports","vault/utils/path-encoding-helpers","vault/adapters/pki/certificate/base"],(function(e,t,n){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
class l extends n.default{urlForCreateRecord(e,n){const{role:l,backend:i}=n.record
if(!l||!i)throw new Error("URL for create record is missing required attributes")
return`${this.buildURL()}/${(0,t.encodePath)(i)}/issue/${(0,t.encodePath)(l)}`}}e.default=l})),define("vault/adapters/pki/certificate/sign",["exports","vault/utils/path-encoding-helpers","vault/adapters/pki/certificate/base"],(function(e,t,n){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
class l extends n.default{urlForCreateRecord(e,n){const{role:l,backend:i}=n.record
if(!l||!i)throw new Error("URL for create record is missing required attributes")
return`${this.buildURL()}/${(0,t.encodePath)(i)}/sign/${(0,t.encodePath)(l)}`}}e.default=l})),define("vault/adapters/pki/config/acme",["exports","vault/utils/path-encoding-helpers","vault/adapters/pki/config/base"],(function(e,t,n){function l(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e
var n=e[Symbol.toPrimitive]
if(void 0!==n){var l=n.call(e,t||"default")
if("object"!=typeof l)return l
throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string")
return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
class i extends n.default{constructor(...e){super(...e),l(this,"namespace","v1")}_url(e){return`${this.buildURL()}/${(0,t.encodePath)(e)}/config/acme`}}e.default=i})),define("vault/adapters/pki/config/base",["exports","vault/adapters/application"],(function(e,t){function n(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e
var n=e[Symbol.toPrimitive]
if(void 0!==n){var l=n.call(e,t||"default")
if("object"!=typeof l)return l
throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string")
return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
class l extends t.default{constructor(...e){super(...e),n(this,"namespace","v1")}findRecord(e,t,n){return this.ajax(this._url(n),"GET").then((e=>e.data))}updateRecord(e,t,n){const l=n.serialize()
return this.ajax(this._url(n.record.id),"POST",{data:l})}}e.default=l})),define("vault/adapters/pki/config/cluster",["exports","vault/utils/path-encoding-helpers","vault/adapters/pki/config/base"],(function(e,t,n){function l(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e
var n=e[Symbol.toPrimitive]
if(void 0!==n){var l=n.call(e,t||"default")
if("object"!=typeof l)return l
throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string")
return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
class i extends n.default{constructor(...e){super(...e),l(this,"namespace","v1")}_url(e){return`${this.buildURL()}/${(0,t.encodePath)(e)}/config/cluster`}}e.default=i})),define("vault/adapters/pki/config/crl",["exports","vault/utils/path-encoding-helpers","vault/adapters/pki/config/base"],(function(e,t,n){function l(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e
var n=e[Symbol.toPrimitive]
if(void 0!==n){var l=n.call(e,t||"default")
if("object"!=typeof l)return l
throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string")
return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
class i extends n.default{constructor(...e){super(...e),l(this,"namespace","v1")}_url(e){return`${this.buildURL()}/${(0,t.encodePath)(e)}/config/crl`}}e.default=i})),define("vault/adapters/pki/config/urls",["exports","vault/utils/path-encoding-helpers","vault/adapters/pki/config/base"],(function(e,t,n){function l(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e
var n=e[Symbol.toPrimitive]
if(void 0!==n){var l=n.call(e,t||"default")
if("object"!=typeof l)return l
throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string")
return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
class i extends n.default{constructor(...e){super(...e),l(this,"namespace","v1")}_url(e){return`${this.buildURL()}/${(0,t.encodePath)(e)}/config/urls`}}e.default=i})),define("vault/adapters/pki/issuer",["exports","vault/adapters/application","vault/utils/path-encoding-helpers","rsvp","vault/utils/parse-pki-cert"],(function(e,t,n,l,i){function r(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e
var n=e[Symbol.toPrimitive]
if(void 0!==n){var l=n.call(e,t||"default")
if("object"!=typeof l)return l
throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string")
return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
class a extends t.default{constructor(...e){super(...e),r(this,"namespace","v1")}_getBackend(e){const{record:t,adapterOptions:n}=e
return n?.mount||t.backend}optionsForQuery(e){const t={}
return e||(t.list=!0),{data:t}}urlForQuery(e,t){const l=`${this.buildURL()}/${(0,n.encodePath)(e)}`
return t?`${l}/issuer/${(0,n.encodePath)(t)}`:`${l}/issuers`}async getIssuerMetadata(e,t,n,l,r){const a=l.data.key_info[r]
try{const l=await this.queryRecord(e,t,{id:r,backend:n.backend}),{data:o}=l,s=await(0,i.verifyCertificates)(o.certificate,o.certificate),u=(0,i.parseCertificate)(o.certificate)
return{...a,...o,isRoot:s,parsedCertificate:{common_name:u.common_name}}}catch(o){return{...a,issuer_id:r}}}updateRecord(e,t,n){const{issuerId:l}=n.record,i=this._getBackend(n),r=this.serialize(n),a=this.urlForQuery(i,l)
return this.ajax(a,"POST",{data:r})}query(e,t,n){const{backend:i,isListView:r}=n,a=this.urlForQuery(i)
return this.ajax(a,"GET",this.optionsForQuery()).then((async i=>{if(r&&i.data.keys.length<=10){const r=await(0,l.all)(i.data.keys.map((l=>this.getIssuerMetadata(e,t,n,i,l)))),a={}
return i.data.keys.forEach((e=>{a[e]=r.find((t=>t.issuer_id===e))})),i.data.key_info=a,i}return i}))}queryRecord(e,t,n){const{backend:l,id:i}=n
return this.ajax(this.urlForQuery(l,i),"GET",this.optionsForQuery(i))}deleteAllIssuers(e){const t=`${this.buildURL()}/${(0,n.encodePath)(e)}/root`
return this.ajax(t,"DELETE")}}e.default=a})),define("vault/adapters/pki/key",["exports","vault/adapters/application","vault/utils/path-encoding-helpers"],(function(e,t,n){function l(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e
var n=e[Symbol.toPrimitive]
if(void 0!==n){var l=n.call(e,t||"default")
if("object"!=typeof l)return l
throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string")
return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
class i extends t.default{constructor(...e){super(...e),l(this,"namespace","v1")}_baseUrl(e,t){const l=`${this.buildURL()}/${(0,n.encodePath)(e)}`
return t?l+"/key/"+(0,n.encodePath)(t):l+"/keys"}createRecord(e,t,n){const{record:l,adapterOptions:i}=n
let r=this._baseUrl(l.backend)
return r=i.import?`${r}/import`:`${r}/generate/${l.type}`,this.ajax(r,"POST",{data:this.serialize(n)}).then((e=>e))}updateRecord(e,t,n){const{record:l}=n,{key_name:i}=this.serialize(n),r=this._baseUrl(l.backend,l.id)
return this.ajax(r,"POST",{data:{key_name:i}})}query(e,t,n){const{backend:l}=n
return this.ajax(this._baseUrl(l),"GET",{data:{list:!0}})}queryRecord(e,t,n){const{backend:l,id:i}=n
return this.ajax(this._baseUrl(l,i),"GET")}deleteRecord(e,t,n){const{id:l,record:i}=n
return this.ajax(this._baseUrl(i.backend,l),"DELETE")}}e.default=i})),define("vault/adapters/pki/role",["exports","vault/adapters/application","vault/utils/path-encoding-helpers"],(function(e,t,n){function l(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e
var n=e[Symbol.toPrimitive]
if(void 0!==n){var l=n.call(e,t||"default")
if("object"!=typeof l)return l
throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string")
return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
class i extends t.default{constructor(...e){super(...e),l(this,"namespace","v1")}_urlForRole(e,t){let l=`${this.buildURL()}/${(0,n.encodePath)(e)}/roles`
return t&&(l=l+"/"+(0,n.encodePath)(t)),l}_optionsForQuery(e){const t={}
return e||(t.list=!0),{data:t}}createRecord(e,t,n){const l=n.attr("name"),i=this._urlForRole(n.record.backend,l)
return this.ajax(i,"POST",{data:this.serialize(n)}).then((()=>({id:l,name:l,backend:n.record.backend})))}updateRecord(e,t,n){const{name:l,backend:i}=n.record,r=this.serialize(n),a=this._urlForRole(i,l)
return this.ajax(a,"POST",{data:r})}fetchByQuery(e,t){const{id:n,backend:l}=t
return this.ajax(this._urlForRole(l,n),"GET",this._optionsForQuery(n)).then((e=>({...e,...{id:n,name:n,backend:l}})))}query(e,t,n){return this.fetchByQuery(e,n)}queryRecord(e,t,n){return this.fetchByQuery(e,n)}deleteRecord(e,t,n){const{id:l,record:i}=n
return this.ajax(this._urlForRole(i.backend,l),"DELETE")}}e.default=i})),define("vault/adapters/pki/sign-intermediate",["exports","vault/utils/path-encoding-helpers","vault/adapters/application"],(function(e,t,n){function l(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e
var n=e[Symbol.toPrimitive]
if(void 0!==n){var l=n.call(e,t||"default")
if("object"!=typeof l)return l
throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string")
return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
class i extends n.default{constructor(...e){super(...e),l(this,"namespace","v1")}createRecord(e,n,l){const i=e.serializerFor(n.modelName),{backend:r,issuerRef:a}=l.record,o=`${this.buildURL()}/${(0,t.encodePath)(r)}/issuer/${(0,t.encodePath)(a)}/sign-intermediate`,s=i.serialize(l,n)
return this.ajax(o,"POST",{data:s}).then((e=>({id:e.request_id,...e})))}}e.default=i})),define("vault/adapters/pki/tidy",["exports","vault/adapters/application","core/utils/timestamp","vault/utils/path-encoding-helpers"],(function(e,t,n,l){function i(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e
var n=e[Symbol.toPrimitive]
if(void 0!==n){var l=n.call(e,t||"default")
if("object"!=typeof l)return l
throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string")
return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
class r extends t.default{constructor(...e){super(...e),i(this,"namespace","v1")}_baseUrl(e){return`${this.buildURL()}/${(0,l.encodePath)(e)}`}createRecord(e,t,l){const{backend:i}=l.record,{tidyType:r}=l.adapterOptions
if("auto"===r)throw new Error("Auto tidy type models are never new, please use findRecord")
const a=`${i}-${n.default.now().toISOString()}`,o=`${this._baseUrl(i)}/tidy`
return this.ajax(o,"POST",{data:this.serialize(l,r)}).then((e=>(e.id=a,e)))}updateRecord(e,t,n){const l=n.record.id,{tidyType:i}=n.adapterOptions
if("manual"===i)throw new Error("Manual tidy type models are always new, please use createRecord")
const r=`${this._baseUrl(l)}/config/auto-tidy`
return this.ajax(r,"POST",{data:this.serialize(n,i)})}findRecord(e,t,n){return this.ajax(`${this._baseUrl(n)}/config/auto-tidy`,"GET").then((e=>e.data))}cancelTidy(e){const t=`${this._baseUrl(e)}`
return this.ajax(`${t}/tidy-cancel`,"POST")}}e.default=r})),define("vault/adapters/policy",["exports","vault/adapters/application"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default=t.default.extend({namespace:"v1/sys",pathForType:e=>e.replace("policy","policies"),createOrUpdate(e,t,n){const l=e.serializerFor("policy").serialize(n),i=n.attr("name")
return this.ajax(this.buildURL(t.modelName,i),"PUT",{data:l}).then((()=>({data:{...this.serialize(n),id:i}})))},createRecord(){return this.createOrUpdate(...arguments)},updateRecord(){return this.createOrUpdate(...arguments)},query(e,t){return this.ajax(this.buildURL(t.modelName),"GET",{data:{list:!0}})}})})),define("vault/adapters/policy/acl",["exports","vault/adapters/policy"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default=t.default.extend()})),define("vault/adapters/policy/egp",["exports","vault/adapters/policy"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default=t.default.extend()})),define("vault/adapters/policy/rgp",["exports","vault/adapters/policy"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default=t.default.extend()})),define("vault/adapters/raft-join",["exports","vault/adapters/application"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default=t.default.extend({urlForCreateRecord:()=>"/v1/sys/storage/raft/join"})})),define("vault/adapters/replication-mode",["exports","vault/adapters/application"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default=t.default.extend({getStatusUrl(e){return this.buildURL()+`/replication/${e}/status`},fetchStatus(e){const t=this.getStatusUrl(e)
return this.ajax(t,"GET",{unauthenticated:!0}).then((e=>e.data))}})}))
define("vault/adapters/role-aws",["exports","vault/adapters/application","vault/utils/path-encoding-helpers"],(function(e,t,n){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default=t.default.extend({namespace:"v1",createOrUpdate(e,t,n,l){const{name:i,backend:r}=n.record,a=e.serializerFor(t.modelName).serialize(n,l),o=this.urlForRole(r,i)
return this.ajax(o,"POST",{data:a}).then((e=>{const t=e||{data:{}}
return t.data.name=i,t.data.backend=i,t}))},createRecord(){return this.createOrUpdate(...arguments)},updateRecord(){return this.createOrUpdate(...arguments,"update")},deleteRecord(e,t,n){const{id:l}=n
return this.ajax(this.urlForRole(n.record.backend,l),"DELETE")},pathForType:()=>"roles",urlForRole(e,t){let l=`${this.buildURL()}/${(0,n.encodePath)(e)}/roles`
return t&&(l=l+"/"+(0,n.encodePath)(t)),l},optionsForQuery(e){const t={}
return e||(t.list=!0),{data:t}},fetchByQuery(e,t){const{id:n,backend:l}=t
return this.ajax(this.urlForRole(l,n),"GET",this.optionsForQuery(n)).then((e=>({...e,...{id:n,name:n,backend:l}})))},query(e,t,n){return this.fetchByQuery(e,n)},queryRecord(e,t,n){return this.fetchByQuery(e,n)}})})),define("vault/adapters/role-jwt",["exports","vault/adapters/application","@ember/service","vault/utils/path-encoding-helpers"],(function(e,t,n,l){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default=t.default.extend({router:(0,n.service)(),findRecord(e,t,n,i){let[r,a]=JSON.parse(n)
r=(0,l.encodePath)(r)
const o=i?.adapterOptions.namespace,s=`/v1/auth/${r}/oidc/auth_url`
let u=`${window.location.origin}${this.router.urlFor("vault.cluster.oidc-callback",{auth_path:r})}`
return o&&(u=`${window.location.origin}${this.router.urlFor("vault.cluster.oidc-callback",{auth_path:r},{queryParams:{namespace:o}})}`),this.ajax(s,"POST",{data:{role:a,redirect_uri:u}})}})})),define("vault/adapters/role-saml",["exports","vault/adapters/application","@ember/service","vault/utils/path-encoding-helpers","uuid"],(function(e,t,n,l,i){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default=t.default.extend({router:(0,n.service)(),async generateClientChallenge(e){const t=(new TextEncoder).encode(e),n=await crypto.subtle.digest("SHA-256",t),l=new Uint8Array(n)
return btoa(String.fromCharCode.apply(null,l))},async findRecord(e,t,n,l){let[a,o]=JSON.parse(n)
a=r(a)
let s=`${window.location.origin}/v1/`,u=l?.adapterOptions.namespace
u&&(u=r(u),s=s.concat(u,"/")),s=s.concat("auth/",a,"/callback")
const c=(0,i.v4)(),d=await this.generateClientChallenge(c)
return{...(await this.ajax(`/v1/auth/${a}/sso_service_url`,"PUT",{data:{acs_url:s,role:o,client_challenge:d,client_type:"browser"}})).data,client_verifier:c}}})
function r(e){return e=(e=e.replace(/^\//,"")).replace(/\/$/,""),(0,l.encodePath)(e)}})),define("vault/adapters/role-ssh",["exports","rsvp","vault/adapters/application","vault/utils/path-encoding-helpers"],(function(e,t,n,l){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default=n.default.extend({namespace:"v1",createOrUpdate(e,t,n,l){const{name:i,backend:r}=n.record,a=e.serializerFor(t.modelName).serialize(n,l),o=this.urlForRole(r,i)
return this.ajax(o,"POST",{data:a}).then((e=>{const t=e||{data:{}}
return t.data.name=i,t}))},createRecord(){return this.createOrUpdate(...arguments)},updateRecord(){return this.createOrUpdate(...arguments,"update")},deleteRecord(e,t,n){const{id:l}=n
return this.ajax(this.urlForRole(n.record.backend,l),"DELETE")},pathForType:()=>"roles",urlForRole(e,t){let n=`${this.buildURL()}/${(0,l.encodePath)(e)}/roles`
return t&&(n=n+"/"+(0,l.encodePath)(t)),n},optionsForQuery(e){const t={}
return e||(t.list=!0),{data:t}},fetchByQuery(e,n){const{id:l,backend:i}=n
let r=(0,t.resolve)()
const a=this.ajax(this.urlForRole(i,l),"GET",this.optionsForQuery(l))
return l||(r=this.findAllZeroAddress(e,n)),(0,t.allSettled)([a,r]).then((e=>{if(!e[0].value)throw e[0].reason
const t={id:l,name:l,backend:i,data:{}}
return e.forEach((e=>{e.value&&(e.value.data.roles?t.data={...t.data,zero_address_roles:e.value.data.roles}:t.data={...t.data,...e.value.data})})),t}))},findAllZeroAddress(e,t){const{backend:n}=t,i=`/v1/${(0,l.encodePath)(n)}/config/zeroaddress`
return this.ajax(i,"GET")},query(e,t,n){return this.fetchByQuery(e,n)},queryRecord(e,t,n){return this.fetchByQuery(e,n)}})})),define("vault/adapters/secret-engine",["exports","vault/adapters/application","vault/utils/path-encoding-helpers","vault/helpers/split-object"],(function(e,t,n,l){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default=t.default.extend({url(e){const t=`${this.buildURL()}/mounts`
return e?t+"/"+(0,n.encodePath)(e):t},urlForConfig:e=>`/v1/${e}/config`,internalURL(e){let t=`/${this.urlPrefix()}/internal/ui/mounts`
return e&&(t=`${t}/${(0,n.encodePath)(e)}`),t},pathForType:()=>"mounts",async query(e,t,n){let l,i
try{l=await this.ajax(this.internalURL(n.path),"GET"),"kv"===l?.data?.type&&"2"===l?.data?.options?.version&&(i=await this.ajax(this.urlForConfig(n.path),"GET"),l.data={...l.data,...i.data})}catch(r){if(!n.path||!l)throw r}return l},async createRecord(e,t,n){let i=e.serializerFor(t.modelName).serialize(n)
const r=n.attr("path")
if(i.config.id=r,"kv"===i.type&&2===i.options.version){const e=(0,l.splitObject)(i,["max_versions","delete_version_after","cas_required"])
let t;[t,i]=e,i.id||(i.id=r),await this.ajax(this.url(r),"POST",{data:i})
try{await this.ajax(this.urlForConfig(r),"POST",{data:t})}catch(a){}return{data:{...i,path:r+"/",id:r}}}return this.ajax(this.url(r),"POST",{data:i}).then((()=>({data:{...i,path:r+"/",id:r}})))},updateRecord(e,t,l){const{apiPath:i,options:r,adapterMethod:a}=l.adapterOptions
if(a)return this[a](...arguments)
if(i){const a=e.serializerFor(t.modelName).serialize(l),o=(0,n.encodePath)(l.id)
return this.ajax(`/v1/${o}/${i}`,r.isDelete?"DELETE":"POST",{data:a})}},saveZeroAddressConfig(e,t,l){const i=(0,n.encodePath)(l.id),r=e.peekAll("role-ssh").filter((e=>e.zeroAddress)).map((e=>e.id)).join(","),a=`/v1/${i}/config/zeroaddress`,o={roles:r}
return""===r?this.ajax(a,"DELETE"):this.ajax(a,"POST",{data:o})}})})),define("vault/adapters/secret",["exports","@ember/utils","vault/adapters/application","vault/utils/path-encoding-helpers"],(function(e,t,n,l){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default=n.default.extend({namespace:"v1",createOrUpdate(e,t,n){const l=e.serializerFor(t.modelName).serialize(n),{id:i}=n,r=n.record.path
return this.ajax(this.urlForSecret(n.attr("backend"),r||i),"POST",{data:l}).then((()=>(l.id=r||i,l)))},createRecord(){return this.createOrUpdate(...arguments)},updateRecord(){return this.createOrUpdate(...arguments)},deleteRecord(e,t,n){const{id:l}=n
return this.ajax(this.urlForSecret(n.attr("backend"),l),"DELETE")},urlForSecret(e,n){let i=`${this.buildURL()}/${(0,l.encodePath)(e)}/`
return(0,t.isEmpty)(n)||(i+=(0,l.encodePath)(n)),i},pathForType:()=>"mounts",optionsForQuery(e,t,n){const l={}
return"query"===t&&(l.list=!0),n?{data:l,wrapTTL:n}:{data:l}},fetchByQuery(e,t){const{id:n,backend:l,wrapTTL:i}=e
return this.ajax(this.urlForSecret(l,n),"GET",this.optionsForQuery(n,t,i)).then((e=>(i||(e.id=n,e.backend=l),e)))},query(e,t,n){return this.fetchByQuery(n,"query")},queryRecord(e,t,n){return this.fetchByQuery(n,"queryRecord")}})})),define("vault/adapters/secrets-engine-path",["exports","vault/adapters/application","vault/utils/path-encoding-helpers"],(function(e,t,n){function l(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e
var n=e[Symbol.toPrimitive]
if(void 0!==n){var l=n.call(e,t||"default")
if("object"!=typeof l)return l
throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string")
return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
class i extends t.default{constructor(...e){super(...e),l(this,"namespace","v1")}_getURL(e,t){return`${this.buildURL()}/${(0,n.encodePath)(e)}/${t||this.path}`}urlForUpdateRecord(e,t,n){return this._getURL(n.attr("backend"))}urlForDeleteRecord(e){return this._getURL(e)}queryRecord(e,t,n){const{backend:l}=n
return this.ajax(this._getURL(l),"GET").then((e=>(e.backend=l,e)))}createRecord(){return this._saveRecord(...arguments)}updateRecord(){return this._saveRecord(...arguments)}_saveRecord(e,{modelName:t},n){const l=e.serializerFor(t).serialize(n),i=e.serializerFor(t).primaryKey,r=this._getURL(n.attr("backend"))
return this.ajax(r,"POST",{data:l}).then((()=>(l[i]=n.attr(i),l)))}}e.default=i})),define("vault/adapters/server",["exports","vault/adapters/application"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
const n="/v1/sys/storage/raft/configuration"
e.default=t.default.extend({urlForFindAll:()=>n,urlForQuery:()=>n,urlForDeleteRecord:()=>"/v1/sys/storage/raft/remove-peer",deleteRecord(e,t,n){const l=n.attr("nodeId")
return this.ajax("/v1/sys/storage/raft/remove-peer","POST",{data:{server_id:l}})}})})),define("vault/adapters/ssh-otp-credential",["exports","vault/adapters/ssh"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default=t.default.extend({url:e=>`/v1/${e.backend}/creds/${e.name}`})})),define("vault/adapters/ssh-sign",["exports","vault/adapters/ssh"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default=t.default.extend({url:e=>`/v1/${e.backend}/sign/${e.name}`})})),define("vault/adapters/ssh",["exports","@ember/debug","vault/adapters/application"],(function(e,t,n){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default=n.default.extend({namespace:"v1",url(){},createRecord(e,t,n,l){const i=e.serializerFor(t.modelName).serialize(n,l),r=n.attr("role")
return this.ajax(this.url(r),"POST",{data:i}).then((l=>{l.id=n.id,l.modelName=t.modelName,e.pushPayload(t.modelName,l)}))}})})),define("vault/adapters/ssh/ca-config",["exports","vault/adapters/application","vault/utils/path-encoding-helpers"],(function(e,t,n){function l(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e
var n=e[Symbol.toPrimitive]
if(void 0!==n){var l=n.call(e,t||"default")
if("object"!=typeof l)return l
throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string")
return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
class i extends t.default{constructor(...e){super(...e),l(this,"namespace","v1")}queryRecord(e,t,l){const{backend:i}=l
return this.ajax(`${this.buildURL()}/${(0,n.encodePath)(i)}/config/ca`,"GET").then((e=>(e.id=i,e.backend=i,e)))}createOrUpdate(e,t,n){const l=e.serializerFor(t.modelName).serialize(n),i=n.record.backend
return this.ajax(`${this.buildURL()}/${i}/config/ca`,"POST",{data:l}).then((e=>({...e,id:i})))}createRecord(){return this.createOrUpdate(...arguments)}updateRecord(){return this.createOrUpdate(...arguments)}deleteRecord(e,t,n){const l=n.record.backend
return this.ajax(`${this.buildURL()}/${l}/config/ca`,"DELETE")}}e.default=i})),define("vault/adapters/sync/association",["exports","vault/adapters/application","@ember/debug","rsvp"],(function(e,t,n,l){function i(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e
var n=e[Symbol.toPrimitive]
if(void 0!==n){var l=n.call(e,t||"default")
if("object"!=typeof l)return l
throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string")
return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
class r extends t.default{constructor(...e){super(...e),i(this,"namespace","v1/sys/sync")}buildURL(e,t,n,l,i={}){const{destinationType:r,destinationName:a}=n?n.attributes():i
if(!r||!a)return`${super.buildURL()}/associations`
const{action:o}=n?.adapterOptions||{},s=o?`/${o}`:""
return`${super.buildURL()}/destinations/${r}/${a}/associations${s}`}query(e,{modelName:t},n){const l=this.buildURL(t,null,null,"query",n)
return this.ajax(l,"GET")}queryAll(){const e=`${this.buildURL("sync/association")}`
return this.ajax(e,"GET",{data:{list:!0}}).then((e=>{const{total_associations:t,total_secrets:n}=e.data
return{total_associations:t,total_secrets:n}}))}async fetchByDestinations(e){const t=e.map((({name:e,type:t})=>this.query(this.store,{modelName:"sync/association"},{destinationName:e,destinationType:t}))),n=await(0,l.all)(t),i=this.store.serializerFor("sync/association")
return n.map((e=>i.normalizeFetchByDestinations(e)))}fetchSyncStatus({mount:e,secretName:t}){const n=`${this.buildURL()}/destinations`
return this.ajax(n,"GET",{data:{mount:e,secret_name:t}}).then((e=>{const{associated_destinations:t}=e.data,n=[]
for(const l in t){const e=t[l]
n.push({destinationType:e.type,destinationName:e.name,syncStatus:e.sync_status,updatedAt:e.updated_at})}return n}))}_setOrRemove(e,{modelName:t},n){const l=this.buildURL(t,null,n),i=n.serialize(),r=e.serializerFor("sync/association")
return this.ajax(l,"POST",{data:i}).then((e=>{const t=Object.values(e.data.associated_secrets).find((e=>e.mount===i.mount&&e.secret_name===i.secret_name)),n=t?r.generateId(t):void 0
return{...t,id:n,destinationName:e.data.store_name,destinationType:e.data.store_type}}))}createRecord(){return this._setOrRemove(...arguments)}updateRecord(){return this._setOrRemove(...arguments)}}e.default=r})),define("vault/adapters/sync/destination",["exports","vault/adapters/application","ember-inflector"],(function(e,t,n){function l(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e
var n=e[Symbol.toPrimitive]
if(void 0!==n){var l=n.call(e,t||"default")
if("object"!=typeof l)return l
throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string")
return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
class i extends t.default{constructor(...e){super(...e),l(this,"namespace","v1/sys")}pathForType(e){return"sync/destination"===e?(0,n.pluralize)(e):e}urlForCreateRecord(e,t){const{name:n}=t.attributes()
return`${super.urlForCreateRecord(e,t)}/${n}`}updateRecord(e,{modelName:t},n){const{name:l}=n.attributes()
return this.ajax(`${this.buildURL(t)}/${l}`,"PATCH",{data:n.serialize()})}urlForDeleteRecord(e,t,n){const{name:l,type:i}=n.attributes()
return`${this.buildURL("sync/destinations")}/${i}/${l}?purge=true`}query(e,{modelName:t}){return this.ajax(this.buildURL(t),"GET",{data:{list:!0}})}createRecord(e,t,n){const l=`${n.record.type}:${n.record.name}`
return super.createRecord(...arguments).then((e=>(e.id=l,e)))}async normalizedQuery(){const e=await this.query(this.store,{modelName:"sync/destination"})
return this.store.serializerFor("sync/destination").extractLazyPaginatedData(e)}}e.default=i})),define("vault/adapters/sync/destinations/aws-sm",["exports","vault/adapters/sync/destination"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
class n extends t.default{}e.default=n})),define("vault/adapters/sync/destinations/azure-kv",["exports","vault/adapters/sync/destination"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
class n extends t.default{}e.default=n})),define("vault/adapters/sync/destinations/gcp-sm",["exports","vault/adapters/sync/destination"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
class n extends t.default{}e.default=n})),define("vault/adapters/sync/destinations/gh",["exports","vault/adapters/sync/destination"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
class n extends t.default{}e.default=n})),define("vault/adapters/sync/destinations/vercel-project",["exports","vault/adapters/sync/destination"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
class n extends t.default{}e.default=n})),define("vault/adapters/tools",["exports","vault/adapters/application"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
const n=["lookup","wrap","unwrap","rewrap"],l=["random","hash"]
e.default=t.default.extend({toolUrlFor(e){const t=n.includes(e),i=l.includes(e),r=t?"wrapping":"tools"
if(!t&&!i)throw new Error(`Calls to a ${e} endpoint are not currently allowed in the tool adapter`)
return`${this.buildURL()}/${r}/${e}`},toolAction(e,t,n={}){const{wrapTTL:l,clientToken:i}=n,r=this.toolUrlFor(e),a=l?{data:t,wrapTTL:l,clientToken:i}:{data:t,clientToken:i}
return this.ajax(r,"POST",a)}})})),define("vault/adapters/transform",["exports","rsvp","vault/adapters/application","vault/utils/path-encoding-helpers"],(function(e,t,n,l){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default=n.default.extend({namespace:"v1",createOrUpdate(e,{modelName:t},n){const{backend:l,name:i,type:r}=n.record,a=e.serializerFor(t).serialize(n),o=this.urlForTransformations(l,i,r)
return this.ajax(o,"POST",{data:a}).then((e=>{const t=e||{}
return t.id=i,t}))},createRecord(){return this.createOrUpdate(...arguments)},updateRecord(){return this.createOrUpdate(...arguments,"update")},deleteRecord(e,t,n){const{id:l}=n
return this.ajax(this.urlForTransformations(n.record.backend,l),"DELETE")},pathForType:()=>"transform",urlForTransformations(e,t,n){const i=`${this.buildURL()}/${(0,l.encodePath)(e)}`,r=n?`${i}/transformations/${n}`:`${i}/transformation`
return t?`${r}/${(0,l.encodePath)(t)}`:r},optionsForQuery(e){const t={}
return e||(t.list=!0),{data:t}},fetchByQuery(e,n){const{id:l,backend:i}=n,r=this.ajax(this.urlForTransformations(i,l),"GET",this.optionsForQuery(l))
return(0,t.allSettled)([r]).then((e=>{if(!e[0].value)throw e[0].reason
const t={id:l,name:l,backend:i,data:{}}
return e.forEach((e=>{if(e.value){let n=e.value.data
n.templates&&(n={...n,template:n.templates},delete n.templates),t.data={...t.data,...n}}})),t}))},query(e,t,n){return this.fetchByQuery(e,n)},queryRecord(e,t,n){return this.fetchByQuery(e,n)}})})),define("vault/adapters/transform/alphabet",["exports","vault/adapters/transform/base"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default=t.default.extend({pathForType:()=>"alphabet"})})),define("vault/adapters/transform/base",["exports","vault/adapters/application","vault/utils/path-encoding-helpers"],(function(e,t,n){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default=t.default.extend({namespace:"v1",pathForType:e=>e.replace("transform/",""),createOrUpdate(e,t,n){const{backend:l,name:i}=n.record,r=e.serializerFor(t.modelName).serialize(n),a=this.url(l,t.modelName,i)
return this.ajax(a,"POST",{data:r}).then((e=>{const t=e||{data:{}}
return t.data.name=i,t}))},createRecord(){return this.createOrUpdate(...arguments)},updateRecord(){return this.createOrUpdate(...arguments,"update")},deleteRecord(e,t,n){const{id:l}=n
return this.ajax(this.url(n.record.backend,t.modelName,l),"DELETE")},url(e,t,l){const i=this.pathForType(t),r=`/${this.namespace}/${(0,n.encodePath)(e)}/${(0,n.encodePath)(i)}`
return l?`${r}/${(0,n.encodePath)(l)}`:r+"?list=true"},fetchByQuery(e){const{backend:t,modelName:n,id:l}=e
return this.ajax(this.url(t,n,l),"GET").then((e=>({...e,backend:t,id:l,name:l})))},query(e,t,n){return this.fetchByQuery(n)},queryRecord(e,t,n){return this.ajax(this.url(n.backend,t.modelName,n.id),"GET").then((e=>({id:n.id,name:n.id,...e})))}})})),define("vault/adapters/transform/role",["exports","vault/adapters/transform/base"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default=t.default.extend({pathForType:()=>"role"})})),define("vault/adapters/transform/template",["exports","vault/adapters/transform/base"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default=t.default.extend({pathForType:()=>"template"})})),define("vault/adapters/transform/transformation",["exports","vault/adapters/transform/base"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default=t.default.extend({})})),define("vault/adapters/transit-key",["exports","vault/adapters/application","ember-inflector","vault/utils/path-encoding-helpers"],(function(e,t,n,l){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default=t.default.extend({namespace:"v1",createOrUpdate(e,t,n,l){const i=e.serializerFor(t.modelName).serialize(n,l),r=n.attr("name")
let a=this.urlForSecret(n.record.backend,r)
return"update"===l&&(a+="/config"),this.ajax(a,"POST",{data:i}).then((e=>{const t=e||{}
return t.id=r,t}))},createRecord(){return this.createOrUpdate(...arguments)},updateRecord(){return this.createOrUpdate(...arguments,"update")},deleteRecord(e,t,n){const{id:l}=n
return this.ajax(this.urlForSecret(n.record.backend,l),"DELETE")},pathForType(e){let t
switch(e){case"cluster":t="clusters"
break
case"secret-engine":t="secrets"
break
default:t=(0,n.pluralize)(e)}return t},urlForSecret(e,t){let n=`${this.buildURL()}/${(0,l.encodePath)(e)}/keys/`
return t&&(n+=(0,l.encodePath)(t)),n},urlForAction(e,t,n,i){const r=`${this.buildURL()}/${(0,l.encodePath)(t)}/${e}`
if("hash"===e||"random"===e)return r
if("datakey"===e&&i)return`${r}/${i}/${(0,l.encodePath)(n)}`
if("export"===e&&i){const[e,t]=i,a=`${r}/${e}-key/${(0,l.encodePath)(n)}`
return t?`${a}/${t}`:a}return`${r}/${(0,l.encodePath)(n)}`},optionsForQuery(e){const t={}
return e||(t.list=!0),{data:t}},fetchByQuery(e){const{id:t,backend:n}=e
return this.ajax(this.urlForSecret(n,t),"GET",this.optionsForQuery(t)).then((e=>(e.id=t,e.backend=n,e)))},query(e,t,n){return this.fetchByQuery(n)},queryRecord(e,t,n){return this.fetchByQuery(n)},keyAction(e,{backend:t,id:n,payload:l},i={}){const r="export"===e?"GET":"POST",{wrapTTL:a}=i
if("rotate"===e)return this.ajax(this.urlForSecret(t,n)+"/rotate",r)
const{param:o}=l
return delete l.param,this.ajax(this.urlForAction(e,t,n,o),r,{data:l,wrapTTL:a})}})})),define("vault/app",["exports","@ember/application","ember-resolver","ember-load-initializers","vault/config/environment"],(function(e,t,n,l,i){function r(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e
var n=e[Symbol.toPrimitive]
if(void 0!==n){var l=n.call(e,t||"default")
if("object"!=typeof l)return l
throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string")
return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
class a extends t.default{constructor(...e){super(...e),r(this,"modulePrefix",i.default.modulePrefix),r(this,"podModulePrefix",i.default.podModulePrefix),r(this,"Resolver",n.default),r(this,"engines",{"config-ui":{dependencies:{services:["auth","flash-messages","namespace","router","store","version","custom-messages"]}},"open-api-explorer":{dependencies:{services:["auth","flash-messages","namespace","router","version"]}},replication:{dependencies:{services:["auth","capabilities","flash-messages","namespace","replication-mode","router","store","version","-portal"],externalRoutes:{replication:"vault.cluster.replication.index",vault:"vault.cluster"}}},kmip:{dependencies:{services:["auth","download","flash-messages","namespace","path-help","router","store","version","secret-mount-path"],externalRoutes:{secrets:"vault.cluster.secrets.backends"}}},kubernetes:{dependencies:{services:["router","store","secret-mount-path","flash-messages"],externalRoutes:{secrets:"vault.cluster.secrets.backends"}}},ldap:{dependencies:{services:["router","store","secret-mount-path","flash-messages","auth"],externalRoutes:{secrets:"vault.cluster.secrets.backends"}}},kv:{dependencies:{services:["capabilities","control-group","download","flash-messages","namespace","router","secret-mount-path","store","version"],externalRoutes:{secrets:"vault.cluster.secrets.backends",syncDestination:"vault.cluster.sync.secrets.destinations.destination"}}},pki:{dependencies:{services:["auth","download","flash-messages","namespace","path-help","router","secret-mount-path","store","version"],externalRoutes:{secrets:"vault.cluster.secrets.backends",externalMountIssuer:"vault.cluster.secrets.backend.pki.issuers.issuer.details",secretsListRootConfiguration:"vault.cluster.secrets.backend.configuration"}}},sync:{dependencies:{services:["flash-messages","flags","router","store","version"],externalRoutes:{kvSecretOverview:"vault.cluster.secrets.backend.kv.secret.index",clientCountOverview:"vault.cluster.clients"}}}})}}e.default=a,(0,l.default)(a,i.default.modulePrefix)})),define("vault/breakpoints",["exports"],(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default={mobile:"(max-width: 768px)",tablet:"(min-width: 769px)",desktop:"(min-width: 1088px)"}})),define("vault/component-managers/glimmer",["exports","@glimmer/component/-private/ember-component-manager"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.default}})}))
define("vault/components/alert-inline",["exports","core/components/alert-inline"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.default}})})),define("vault/components/alphabet-edit",["exports","@ember/component","vault/components/transform-edit-base","@ember/template-factory"],(function(e,t,n,l){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
const i=(0,l.createTemplateFactory)({id:"kkge6QLF",block:'[[[8,[39,0],null,null,[["default"],[[[[1,"\\n  "],[8,[30,1,["top"]],null,null,[["default"],[[[[1,"\\n    "],[8,[39,1],null,[["@baseKey","@path","@mode","@root","@showCurrent"],[[28,[37,2],null,[["display","id"],[[30,0,["model","id"]],[30,0,["model","idForNav"]]]]],"vault.cluster.secrets.backend.list",[30,0,["mode"]],[30,0,["root"]],true]],null],[1,"\\n  "]],[]]]]],[1,"\\n  "],[8,[30,1,["levelLeft"]],null,null,[["default"],[[[[1,"\\n    "],[10,"h1"],[14,0,"title is-3"],[12],[1,"\\n"],[41,[28,[37,4],[[30,0,["mode"]],"create"],null],[[[1,"        Create Alphabet\\n"]],[]],[[[41,[28,[37,4],[[30,0,["mode"]],"edit"],null],[[[1,"        Edit Alphabet\\n"]],[]],[[[1,"        Alphabet\\n        "],[10,"code"],[12],[1,[30,0,["model","id"]]],[13],[1,"\\n      "]],[]]]],[]]],[1,"    "],[13],[1,"\\n  "]],[]]]]],[1,"\\n"]],[1]]]]],[1,"\\n\\n"],[41,[28,[37,4],[[30,0,["mode"]],"show"],null],[[[1,"  "],[8,[39,5],null,null,[["default"],[[[[1,"\\n    "],[8,[39,6],null,null,[["default"],[[[[1,"\\n"],[41,[30,0,["capabilities","canDelete"]],[[[1,"        "],[8,[39,7],[[24,0,"toolbar-button"],[4,[38,8],["click",[28,[37,9],[[30,0],"delete"],null]],null]],[["@text","@color"],["Delete alphabet","secondary"]],null],[1,"\\n        "],[10,0],[14,0,"toolbar-separator"],[12],[13],[1,"\\n"]],[]],null],[41,[30,0,["capabilities","canUpdate"]],[[[1,"        "],[8,[39,10],null,[["@secret","@mode","@replace"],[[28,[37,11],[[30,0,["model","idPrefix"]],[30,0,["model","id"]]],null],"edit",true]],[["default"],[[[[1,"\\n          Edit alphabet\\n        "]],[]]]]],[1,"\\n"]],[]],null],[1,"    "]],[]]]]],[1,"\\n  "]],[]]]]],[1,"\\n"]],[]],null],[1,"\\n"],[41,[28,[37,12],[[28,[37,4],[[30,0,["mode"]],"edit"],null],[28,[37,4],[[30,0,["mode"]],"create"],null]],null],[[[1,"  "],[10,"form"],[15,"onsubmit",[28,[37,9],[[30,0],"createOrUpdate",[30,0,["mode"]]],null]],[12],[1,"\\n    "],[10,0],[14,0,"box is-sideless is-fullwidth is-marginless"],[12],[1,"\\n      "],[8,[39,13],null,[["@model"],[[30,0,["model"]]]],null],[1,"\\n      "],[8,[39,14],null,[["@mode","@noun"],[[30,0,["mode"]],"transform alphabet"]],null],[1,"\\n"],[42,[28,[37,16],[[28,[37,16],[[30,0,["model","attrs"]]],null]],null],null,[[[41,[28,[37,17],[[28,[37,4],[[30,2,["name"]],"name"],null],[28,[37,4],[[30,0,["mode"]],"edit"],null]],null],[[[1,"          "],[10,"label"],[15,"for",[30,2,["name"]]],[14,0,"is-label"],[12],[1,"\\n            "],[1,[30,2,["options","label"]]],[1,"\\n          "],[13],[1,"\\n"],[41,[30,2,["options","subText"]],[[[1,"            "],[10,2],[14,0,"sub-text"],[12],[1,[30,2,["options","subText"]]],[13],[1,"\\n"]],[]],null],[1,"          "],[10,"input"],[15,1,[30,2,["name"]]],[14,"autocomplete","off"],[14,"spellcheck","false"],[15,2,[28,[37,12],[[28,[37,18],[[30,0,["model"]],[30,2,["name"]]],null],[30,0,["model","id"]]],null]],[14,"readonly",""],[14,0,"field input is-readOnly"],[15,4,[30,2,["type"]]],[12],[13],[1,"\\n"]],[]],[[[1,"          "],[8,[39,19],null,[["@attr","@model"],[[30,2],[30,0,["model"]]]],null],[1,"\\n"]],[]]]],[2]],null],[1,"    "],[13],[1,"\\n    "],[10,0],[14,0,"field is-grouped-split box is-fullwidth is-bottomless"],[12],[1,"\\n      "],[8,[39,20],null,null,[["default"],[[[[1,"\\n        "],[8,[39,7],[[24,4,"submit"]],[["@text"],[[52,[28,[37,4],[[30,0,["mode"]],"create"],null],"Create alphabet","Save"]]],null],[1,"\\n"],[41,[28,[37,4],[[30,0,["mode"]],"create"],null],[[[1,"          "],[8,[39,7],null,[["@text","@color","@route","@model","@query"],["Cancel","secondary","vault.cluster.secrets.backend.list-root",[30,0,["model","backend"]],[28,[37,2],null,[["tab"],["alphabet"]]]]],null],[1,"\\n"]],[]],[[[1,"          "],[8,[39,7],null,[["@text","@color","@route","@models","@query"],["Cancel","secondary","vault.cluster.secrets.backend.show",[28,[37,21],[[30,0,["model","backend"]],[28,[37,11],["alphabet/",[30,0,["model","id"]]],null]],null],[28,[37,2],null,[["tab"],["alphabet"]]]]],null],[1,"\\n"]],[]]],[1,"      "]],[]]]]],[1,"\\n    "],[13],[1,"\\n  "],[13],[1,"\\n"]],[]],[[[41,[30,0,["model","displayErrors"]],[[[1,"    "],[10,0],[14,0,"has-top-margin-s"],[12],[1,"\\n      "],[8,[39,13],null,[["@model"],[[30,0,["model"]]]],null],[1,"\\n    "],[13],[1,"\\n"]],[]],null],[1,"  "],[10,0],[14,0,"box is-fullwidth is-sideless is-paddingless is-marginless"],[12],[1,"\\n"],[42,[28,[37,16],[[28,[37,16],[[30,0,["model","attrs"]]],null]],null],null,[[[41,[28,[37,4],[[30,3,["type"]],"object"],null],[[[1,"        "],[8,[39,22],null,[["@label","@value"],[[28,[37,23],[[28,[37,12],[[30,3,["options","label"]],[28,[37,24],[[28,[37,25],[[30,3,["name"]]],null]],null]],null]],null],[28,[37,26],[[28,[37,18],[[30,0,["model"]],[30,3,["name"]]],null]],null]]],null],[1,"\\n"]],[]],[[[41,[28,[37,4],[[30,3,["type"]],"array"],null],[[[1,"        "],[8,[39,22],null,[["@label","@value","@type","@isLink"],[[28,[37,23],[[28,[37,12],[[30,3,["options","label"]],[28,[37,24],[[28,[37,25],[[30,3,["name"]]],null]],null]],null]],null],[28,[37,18],[[30,0,["model"]],[30,3,["name"]]],null],[30,3,["type"]],[28,[37,4],[[30,3,["name"]],"transformations"],null]]],null],[1,"\\n"]],[]],[[[1,"        "],[8,[39,22],null,[["@label","@value"],[[28,[37,23],[[28,[37,12],[[30,3,["options","label"]],[28,[37,24],[[28,[37,25],[[30,3,["name"]]],null]],null]],null]],null],[28,[37,18],[[30,0,["model"]],[30,3,["name"]]],null]]],null],[1,"\\n      "]],[]]]],[]]]],[3]],null],[1,"  "],[13],[1,"\\n"]],[]]]],["p","attr","attr"],false,["page-header","key-value-header","hash","if","eq","toolbar","toolbar-actions","hds/button","on","action","toolbar-secret-link","concat","or","message-error","namespace-reminder","each","-track-array","and","get","form-field","hds/button-set","array","info-table-row","capitalize","humanize","dasherize","stringify"]]',moduleName:"vault/components/alphabet-edit.hbs",isStrictMode:!1})
class r extends n.default{}e.default=r,(0,t.setComponentTemplate)(i,r)})),define("vault/components/app-footer",["exports","@ember/component","@ember/service","@glimmer/component","vault/config/environment","@ember/template-factory"],(function(e,t,n,l,i,r){var a,o
Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
const s=(0,r.createTemplateFactory)({id:"EamfqKGo",block:'[[[8,[39,0],[[24,0,"has-margin-top-auto"]],null,[["default"],[[[[1,"\\n  "],[8,[30,1,["ExtraBefore"]],null,null,[["default"],[[[[1,"\\n"],[41,[30,0,["isDevelopment"]],[[[1,"      "],[10,0],[14,0,"env-banner"],[12],[1,"\\n        "],[10,0],[14,0,"level-item notification"],[12],[1,"\\n          "],[8,[39,2],null,[["@name"],["git-branch"]],null],[8,[39,2],null,[["@name"],["pencil-tool"]],null],[1,"\\n          Local development\\n          "],[8,[39,2],null,[["@name"],["pencil-tool"]],null],[8,[39,2],null,[["@name"],["git-branch"]],null],[1,"\\n        "],[13],[1,"\\n      "],[13],[1,"\\n"]],[]],null],[1,"  "]],[]]]]],[1,"\\n  "],[8,[30,1,["Link"]],null,[["@href"],[[28,[37,3],[[30,0,["version","version"]]],null]]],[["default"],[[[[1,"\\n    Vault\\n    "],[1,[30,0,["version","version"]]],[1,"\\n  "]],[]]]]],[1,"\\n"],[41,[30,0,["version","isCommunity"]],[[[1,"    "],[8,[30,1,["Link"]],null,[["@href"],["https://hashicorp.com/products/vault/trial?source=vaultui"]],[["default"],[[[[1,"\\n      Upgrade to Vault Enterprise\\n    "]],[]]]]],[1,"\\n"]],[]],null],[1,"  "],[8,[30,1,["Link"]],null,[["@href"],[[28,[37,4],["/vault"],null]]],[["default"],[[[[1,"\\n    Documentation\\n  "]],[]]]]],[1,"\\n  "],[8,[30,1,["LegalLinks"]],null,null,null],[1,"\\n  "],[8,[30,1,["ExtraAfter"]],null,null,[["default"],[[[[1,"\\n"],[41,[30,0,["isDevelopment"]],[[[1,"      "],[8,[39,5],[[24,"target","_blank"]],[["@text","@isIconOnly","@icon","@color","@route"],["Contributing docs",true,"gift","tertiary","docs"]],null],[1,"\\n"]],[]],null],[1,"  "]],[]]]]],[1,"\\n"]],[1]]]]]],["AF"],false,["hds/app-footer","if","icon","changelog-url-for","doc-link","hds/button"]]',moduleName:"vault/components/app-footer.hbs",isStrictMode:!1})
let u=e.default=(a=class extends l.default{constructor(...e){var t,n,l,i
super(...e),t=this,n="version",i=this,(l=o)&&Object.defineProperty(t,n,{enumerable:l.enumerable,configurable:l.configurable,writable:l.writable,value:l.initializer?l.initializer.call(i):void 0})}get isDevelopment(){return"development"===i.default.environment}},c=a.prototype,d="version",p=[n.service],f={configurable:!0,enumerable:!0,writable:!0,initializer:null},h={},Object.keys(f).forEach((function(e){h[e]=f[e]})),h.enumerable=!!h.enumerable,h.configurable=!!h.configurable,("value"in h||h.initializer)&&(h.writable=!0),h=p.slice().reverse().reduce((function(e,t){return t(c,d,e)||e}),h),m&&void 0!==h.initializer&&(h.value=h.initializer?h.initializer.call(m):void 0,h.initializer=void 0),o=void 0===h.initializer?(Object.defineProperty(c,d,h),null):h,a)
var c,d,p,f,m,h;(0,t.setComponentTemplate)(s,u)})),define("vault/components/auth-config-form/config",["exports","@ember/component","@ember-data/adapter/error","@ember/service","@glimmer/component","ember-concurrency","@ember/test-waiters","@ember/template-factory"],(function(e,t,n,l,i,r,a,o){var s,u,c
function d(e,t,n,l){n&&Object.defineProperty(e,t,{enumerable:n.enumerable,configurable:n.configurable,writable:n.writable,value:n.initializer?n.initializer.call(l):void 0})}function p(e,t,n,l,i){var r={}
return Object.keys(l).forEach((function(e){r[e]=l[e]})),r.enumerable=!!r.enumerable,r.configurable=!!r.configurable,("value"in r||r.initializer)&&(r.writable=!0),r=n.slice().reverse().reduce((function(n,l){return l(e,t,n)||n}),r),i&&void 0!==r.initializer&&(r.value=r.initializer?r.initializer.call(i):void 0,r.initializer=void 0),void 0===r.initializer?(Object.defineProperty(e,t,r),null):r}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
const f=(0,o.createTemplateFactory)({id:"gmQpbhwk",block:'[[[11,"form"],[4,[38,0],["submit",[28,[37,1],[[30,0,["saveModel"]]],null]],null],[12],[1,"\\n  "],[10,0],[14,0,"box is-sideless is-fullwidth is-marginless"],[12],[1,"\\n    "],[8,[39,2],null,[["@mode","@noun"],["save","Auth Method"]],null],[1,"\\n    "],[8,[39,3],null,[["@model"],[[30,1]]],null],[1,"\\n"],[41,[30,1,["attrs"]],[[[42,[28,[37,6],[[28,[37,6],[[30,1,["attrs"]]],null]],null],null,[[[1,"        "],[8,[39,7],null,[["@attr","@model"],[[30,2],[30,1]]],null],[1,"\\n"]],[2]],null]],[]],[[[41,[30,1,["fieldGroups"]],[[[1,"      "],[8,[39,8],null,[["@model","@mode"],[[30,1],[30,0,["mode"]]]],null],[1,"\\n    "]],[]],null]],[]]],[1,"  "],[13],[1,"\\n  "],[10,0],[14,0,"field is-grouped box is-fullwidth is-bottomless"],[12],[1,"\\n    "],[8,[39,9],[[16,"disabled",[30,0,["saveModel","isRunning"]]],[24,4,"submit"]],[["@text","@icon"],["Save",[52,[30,0,["saveModel","isRunning"]],"loading"]]],null],[1,"\\n  "],[13],[1,"\\n"],[13]],["@model","attr"],false,["on","perform","namespace-reminder","message-error","if","each","-track-array","form-field","form-field-groups","hds/button"]]',moduleName:"vault/components/auth-config-form/config.hbs",isStrictMode:!1})
let m=e.default=(s=class extends i.default{constructor(...e){super(...e),d(this,"flashMessages",u,this),d(this,"router",c,this)}*saveModel(e){e.preventDefault()
try{yield this.args.model.save()}catch(t){if(t instanceof n.default==!1)throw t
return}this.router.transitionTo("vault.cluster.access.methods").followRedirects(),this.flashMessages.success("The configuration was saved successfully.")}},u=p(s.prototype,"flashMessages",[l.service],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),c=p(s.prototype,"router",[l.service],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),p(s.prototype,"saveModel",[r.task,a.waitFor],Object.getOwnPropertyDescriptor(s.prototype,"saveModel"),s.prototype),s);(0,t.setComponentTemplate)(f,m)})),define("vault/components/auth-config-form/options",["exports","@ember/component","@ember-data/adapter/error","vault/components/auth-config-form/config","@ember/service","ember-concurrency","@ember/test-waiters","@glimmer/tracking","vault/utils/error-message","@ember/template-factory"],(function(e,t,n,l,i,r,a,o,s,u){var c,d,p,f
function m(e,t,n,l){n&&Object.defineProperty(e,t,{enumerable:n.enumerable,configurable:n.configurable,writable:n.writable,value:n.initializer?n.initializer.call(l):void 0})}function h(e,t,n,l,i){var r={}
return Object.keys(l).forEach((function(e){r[e]=l[e]})),r.enumerable=!!r.enumerable,r.configurable=!!r.configurable,("value"in r||r.initializer)&&(r.writable=!0),r=n.slice().reverse().reduce((function(n,l){return l(e,t,n)||n}),r),i&&void 0!==r.initializer&&(r.value=r.initializer?r.initializer.call(i):void 0,r.initializer=void 0),void 0===r.initializer?(Object.defineProperty(e,t,r),null):r}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
const b=(0,u.createTemplateFactory)({id:"hPeaeOne",block:'[[[11,"form"],[4,[38,0],["submit",[28,[37,1],[[30,0,["saveModel"]]],null]],null],[12],[1,"\\n  "],[10,0],[14,0,"box is-sideless is-fullwidth is-marginless"],[12],[1,"\\n    "],[8,[39,2],null,[["@model","@errorMessage"],[[30,1],[30,0,["errorMessage"]]]],null],[1,"\\n    "],[8,[39,3],null,[["@mode","@noun"],["save","Auth Method"]],null],[1,"\\n\\n"],[42,[28,[37,5],[[28,[37,5],[[30,1,["tuneAttrs"]]],null]],null],null,[[[41,[28,[37,7],[[28,[37,8],[[30,2,["name"]],[30,1,["userLockoutConfig","modelAttrs"]]],null]],null],[[[1,"        "],[8,[39,9],null,[["@attr","@model"],[[30,2],[30,1]]],null],[1,"\\n"]],[]],null]],[2]],null],[1,"\\n"],[41,[30,1,["supportsUserLockoutConfig"]],[[[1,"      "],[10,"hr"],[14,0,"has-top-margin-xl has-bottom-margin-l has-background-gray-200"],[12],[13],[1,"\\n      "],[8,[39,10],null,[["@tag","@size","@weight"],["h2","400","bold"]],[["default"],[[[[1,"User lockout configuration"]],[]]]]],[1,"\\n      "],[8,[39,11],[[24,0,"has-bottom-margin-m"]],[["@tag","@size","@color"],["p","100","faint"]],[["default"],[[[[1,"\\n        Specifies the user lockout settings for this auth mount.\\n      "]],[]]]]],[1,"\\n"],[42,[28,[37,5],[[28,[37,5],[[30,1,["tuneAttrs"]]],null]],null],null,[[[41,[28,[37,8],[[30,3,["name"]],[30,1,["userLockoutConfig","modelAttrs"]]],null],[[[1,"          "],[8,[39,9],null,[["@attr","@model"],[[30,3],[30,1]]],null],[1,"\\n"]],[]],null]],[3]],null]],[]],null],[1,"  "],[13],[1,"\\n  "],[10,0],[14,0,"field is-grouped box is-fullwidth is-bottomless"],[12],[1,"\\n    "],[8,[39,12],[[16,"disabled",[30,0,["saveModel","isRunning"]]],[24,4,"submit"]],[["@text","@icon"],["Update options",[52,[30,0,["saveModel","isRunning"]],"loading"]]],null],[1,"\\n  "],[13],[1,"\\n"],[13]],["@model","attr","attr"],false,["on","perform","message-error","namespace-reminder","each","-track-array","if","not","includes","form-field","hds/text/display","hds/text/body","hds/button"]]',moduleName:"vault/components/auth-config-form/options.hbs",isStrictMode:!1})
let y=e.default=(c=class extends l.default{constructor(...e){super(...e),m(this,"flashMessages",d,this),m(this,"router",p,this),m(this,"errorMessage",f,this)}*saveModel(e){e.preventDefault(),this.errorMessage=null
const t=this.args.model.config.serialize()
t.description=this.args.model.description,this.args.model.supportsUserLockoutConfig&&(t.user_lockout_config={},this.args.model.userLockoutConfig.apiParams.forEach((e=>{Object.keys(t).includes(e)&&(t.user_lockout_config[e]=t[e],delete t[e])}))),"token"===this.args.model.methodType&&delete t.token_type
try{yield this.args.model.tune(t)}catch(l){if(l instanceof n.default)return void(this.errorMessage=(0,s.default)(l))
throw l}this.router.transitionTo("vault.cluster.access.methods").followRedirects(),this.flashMessages.success("The configuration was saved successfully.")}},d=h(c.prototype,"flashMessages",[i.service],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),p=h(c.prototype,"router",[i.service],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),f=h(c.prototype,"errorMessage",[o.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),h(c.prototype,"saveModel",[r.task,a.waitFor],Object.getOwnPropertyDescriptor(c.prototype,"saveModel"),c.prototype),c);(0,t.setComponentTemplate)(b,y)})),define("vault/components/auth-form-options",["exports","@ember/component"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default=t.default.extend({})})),define("vault/components/auth-form",["exports","@ember/runloop","@ember/service","@ember/object/computed","@ember/string","@ember/component","@ember/object","vault/helpers/supported-auth-backends","ember-concurrency","@ember/test-waiters","uuid"],(function(e,t,n,l,i,r,a,o,s,u,c){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
const d={token:null,username:null,password:null,customPath:null}
e.default=r.default.extend(d,{router:(0,n.service)(),auth:(0,n.service)(),flashMessages:(0,n.service)(),store:(0,n.service)(),csp:(0,n.service)("csp-event"),version:(0,n.service)(),selectedAuth:null,methods:null,cluster:null,namespace:null,wrappedToken:null,oldNamespace:null,authMethods:(0,a.computed)("version.isEnterprise",(function(){return this.version.isEnterprise?(0,o.allSupportedAuthBackends)():(0,o.supportedAuthBackends)()})),didReceiveAttrs(){this._super(...arguments)
const{wrappedToken:e,oldWrappedToken:n,oldNamespace:l,namespace:i,selectedAuth:r,oldSelectedAuth:a}=this;(0,t.next)((()=>{e||null!==l&&l===i||this.fetchMethods.perform(),this.isDestroyed||this.isDestroying||(this.set("oldNamespace",i),e&&!n&&(this.unwrapToken.perform(e),this.set("oldWrappedToken",e)),a&&a!==r&&this.resetDefaults(),this.set("oldSelectedAuth",r))}))},didRender(){this._super(...arguments)
const e=this.element.querySelector("li.is-active")
e&&e.scrollIntoView(),(0,t.next)((()=>{const e=this.firstMethod()
!this.wrappedToken&&(this.fetchMethods.isIdle&&e&&!this.selectedAuth||this.selectedAuth&&!this.selectedAuthBackend)&&this.set("selectedAuth",e)}))},firstMethod(){const e=this.methodsToShow[0]
if(e)return e.path||e.type},resetDefaults(){this.setProperties(d)},getAuthBackend(e){const{wrappedToken:t,methods:n,selectedAuth:l,selectedAuthIsPath:i}=this,r=e||l
return n||t?i&&!e?n.find((e=>e.path===r)):this.authMethods.find((e=>e.type===r)):{}},selectedAuthIsPath:(0,l.match)("selectedAuth",/\/$/),selectedAuthBackend:(0,a.computed)("wrappedToken","methods","methods.[]","selectedAuth","selectedAuthIsPath",(function(){return this.getAuthBackend()})),providerName:(0,a.computed)("selectedAuthBackend.type",(function(){if(!this.selectedAuthBackend)return
let e=this.selectedAuthBackend.type||"token"
e=e.toLowerCase()
return(0,i.dasherize)(e)})),cspError:(0,a.computed)("csp.connectionViolations.length",(function(){return this.csp.connectionViolations.length?"This is a standby Vault node but can't communicate with the active node via request forwarding. Sign in at the active node to use the Vault UI.":""})),allSupportedMethods:(0,a.computed)("methodsToShow","hasMethodsWithPath","authMethods",(function(){const e=this.hasMethodsWithPath,t=this.methodsToShow
return e?t.concat(this.authMethods):t})),hasMethodsWithPath:(0,a.computed)("methodsToShow",(function(){return this.methodsToShow.isAny("path")})),methodsToShow:(0,a.computed)("methods","authMethods",(function(){const e=(this.methods||[]).filter((e=>this.authMethods.find((t=>t.type.toLowerCase()===e.type.toLowerCase()))))
return e.length?e:this.authMethods})),unwrapToken:(0,s.task)((0,u.waitFor)((function*(e){this.set("selectedAuth","token")
const t=this.store.adapterFor("tools")
try{const n=yield t.toolAction("unwrap",null,{clientToken:e})
this.set("token",n.auth.client_token),this.send("doSubmit")}catch(n){this.set("error",`Token unwrap failed: ${n.errors[0]}`)}}))),fetchMethods:(0,s.task)((0,u.waitFor)((function*(){const e=this.store
try{const n=yield e.findAll("auth-method",{adapterOptions:{unauthenticated:!0}})
this.set("methods",n.map((e=>{const t=e.serialize({includeId:!0})
return{...t,mountDescription:t.description}}))),(0,t.next)((()=>{e.unloadAll("auth-method")}))}catch(n){this.set("error",`There was an error fetching Auth Methods: ${n.errors[0]}`)}}))),showLoading:(0,l.or)("isLoading","authIsRunning","fetchMethods.isRunning","unwrapToken.isRunning"),actions:{doSubmit(e,t,n){t&&t.preventDefault(),n&&this.set("token",n),this.set("error",null)
const l=n?this.getAuthBackend("token"):this.selectedAuthBackend||{},i=(this.authMethods.find((e=>(e.type||"").toLowerCase()===(l.type||"").toLowerCase()))||{}).formAttributes||[],r=this.getProperties(...i)
return e&&Object.assign(r,e),(this.customPath||l.id)&&(r.path=this.customPath||l.id),"okta"===l.type&&(r.nonce=(0,c.v4)(),r.path||(r.path="okta")),this.performAuth(l.type,r)},handleError(e){this.setProperties({isLoading:!1,error:e?this.auth.handleError(e):null})}}})})),define("vault/components/auth-jwt",["exports","ember","@ember/service","vault/components/outer-html","ember-concurrency","@ember/runloop"],(function(e,t,n,l,i,r){Object.defineProperty(e,"__esModule",{value:!0}),e.default=e.ERROR_WINDOW_CLOSED=e.ERROR_MISSING_PARAMS=e.ERROR_JWT_LOGIN=void 0
const a=e.ERROR_WINDOW_CLOSED="The provider window was closed before authentication was complete. Your web browser may have blocked or closed a pop-up window. Please check your settings and click Sign In to try again.",o=e.ERROR_MISSING_PARAMS="The callback from the provider did not supply all of the required parameters.  Please click Sign In to try again. If the problem persists, you may want to contact your administrator.",s=e.ERROR_JWT_LOGIN="OIDC login is not configured for this mount"
e.default=l.default.extend({store:(0,n.service)(),flagsService:(0,n.service)("flags"),selectedAuthPath:null,selectedAuthType:null,roleName:null,role:null,errorMessage:null,isOIDC:!0,onRoleName(){},onLoading(){},onError(){},onNamespace(){},didReceiveAttrs(){this._super(...arguments)
const e=this._authPath!==this.selectedAuthPath,t=this._authType!==this.selectedAuthType
if(e||t){const t=e?500:0;(0,r.debounce)(this,"fetchRole",t)}this._authPath=this.selectedAuthPath,this._authType=this.selectedAuthType},getWindow(){return this.window||window},async fetchRole(){const e=this.selectedAuthPath||this.selectedAuthType,t=JSON.stringify([e,this.roleName])
this.setProperties({role:null,errorMessage:null,isOIDC:!0})
try{const e=await this.store.findRecord("role-jwt",t,{adapterOptions:{namespace:this.namespace}})
this.set("role",e)}catch(n){const e=(n.errors||[])[0],t=400===n.httpStatus?"Invalid role. Please try again.":`Error fetching role: ${e}`
this.setProperties({isOIDC:e!==s,errorMessage:t})}},cancelLogin(e,t){this.closeWindow(e),this.handleOIDCError(t)},closeWindow(e){this.watchPopup.cancelAll(),this.watchCurrent.cancelAll(),e.close()},handleOIDCError(e){this.onLoading(!1),this.prepareForOIDC.cancelAll(),this.onError(e)},prepareForOIDC:(0,i.task)((function*(e){const t=this.getWindow()
for(this.onLoading(!0),this.watchPopup.perform(e),this.watchCurrent.perform(e);;){const n=yield(0,i.waitForEvent)(t,"message")
if(n.origin===t.origin&&n.isTrusted&&"oidc-callback"===n.data.source)return this.exchangeOIDC.perform(n.data,e)}})),watchPopup:(0,i.task)((function*(e){for(;;){const n=t.default.testing?50:500
if(yield(0,i.timeout)(n),!e||e.closed)return this.handleOIDCError(a)}})),watchCurrent:(0,i.task)((function*(e){yield(0,i.waitForEvent)(this.getWindow(),"beforeunload"),e.close()})),exchangeOIDC:(0,i.task)((function*(e,t){if(null==e)return
this.onLoading(!0)
let{namespace:n,path:l,state:i,code:r}=e
if(""===n||this.flagsService.hvdManagedNamespaceRoot){const e=i.indexOf(",ns=")
e>=0&&(n=i.substring(e+4),i=i.substring(0,e))}if(!l||!i||!r)return this.cancelLogin(t,o)
const a=this.store.adapterFor("auth-method")
let s
this.onNamespace(n)
try{s=yield a.exchangeOIDC(l,i,r),this.closeWindow(t)}catch(u){return this.cancelLogin(t,u)}yield this.onSubmit(null,null,s.auth.client_token)})),async startOIDCAuth(){this.onError(null),await this.fetchRole()
const e=this.role&&!this.role.authUrl?"Missing auth_url. Please check that allowed_redirect_uris for the role include this mount path.":this.errorMessage||null
if(e)this.onError(e)
else{const e=this.getWindow(),t=500,n=600,l=e.screen.width/2-t/2,i=e.screen.height/2-n/2,r=e.open(this.role.authUrl,"vaultOIDCWindow",`width=${t},height=${n},resizable,scrollbars=yes,top=${i},left=${l}`)
this.prepareForOIDC.perform(r)}},actions:{onRoleChange(e){this.onRoleName(e.target.value),(0,r.debounce)(this,"fetchRole",500)},signIn(e){if(e.preventDefault(),this.isOIDC)this.startOIDCAuth()
else{const{jwt:e,roleName:t}=this
this.onSubmit({role:t,jwt:e})}}}})})),define("vault/components/auth-saml",["exports","@ember/component","@ember/service","ember-concurrency","@glimmer/component","@glimmer/tracking","@ember/object","vault/utils/error-message","@ember/template-factory"],(function(e,t,n,l,i,r,a,o,s){var u,c,d,p
function f(e,t,n,l){n&&Object.defineProperty(e,t,{enumerable:n.enumerable,configurable:n.configurable,writable:n.writable,value:n.initializer?n.initializer.call(l):void 0})}function m(e,t,n,l,i){var r={}
return Object.keys(l).forEach((function(e){r[e]=l[e]})),r.enumerable=!!r.enumerable,r.configurable=!!r.configurable,("value"in r||r.initializer)&&(r.writable=!0),r=n.slice().reverse().reduce((function(n,l){return l(e,t,n)||n}),r),i&&void 0!==r.initializer&&(r.value=r.initializer?r.initializer.call(i):void 0,r.initializer=void 0),void 0===r.initializer?(Object.defineProperty(e,t,r),null):r}Object.defineProperty(e,"__esModule",{value:!0}),e.default=e.ERROR_WINDOW_CLOSED=e.ERROR_MISSING_PARAMS=void 0
const h=(0,s.createTemplateFactory)({id:"VBpLpyE+",block:'[[[41,[30,0,["canLoginSaml"]],[[[1,"  "],[11,"form"],[24,1,"auth-form"],[4,[38,1],["submit",[28,[37,2],[[30,0,["startSAMLAuth"]],[30,1],[28,[37,3],null,[["role"],[[30,2]]]]],null]],null],[12],[1,"\\n    "],[10,0],[14,0,"field"],[12],[1,"\\n      "],[10,"label"],[14,"for","role"],[14,0,"is-label"],[12],[1,"Role"],[13],[1,"\\n      "],[10,0],[14,0,"control"],[12],[1,"\\n        "],[11,"input"],[16,2,[30,2]],[24,"placeholder","Default"],[24,"autocomplete","off"],[24,"spellcheck","false"],[24,3,"role"],[24,1,"role"],[24,0,"input"],[24,4,"text"],[4,[38,1],["input",[30,0,["setRole"]]],null],[12],[13],[1,"\\n      "],[13],[1,"\\n      "],[8,[39,4],[[24,0,"has-top-padding-s"]],[["@type","@message"],["info","Leave blank to sign in with the default role if one is configured."]],null],[1,"\\n    "],[13],[1,"\\n    "],[10,0],[12],[1,"\\n      "],[18,5,null],[1,"\\n    "],[13],[1,"\\n    "],[8,[39,6],[[16,"disabled",[30,3]],[24,1,"auth-submit"],[24,4,"submit"]],[["@text","@icon"],["Sign in with SAML provider",[52,[30,3],"loading"]]],null],[1,"\\n  "],[13],[1,"\\n"]],[]],[[[1,"  "],[8,[39,7],null,[["@type","@color"],["inline","warning"]],[["default"],[[[[1,"\\n    "],[8,[30,4,["Title"]],null,null,[["default"],[[[[1,"Nonsecure context detected"]],[]]]]],[1,"\\n    "],[8,[30,4,["Description"]],null,null,[["default"],[[[[1,"\\n      Logging in with a SAML auth method requires a browser in a secure context.\\n    "]],[]]]]],[1,"\\n    "],[8,[30,4,["Description"]],[[24,0,"has-top-margin-xs"]],null,[["default"],[[[[1,"\\n      "],[8,[39,8],null,[["@icon","@text","@href"],["external-link","Read more about secure contexts.","https://developer.mozilla.org/en-US/docs/Web/Security/Secure_Contexts"]],null],[1,"\\n    "]],[]]]]],[1,"\\n  "]],[4]]]]],[1,"\\n"]],[]]]],["@onSubmit","@roleName","@disabled","A","&default"],false,["if","on","fn","hash","alert-inline","yield","hds/button","hds/alert","hds/link/standalone"]]',moduleName:"vault/components/auth-saml.hbs",isStrictMode:!1}),b=e.ERROR_WINDOW_CLOSED="The provider window was closed before authentication was complete. Your web browser may have blocked or closed a pop-up window. Please check your settings and click Sign In to try again."
e.ERROR_MISSING_PARAMS="The callback from the provider did not supply all of the required parameters. Please click Sign In to try again. If the problem persists, you may want to contact your administrator."
let y=e.default=(u=class extends i.default{constructor(...e){super(...e),f(this,"store",c,this),f(this,"flags",d,this),f(this,"errorMessage",p,this)}getWindow(){return this.window||window}get canLoginSaml(){return this.getWindow().isSecureContext}async fetchRole(e){const t=this.args.selectedAuthPath||this.args.selectedAuthType,n=JSON.stringify([t,e])
return this.store.findRecord("role-saml",n,{adapterOptions:{namespace:this.args.namespace}})}cancelLogin(e,t){this.closeWindow(e),this.handleSAMLError(t),this.exchangeSAMLTokenPollID.cancelAll()}closeWindow(e){this.watchPopup.cancelAll(),this.watchCurrent.cancelAll(),e.close()}handleSAMLError(e){this.args.onLoading(!1),this.args.onError(e)}*watchPopup(e){for(;;)if(yield(0,l.timeout)(500),!e||e.closed)return this.exchangeSAMLTokenPollID.cancelAll(),this.handleSAMLError(b)}*watchCurrent(e){yield(0,l.waitForEvent)(this.getWindow(),"beforeunload"),e?.close()}*exchangeSAMLTokenPollID(e,t){this.args.onLoading(!0),this.watchPopup.perform(e),this.watchCurrent.perform(e)
const n=this.args.selectedAuthPath||this.args.selectedAuthType,i=this.store.adapterFor("auth-method")
let r
this.args.onNamespace(this.args.namespace)
for(let s=0;s<180;s++){yield(0,l.timeout)(500)
try{if(r=yield i.pollSAMLToken(n,t.tokenPollID,t.clientVerifier),!r?.auth)continue
return yield this.args.onSubmit(null,null,r.auth.client_token),void this.closeWindow(e)}catch(a){if(401===a.httpStatus)continue
return this.cancelLogin(e,(0,o.default)(a))}}this.cancelLogin(e,"The authentication request has timed out. Please click Sign In to try again.")}setRole(e){this.args.onRoleName(e.target.value)}async startSAMLAuth(e,t,n){this.args.onError(null),this.args.onLoading(!0),n&&n.preventDefault&&n.preventDefault()
const l=t.role
let i
try{i=await this.fetchRole(l)}catch(u){return void this.handleSAMLError(u)}const r=this.getWindow(),a=r.screen.width/2-250,o=r.screen.height/2-300,s=r.open(i.ssoServiceURL,"vaultSAMLWindow",`width=500,height=600,resizable,scrollbars=yes,top=${o},left=${a}`)
this.exchangeSAMLTokenPollID.perform(s,i)}},c=m(u.prototype,"store",[n.service],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),d=m(u.prototype,"flags",[n.service],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),p=m(u.prototype,"errorMessage",[r.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),m(u.prototype,"watchPopup",[l.task],Object.getOwnPropertyDescriptor(u.prototype,"watchPopup"),u.prototype),m(u.prototype,"watchCurrent",[l.task],Object.getOwnPropertyDescriptor(u.prototype,"watchCurrent"),u.prototype),m(u.prototype,"exchangeSAMLTokenPollID",[l.task],Object.getOwnPropertyDescriptor(u.prototype,"exchangeSAMLTokenPollID"),u.prototype),m(u.prototype,"setRole",[a.action],Object.getOwnPropertyDescriptor(u.prototype,"setRole"),u.prototype),m(u.prototype,"startSAMLAuth",[a.action],Object.getOwnPropertyDescriptor(u.prototype,"startSAMLAuth"),u.prototype),u);(0,t.setComponentTemplate)(h,y)})),define("vault/components/auth/login-form",["exports","@ember/component","@glimmer/component","ember","@ember/service","ember-concurrency","@ember/test-waiters","@glimmer/tracking","@ember/object","@ember/template-factory"],(function(e,t,n,l,i,r,a,o,s,u){var c,d,p,f,m
function h(e,t,n,l){n&&Object.defineProperty(e,t,{enumerable:n.enumerable,configurable:n.configurable,writable:n.writable,value:n.initializer?n.initializer.call(l):void 0})}function b(e,t,n,l,i){var r={}
return Object.keys(l).forEach((function(e){r[e]=l[e]})),r.enumerable=!!r.enumerable,r.configurable=!!r.configurable,("value"in r||r.initializer)&&(r.writable=!0),r=n.slice().reverse().reduce((function(n,l){return l(e,t,n)||n}),r),i&&void 0!==r.initializer&&(r.value=r.initializer?r.initializer.call(i):void 0,r.initializer=void 0),void 0===r.initializer?(Object.defineProperty(e,t,r),null):r}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
const y=(0,u.createTemplateFactory)({id:"Wh2sTNtB",block:'[[[41,[30,0,["waitingForOktaNumberChallenge"]],[[[1,"  "],[8,[39,1],null,[["@correctAnswer","@hasError","@onReturnToLogin"],[[30,0,["oktaNumberChallengeAnswer"]],[30,0,["authError"]],[30,0,["onCancel"]]]],null],[1,"\\n"]],[]],[[[1,"  "],[8,[39,2],null,[["@wrappedToken","@cluster","@namespace","@selectedAuth","@error","@performAuth","@authIsRunning","@delayIsIdle"],[[30,1],[30,2],[30,3],[30,4],[30,0,["authError"]],[30,0,["performAuth"]],[30,0,["authenticate","isRunning"]],[30,0,["delayAuthMessageReminder","isIdle"]]]],null],[1,"\\n"]],[]]]],["@wrappedToken","@cluster","@namespace","@selectedAuth"],false,["if","okta-number-challenge","auth-form"]]',moduleName:"vault/components/auth/login-form.hbs",isStrictMode:!1})
let v=e.default=(c=class extends n.default{constructor(...e){super(...e),h(this,"auth",d,this),h(this,"authError",p,this),h(this,"oktaNumberChallengeAnswer",f,this),h(this,"waitingForOktaNumberChallenge",m,this)}performAuth(e,t){this.authenticate.unlinked().perform(e,t)}*delayAuthMessageReminder(){l.default.testing?yield(0,r.timeout)(0):yield(0,r.timeout)(5e3)}*authenticate(e,t){const{selectedAuth:n,cluster:{id:l}}=this.args
try{"okta"===e?this.pollForOktaNumberChallenge.perform(t.nonce,t.path):this.delayAuthMessageReminder.perform()
const i=yield this.auth.authenticate({clusterId:l,backend:e,data:t,selectedAuth:n})
this.args.onSuccess(i,e,t)}catch(i){this.auth.mfaError||(this.authError=`Authentication failed: ${this.auth.handleError(i)}`)}}*pollForOktaNumberChallenge(e,t){if(yield(0,r.timeout)(1e3),this.authError)return
this.waitingForOktaNumberChallenge=!0
let n=null
for(;null===n;){if(l.default.testing)return
yield(0,r.timeout)(1e3),n=yield this.auth.getOktaNumberChallengeAnswer(e,t)}this.oktaNumberChallengeAnswer=n}onCancel(){this.authError=null,this.oktaNumberChallengeAnswer=null,this.waitingForOktaNumberChallenge=!1,this.authenticate.cancelAll(),this.pollForOktaNumberChallenge.cancelAll()}},d=b(c.prototype,"auth",[i.service],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),p=b(c.prototype,"authError",[o.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),f=b(c.prototype,"oktaNumberChallengeAnswer",[o.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return""}}),m=b(c.prototype,"waitingForOktaNumberChallenge",[o.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),b(c.prototype,"performAuth",[s.action],Object.getOwnPropertyDescriptor(c.prototype,"performAuth"),c.prototype),b(c.prototype,"delayAuthMessageReminder",[r.task,a.waitFor],Object.getOwnPropertyDescriptor(c.prototype,"delayAuthMessageReminder"),c.prototype),b(c.prototype,"authenticate",[r.task,a.waitFor],Object.getOwnPropertyDescriptor(c.prototype,"authenticate"),c.prototype),b(c.prototype,"pollForOktaNumberChallenge",[r.task,a.waitFor],Object.getOwnPropertyDescriptor(c.prototype,"pollForOktaNumberChallenge"),c.prototype),b(c.prototype,"onCancel",[s.action],Object.getOwnPropertyDescriptor(c.prototype,"onCancel"),c.prototype),c);(0,t.setComponentTemplate)(y,v)})),define("vault/components/auth/page",["exports","@ember/component","@glimmer/component","@ember/service","@glimmer/tracking","@ember/object","@ember/template-factory"],(function(e,t,n,l,i,r,a){var o,s,u,c
function d(e,t,n,l){n&&Object.defineProperty(e,t,{enumerable:n.enumerable,configurable:n.configurable,writable:n.writable,value:n.initializer?n.initializer.call(l):void 0})}function p(e,t,n,l,i){var r={}
return Object.keys(l).forEach((function(e){r[e]=l[e]})),r.enumerable=!!r.enumerable,r.configurable=!!r.configurable,("value"in r||r.initializer)&&(r.writable=!0),r=n.slice().reverse().reduce((function(n,l){return l(e,t,n)||n}),r),i&&void 0!==r.initializer&&(r.value=r.initializer?r.initializer.call(i):void 0,r.initializer=void 0),void 0===r.initializer?(Object.defineProperty(e,t,r),null):r}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
const f=(0,a.createTemplateFactory)({id:"H8kmahh9",block:'[[[41,[30,0,["mfaErrors"]],[[[1,"  "],[10,0],[14,0,"has-top-margin-xxl"],[12],[1,"\\n    "],[8,[39,1],[[24,0,"is-shadowless"]],[["@title","@message","@icon","@bottomBorder","@subTitle"],["Unauthorized","Multi-factor authentication is required, but failed. Go back and try again, or contact your administrator.","alert-circle",true,[28,[37,2],[". ",[30,0,["mfaErrors"]]],null]]],[["default"],[[[[1,"\\n      "],[8,[39,3],[[4,[38,4],["click",[30,0,["onMfaErrorDismiss"]]],null]],[["@text","@icon","@color"],["Go back","chevron-left","tertiary"]],null],[1,"\\n    "]],[]]]]],[1,"\\n  "],[13],[1,"\\n"]],[]],[[[1,"  "],[8,[39,5],null,null,[["header","subHeader","content","footer"],[[[[1,"\\n"],[41,[30,1],[[[1,"        "],[10,0],[14,0,"box is-shadowless is-flex-v-centered"],[12],[1,"\\n          "],[8,[39,6],[[24,"aria-label","Sign in with Hashicorp Vault"]],null,null],[1,"\\n        "],[13],[1,"\\n"]],[]],[[[1,"        "],[10,0],[14,0,"is-flex-v-centered has-bottom-margin-xxl"],[12],[1,"\\n          "],[10,0],[14,0,"brand-icon-large"],[12],[1,"\\n            "],[8,[39,7],null,[["@name","@size","@stretched"],["vault","24",true]],null],[1,"\\n          "],[13],[1,"\\n        "],[13],[1,"\\n        "],[10,0],[14,0,"is-flex-row"],[12],[1,"\\n"],[41,[30,0,["mfaAuthData"]],[[[1,"            "],[8,[39,3],[[4,[38,4],["click",[28,[37,8],[[28,[37,9],[[30,0,["mfaAuthData"]]],null],null],null]],null]],[["@text","@icon","@isIconOnly","@color"],["Back to login","arrow-left",true,"tertiary"]],null],[1,"\\n"]],[]],null],[1,"          "],[10,"h1"],[14,0,"title is-3"],[12],[1,"\\n            "],[1,[52,[30,0,["mfaAuthData"]],"Authenticate","Sign in to Vault"]],[1,"\\n          "],[13],[1,"\\n        "],[13],[1,"\\n"]],[]]],[1,"    "]],[]],[[[1,"\\n"],[41,[28,[37,10],["Namespaces"],null],[[[41,[51,[30,0,["mfaAuthData"]]],[[[1,"          "],[8,[39,12],[[24,0,"toolbar-namespace-picker"]],null,[["default"],[[[[1,"\\n            "],[10,0],[14,0,"field is-horizontal"],[12],[1,"\\n              "],[10,0],[14,0,"field-label is-normal"],[12],[1,"\\n                "],[10,"label"],[14,0,"is-label"],[14,"for","namespace"],[12],[1,"Namespace"],[13],[1,"\\n              "],[13],[1,"\\n"],[41,[30,0,["flags","hvdManagedNamespaceRoot"]],[[[1,"                "],[10,0],[14,0,"field-label"],[12],[1,"\\n                  "],[10,1],[14,0,"has-text-grey"],[12],[1,"/"],[1,[30,0,["flags","hvdManagedNamespaceRoot"]]],[13],[1,"\\n                "],[13],[1,"\\n"]],[]],null],[1,"              "],[10,0],[14,0,"field-body"],[12],[1,"\\n                "],[10,0],[14,0,"field"],[12],[1,"\\n                  "],[10,0],[14,0,"control"],[12],[1,"\\n                    "],[11,"input"],[16,2,[30,0,["namespaceInput"]]],[16,"placeholder",[52,[30,0,["flags","hvdManagedNamespaceRoot"]],"/ (Default)","/ (Root)"]],[24,"autocomplete","off"],[24,"spellcheck","false"],[24,3,"namespace"],[24,1,"namespace"],[24,0,"input"],[16,"disabled",[30,1]],[24,4,"text"],[4,[38,4],["input",[30,0,["handleNamespaceUpdate"]]],null],[12],[13],[1,"\\n                  "],[13],[1,"\\n                "],[13],[1,"\\n              "],[13],[1,"\\n            "],[13],[1,"\\n          "]],[]]]]],[1,"\\n"]],[]],null]],[]],null],[1,"    "]],[]],[[[1,"\\n"],[41,[30,0,["mfaAuthData"]],[[[1,"        "],[8,[39,13],null,[["@clusterId","@authData","@onSuccess","@onError"],[[30,2,["id"]],[30,0,["mfaAuthData"]],[30,0,["onMfaSuccess"]],[28,[37,8],[[28,[37,9],[[30,0,["mfaErrors"]]],null]],null]]],null],[1,"\\n"]],[]],[[[1,"        "],[8,[39,14],null,[["@wrappedToken","@cluster","@namespace","@selectedAuth","@onSuccess"],[[30,3],[30,2],[30,4],[30,5],[30,0,["onAuthResponse"]]]],null],[1,"\\n"]],[]]],[1,"    "]],[]],[[[1,"\\n      "],[10,0],[14,0,"has-short-padding"],[12],[1,"\\n        "],[10,2],[14,0,"help has-text-grey-dark"],[12],[1,"\\n"],[41,[30,1],[[[1,"            Once you log in, you will be redirected back to your application. If you require login credentials, contact your\\n            administrator.\\n"]],[]],[[[1,"            Contact your administrator for login credentials.\\n"]],[]]],[1,"        "],[13],[1,"\\n      "],[13],[1,"\\n    "]],[]]]]],[1,"\\n"]],[]]]],["@oidcProviderQueryParam","@cluster","@wrappedToken","@namespaceQueryParam","@authMethodQueryParam"],false,["if","empty-state","join","hds/button","on","splash-page","logo-edition","icon","fn","mut","has-feature","unless","toolbar","mfa/mfa-form","auth/login-form"]]',moduleName:"vault/components/auth/page.hbs",isStrictMode:!1})
let m=e.default=(o=class extends n.default{constructor(...e){super(...e),d(this,"flags",s,this),d(this,"mfaErrors",u,this),d(this,"mfaAuthData",c,this)}get namespaceInput(){const e=this.args.namespaceQueryParam
if(this.flags.hvdManagedNamespaceRoot){const t=e.split("/")
return t.length>1?(t.shift(),`/${t.join("/")}`):""}return e}handleNamespaceUpdate(e){this.args.onNamespaceUpdate(e.target.value)}onAuthResponse(e,t,n){const{mfa_requirement:l}=e
l?this.mfaAuthData={mfa_requirement:l,backend:t,data:n}:this.args.onAuthSuccess(e)}onMfaSuccess(e){this.args.onAuthSuccess(e)}onMfaErrorDismiss(){this.mfaAuthData=null,this.mfaErrors=null}},s=p(o.prototype,"flags",[l.service],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),u=p(o.prototype,"mfaErrors",[i.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),c=p(o.prototype,"mfaAuthData",[i.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),p(o.prototype,"handleNamespaceUpdate",[r.action],Object.getOwnPropertyDescriptor(o.prototype,"handleNamespaceUpdate"),o.prototype),p(o.prototype,"onAuthResponse",[r.action],Object.getOwnPropertyDescriptor(o.prototype,"onAuthResponse"),o.prototype),p(o.prototype,"onMfaSuccess",[r.action],Object.getOwnPropertyDescriptor(o.prototype,"onMfaSuccess"),o.prototype),p(o.prototype,"onMfaErrorDismiss",[r.action],Object.getOwnPropertyDescriptor(o.prototype,"onMfaErrorDismiss"),o.prototype),o);(0,t.setComponentTemplate)(f,m)})),define("vault/components/autocomplete-input",["exports","core/components/autocomplete-input"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.default}})})),define("vault/components/b64-toggle",["exports","@ember/object/computed","@ember/utils","@ember/component","@ember/object","vault/utils/b64"],(function(e,t,n,l,i,r){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
const a="base64",o="utf-8"
e.default=l.default.extend({tagName:"button",attributeBindings:["type","data-test-transit-b64-toggle"],type:"button",classNames:["button","b64-toggle"],classNameBindings:["isInput:is-input:is-textarea"],isInput:!0,value:null,initialEncoding:o,_value:"",currentEncoding:"",lastEncoding:"",isBase64:(0,t.equal)("currentEncoding",a),valuesMatch:(0,i.computed)("value","_value",(function(){const{value:e,_value:t}=this
return!((0,n.isBlank)(e)||(0,n.isBlank)(t))&&e===t})),init(){this._super(...arguments)
const e=this.initialEncoding;(0,i.set)(this,"currentEncoding",e),e===a&&((0,i.set)(this,"_value",this.value),(0,i.set)(this,"lastEncoding",a))},didReceiveAttrs(){this._super(),""!==this.value?(this.isBase64&&!this.valuesMatch&&(0,i.set)(this,"currentEncoding",o),this.lastEncoding===a&&this.valuesMatch&&(0,i.set)(this,"currentEncoding",a)):(0,i.set)(this,"currentEncoding",o)},click(){const e=this.value,t=this.currentEncoding===o
if(!e)return
const n=t?(0,r.encodeString)(e):(0,r.decodeString)(e),l=t?a:o;(0,i.set)(this,"value",n),(0,i.set)(this,"_value",n),(0,i.set)(this,"lastEncoding",l),(0,i.set)(this,"currentEncoding",l)}})})),define("vault/components/basic-dropdown-content",["exports","ember-basic-dropdown/components/basic-dropdown-content"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.default}})})),define("vault/components/basic-dropdown-trigger",["exports","ember-basic-dropdown/components/basic-dropdown-trigger"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.default}})})),define("vault/components/basic-dropdown-wormhole",["exports","ember-basic-dropdown/components/basic-dropdown-wormhole"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.default}})})),define("vault/components/basic-dropdown",["exports","ember-basic-dropdown/components/basic-dropdown"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.default}})})),define("vault/components/certificate-card",["exports","core/components/certificate-card"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.default}})})),define("vault/components/checkbox-grid",["exports","core/components/checkbox-grid"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.default}})})),define("vault/components/chevron",["exports","core/components/chevron"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.default}})})),define("vault/components/choose-pgp-key-form",["exports","core/components/choose-pgp-key-form"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.default}})})),define("vault/components/clients/activity",["exports","@glimmer/component","date-fns","core/utils/date-formatters","vault/utils/chart-helpers","core/utils/client-count-utils","@ember/service","core/utils/sanitize-path"],(function(e,t,n,l,i,r,a,o){var s,u
function c(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e
var n=e[Symbol.toPrimitive]
if(void 0!==n){var l=n.call(e,t||"default")
if("object"!=typeof l)return l
throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string")
return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default=(s=class extends t.default{constructor(...e){var t,n,l,r
super(...e),t=this,n="namespace",r=this,(l=u)&&Object.defineProperty(t,n,{enumerable:l.enumerable,configurable:l.configurable,writable:l.writable,value:l.initializer?l.initializer.call(r):void 0}),c(this,"average",((e,t)=>(0,i.calculateAverage)(e,t)))}get namespacePathForFilter(){const{namespace:e}=this.args,t=this.namespace.currentNamespace
return(0,o.sanitizePath)(e||t||"root")}get byMonthActivityData(){const{activity:e,mountPath:t}=this.args,n=this.namespacePathForFilter
return t?(0,r.filterByMonthDataForMount)(e.byMonth,n,t):e.byMonth}get byMonthNewClients(){return this.byMonthActivityData?this.byMonthActivityData?.map((e=>e?.new_clients)):[]}get isCurrentMonth(){const{activity:e}=this.args,t=(0,l.parseAPITimestamp)(e.responseTimestamp),i=(0,l.parseAPITimestamp)(e.startTime),r=(0,l.parseAPITimestamp)(e.endTime)
return(0,n.isSameMonth)(i,t)&&(0,n.isSameMonth)(r,t)}get isDateRange(){const{activity:e}=this.args
return!(0,n.isSameMonth)((0,l.parseAPITimestamp)(e.startTime),(0,l.parseAPITimestamp)(e.endTime))}get totalUsageCounts(){const{namespace:e,activity:t,mountPath:n}=this.args
return t?.byNamespace&&e&&n?(0,r.filteredTotalForMount)(t.byNamespace,e,n):t?.total}get upgradesDuringActivity(){const{versionHistory:e,activity:t}=this.args
return(0,r.filterVersionHistory)(e,t.startTime,t.endTime)}},d=s.prototype,p="namespace",f=[a.service],m={configurable:!0,enumerable:!0,writable:!0,initializer:null},b={},Object.keys(m).forEach((function(e){b[e]=m[e]})),b.enumerable=!!b.enumerable,b.configurable=!!b.configurable,("value"in b||b.initializer)&&(b.writable=!0),b=f.slice().reverse().reduce((function(e,t){return t(d,p,e)||e}),b),h&&void 0!==b.initializer&&(b.value=b.initializer?b.initializer.call(h):void 0,b.initializer=void 0),u=void 0===b.initializer?(Object.defineProperty(d,p,b),null):b,s)
var d,p,f,m,h,b})),define("vault/components/clients/attribution",["exports","@ember/component","@glimmer/component","@ember/template-factory"],(function(e,t,n,l){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
const i=(0,l.createTemplateFactory)({id:"zAuQOd0S",block:'[[[10,0],[14,0,"chart-wrapper single-chart-grid"],[12],[1,"\\n  "],[10,0],[14,0,"chart-header has-bottom-margin-m"],[12],[1,"\\n    "],[10,"h2"],[14,0,"chart-title"],[12],[1,[28,[35,0],[[30,0,["noun"]]],null]],[1," attribution"],[13],[1,"\\n    "],[10,2],[14,0,"chart-description"],[12],[1,[30,0,["chartText","description"]]],[13],[1,"\\n  "],[13],[1,"\\n"],[41,[30,1],[[[1,"    "],[10,0],[14,0,"chart-container-wide"],[12],[1,"\\n      "],[8,[39,2],null,[["@dataset","@chartLegend"],[[30,0,["topTenAttribution"]],[30,0,["attributionLegend"]]]],null],[1,"\\n    "],[13],[1,"\\n    "],[10,0],[14,0,"chart-subTitle"],[12],[1,"\\n      "],[10,2],[14,0,"chart-subtext"],[12],[1,[30,0,["chartText","subtext"]]],[13],[1,"\\n    "],[13],[1,"\\n\\n    "],[10,0],[14,0,"data-details-top"],[12],[1,"\\n      "],[10,"h3"],[14,0,"data-details"],[12],[1,"Top "],[1,[30,0,["noun"]]],[13],[1,"\\n      "],[10,2],[14,0,"data-details is-word-break"],[12],[1,[30,0,["topAttribution","label"]]],[13],[1,"\\n    "],[13],[1,"\\n\\n    "],[10,0],[14,0,"data-details-bottom"],[12],[1,"\\n      "],[10,"h3"],[14,0,"data-details"],[12],[1,"Clients in "],[1,[30,0,["noun"]]],[13],[1,"\\n      "],[10,2],[14,0,"data-details"],[12],[1,[28,[35,3],[[30,0,["topAttribution","clients"]]],null]],[13],[1,"\\n    "],[13],[1,"\\n\\n    "],[10,0],[14,0,"legend"],[12],[1,"\\n"],[42,[28,[37,5],[[28,[37,5],[[30,0,["attributionLegend"]]],null]],null],null,[[[1,"        "],[10,1],[15,0,[29,["legend-colors dot-",[30,3]]]],[12],[13],[10,1],[14,0,"legend-label"],[12],[1,[28,[35,0],[[30,2,["label"]]],null]],[13],[1,"\\n"]],[2,3]],null],[1,"    "],[13],[1,"\\n"]],[]],[[[1,"    "],[10,0],[14,0,"chart-empty-state"],[12],[1,"\\n      "],[8,[39,6],null,[["@icon","@title","@bottomBorder"],["skip","No data found",true]],null],[1,"\\n    "],[13],[1,"\\n"]],[]]],[1,"  "],[10,0],[14,0,"timestamp"],[12],[1,"\\n"],[41,[30,4],[[[1,"      Updated\\n      "],[1,[28,[35,7],[[30,4],"MMM d yyyy, h:mm:ss aaa"],[["withTimeZone"],[true]]]],[1,"\\n"]],[]],null],[1,"  "],[13],[1,"\\n"],[13]],["@attribution","legend","idx","@responseTimestamp"],false,["capitalize","if","clients/horizontal-bar-chart","format-number","each","-track-array","empty-state","date-format"]]',moduleName:"vault/components/clients/attribution.hbs",isStrictMode:!1})
class r extends n.default{get noun(){return this.args.noun||"namespace"}get attributionLegend(){const e=[{key:"entity_clients",label:"entity clients"},{key:"non_entity_clients",label:"non-entity clients"},{key:"acme_clients",label:"ACME clients"}]
return this.args.isSecretsSyncActivated&&e.push({key:"secret_syncs",label:"secrets sync clients"}),e}get sortedAttribution(){return this.args.attribution?this.args.attribution?.slice().sort(((e,t)=>t.clients-e.clients)):[]}get topTenAttribution(){return this.sortedAttribution.slice(0,10)}get topAttribution(){return this.sortedAttribution[0]??null}get chartText(){return"namespace"===this.noun?{subtext:"This data shows the top ten namespaces by total clients for the date range selected.",description:"This data shows the top ten namespaces by total clients and can be used to understand where clients are originating. Namespaces are identified by path."}:{subtext:"The total clients used by the mounts for this date range. This number is useful for identifying overall usage volume.",description:"This data shows the top ten mounts by client count within this namespace, and can be used to understand where clients are originating. Mounts are organized by path."}}}e.default=r,(0,t.setComponentTemplate)(i,r)})),define("vault/components/clients/chart-container",["exports","@ember/component","@ember/component/template-only","@ember/template-factory"],(function(e,t,n,l){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
const i=(0,l.createTemplateFactory)({id:"DozgApfl",block:'[[[1,"\\n"],[11,0],[24,0,"chart-wrapper single-chart-grid"],[17,1],[12],[1,"\\n  "],[10,0],[14,0,"chart-header has-bottom-margin-xl"],[12],[1,"\\n    "],[10,"h2"],[14,0,"chart-title"],[12],[1,[30,2]],[13],[1,"\\n    "],[10,2],[14,0,"chart-description"],[12],[1,"\\n      "],[1,[30,3]],[1,"\\n    "],[13],[1,"\\n  "],[13],[1,"\\n\\n"],[41,[30,4],[[[41,[48,[30,9]],[[[1,"      "],[10,0],[14,0,"chart-subTitle"],[12],[1,"\\n        "],[18,9,null],[1,"\\n      "],[13],[1,"\\n"]],[]],null],[1,"\\n"],[41,[48,[30,10]],[[[1,"      "],[18,10,null],[1,"\\n"]],[]],null],[1,"\\n"],[41,[48,[30,11]],[[[1,"      "],[10,0],[14,0,"chart-container-wide"],[12],[1,"\\n        "],[18,11,null],[1,"\\n      "],[13],[1,"\\n"]],[]],null],[1,"\\n"],[41,[48,[30,12]],[[[1,"      "],[10,0],[14,0,"legend"],[12],[1,"\\n        "],[18,12,null],[1,"\\n      "],[13],[1,"\\n"]],[]],[[[41,[30,5],[[[1,"      "],[10,0],[14,0,"legend"],[12],[1,"\\n"],[42,[28,[37,4],[[28,[37,4],[[30,5]],null]],null],null,[[[1,"          "],[10,1],[15,0,[29,["legend-colors dot-",[30,7]]]],[12],[13],[1,"\\n          "],[10,1],[14,0,"legend-label"],[12],[1,[28,[35,5],[[30,6,["label"]]],null]],[13],[1,"\\n"]],[6,7]],null],[1,"      "],[13],[1,"\\n    "]],[]],null]],[]]],[1,"\\n"]],[]],[[[1,"    "],[10,0],[14,0,"chart-empty-state chart-container-wide"],[12],[1,"\\n      "],[18,13,null],[1,"\\n    "],[13],[1,"\\n"]],[]]],[1,"\\n"],[41,[30,8],[[[1,"    "],[10,0],[14,0,"timestamp"],[12],[1,"\\n      Updated\\n      "],[1,[28,[35,6],[[30,8],"MMM d yyyy, h:mm:ss aaa"],[["withTimeZone"],[true]]]],[1,"\\n    "],[13],[1,"\\n"]],[]],null],[13]],["&attrs","@title","@description","@hasChartData","@legend","legend","idx","@timestamp","&subTitle","&stats","&chart","&legend","&emptyState"],false,["if","has-block","yield","each","-track-array","capitalize","date-format"]]',moduleName:"vault/components/clients/chart-container.hbs",isStrictMode:!1})
e.default=(0,t.setComponentTemplate)(i,(0,n.default)())})),define("vault/components/clients/charts/vertical-bar-basic",["exports","@ember/component","@glimmer/component","@glimmer/tracking","vault/utils/chart-helpers","core/helpers/format-number","core/utils/date-formatters","@ember/template-factory"],(function(e,t,n,l,i,r,a,o){var s,u
function c(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e
var n=e[Symbol.toPrimitive]
if(void 0!==n){var l=n.call(e,t||"default")
if("object"!=typeof l)return l
throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string")
return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
const d=(0,o.createTemplateFactory)({id:"sgUMG9+F",block:'[[[10,0],[14,0,"lineal-chart"],[12],[1,"\\n  "],[8,[39,0],null,null,[["default"],[[[[1,"\\n"],[44,[[28,[37,2],null,[["domain","range","padding"],[[30,0,["xDomain"]],[28,[37,3],[0,[30,1]],null],0.1]]],[28,[37,4],null,[["range","domain"],[[28,[37,3],[[30,0,["chartHeight"]],0],null],[30,0,["yDomain"]]]]],[28,[37,4],null,[["range","domain"],[[28,[37,3],[0,[30,0,["chartHeight"]]],null],[30,0,["yDomain"]]]]]],[[[1,"      "],[10,"svg"],[15,"width",[30,1]],[15,"height",[30,0,["chartHeight"]]],[12],[1,"\\n        "],[10,"title"],[12],[1,[30,5]],[13],[1,"\\n\\n"],[41,[28,[37,6],[[30,2,["isValid"]],[30,3,["isValid"]]],null],[[[1,"          "],[8,[39,7],[[24,0,"lineal-axis"]],[["@scale","@tickCount","@tickPadding","@tickSizeInner","@tickFormat","@orientation","@includeDomain"],[[30,3],"4",10,[28,[37,8],["-",[30,1]],null],[30,0,["formatTicksY"]],"left",false]],null],[1,"\\n          "],[8,[39,7],[[16,"transform",[29,["translate(0,",[30,3,["range","min"]],")"]]],[24,0,"lineal-axis"]],[["@scale","@orientation","@includeDomain","@tickSize","@tickPadding"],[[30,2],"bottom",false,"0",10]],null],[1,"\\n"]],[]],null],[1,"        "],[8,[39,9],[[16,"transform",[29,["translate(",[28,[30,0,["barOffset"]],[[30,2,["bandwidth"]]],null],",0)"]]],[24,"fill","transparent"],[24,"stroke","transparent"],[24,0,"lineal-chart-bar"]],[["@data","@x","@y","@height","@width","@xScale","@yScale","@heightScale"],[[30,0,["chartData"]],"x","y","y",[30,0,["barWidth"]],[30,2],[30,3],[30,4]]],null],[1,"\\n"],[41,[28,[37,6],[[30,2,["isValid"]],[30,3,["isValid"]]],null],[[[42,[28,[37,11],[[28,[37,11],[[30,0,["chartData"]]],null]],null],null,[[[1,"            "],[11,"rect"],[24,"role","button"],[16,"aria-label",[29,["Show exact counts for ",[30,6,["legendX"]]]]],[24,"x","0"],[24,"y","0"],[16,"height",[30,0,["chartHeight"]]],[16,"width",[30,2,["bandwidth"]]],[24,"fill","transparent"],[24,"stroke","transparent"],[16,"transform",[29,["translate(",[28,[30,2,["compute"]],[[30,6,["x"]]],null],")"]]],[4,[38,12],["mouseover",[28,[37,13],[[28,[37,14],[[30,0,["activeDatum"]]],null],[30,6]],null]],null],[4,[38,12],["mouseout",[28,[37,13],[[28,[37,14],[[30,0,["activeDatum"]]],null],null],null]],null],[12],[13],[1,"\\n"]],[6]],null]],[]],null],[1,"      "],[13],[1,"\\n"],[41,[30,0,["activeDatum"]],[[[1,"        "],[11,0],[24,0,"lineal-tooltip-position chart-tooltip"],[24,"role","status"],[4,[38,15],null,[["--x","--y"],[[28,[30,0,["tooltipX"]],[[28,[30,2,["compute"]],[[30,0,["activeDatum","x"]]],null],[30,2,["bandwidth"]]],null],[28,[30,0,["tooltipY"]],[[28,[30,4,["compute"]],[[30,0,["activeDatum","y"]]],null]],null]]]],[12],[1,"\\n          "],[10,0],[12],[1,"\\n            "],[10,2],[14,0,"bold"],[12],[1,[30,0,["activeDatum","legendX"]]],[13],[1,"\\n            "],[10,2],[12],[1,[30,0,["activeDatum","tooltip"]]],[13],[1,"\\n          "],[13],[1,"\\n          "],[10,0],[14,0,"chart-tooltip-arrow"],[12],[13],[1,"\\n        "],[13],[1,"\\n"]],[]],null]],[2,3,4]]],[1,"  "]],[1]]]]],[1,"\\n"],[13],[1,"\\n"],[41,[30,7],[[[1,"  "],[10,"details"],[12],[1,"\\n    "],[10,"summary"],[12],[1,"Underlying data"],[13],[1,"\\n    "],[8,[39,16],null,[["@caption"],["Underlying data"]],[["head","body"],[[[[1,"\\n        "],[8,[30,8,["Tr"]],null,null,[["default"],[[[[1,"\\n          "],[8,[30,8,["Th"]],null,null,[["default"],[[[[1,"Month"]],[]]]]],[1,"\\n          "],[8,[30,8,["Th"]],null,null,[["default"],[[[[1,[52,[30,9],[28,[37,17],[[30,9]],null]]],[1," Count"]],[]]]]],[1,"\\n        "]],[]]]]],[1,"\\n      "]],[8]],[[[1,"\\n"],[42,[28,[37,11],[[28,[37,11],[[30,0,["chartData"]]],null]],null],null,[[[1,"          "],[8,[30,10,["Tr"]],null,null,[["default"],[[[[1,"\\n            "],[8,[30,10,["Td"]],null,null,[["default"],[[[[1,[30,11,["legendX"]]]],[]]]]],[1,"\\n            "],[8,[30,10,["Td"]],null,null,[["default"],[[[[1,[30,11,["legendY"]]]],[]]]]],[1,"\\n          "]],[]]]]],[1,"\\n"]],[11]],null],[1,"      "]],[10]]]]],[1,"\\n  "],[13],[1,"\\n"]],[]],null]],["width","xScale","yScale","hScale","@chartTitle","d","@showTable","H","@dataKey","B","row"],false,["lineal/fluid","let","scale-band","array","scale-linear","if","and","lineal/axis","concat","lineal/bars","each","-track-array","on","fn","mut","style","hds/table","humanize"]]',moduleName:"vault/components/clients/charts/vertical-bar-basic.hbs",isStrictMode:!1})
let p=e.default=(s=class extends n.default{constructor(...e){var t,n,l,r
super(...e),c(this,"barWidth",i.BAR_WIDTH),t=this,n="activeDatum",r=this,(l=u)&&Object.defineProperty(t,n,{enumerable:l.enumerable,configurable:l.configurable,writable:l.writable,value:l.initializer?l.initializer.call(r):void 0}),c(this,"barOffset",(e=>(e-this.barWidth)/2)),c(this,"tooltipX",((e,t)=>(e+t/2).toString())),c(this,"tooltipY",(e=>e?`${e}`:"0")),c(this,"formatTicksY",(e=>(0,i.numericalAxisLabel)(e)||e.toString()))}get chartHeight(){return this.args.chartHeight||190}get chartData(){return this.args.data.map((e=>{const t=e.timestamp,n=e[this.args.dataKey]??null
return{x:(0,a.parseAPITimestamp)(t,"M/yy"),y:n,tooltip:null===n?"No data":`${(0,r.formatNumber)([n])} ${this.args.dataKey.replace(/_/g," ")}`,legendX:(0,a.parseAPITimestamp)(t,"MMMM yyyy"),legendY:(n??"No data").toString()}}))}get yDomain(){const e=this.chartData.map((e=>e.y)).flatMap((e=>"number"==typeof e?[e]:[])),t=Math.max(...e)
return[0,t<=4?4:t]}get xDomain(){const e=this.chartData.map((e=>e.x))
return new Set(e)}},f=s.prototype,m="activeDatum",h=[l.tracked],b={configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}},v={},Object.keys(b).forEach((function(e){v[e]=b[e]})),v.enumerable=!!v.enumerable,v.configurable=!!v.configurable,("value"in v||v.initializer)&&(v.writable=!0),v=h.slice().reverse().reduce((function(e,t){return t(f,m,e)||e}),v),y&&void 0!==v.initializer&&(v.value=v.initializer?v.initializer.call(y):void 0,v.initializer=void 0),u=void 0===v.initializer?(Object.defineProperty(f,m,v),null):v,s)
var f,m,h,b,y,v;(0,t.setComponentTemplate)(d,p)})),define("vault/components/clients/charts/vertical-bar-grouped",["exports","@ember/component","@glimmer/component","@glimmer/tracking","vault/utils/chart-helpers","core/helpers/format-number","core/utils/date-formatters","d3-array","@ember/template-factory"],(function(e,t,n,l,i,r,a,o,s){var u,c
function d(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e
var n=e[Symbol.toPrimitive]
if(void 0!==n){var l=n.call(e,t||"default")
if("object"!=typeof l)return l
throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string")
return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
const p=(0,s.createTemplateFactory)({id:"aotu5Hb7",block:'[[[41,[28,[37,1],[[30,1],[30,2]],null],[[[1,"  "],[10,0],[14,0,"lineal-chart"],[12],[1,"\\n    "],[8,[39,2],null,null,[["default"],[[[[1,"\\n"],[44,[[28,[37,4],null,[["domain","range","padding"],[[30,0,["xBounds"]],[28,[37,5],[0,[30,3]],null],0.1]]],[28,[37,6],null,[["range","domain"],[[28,[37,5],[[30,0,["chartHeight"]],0],null],[30,0,["yBounds"]]]]],[28,[37,6],null,[["range","domain"],[[28,[37,5],[0,[30,0,["chartHeight"]]],null],[30,0,["yBounds"]]]]]],[[[1,"        "],[10,"svg"],[15,"width",[30,3]],[15,"height",[30,0,["chartHeight"]]],[12],[1,"\\n          "],[10,"title"],[12],[1,[30,7]],[13],[1,"\\n\\n"],[41,[28,[37,1],[[30,4,["isValid"]],[30,5,["isValid"]]],null],[[[1,"            "],[8,[39,7],[[24,0,"lineal-axis"]],[["@includeDomain","@orientation","@scale","@tickCount","@tickFormat","@tickPadding","@tickSizeInner"],[false,"left",[30,5],"4",[30,0,["formatTicksY"]],10,[28,[37,8],["-",[30,3]],null]]],null],[1,"\\n            "],[8,[39,7],[[24,0,"lineal-axis"],[16,"transform",[29,["translate(0,",[30,5,["range","min"]],")"]]]],[["@includeDomain","@orientation","@scale","@tickFormat","@tickPadding","@tickSize"],[false,"bottom",[30,4],[30,0,["formatTicksX"]],10,"0"]],null],[1,"\\n"]],[]],null],[1,"\\n"],[42,[28,[37,10],[[28,[37,10],[[30,2]],null]],null],null,[[[1,"            "],[8,[39,11],[[16,0,[29,["lineal-chart-bar custom-bar-",[30,8,["key"]]]]],[16,"transform",[29,["translate(",[28,[30,0,["barOffset"]],[[30,4,["bandwidth"]],[30,9]],null],",0)"]]]],[["@data","@x","@y","@height","@width","@xScale","@yScale","@heightScale"],[[30,1],"timestamp",[30,8,["key"]],[30,8,["key"]],[30,0,["barWidth"]],[30,4],[30,5],[30,6]]],null],[1,"\\n"]],[8,9]],null],[1,"\\n"],[41,[28,[37,1],[[30,4,["isValid"]],[30,5,["isValid"]]],null],[[[42,[28,[37,10],[[28,[37,10],[[30,0,["aggregatedData"]]],null]],null],null,[[[1,"              "],[11,"rect"],[24,"role","button"],[16,"aria-label",[29,["Show exact counts for ",[30,10,["legendX"]]]]],[24,"x","0"],[24,"y","0"],[16,"height",[30,0,["chartHeight"]]],[16,"width",[30,4,["bandwidth"]]],[24,"fill","transparent"],[24,"stroke","transparent"],[16,"transform",[29,["translate(",[28,[30,4,["compute"]],[[30,10,["x"]]],null],")"]]],[4,[38,12],["mouseover",[28,[37,13],[[28,[37,14],[[30,0,["activeDatum"]]],null],[30,10]],null]],null],[4,[38,12],["mouseout",[28,[37,13],[[28,[37,14],[[30,0,["activeDatum"]]],null],null],null]],null],[12],[13],[1,"\\n"]],[10]],null]],[]],null],[1,"        "],[13],[1,"\\n\\n"],[41,[30,0,["activeDatum"]],[[[1,"          "],[11,0],[24,0,"lineal-tooltip-position chart-tooltip"],[24,"role","status"],[4,[38,15],null,[["--x","--y"],[[28,[30,0,["tooltipX"]],[[28,[30,4,["compute"]],[[30,0,["activeDatum","x"]]],null],[30,4,["bandwidth"]]],null],[28,[30,0,["tooltipY"]],[[28,[30,6,["compute"]],[[30,0,["activeDatum","y"]]],null]],null]]]],[12],[1,"\\n            "],[10,0],[12],[1,"\\n              "],[10,2],[14,0,"bold"],[12],[1,[30,0,["activeDatum","legendX"]]],[13],[1,"\\n"],[42,[28,[37,10],[[28,[37,10],[[30,0,["activeDatum","legendY"]]],null]],null],null,[[[1,"                "],[10,2],[12],[1,[30,11]],[13],[1,"\\n"]],[11]],null],[41,[30,0,["activeDatum","tooltipUpgrade"]],[[[1,"                "],[10,"br"],[12],[13],[1,"\\n                "],[10,2],[14,0,"has-text-highlight"],[12],[1,[30,0,["activeDatum","tooltipUpgrade"]]],[13],[1,"\\n"]],[]],null],[1,"            "],[13],[1,"\\n            "],[10,0],[14,0,"chart-tooltip-arrow"],[12],[13],[1,"\\n          "],[13],[1,"\\n"]],[]],null]],[4,5,6]]],[1,"    "]],[3]]]]],[1,"\\n  "],[13],[1,"\\n\\n"],[41,[30,12],[[[1,"    "],[10,"details"],[12],[1,"\\n      "],[10,"summary"],[12],[1,[30,7]],[1," data"],[13],[1,"\\n      "],[8,[39,16],null,[["@caption"],["Underlying data"]],[["head","body"],[[[[1,"\\n          "],[8,[30,13,["Tr"]],null,null,[["default"],[[[[1,"\\n            "],[8,[30,13,["Th"]],null,null,[["default"],[[[[1,"Timestamp"]],[]]]]],[1,"\\n"],[42,[28,[37,10],[[28,[37,10],[[30,0,["dataKeys"]]],null]],null],null,[[[1,"              "],[8,[30,13,["Th"]],null,null,[["default"],[[[[1,[28,[35,17],[[30,14]],null]]],[]]]]],[1,"\\n"]],[14]],null],[1,"          "]],[]]]]],[1,"\\n        "]],[13]],[[[1,"\\n"],[42,[28,[37,10],[[28,[37,10],[[30,1]],null]],null],null,[[[1,"            "],[8,[30,15,["Tr"]],null,null,[["default"],[[[[1,"\\n              "],[8,[30,15,["Td"]],null,null,[["default"],[[[[1,[30,16,["timestamp"]]]],[]]]]],[1,"\\n"],[42,[28,[37,10],[[28,[37,10],[[30,0,["dataKeys"]]],null]],null],null,[[[1,"                "],[8,[30,15,["Td"]],null,null,[["default"],[[[[1,[28,[35,18],[[28,[37,19],[[30,16],[30,17]],null],"-"],null]]],[]]]]],[1,"\\n"]],[17]],null],[1,"            "]],[]]]]],[1,"\\n"]],[16]],null],[1,"        "]],[15]]]]],[1,"\\n    "],[13],[1,"\\n"]],[]],null]],[]],[[[1,"  "],[8,[39,20],null,[["@subTitle","@bottomBorder"],["No data to display",true]],null],[1,"\\n"]],[]]]],["@data","@legend","width","xScale","yScale","hScale","@chartTitle","l","idx","d","stat","@showTable","H","key","B","row","key"],false,["if","and","lineal/fluid","let","scale-band","array","scale-linear","lineal/axis","concat","each","-track-array","lineal/bars","on","fn","mut","style","hds/table","humanize","or","get","empty-state"]]',moduleName:"vault/components/clients/charts/vertical-bar-grouped.hbs",isStrictMode:!1})
let f=e.default=(u=class extends n.default{constructor(...e){var t,n,l,r
super(...e),d(this,"barWidth",i.BAR_WIDTH),t=this,n="activeDatum",r=this,(l=c)&&Object.defineProperty(t,n,{enumerable:l.enumerable,configurable:l.configurable,writable:l.writable,value:l.initializer?l.initializer.call(r):void 0}),d(this,"barOffset",((e,t=0)=>{const n=this.barWidth+4
return(e-n*this.args.legend.length)/2+t*n})),d(this,"tooltipX",((e,t)=>(e+t/2).toString())),d(this,"tooltipY",(e=>e?`${e}`:"0")),d(this,"formatTicksX",(e=>(0,a.parseAPITimestamp)(e,"M/yy"))),d(this,"formatTicksY",(e=>(0,i.numericalAxisLabel)(e)||e.toString()))}get chartHeight(){return this.args.chartHeight||190}get dataKeys(){return this.args.legend.map((e=>e.key))}label(e){return this.args.legend.find((t=>t.key===e))?.label}get chartData(){let e=[]
for(const t of this.dataKeys){const n=this.args.data.map((e=>({timestamp:e.timestamp,clientType:t,[t]:e[t]}))),l=(0,o.flatGroup)(n,(e=>e.timestamp),(e=>e[t]),(e=>e.clientType))
e=[...e,...l]}return e.map((([e,t,n])=>({timestamp:e,counts:t,clientType:n})))}get aggregatedData(){return this.args.data.map((e=>{const t=this.dataKeys.map((t=>e[t])).filter((e=>Number.isInteger(e))),n=t.length?t.reduce(((e,t)=>e>t?e:t),0):null,l=e.timestamp
return{x:l,y:n??0,legendX:(0,a.parseAPITimestamp)(l,"MMMM yyyy"),legendY:null===n?["No data"]:this.dataKeys.map((t=>`${(0,r.formatNumber)([e[t]])} ${this.label(t)}`)),tooltipUpgrade:this.upgradeMessage(e)}}))}get yBounds(){const e=this.aggregatedData.map((e=>e.y)).flatMap((e=>"number"==typeof e?[e]:[])),t=Math.max(...e)
return[0,t<=4?4:t]}get xBounds(){const e=this.args.data.map((e=>e.timestamp))
return new Set(e)}get upgradeByMonthYear(){const e={}
return Array.isArray(this.args.upgradeData)&&this.args.upgradeData?.reduce(((e,t)=>{if(t.timestampInstalled){e[(0,a.parseAPITimestamp)(t.timestampInstalled,"M/yy")]=t}return e}),e)||e}upgradeMessage(e){const t=this.upgradeByMonthYear[e.month]
if(t){const{version:e,previousVersion:n}=t
return`Vault was upgraded\n        ${n?"from "+n:""} to ${e}`}return null}},m=u.prototype,h="activeDatum",b=[l.tracked],y={configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}},g={},Object.keys(y).forEach((function(e){g[e]=y[e]})),g.enumerable=!!g.enumerable,g.configurable=!!g.configurable,("value"in g||g.initializer)&&(g.writable=!0),g=b.slice().reverse().reduce((function(e,t){return t(m,h,e)||e}),g),v&&void 0!==g.initializer&&(g.value=g.initializer?g.initializer.call(v):void 0,g.initializer=void 0),c=void 0===g.initializer?(Object.defineProperty(m,h,g),null):g,u)
var m,h,b,y,v,g;(0,t.setComponentTemplate)(p,f)})),define("vault/components/clients/charts/vertical-bar-stacked",["exports","@ember/component","@glimmer/component","@glimmer/tracking","vault/utils/chart-helpers","core/helpers/format-number","core/utils/date-formatters","d3-array","@ember/template-factory"],(function(e,t,n,l,i,r,a,o,s){var u,c
function d(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e
var n=e[Symbol.toPrimitive]
if(void 0!==n){var l=n.call(e,t||"default")
if("object"!=typeof l)return l
throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string")
return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
const p=(0,s.createTemplateFactory)({id:"VLbBtav3",block:'[[[10,0],[14,0,"lineal-chart"],[12],[1,"\\n  "],[8,[39,0],null,null,[["default"],[[[[1,"\\n"],[44,[[28,[37,2],null,[["domain","range","padding"],[[30,0,["xBounds"]],[28,[37,3],[0,[30,1]],null],0.1]]],[28,[37,4],null,[["range","domain"],[[28,[37,3],[[30,0,["chartHeight"]],0],null],[30,0,["yBounds"]]]]],[28,[37,4],null,[["range","domain"],[[28,[37,3],[0,[30,0,["chartHeight"]]],null],[30,0,["yBounds"]]]]]],[[[1,"      "],[10,"svg"],[15,"width",[30,1]],[15,"height",[30,0,["chartHeight"]]],[12],[1,"\\n        "],[10,"title"],[12],[1,[30,5]],[13],[1,"\\n\\n"],[41,[28,[37,6],[[30,2,["isValid"]],[30,3,["isValid"]]],null],[[[1,"          "],[8,[39,7],[[24,0,"lineal-axis"]],[["@includeDomain","@orientation","@scale","@tickCount","@tickFormat","@tickPadding","@tickSizeInner"],[false,"left",[30,3],"4",[30,0,["formatTicksY"]],10,[28,[37,8],["-",[30,1]],null]]],null],[1,"\\n          "],[8,[39,7],[[24,0,"lineal-axis"],[16,"transform",[29,["translate(0,",[30,3,["range","min"]],")"]]]],[["@includeDomain","@orientation","@scale","@tickFormat","@tickPadding","@tickSize"],[false,"bottom",[30,2],[30,0,["formatTicksX"]],10,"0"]],null],[1,"\\n"]],[]],null],[1,"\\n        "],[8,[39,9],[[16,"transform",[29,["translate(",[28,[30,0,["barOffset"]],[[30,2,["bandwidth"]]],null],",0)"]]]],[["@data","@x","@y","@width","@xScale","@yScale","@color","@colorScale"],[[30,0,["chartData"]],"timestamp","counts",[30,0,["barWidth"]],[30,2],[30,3],"clientType","blue-bar"]],null],[1,"\\n\\n"],[41,[28,[37,6],[[30,2,["isValid"]],[30,3,["isValid"]]],null],[[[42,[28,[37,11],[[28,[37,11],[[30,0,["aggregatedData"]]],null]],null],null,[[[1,"            "],[11,"rect"],[24,"role","button"],[16,"aria-label",[29,["Show exact counts for ",[30,6,["legendX"]]]]],[24,"x","0"],[24,"y","0"],[16,"height",[30,0,["chartHeight"]]],[16,"width",[30,2,["bandwidth"]]],[24,"fill","transparent"],[24,"stroke","transparent"],[16,"transform",[29,["translate(",[28,[30,2,["compute"]],[[30,6,["x"]]],null],")"]]],[4,[38,12],["mouseover",[28,[37,13],[[28,[37,14],[[30,0,["activeDatum"]]],null],[30,6]],null]],null],[4,[38,12],["mouseout",[28,[37,13],[[28,[37,14],[[30,0,["activeDatum"]]],null],null],null]],null],[12],[13],[1,"\\n"]],[6]],null]],[]],null],[1,"      "],[13],[1,"\\n\\n"],[41,[30,0,["activeDatum"]],[[[1,"        "],[11,0],[24,0,"lineal-tooltip-position chart-tooltip"],[24,"role","status"],[4,[38,15],null,[["--x","--y"],[[28,[30,0,["tooltipX"]],[[28,[30,2,["compute"]],[[30,0,["activeDatum","x"]]],null],[30,2,["bandwidth"]]],null],[28,[30,0,["tooltipY"]],[[28,[30,4,["compute"]],[[30,0,["activeDatum","y"]]],null]],null]]]],[12],[1,"\\n          "],[10,0],[12],[1,"\\n            "],[10,2],[14,0,"bold"],[12],[1,[30,0,["activeDatum","legendX"]]],[13],[1,"\\n"],[42,[28,[37,11],[[28,[37,11],[[30,0,["activeDatum","legendY"]]],null]],null],null,[[[1,"              "],[10,2],[12],[1,[30,7]],[13],[1,"\\n"]],[7]],null],[1,"          "],[13],[1,"\\n          "],[10,0],[14,0,"chart-tooltip-arrow"],[12],[13],[1,"\\n        "],[13],[1,"\\n"]],[]],null],[1,"\\n"]],[2,3,4]]],[1,"  "]],[1]]]]],[1,"\\n"],[13],[1,"\\n\\n"],[41,[30,8],[[[1,"  "],[10,"details"],[12],[1,"\\n    "],[10,"summary"],[12],[1,[30,5]],[1," data"],[13],[1,"\\n    "],[8,[39,16],null,[["@caption"],["Underlying data"]],[["head","body"],[[[[1,"\\n        "],[8,[30,9,["Tr"]],null,null,[["default"],[[[[1,"\\n          "],[8,[30,9,["Th"]],null,null,[["default"],[[[[1,"Timestamp"]],[]]]]],[1,"\\n"],[42,[28,[37,11],[[28,[37,11],[[30,0,["dataKeys"]]],null]],null],null,[[[1,"            "],[8,[30,9,["Th"]],null,null,[["default"],[[[[1,[28,[35,17],[[30,10]],null]]],[]]]]],[1,"\\n"]],[10]],null],[1,"        "]],[]]]]],[1,"\\n      "]],[9]],[[[1,"\\n"],[42,[28,[37,11],[[28,[37,11],[[30,12]],null]],null],null,[[[1,"          "],[8,[30,11,["Tr"]],null,null,[["default"],[[[[1,"\\n            "],[8,[30,11,["Td"]],null,null,[["default"],[[[[1,[30,13,["timestamp"]]]],[]]]]],[1,"\\n"],[42,[28,[37,11],[[28,[37,11],[[30,0,["dataKeys"]]],null]],null],null,[[[1,"              "],[8,[30,11,["Td"]],null,null,[["default"],[[[[1,[28,[35,18],[[28,[37,19],[[30,13],[30,14]],null],"-"],null]]],[]]]]],[1,"\\n"]],[14]],null],[1,"          "]],[]]]]],[1,"\\n"]],[13]],null],[1,"      "]],[11]]]]],[1,"\\n  "],[13],[1,"\\n"]],[]],null]],["width","xScale","yScale","hScale","@chartTitle","d","stat","@showTable","H","key","B","@data","row","key"],false,["lineal/fluid","let","scale-band","array","scale-linear","if","and","lineal/axis","concat","lineal/v-bars","each","-track-array","on","fn","mut","style","hds/table","humanize","or","get"]]',moduleName:"vault/components/clients/charts/vertical-bar-stacked.hbs",isStrictMode:!1})
let f=e.default=(u=class extends n.default{constructor(...e){var t,n,l,r
super(...e),d(this,"barWidth",i.BAR_WIDTH),t=this,n="activeDatum",r=this,(l=c)&&Object.defineProperty(t,n,{enumerable:l.enumerable,configurable:l.configurable,writable:l.writable,value:l.initializer?l.initializer.call(r):void 0}),d(this,"barOffset",(e=>(e-this.barWidth)/2)),d(this,"tooltipX",((e,t)=>(e+t/2).toString())),d(this,"tooltipY",(e=>e?`${e}`:"0")),d(this,"formatTicksX",(e=>(0,a.parseAPITimestamp)(e,"M/yy"))),d(this,"formatTicksY",(e=>(0,i.numericalAxisLabel)(e)||e.toString()))}get chartHeight(){return this.args.chartHeight||190}get dataKeys(){return this.args.chartLegend.map((e=>e.key))}label(e){return this.args.chartLegend.find((t=>t.key===e)).label}get chartData(){let e=[]
for(const t of this.dataKeys){const n=this.args.data.map((e=>({timestamp:e.timestamp,clientType:t,[t]:e[t]}))),l=(0,o.flatGroup)(n,(e=>e.timestamp),(e=>e[t]),(e=>e.clientType))
e=[...e,...l]}return e.map((([e,t,n])=>({timestamp:e,counts:t,clientType:n})))}get aggregatedData(){return this.args.data.map((e=>{const t=this.dataKeys.map((t=>e[t])).filter((e=>Number.isInteger(e))),n=t.length?t.reduce(((e,t)=>e+t),0):null,l=e.timestamp
return{x:l,y:n??0,legendX:(0,a.parseAPITimestamp)(l,"MMMM yyyy"),legendY:null===n?["No data"]:this.dataKeys.map((t=>`${(0,r.formatNumber)([e[t]])} ${this.label(t)}`))}}))}get yBounds(){const e=this.aggregatedData.map((e=>e.y)).flatMap((e=>"number"==typeof e?[e]:[])),t=Math.max(...e)
return[0,t<=4?4:t]}get xBounds(){const e=this.chartData.map((e=>e.timestamp))
return new Set(e)}},m=u.prototype,h="activeDatum",b=[l.tracked],y={configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}},g={},Object.keys(y).forEach((function(e){g[e]=y[e]})),g.enumerable=!!g.enumerable,g.configurable=!!g.configurable,("value"in g||g.initializer)&&(g.writable=!0),g=b.slice().reverse().reduce((function(e,t){return t(m,h,e)||e}),g),v&&void 0!==g.initializer&&(g.value=g.initializer?g.initializer.call(v):void 0,g.initializer=void 0),c=void 0===g.initializer?(Object.defineProperty(m,h,g),null):g,u)
var m,h,b,y,v,g;(0,t.setComponentTemplate)(p,f)})),define("vault/components/clients/config",["exports","@ember/component","@glimmer/component","@ember/object","@ember/service","@glimmer/tracking","ember-concurrency","@ember/template-factory"],(function(e,t,n,l,i,r,a,o){var s,u,c,d,p,f,m,h
function b(e,t,n,l){n&&Object.defineProperty(e,t,{enumerable:n.enumerable,configurable:n.configurable,writable:n.writable,value:n.initializer?n.initializer.call(l):void 0})}function y(e,t,n,l,i){var r={}
return Object.keys(l).forEach((function(e){r[e]=l[e]})),r.enumerable=!!r.enumerable,r.configurable=!!r.configurable,("value"in r||r.initializer)&&(r.writable=!0),r=n.slice().reverse().reduce((function(n,l){return l(e,t,n)||n}),r),i&&void 0!==r.initializer&&(r.value=r.initializer?r.initializer.call(i):void 0,r.initializer=void 0),void 0===r.initializer?(Object.defineProperty(e,t,r),null):r}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
const v=(0,o.createTemplateFactory)({id:"/079Rx4M",block:'[[[41,[28,[37,1],[[30,1],"edit"],null],[[[1,"  "],[10,"form"],[15,"onsubmit",[28,[37,2],[[30,0],"onSaveChanges"],null]],[12],[1,"\\n    "],[10,0],[14,0,"box is-sideless is-fullwidth is-marginless"],[12],[1,"\\n      "],[8,[39,3],null,[["@model","@errorMessage"],[[30,2],[30,0,["error"]]]],null],[1,"\\n"],[42,[28,[37,5],[[28,[37,5],[[30,2,["formFields"]]],null]],null],null,[[[41,[28,[37,1],[[30,3,["name"]],"enabled"],null],[[[41,[51,[30,2,["reportingEnabled"]]],[[[1,"            "],[10,"label"],[14,0,"is-label"],[12],[1,"Usage data collection"],[13],[1,"\\n            "],[10,2],[14,0,"sub-text"],[12],[1,"\\n              Enable or disable client tracking. Keep in mind that disabling tracking will delete the data for the current\\n              month.\\n            "],[13],[1,"\\n            "],[10,0],[14,0,"control is-flex has-bottom-margin-l"],[12],[1,"\\n              "],[11,"input"],[24,1,"enabled"],[24,3,"enabled"],[24,0,"toggle is-success is-small"],[16,"checked",[28,[37,1],[[30,2,["enabled"]],"On"],null]],[24,4,"checkbox"],[4,[38,7],["change",[30,0,["toggleEnabled"]]],null],[12],[13],[1,"\\n              "],[10,"label"],[14,"for","enabled"],[14,0,"has-text-weight-bold is-size-8"],[12],[1,"\\n                Data collection is\\n                "],[1,[28,[35,8],[[30,2,["enabled"]]],null]],[1,"\\n              "],[13],[1,"\\n            "],[13],[1,"\\n"]],[]],null]],[]],[[[1,"          "],[8,[39,9],null,[["@attr","@model","@modelValidations"],[[30,3],[30,2],[30,0,["validations"]]]],null],[1,"\\n"]],[]]]],[3]],null],[1,"    "],[13],[1,"\\n    "],[10,0],[14,0,"field is-grouped-split box is-fullwidth is-bottomless"],[12],[1,"\\n      "],[8,[39,10],null,null,[["default"],[[[[1,"\\n        "],[8,[39,11],[[16,"disabled",[30,0,["buttonDisabled"]]],[24,4,"submit"]],[["@text"],["Save"]],null],[1,"\\n        "],[8,[39,11],null,[["@text","@color","@route"],["Cancel","secondary","vault.cluster.clients.config"]],null],[1,"\\n      "]],[]]]]],[1,"\\n    "],[13],[1,"\\n  "],[13],[1,"\\n\\n"],[41,[30,0,["modalOpen"]],[[[1,"    "],[8,[39,12],[[24,1,"clients-config-modal"]],[["@color","@onClose"],["warning",[28,[37,13],[[28,[37,14],[[30,0,["modalOpen"]]],null],false],null]]],[["default"],[[[[1,"\\n      "],[8,[30,4,["Header"]],null,[["@icon"],["alert-triangle"]],[["default"],[[[[1,"\\n        "],[1,[30,0,["modalTitle"]]],[1,"\\n      "]],[]]]]],[1,"\\n      "],[8,[30,4,["Body"]],null,null,[["default"],[[[[1,"\\n"],[41,[28,[37,1],[[30,2,["enabled"]],"On"],null],[[[1,"          "],[10,2],[14,0,"has-bottom-margin-s"],[12],[1,"\\n            Vault will start tracking data starting from today’s date,\\n            "],[1,[28,[35,15],[[28,[37,16],null,null],"MMMM d, yyyy"],null]],[1,". If you’ve previously enabled usage tracking, that historical data will\\n            still be available to you.\\n          "],[13],[1,"\\n"]],[]],[[[1,"          "],[10,2],[14,0,"has-bottom-margin-s"],[12],[1,"\\n            Turning usage tracking off means that all data for the current month will be deleted. You will still be able to\\n            query previous months.\\n          "],[13],[1,"\\n          "],[10,2],[12],[1,"Are you sure?"],[13],[1,"\\n"]],[]]],[1,"      "]],[]]]]],[1,"\\n      "],[8,[30,4,["Footer"]],null,null,[["default"],[[[[1,"\\n        "],[8,[39,10],null,null,[["default"],[[[[1,"\\n          "],[8,[39,11],[[4,[38,7],["click",[28,[37,17],[[30,0,["save"]]],null]],null]],[["@text"],["Continue"]],null],[1,"\\n          "],[8,[39,11],[[4,[38,7],["click",[30,5,["close"]]],null]],[["@text","@color"],["Cancel","secondary"]],null],[1,"\\n        "]],[]]]]],[1,"\\n      "]],[5]]]]],[1,"\\n    "]],[4]]]]],[1,"\\n"]],[]],null]],[]],[[[1,"  "],[10,0],[14,0,"tabs-container box is-bottomless is-marginless is-fullwidth is-paddingless"],[12],[1,"\\n"],[42,[28,[37,5],[[28,[37,5],[[30,0,["infoRows"]]],null]],null],null,[[[1,"      "],[8,[39,18],null,[["@label","@helperText","@value"],[[30,6,["label"]],[30,6,["helperText"]],[28,[37,19],[[30,2],[30,6,["valueKey"]]],null]]],null],[1,"\\n"]],[6]],null],[1,"  "],[13],[1,"\\n"]],[]]]],["@mode","@model","attr","M","F","item"],false,["if","eq","action","message-error","each","-track-array","unless","on","lowercase","form-field","hds/button-set","hds/button","hds/modal","fn","mut","date-format","now","perform","info-table-row","get"]]',moduleName:"vault/components/clients/config.hbs",isStrictMode:!1})
let g=e.default=(s=(0,a.task)((function*(){try{yield this.args.model.save(),this.router.transitionTo("vault.cluster.clients.config")}catch(e){this.error=e.message,this.modalOpen=!1}})).drop(),u=class extends n.default{constructor(...e){super(...e),b(this,"router",c,this),b(this,"mode",d,this),b(this,"modalOpen",p,this),b(this,"validations",f,this),b(this,"error",m,this),b(this,"save",h,this)}get infoRows(){return[{label:"Usage data collection",helperText:"Enable or disable collecting data to track clients.",valueKey:"enabled"},{label:"Retention period",helperText:"The number of months of activity logs to maintain for client tracking.",valueKey:"retentionMonths"}]}get modalTitle(){return`Turn usage tracking ${this.args.model.enabled.toLowerCase()}?`}toggleEnabled(e){this.args.model.enabled=e.target.checked?"On":"Off"}onSaveChanges(e){e.preventDefault()
const{isValid:t,state:n}=this.args.model.validate(),l=this.args.model.changedAttributes()
t?l.enabled?this.modalOpen=!0:this.save.perform():this.validations=n}},c=y(u.prototype,"router",[i.service],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),d=y(u.prototype,"mode",[r.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return"show"}}),p=y(u.prototype,"modalOpen",[r.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),f=y(u.prototype,"validations",[r.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),m=y(u.prototype,"error",[r.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),h=y(u.prototype,"save",[s],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),y(u.prototype,"toggleEnabled",[l.action],Object.getOwnPropertyDescriptor(u.prototype,"toggleEnabled"),u.prototype),y(u.prototype,"onSaveChanges",[l.action],Object.getOwnPropertyDescriptor(u.prototype,"onSaveChanges"),u.prototype),u);(0,t.setComponentTemplate)(v,g)})),define("vault/components/clients/counts/error",["exports","@ember/component","@ember/component/template-only","@ember/template-factory"],(function(e,t,n,l){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
const i=(0,l.createTemplateFactory)({id:"kKiBqZqm",block:'[[[8,[39,0],null,[["@title","@subTitle","@icon"],[[52,[28,[37,2],[[30,1,["httpStatus"]],403],null],"You are not authorized","Error"],[29,["Error ",[30,2,["httpStatus"]]]],"skip"]],[["default"],[[[[1,"\\n"],[41,[28,[37,2],[[30,1,["httpStatus"]],403],null],[[[1,"    "],[10,2],[12],[1,"\\n      You must be granted permissions to view this page. Ask your administrator if you think you should have access to the\\n      "],[10,"code"],[12],[1,[30,1,["path"]]],[13],[1,"\\n      endpoint.\\n    "],[13],[1,"\\n"]],[]],[[[1,"    "],[10,"ul"],[12],[1,"\\n"],[41,[30,1,["message"]],[[[1,"        "],[10,"li"],[12],[1,[30,1,["message"]]],[13],[1,"\\n        "],[10,"hr"],[12],[13],[1,"\\n"]],[]],null],[42,[28,[37,4],[[28,[37,4],[[30,1,["errors"]]],null]],null],null,[[[1,"        "],[10,"li"],[12],[1,"\\n          "],[1,[30,3]],[1,"\\n        "],[13],[1,"\\n"]],[3]],null],[1,"    "],[13],[1,"\\n"]],[]]]],[]]]]]],["@error","@model","error"],false,["empty-state","if","eq","each","-track-array"]]',moduleName:"vault/components/clients/counts/error.hbs",isStrictMode:!1})
e.default=(0,t.setComponentTemplate)(i,(0,n.default)())})),define("vault/components/clients/counts/nav-bar",["exports","@ember/component","@ember/component/template-only","@ember/template-factory"],(function(e,t,n,l){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
const i=(0,l.createTemplateFactory)({id:"NLjIhRaC",block:'[[[10,"nav"],[14,0,"tabs has-bottom-margin-s"],[14,"aria-label","navigation for managing client counts"],[12],[1,"\\n  "],[10,"ul"],[12],[1,"\\n    "],[10,"li"],[12],[1,"\\n      "],[8,[39,0],null,[["@route"],["vault.cluster.clients.counts.overview"]],[["default"],[[[[1,"\\n        Overview\\n      "]],[]]]]],[1,"\\n    "],[13],[1,"\\n    "],[10,"li"],[12],[1,"\\n      "],[8,[39,0],null,[["@route"],["vault.cluster.clients.counts.token"]],[["default"],[[[[1,"\\n        Entity/Non-entity clients\\n      "]],[]]]]],[1,"\\n    "],[13],[1,"\\n"],[41,[30,1],[[[1,"      "],[10,"li"],[12],[1,"\\n        "],[8,[39,0],null,[["@route"],["vault.cluster.clients.counts.sync"]],[["default"],[[[[1,"\\n          Secrets sync clients\\n        "]],[]]]]],[1,"\\n      "],[13],[1,"\\n"]],[]],null],[1,"    "],[10,"li"],[12],[1,"\\n      "],[8,[39,0],null,[["@route"],["vault.cluster.clients.counts.acme"]],[["default"],[[[[1,"\\n        ACME clients\\n      "]],[]]]]],[1,"\\n    "],[13],[1,"\\n  "],[13],[1,"\\n"],[13]],["@showSecretsSyncClientCounts"],false,["link-to","if"]]',moduleName:"vault/components/clients/counts/nav-bar.hbs",isStrictMode:!1})
e.default=(0,t.setComponentTemplate)(i,(0,n.default)())}))
define("vault/components/clients/date-range",["exports","@ember/component","@ember/object","@ember/service","@glimmer/component","@glimmer/tracking","core/utils/client-count-utils","core/utils/date-formatters","core/utils/timestamp","date-fns","@ember/template-factory"],(function(e,t,n,l,i,r,a,o,s,u,c){var d,p,f,m,h
function b(e,t,n,l){n&&Object.defineProperty(e,t,{enumerable:n.enumerable,configurable:n.configurable,writable:n.writable,value:n.initializer?n.initializer.call(l):void 0})}function y(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e
var n=e[Symbol.toPrimitive]
if(void 0!==n){var l=n.call(e,t||"default")
if("object"!=typeof l)return l
throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string")
return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function v(e,t,n,l,i){var r={}
return Object.keys(l).forEach((function(e){r[e]=l[e]})),r.enumerable=!!r.enumerable,r.configurable=!!r.configurable,("value"in r||r.initializer)&&(r.writable=!0),r=n.slice().reverse().reduce((function(n,l){return l(e,t,n)||n}),r),i&&void 0!==r.initializer&&(r.value=r.initializer?r.initializer.call(i):void 0,r.initializer=void 0),void 0===r.initializer?(Object.defineProperty(e,t,r),null):r}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
const g=(0,c.createTemplateFactory)({id:"lKH4KJU2",block:'[[[11,0],[17,1],[12],[1,"\\n  "],[8,[39,0],[[24,0,"has-bottom-margin-xs"]],[["@tag"],["p"]],[["default"],[[[[1,"\\n    Client counting period\\n  "]],[]]]]],[1,"\\n  "],[8,[39,1],null,[["@tag","@color","@size"],["p","faint","300"]],[["default"],[[[[1,"\\n    The dashboard displays client count activity during the specified date range below. Click edit to update the date range.\\n  "]],[]]]]],[1,"\\n\\n  "],[10,0],[14,0,"is-flex-align-baseline"],[12],[1,"\\n"],[41,[28,[37,3],[[30,2],[30,3]],null],[[[1,"      "],[10,2],[14,0,"is-size-6"],[12],[1,[28,[30,0,["formattedDate"]],[[30,2]],null]],[13],[1,"\\n      "],[10,2],[14,0,"has-left-margin-xs"],[12],[1," — "],[13],[1,"\\n      "],[10,2],[14,0,"is-size-6 has-left-margin-xs"],[12],[1,[28,[30,0,["formattedDate"]],[[30,3]],null]],[13],[1,"\\n      "],[8,[39,4],[[24,0,"has-left-margin-xs"],[4,[38,5],["click",[28,[37,6],[[28,[37,7],[[30,0,["showEditModal"]]],null],true],null]],null]],[["@text","@color","@icon","@iconPosition"],["Edit","tertiary","edit","trailing"]],null],[1,"\\n"]],[]],[[[1,"      "],[8,[39,4],[[4,[38,5],["click",[28,[37,6],[[28,[37,7],[[30,0,["showEditModal"]]],null],true],null]],null]],[["@text","@icon"],["Set date range","edit"]],null],[1,"\\n"]],[]]],[1,"  "],[13],[1,"\\n\\n"],[41,[30,0,["showEditModal"]],[[[1,"    "],[8,[39,8],null,[["@onClose"],[[30,0,["onClose"]]]],[["default"],[[[[1,"\\n      "],[8,[30,4,["Header"]],null,null,[["default"],[[[[1,"\\n        Edit date range\\n      "]],[]]]]],[1,"\\n      "],[8,[30,4,["Body"]],null,null,[["default"],[[[[1,"\\n        "],[10,2],[14,0,"has-bottom-margin-s"],[12],[1,"\\n          The start date will be used as the client counting start time and all clients in that month will be considered new.\\n"],[41,[30,0,["version","isEnterprise"]],[[[1,"            We recommend setting this date as your license or billing start date to get the most accurate new and total\\n            client count estimations. These dates are only for querying data in storage. Editing the date range does not\\n            change any license or billing configurations.\\n"]],[]],null],[1,"        "],[13],[1,"\\n        "],[10,0],[14,0,"clients-date-range-display"],[12],[1,"\\n          "],[10,0],[12],[1,"\\n            "],[8,[39,9],[[16,"max",[30,0,["currentMonth"]]],[24,1,"start-month"],[24,3,"start"],[4,[38,5],["change",[30,0,["updateDate"]]],null]],[["@type","@value"],["month",[30,0,["startDate"]]]],[["default"],[[[[1,"\\n              "],[8,[30,5,["Label"]],null,null,[["default"],[[[[1,"Start"]],[]]]]],[1,"\\n            "]],[5]]]]],[1,"\\n          "],[13],[1,"\\n          "],[10,0],[12],[1,"\\n            "],[8,[39,9],[[16,"max",[30,0,["currentMonth"]]],[24,1,"end-month"],[24,3,"end"],[4,[38,5],["change",[30,0,["updateDate"]]],null]],[["@type","@value"],["month",[30,0,["endDate"]]]],[["default"],[[[[1,"\\n              "],[8,[30,6,["Label"]],null,null,[["default"],[[[[1,"End"]],[]]]]],[1,"\\n            "]],[6]]]]],[1,"\\n          "],[13],[1,"\\n"],[41,[30,0,["version","isEnterprise"]],[[[1,"            "],[8,[39,4],[[4,[38,5],["click",[30,0,["resetDates"]]],null]],[["@text","@color","@icon"],["Reset","tertiary","reload"]],null],[1,"\\n"]],[]],null],[1,"        "],[13],[1,"\\n"],[41,[30,0,["validationError"]],[[[1,"          "],[8,[39,10],[[24,0,"has-top-margin-xs"]],null,[["default"],[[[[1,[30,0,["validationError"]]]],[]]]]],[1,"\\n"]],[]],null],[41,[28,[37,3],[[30,0,["version","isEnterprise"]],[30,0,["useDefaultDates"]]],null],[[[1,"          "],[8,[39,11],[[24,0,"has-top-margin-xs"]],[["@type","@color"],["compact","highlight"]],[["default"],[[[[1,"\\n            "],[8,[30,7,["Description"]],null,null,[["default"],[[[[1,"Dashboard will use the default date range from the API."]],[]]]]],[1,"\\n          "]],[7]]]]],[1,"\\n"]],[]],null],[1,"      "]],[]]]]],[1,"\\n      "],[8,[30,4,["Footer"]],null,null,[["default"],[[[[1,"\\n        "],[8,[39,4],[[4,[38,5],["click",[30,0,["handleSave"]]],null]],[["@text"],["Save"]],null],[1,"\\n        "],[8,[39,4],[[4,[38,5],["click",[30,8,["close"]]],null]],[["@text","@color"],["Cancel","secondary"]],null],[1,"\\n      "]],[8]]]]],[1,"\\n    "]],[4]]]]],[1,"\\n"]],[]],null],[13]],["&attrs","@startTime","@endTime","M","F","F","A","F"],false,["hds/text/display","hds/text/body","if","and","hds/button","on","fn","mut","hds/modal","hds/form/text-input/field","hds/form/error","hds/alert"]]',moduleName:"vault/components/clients/date-range.hbs",isStrictMode:!1})
let w=e.default=(d=class extends i.default{constructor(e,t){super(e,t),b(this,"version",p,this),b(this,"showEditModal",f,this),b(this,"startDate",m,this),b(this,"endDate",h,this),y(this,"currentMonth",(0,u.format)(s.default.now(),"yyyy-MM")),y(this,"formattedDate",(e=>(0,o.parseAPITimestamp)(e,"MMMM yyyy"))),this.setTrackedFromArgs()}setTrackedFromArgs(){this.args.startTime&&(this.startDate=(0,o.parseAPITimestamp)(this.args.startTime,"yyyy-MM")),this.args.endTime&&(this.endDate=(0,o.parseAPITimestamp)(this.args.endTime,"yyyy-MM"))}get useDefaultDates(){return!this.startDate&&!this.endDate}get validationError(){return this.useDefaultDates&&this.version.isEnterprise?null:this.startDate&&this.endDate?this.startDate>this.endDate?"Start date must be before end date.":null:"You must supply both start and end dates."}onClose(){this.setTrackedFromArgs(),this.showEditModal=!1}resetDates(){this.startDate="",this.endDate=""}updateDate(e){const{name:t,value:n}=e.target
"end"===t?this.endDate=n:this.startDate=n}handleSave(){if(this.validationError)return
const e={start_time:void 0,end_time:void 0}
if(this.startDate){const[t,n]=this.startDate.split("-")
t&&n&&(e.start_time=(0,a.formatDateObject)({monthIdx:parseInt(n)-1,year:parseInt(t)},!1))}if(this.endDate){const[t,n]=this.endDate.split("-")
t&&n&&(e.end_time=(0,a.formatDateObject)({monthIdx:parseInt(n)-1,year:parseInt(t)},!0))}this.args.onChange(e),this.onClose()}},p=v(d.prototype,"version",[l.service],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),f=v(d.prototype,"showEditModal",[r.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),m=v(d.prototype,"startDate",[r.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return""}}),h=v(d.prototype,"endDate",[r.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return""}}),v(d.prototype,"onClose",[n.action],Object.getOwnPropertyDescriptor(d.prototype,"onClose"),d.prototype),v(d.prototype,"resetDates",[n.action],Object.getOwnPropertyDescriptor(d.prototype,"resetDates"),d.prototype),v(d.prototype,"updateDate",[n.action],Object.getOwnPropertyDescriptor(d.prototype,"updateDate"),d.prototype),v(d.prototype,"handleSave",[n.action],Object.getOwnPropertyDescriptor(d.prototype,"handleSave"),d.prototype),d);(0,t.setComponentTemplate)(g,w)})),define("vault/components/clients/horizontal-bar-chart",["exports","@ember/component","@glimmer/component","@ember/object","d3-shape","d3-selection","d3-scale","d3-axis","d3-array","vault/utils/chart-helpers","@glimmer/tracking","core/helpers/format-number","@ember/template-factory"],(function(e,t,n,l,i,r,a,o,s,u,c,d,p){var f,m,h,b
function y(e,t,n,l){n&&Object.defineProperty(e,t,{enumerable:n.enumerable,configurable:n.configurable,writable:n.writable,value:n.initializer?n.initializer.call(l):void 0})}function v(e,t,n,l,i){var r={}
return Object.keys(l).forEach((function(e){r[e]=l[e]})),r.enumerable=!!r.enumerable,r.configurable=!!r.configurable,("value"in r||r.initializer)&&(r.writable=!0),r=n.slice().reverse().reduce((function(n,l){return l(e,t,n)||n}),r),i&&void 0!==r.initializer&&(r.value=r.initializer?r.initializer.call(i):void 0,r.initializer=void 0),void 0===r.initializer?(Object.defineProperty(e,t,r),null):r}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
const g=(0,p.createTemplateFactory)({id:"li1xMc1l",block:'[[[41,[30,1],[[[1,"  "],[11,"svg"],[24,0,"chart is-horizontal"],[4,[38,1],["mouseleave",[30,0,["removeTooltip"]]],null],[4,[38,2],[[30,0,["renderChart"]],[30,1]],null],[4,[38,3],[[30,0,["renderChart"]],[30,1]],null],[12],[1,"\\n  "],[13],[1,"\\n"]],[]],[[[1,"  "],[8,[39,4],null,[["@subTitle","@bottomBorder"],[[28,[37,5],[[30,2],"No data to display"],null],true]],null],[1,"\\n"]],[]]],[41,[30,0,["tooltipTarget"]],[[[6,[39,6],null,[["tagName","tetherTarget","targetAttachment","attachment","offset"],["div",[30,0,["tooltipTarget"]],"bottom middle","bottom middle","35px 0"]],[["default"],[[[[1,"    "],[10,0],[15,0,[29,["chart-tooltip ",[52,[30,0,["isLabel"]]," is-label-fit-content"]]]],[12],[1,"\\n"],[42,[28,[37,8],[[28,[37,8],[[30,0,["tooltipText"]]],null]],null],null,[[[1,"        "],[10,2],[12],[1,[30,3]],[13],[1,"\\n"]],[3]],null],[1,"    "],[13],[1,"\\n    "],[10,0],[14,0,"chart-tooltip-arrow"],[12],[13],[1,"\\n"]],[]]]]]],[]],null]],["@dataset","@noDataMessage","text"],false,["if","on","did-insert","did-update","empty-state","or","modal-dialog","each","-track-array"]]',moduleName:"vault/components/clients/horizontal-bar-chart.hbs",isStrictMode:!1}),w=10,k=95,x=14,P=99
let _=e.default=(f=class extends n.default{constructor(...e){super(...e),y(this,"tooltipTarget",m,this),y(this,"tooltipText",h,this),y(this,"isLabel",b,this)}get labelKey(){return this.args.labelKey||"label"}get xKey(){return this.args.xKey||"clients"}get topNamespace(){return this.args.dataset[(0,s.maxIndex)(this.args.dataset,(e=>e[this.xKey]))]}removeTooltip(){this.tooltipTarget=null}renderChart(e,[t]){const n=t,l=(0,i.stack)().keys(this.args.chartLegend.map((e=>e.key)))(n),c=this.labelKey,p=this.xKey,f=(0,a.scaleLinear)().domain([0,(0,s.max)(n.map((e=>e[p])))]).range([0,75]),m=(0,a.scaleBand)().domain(n.map((e=>e[c]))).range([0,24*n.length]).paddingInner(.765),h=(0,r.select)(e)
h.attr("width","100%").attr("viewBox","0 0 564 "+24*(n.length+1))
const b=h.selectAll("g").remove().exit().data(l).enter().append("g").attr("data-test-group",(e=>`${e.key}`)).attr("transform",`translate(${k}, ${w})`).style("fill",((e,t)=>u.BAR_PALETTE[t]));(0,o.axisLeft)(m).tickSize(0)(h.append("g").attr("data-test-group","y-labels").attr("transform",`translate(${k}, ${w})`)),h.select(".domain").remove()
h.selectAll(".tick text").call((e=>e.text((e=>e.length<15?e:e.slice(0,12)+"...")))),b.selectAll("rect").remove().exit().data((e=>e)).enter().append("rect").attr("class","data-bar").style("cursor","pointer").attr("width",(e=>`${f(Math.abs(e[1]-e[0]))}%`)).attr("height",m.bandwidth()).attr("x",(e=>`${f(e[0])}%`)).attr("y",(({data:e})=>m(e[c]))).attr("rx",3).attr("ry",3)
const y=h.append("g").attr("data-test-group","action-bars").selectAll(".action-bar").remove().exit().data(n).enter().append("rect").style("cursor","pointer").attr("class","action-bar").attr("width","100%").attr("height","24px").attr("x","0").attr("y",(e=>m(e[c]))).style("fill",`${u.GREY}`).style("opacity","0").style("mix-blend-mode","multiply"),v=h.append("g").attr("data-test-group","label-action-bars").selectAll(".label-action-bar").remove().exit().data(n).enter().append("rect").style("cursor","pointer").attr("class","label-action-bar").attr("width",k).attr("height","24px").attr("x","0").attr("y",(e=>m(e[c]))).style("opacity","0").style("mix-blend-mode","multiply")
y.on("mouseover",((e,t)=>{const n=e.currentTarget
this.tooltipTarget=n,this.isLabel=!1,this.tooltipText=[],this.args.chartLegend.forEach((({key:e,label:n})=>{this.tooltipText.push(`${(0,d.formatNumber)([t[e]])} ${n}`)})),(0,r.select)(n).style("opacity",1)})).on("mouseout",(function(){(0,r.select)(this).style("opacity",0)})),v.on("mouseover",((e,t)=>{if(t[c].length>=15){const n=e.currentTarget
this.tooltipTarget=n,this.isLabel=!0,this.tooltipText=[t[c]]}else this.tooltipTarget=null})).on("mouseout",(function(){this.tooltipTarget=null}))
h.append("g").attr("data-test-group","total-values").attr("transform",`translate(${P}, ${x})`).selectAll("text").data(n).enter().append("text").text((e=>(0,d.formatNumber)([e[p]]))).attr("fill","#000").attr("class","total-value").style("font-size",".8rem").attr("text-anchor","start").attr("alignment-baseline","middle").attr("x",(e=>`${f(e[p])}%`)).attr("y",(e=>m(e[c])))}},m=v(f.prototype,"tooltipTarget",[c.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return""}}),h=v(f.prototype,"tooltipText",[c.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return[]}}),b=v(f.prototype,"isLabel",[c.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),v(f.prototype,"removeTooltip",[l.action],Object.getOwnPropertyDescriptor(f.prototype,"removeTooltip"),f.prototype),v(f.prototype,"renderChart",[l.action],Object.getOwnPropertyDescriptor(f.prototype,"renderChart"),f.prototype),f);(0,t.setComponentTemplate)(g,_)})),define("vault/components/clients/no-data",["exports","@ember/component","@ember/component/template-only","@ember/template-factory"],(function(e,t,n,l){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
const i=(0,l.createTemplateFactory)({id:"lEAT3AEe",block:'[[[41,[28,[37,1],[[30,1,["reportingEnabled"]],[28,[37,2],[[30,1,["enabled"]],"On"],null]],null],[[[1,"  "],[8,[39,3],[[24,0,"is-shadowless"]],[["@title","@message"],[[29,["No data received ",[52,[30,2],[30,2]]]],"Tracking is turned on and Vault is gathering data. It should appear here within 30 minutes."]],null],[1,"\\n"]],[]],[[[41,[30,1],[[[1,"  "],[8,[39,3],[[24,0,"is-shadowless"]],[["@title","@message"],["Data tracking is disabled","Tracking is disabled, and no data is being collected. To turn it on, edit the configuration."]],[["default"],[[[[1,"\\n"],[41,[30,1,["canEdit"]],[[[1,"      "],[8,[39,4],null,[["@icon","@iconPosition","@text","@route"],["chevron-right","trailing","Go to configuration","vault.cluster.clients.config"]],null],[1,"\\n"]],[]],null],[1,"  "]],[]]]]],[1,"\\n"]],[]],[[[1,"  "],[8,[39,3],[[24,0,"is-shadowless"]],[["@title","@message"],["Activity configuration data is unavailable","Reporting status is unknown and could be enabled or disabled. Check the Vault logs for more information."]],null],[1,"\\n"]],[]]]],[]]]],["@config","@dateRangeMessage"],false,["if","or","eq","empty-state","hds/link/standalone"]]',moduleName:"vault/components/clients/no-data.hbs",isStrictMode:!1})
e.default=(0,t.setComponentTemplate)(i,(0,n.default)())})),define("vault/components/clients/page-header",["exports","@ember/component","ember-concurrency/async-arrow-runtime","@ember/object","@ember/service","@ember/test-waiters","@glimmer/component","@glimmer/tracking","core/utils/date-formatters","core/utils/sanitize-path","date-fns","ember-concurrency","@ember/template-factory"],(function(e,t,n,l,i,r,a,o,s,u,c,d,p){var f,m,h,b,y,v,g,w
function k(e,t,n,l){n&&Object.defineProperty(e,t,{enumerable:n.enumerable,configurable:n.configurable,writable:n.writable,value:n.initializer?n.initializer.call(l):void 0})}function x(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e
var n=e[Symbol.toPrimitive]
if(void 0!==n){var l=n.call(e,t||"default")
if("object"!=typeof l)return l
throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string")
return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function P(e,t,n,l,i){var r={}
return Object.keys(l).forEach((function(e){r[e]=l[e]})),r.enumerable=!!r.enumerable,r.configurable=!!r.configurable,("value"in r||r.initializer)&&(r.writable=!0),r=n.slice().reverse().reduce((function(n,l){return l(e,t,n)||n}),r),i&&void 0!==r.initializer&&(r.value=r.initializer?r.initializer.call(i):void 0,r.initializer=void 0),void 0===r.initializer?(Object.defineProperty(e,t,r),null):r}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
const _=(0,p.createTemplateFactory)({id:"C63X/E6k",block:'[[[8,[39,0],[[24,0,"has-top-padding-l has-bottom-padding-m"]],null,[["default"],[[[[1,"\\n  "],[8,[30,1,["Title"]],null,null,[["default"],[[[[1,"Vault Usage Metrics"]],[]]]]],[1,"\\n  "],[8,[30,1,["Description"]],null,null,[["default"],[[[[1,"\\n    This dashboard surfaces Vault client usage over time.\\n    "],[8,[39,1],null,[["@href"],[[28,[37,2],["/vault/docs/concepts/client-count"],null]]],[["default"],[[[[1,"Documentation is available here"]],[]]]]],[1,".\\n    Date queries are sent in UTC.\\n  "]],[]]]]],[1,"\\n  "],[8,[30,1,["Actions"]],null,null,[["default"],[[[[1,"\\n"],[41,[30,0,["showExportButton"]],[[[1,"      "],[8,[39,4],[[4,[38,5],["click",[28,[37,6],[[28,[37,7],[[30,0,["showExportModal"]]],null],true],null]],null]],[["@text","@color","@icon"],["Export activity data","secondary","download"]],null],[1,"\\n"]],[]],null],[1,"  "]],[]]]]],[1,"\\n"]],[1]]]]],[1,"\\n\\n"],[41,[30,0,["showExportModal"]],[[[1,"  "],[8,[39,8],[[24,1,"attribution-csv-download-modal"],[24,0,"has-text-left"]],[["@onClose"],[[30,0,["resetModal"]]]],[["default"],[[[[1,"\\n    "],[8,[30,2,["Header"]],null,[["@icon"],["info"]],[["default"],[[[[1,"\\n      Export activity data\\n    "]],[]]]]],[1,"\\n    "],[8,[30,2,["Body"]],null,null,[["default"],[[[[1,"\\n"],[41,[30,0,["exportChartData","isRunning"]],[[[1,"        "],[10,2],[14,0,"has-bottom-margin-s"],[12],[1,"\\n          Your export request is being processed. This may take some time; please do not navigate away from this page.\\n        "],[13],[1,"\\n        "],[10,2],[14,0,"has-bottom-margin-s has-text-centered"],[12],[1,"\\n          "],[8,[39,9],null,[["@name","@size"],["loading","24"]],null],[1,"\\n        "],[13],[1,"\\n"]],[]],[[[1,"        "],[10,2],[14,0,"has-bottom-margin-s"],[12],[1,"\\n          This file will include an export of the clients that had activity within the date range below. See the\\n          "],[8,[39,2],null,[["@path"],["/vault/api-docs/system/internal-counters#activity-export"]],[["default"],[[[[1,"activity export documentation"]],[]]]]],[1,"\\n          for more details.\\n        "],[13],[1,"\\n        "],[10,2],[14,0,"has-bottom-margin-s is-subtitle-gray"],[12],[1,"SELECTED DATE "],[1,[52,[30,0,["formattedEndDate"]]," RANGE"]],[13],[1,"\\n        "],[10,2],[14,0,"has-bottom-margin-s"],[12],[1,"\\n          "],[1,[30,0,["formattedStartDate"]]],[1,"\\n          "],[1,[52,[30,0,["formattedEndDate"]],"-"]],[1,"\\n          "],[1,[30,0,["formattedEndDate"]]],[13],[1,"\\n\\n        "],[8,[39,10],[[24,0,"has-bottom-margin-s"],[4,[38,5],["change",[30,0,["setExportFormat"]]],null]],null,[["default"],[[[[1,"\\n          "],[8,[30,3,["Label"]],null,null,[["default"],[[[[1,"Export format"]],[]]]]],[1,"\\n          "],[8,[30,3,["Options"]],null,null,[["default"],[[[[1,"\\n            "],[10,"option"],[14,2,"csv"],[15,"selected",[28,[37,11],[[30,0,["exportFormat"]],"csv"],null]],[12],[1,"CSV"],[13],[1,"\\n            "],[10,"option"],[14,2,"jsonl"],[15,"selected",[28,[37,11],[[30,0,["exportFormat"]],"jsonl"],null]],[12],[1,"JSON Lines"],[13],[1,"\\n          "]],[]]]]],[1,"\\n        "]],[3]]]]],[1,"\\n"]],[]]],[1,"\\n"],[41,[30,0,["downloadError"]],[[[1,"        "],[8,[39,12],null,[["@type","@color"],["inline","critical"]],[["default"],[[[[1,"\\n          "],[8,[30,4,["Title"]],null,null,[["default"],[[[[1,"CSV export failed"]],[]]]]],[1,"\\n          "],[8,[30,4,["Description"]],null,null,[["default"],[[[[1,[30,0,["downloadError"]]]],[]]]]],[1,"\\n        "]],[4]]]]],[1,"\\n"]],[]],null],[1,"    "]],[]]]]],[1,"\\n    "],[8,[30,2,["Footer"]],null,null,[["default"],[[[[1,"\\n      "],[8,[39,13],null,null,[["default"],[[[[1,"\\n        "],[8,[39,4],[[4,[38,5],["click",[28,[37,14],[[30,0,["exportChartData"]],[30,0,["formattedCsvFileName"]]],null]],null]],[["@text"],["Export"]],null],[1,"\\n        "],[8,[39,4],[[4,[38,5],["click",[30,5,["close"]]],null]],[["@text","@color"],["Cancel","secondary"]],null],[1,"\\n      "]],[]]]]],[1,"\\n"],[41,[30,6],[[[1,"        "],[8,[39,12],[[24,0,"has-top-padding-m"]],[["@type","@color"],["compact","warning"]],[["default"],[[[[1,"\\n          "],[8,[30,7,["Description"]],null,null,[["default"],[[[[1,"\\n            "],[10,"strong"],[12],[1,"Data contains "],[1,[28,[35,15],[[30,6,["length"]],"upgrade"],null]],[1,":"],[13],[1,"\\n          "]],[]]]]],[1,"\\n          "],[8,[30,7,["Description"]],null,null,[["default"],[[[[1,"\\n            "],[10,"ul"],[14,0,"bullet"],[12],[1,"\\n"],[42,[28,[37,17],[[28,[37,17],[[30,6]],null]],null],null,[[[1,"                "],[10,"li"],[12],[1,"\\n                  "],[1,[30,8,["version"]]],[1,"\\n                  "],[1,[28,[30,0,["parseAPITimestamp"]],[[30,8,["timestampInstalled"]],"(MMM d, yyyy)"],null]],[1,"\\n                "],[13],[1,"\\n"]],[8]],null],[1,"            "],[13],[1,"\\n          "]],[]]]]],[1,"\\n          "],[8,[30,7,["Description"]],null,null,[["default"],[[[[1,"\\n            Visit our\\n            "],[8,[39,1],null,[["@isHrefExternal","@href"],[true,[28,[37,2],["/vault/docs/concepts/client-count/faq#q-which-vault-version-reflects-the-most-accurate-client-counts"],null]]],[["default"],[[[[1,"\\n              Client count FAQ\\n            "]],[]]]]],[1,"\\n            for more information.\\n          "]],[]]]]],[1,"\\n        "]],[7]]]]],[1,"\\n"]],[]],null],[1,"    "]],[5]]]]],[1,"\\n  "]],[2]]]]],[1,"\\n"]],[]],null]],["PH","M","F","A","F","@upgradesDuringActivity","A","upgrade"],false,["hds/page-header","hds/link/inline","doc-link","if","hds/button","on","fn","mut","hds/modal","icon","hds/form/select/field","eq","hds/alert","hds/button-set","perform","pluralize","each","-track-array"]]',moduleName:"vault/components/clients/page-header.hbs",isStrictMode:!1})
let T=e.default=(f=class extends a.default{constructor(){super(...arguments),k(this,"download",m,this),k(this,"namespace",h,this),k(this,"store",b,this),k(this,"canDownload",y,this),k(this,"showExportModal",v,this),k(this,"exportFormat",g,this),k(this,"downloadError",w,this),x(this,"parseAPITimestamp",((e,t)=>(0,s.parseAPITimestamp)(e,t))),x(this,"exportChartData",(0,n.buildTask)((()=>({context:this,generator:function*(e){try{const t=yield this.getExportData()
this.download.download(e,t,this.exportFormat),this.showExportModal=!1}catch(t){this.downloadError=t.message}}})),{drop:!0},"exportChartData",null)),this.getExportCapabilities(this.args.namespace)}get showExportButton(){return!0!==this.args.noData&&this.canDownload}async getExportCapabilities(e=""){try{const t=e?`${(0,u.sanitizePath)(e)}/sys/internal/counters/activity/export`:"sys/internal/counters/activity/export",n=await this.store.findRecord("capabilities",t)
this.canDownload=n.canSudo}catch(t){this.canDownload=!0}}get formattedStartDate(){return this.args.startTimestamp?(0,s.parseAPITimestamp)(this.args.startTimestamp,"MMMM yyyy"):null}get formattedEndDate(){if(!this.args.startTimestamp&&!this.args.endTimestamp)return null
const e=(0,s.parseAPITimestamp)(this.args.startTimestamp),t=(0,s.parseAPITimestamp)(this.args.endTimestamp)
return(0,c.isSameMonth)(e,t)?null:(0,c.format)(t,"MMMM yyyy")}get formattedCsvFileName(){const e=this.formattedEndDate?`-${this.formattedEndDate}`:"",t=this.formattedStartDate?`_${this.formattedStartDate+e}`:""
return`clients_export${this.namespaceFilter?`_${this.namespaceFilter}`:""}${t}`}get namespaceFilter(){const e=this.namespace.path,{namespace:t}=this.args
return t?(0,u.sanitizePath)(`${e}/${t}`):(0,u.sanitizePath)(e)}async getExportData(){const e=this.store.adapterFor("clients/activity"),{startTimestamp:t,endTimestamp:n}=this.args
return e.exportData({format:"jsonl"===this.exportFormat?"json":"csv",start_time:t,end_time:n,namespace:this.namespaceFilter})}setExportFormat(e){const{value:t}=e.target
this.exportFormat=t}resetModal(){this.showExportModal=!1,this.downloadError=""}},m=P(f.prototype,"download",[i.service],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),h=P(f.prototype,"namespace",[i.service],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),b=P(f.prototype,"store",[i.service],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),y=P(f.prototype,"canDownload",[o.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),v=P(f.prototype,"showExportModal",[o.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),g=P(f.prototype,"exportFormat",[o.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return"csv"}}),w=P(f.prototype,"downloadError",[o.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return""}}),P(f.prototype,"getExportCapabilities",[r.waitFor],Object.getOwnPropertyDescriptor(f.prototype,"getExportCapabilities"),f.prototype),P(f.prototype,"setExportFormat",[l.action],Object.getOwnPropertyDescriptor(f.prototype,"setExportFormat"),f.prototype),P(f.prototype,"resetModal",[l.action],Object.getOwnPropertyDescriptor(f.prototype,"resetModal"),f.prototype),f);(0,t.setComponentTemplate)(_,T)})),define("vault/components/clients/page/acme",["exports","@ember/component","vault/components/clients/activity","@ember/template-factory"],(function(e,t,n,l){function i(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e
var n=e[Symbol.toPrimitive]
if(void 0!==n){var l=n.call(e,t||"default")
if("object"!=typeof l)return l
throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string")
return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
const r=(0,l.createTemplateFactory)({id:"SCLX4Pni",block:'[[[1,"\\n"],[41,[28,[37,1],[[30,0,["byMonthActivityData"]]],null],[[[1,"  "],[8,[39,2],[[24,0,"is-shadowless"]],[["@title","@message"],["No ACME clients",[29,["There is no ACME client data available for this ",[52,[30,0,["isDateRange"]],"date range","month"],"."]]]],null],[1,"\\n"]],[]],[[[41,[30,0,["isDateRange"]],[[[1,"  "],[8,[39,3],[[24,0,"no-legend"]],[["@title","@description","@timestamp","@hasChartData"],[[30,0,["title"]],[30,0,["description"]],[30,1,["responseTimestamp"]],true]],[["subTitle","chart"],[[[[1,"\\n      "],[8,[39,4],null,[["@label","@subText","@value","@tooltipText","@size"],["Total ACME clients","The total number of ACME requests made to Vault during this time period.",[30,0,["totalUsageCounts","acme_clients"]],"This number is the total for the queried date range. The chart displays a monthly breakdown of total clients per month.","l"]],null],[1,"\\n    "]],[]],[[[1,"\\n      "],[8,[39,5],null,[["@chartTitle","@data","@dataKey","@chartHeight"],[[30,0,["title"]],[30,0,["byMonthActivityData"]],"acme_clients",200]],null],[1,"\\n    "]],[]]]]],[1,"\\n\\n"],[41,[30,0,["totalUsageCounts","acme_clients"]],[[[1,"    "],[8,[39,3],[[24,0,"no-legend"]],[["@title","@description","@timestamp","@hasChartData"],["Monthly new","ACME clients which interacted with Vault for the first time each month. Each bar represents the total new ACME clients for that month.",[30,1,["responseTimestamp"]],true]],[["stats","chart"],[[[[1,"\\n"],[44,[[28,[30,0,["average"]],[[30,0,["byMonthNewClients"]],"acme_clients"],null]],[[[41,[30,2],[[[1,"            "],[8,[39,4],[[24,0,"chart-subTitle has-top-padding-l"]],[["@label","@value","@size"],["Average new ACME clients per month",[30,2],"m"]],null],[1,"\\n"]],[]],null]],[2]]],[1,"      "]],[]],[[[1,"\\n        "],[8,[39,5],null,[["@chartTitle","@data","@dataKey","@chartHeight"],["Monthly new",[30,0,["byMonthNewClients"]],"acme_clients",200]],null],[1,"\\n      "]],[]]]]],[1,"\\n"]],[]],null]],[]],[[[1,"  "],[8,[39,7],null,[["@title","@description"],[[30,0,["title"]],[30,0,["description"]]]],[["default"],[[[[1,"\\n    "],[8,[39,4],[[24,0,"column"]],[["@label","@value","@size"],["Total ACME clients",[30,0,["totalUsageCounts","acme_clients"]],"l"]],null],[1,"\\n  "]],[]]]]],[1,"\\n"]],[]]]],[]]]],["@activity","avg"],false,["if","not","empty-state","clients/chart-container","stat-text","clients/charts/vertical-bar-basic","let","clients/usage-stats"]]',moduleName:"vault/components/clients/page/acme.hbs",isStrictMode:!1})
class a extends n.default{constructor(...e){super(...e),i(this,"title","ACME usage")}get description(){return`This data can be used to understand how many ACME clients have been used for the queried ${this.isDateRange?"date range":"month"}. Each ACME request is counted as one client.`}}e.default=a,(0,t.setComponentTemplate)(r,a)})),define("vault/components/clients/page/counts",["exports","@ember/component","@glimmer/component","@ember/service","@ember/object","date-fns","core/utils/date-formatters","core/utils/client-count-utils","core/utils/sanitize-path","@ember/template-factory"],(function(e,t,n,l,i,r,a,o,s,u){var c,d,p,f,m
function h(e,t,n,l){n&&Object.defineProperty(e,t,{enumerable:n.enumerable,configurable:n.configurable,writable:n.writable,value:n.initializer?n.initializer.call(l):void 0})}function b(e,t,n,l,i){var r={}
return Object.keys(l).forEach((function(e){r[e]=l[e]})),r.enumerable=!!r.enumerable,r.configurable=!!r.configurable,("value"in r||r.initializer)&&(r.writable=!0),r=n.slice().reverse().reduce((function(n,l){return l(e,t,n)||n}),r),i&&void 0!==r.initializer&&(r.value=r.initializer?r.initializer.call(i):void 0,r.initializer=void 0),void 0===r.initializer?(Object.defineProperty(e,t,r),null):r}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
const y=(0,u.createTemplateFactory)({id:"KYOXnWt1",block:'[[[8,[39,0],null,[["@startTimestamp","@endTimestamp","@namespace","@upgradesDuringActivity","@noData"],[[30,1],[30,2],[30,3],[30,0,["upgradesDuringActivity"]],[28,[37,1],[[30,4,["total","clients"]]],null]]],null],[1,"\\n\\n"],[10,0],[14,0,"box is-sideless is-fullwidth is-marginless is-bottomless is-shadowless"],[12],[1,"\\n  "],[8,[39,2],[[24,0,"has-bottom-margin-l"]],[["@startTime","@endTime","@onChange"],[[30,1],[30,2],[30,0,["onDateChange"]]]],null],[1,"\\n\\n"],[41,[28,[37,4],[[30,4,["id"]],"no-data"],null],[[[1,"    "],[8,[39,5],null,[["@config","@dateRangeMessage"],[[30,5],[30,0,["dateRangeMessage"]]]],null],[1,"\\n"]],[]],[[[41,[30,6],[[[1,"    "],[8,[39,6],null,[["@error"],[[30,6]]],null],[1,"\\n"]],[]],[[[41,[28,[37,4],[[30,5,["enabled"]],"Off"],null],[[[1,"      "],[8,[39,7],[[24,0,"has-bottom-margin-s"]],[["@type","@color"],["inline","warning"]],[["default"],[[[[1,"\\n        "],[8,[30,7,["Title"]],null,null,[["default"],[[[[1,"Tracking is disabled"]],[]]]]],[1,"\\n        "],[8,[30,7,["Description"]],null,null,[["default"],[[[[1,"\\n          Tracking is currently disabled and data is not being collected. Historical data can be searched, but you will need\\n          to\\n          "],[8,[39,8],null,[["@route"],["vault.cluster.clients.edit"]],[["default"],[[[[1,"edit the configuration"]],[]]]]],[1,"\\n          to enable tracking again.\\n        "]],[]]]]],[1,"\\n      "]],[7]]]]],[1,"\\n"]],[]],null],[1,"\\n"],[41,[28,[37,9],[[30,3],[30,0,["namespaces"]],[30,8],[30,0,["mountPaths"]]],null],[[[1,"      "],[8,[39,10],null,[["@tag"],["p"]],[["default"],[[[[1,"\\n        Filters\\n      "]],[]]]]],[1,"\\n      "],[8,[39,11],null,[["@tag","@color"],["p","faint"]],[["default"],[[[[1,"\\n        Apply a filter to look at data from a specific namespace and drill down by mount. The mount filter includes auth\\n        methods, KV engines, and PKI engines. Each mount type generates a different type of client and will not be applicable\\n        to every tab.\\n      "]],[]]]]],[1,"\\n      "],[8,[39,12],[[24,"aria-label","toolbar for filtering client count data"],[24,0,"has-bottom-margin-m"]],null,[["default"],[[[[1,"\\n        "],[8,[39,13],null,null,[["default"],[[[[1,"\\n"],[41,[28,[37,9],[[30,3],[30,0,["namespaces"]]],null],[[[1,"            "],[8,[39,14],[[24,0,"is-marginless"]],[["@id","@options","@inputValue","@selectLimit","@disallowNewItems","@fallbackComponent","@onChange","@placeholder","@displayInherit"],["namespace-search-select",[30,0,["namespaces"]],[52,[30,3],[28,[37,15],[[30,3]],null]],"1",true,"input-search",[28,[37,16],[[30,0,["setFilterValue"]],"ns"],null],[29,["Namespace within ",[30,0,["namespacePathForFilter"]]]],true]],null],[1,"\\n            "],[10,0],[14,0,"has-left-margin-xs"],[12],[13],[1,"\\n"]],[]],null],[41,[28,[37,9],[[30,8],[30,0,["mountPaths"]]],null],[[[1,"            "],[8,[39,14],null,[["@id","@options","@inputValue","@selectLimit","@disallowNewItems","@fallbackComponent","@onChange","@placeholder","@displayInherit"],["mounts-search-select",[30,0,["mountPaths"]],[52,[30,8],[28,[37,15],[[30,8]],null]],"1",true,"input-search",[28,[37,16],[[30,0,["setFilterValue"]],"mountPath"],null],[29,["Mount path within ",[30,0,["namespacePathForFilter"]]]],true]],null],[1,"\\n"]],[]],null],[1,"        "]],[]]]]],[1,"\\n      "]],[]]]]],[1,"\\n"]],[]],null],[1,"\\n"],[41,[30,0,["totalUsageCounts"]],[[[41,[30,0,["upgradeExplanations"]],[[[1,"        "],[8,[39,7],[[24,0,"has-bottom-margin-m"]],[["@type","@color"],["inline","warning"]],[["default"],[[[[1,"\\n          "],[8,[30,9,["Title"]],null,null,[["default"],[[[[1,"\\n            Client count data contains\\n            "],[1,[28,[35,17],[[30,0,["upgradeExplanations","length"]],"upgrade"],null]],[1,"\\n          "]],[]]]]],[1,"\\n          "],[8,[30,9,["Description"]],null,null,[["default"],[[[[1,"\\n            Vault was upgraded during this time period. Keep this in mind while looking at the data. Visit our\\n            "],[8,[39,8],null,[["@isHrefExternal","@href"],[true,[28,[37,18],["/vault/docs/concepts/client-count/faq#q-which-vault-version-reflects-the-most-accurate-client-counts"],null]]],[["default"],[[[[1,"\\n              Client count FAQ\\n            "]],[]]]]],[1,"\\n            for more information.\\n          "]],[]]]]],[1,"\\n          "],[8,[30,9,["Description"]],null,null,[["default"],[[[[1,"\\n            "],[10,"ul"],[14,0,"bullet"],[12],[1,"\\n"],[42,[28,[37,20],[[28,[37,20],[[30,0,["upgradeExplanations"]]],null]],null],null,[[[1,"                "],[10,"li"],[12],[1,[30,10]],[13],[1,"\\n"]],[10]],null],[1,"            "],[13],[1,"\\n          "]],[]]]]],[1,"\\n        "]],[9]]]]],[1,"\\n"]],[]],null],[1,"\\n"],[41,[30,0,["startTimeDiscrepancy"]],[[[1,"        "],[8,[39,7],[[24,0,"has-bottom-margin-s"]],[["@type","@color"],["inline","neutral"]],[["default"],[[[[1,"\\n          "],[8,[30,11,["Description"]],null,null,[["default"],[[[[1,"\\n            "],[1,[30,0,["startTimeDiscrepancy"]]],[1,"\\n          "]],[]]]]],[1,"\\n        "]],[11]]]]],[1,"\\n"]],[]],null],[1,"\\n      "],[8,[39,21],null,[["@showSecretsSyncClientCounts"],[[28,[37,9],[[30,0,["hasSecretsSyncClients"]],[30,0,["flags","showSecretsSync"]]],null]]],null],[1,"\\n\\n"],[1,"      "],[18,12,null],[1,"\\n\\n"]],[]],[[[41,[28,[37,23],[[30,0,["version","isCommunity"]],[28,[37,1],[[30,1]],null]],null],[[[1,"      "],[8,[39,24],null,[["@title","@message"],["No start date found","In order to get the most from this data, please enter a start month above. Vault will calculate new clients starting from that month."]],null],[1,"\\n"]],[]],[[[1,"      "],[8,[39,24],null,[["@title","@message"],[[29,["No data received ",[52,[30,0,["dateRangeMessage"]],[30,0,["dateRangeMessage"]]]]],[52,[30,0,["version","isCommunity"]],"Select a start date above to query client count data.","Update the filter values or click the button to reset them."]]],[["default"],[[[[1,"\\n        "],[8,[39,25],[[4,[38,26],["click",[30,0,["resetFilters"]]],null]],[["@text","@color","@icon"],["Reset filters","tertiary","reload"]],null],[1,"\\n      "]],[]]]]],[1,"\\n    "]],[]]]],[]]],[1,"  "]],[]]]],[]]],[13]],["@startTimestamp","@endTimestamp","@namespace","@activity","@config","@activityError","A","@mountPath","A","info","A","&default"],false,["clients/page-header","not","clients/date-range","if","eq","clients/no-data","clients/counts/error","hds/alert","hds/link/inline","or","hds/text/display","hds/text/body","toolbar","toolbar-filters","search-select","array","fn","pluralize","doc-link","each","-track-array","clients/counts/nav-bar","yield","and","empty-state","hds/button","on"]]',moduleName:"vault/components/clients/page/counts.hbs",isStrictMode:!1})
let v=e.default=(c=class extends n.default{constructor(...e){super(...e),h(this,"flags",d,this),h(this,"version",p,this),h(this,"namespace",f,this),h(this,"store",m,this)}get formattedStartDate(){return this.args.startTimestamp?(0,a.parseAPITimestamp)(this.args.startTimestamp,"MMMM yyyy"):null}get dateRangeMessage(){if(this.args.startTimestamp&&this.args.endTimestamp){const e=(0,r.isSameMonth)((0,a.parseAPITimestamp)(this.args.startTimestamp),(0,a.parseAPITimestamp)(this.args.endTimestamp))?"":`to ${(0,a.parseAPITimestamp)(this.args.endTimestamp,"MMMM yyyy")}`
return`from ${(0,a.parseAPITimestamp)(this.args.startTimestamp,"MMMM yyyy")} ${e}`}return null}get upgradesDuringActivity(){const{versionHistory:e,activity:t}=this.args
return(0,o.filterVersionHistory)(e,t.startTime,t.endTime)}get upgradeExplanations(){return this.upgradesDuringActivity.length?this.upgradesDuringActivity.map((e=>{let t
const n=(0,a.parseAPITimestamp)(e.timestampInstalled,"MMM d, yyyy"),l=e.version||""
switch(!0){case l.includes("1.9"):t="- We introduced changes to non-entity token and local auth mount logic for client counting in 1.9."
break
case l.includes("1.10"):t="- We added monthly breakdowns and mount level attribution starting in 1.10."
break
case l.includes("1.17"):t="- We separated ACME clients from non-entity clients starting in 1.17."
break
default:t=""}return`${l} (upgraded on ${n}) ${t}`})):null}get versionText(){return this.version.isEnterprise?{title:"No billing start date found",message:"In order to get the most from this data, please enter your billing period start month. This will ensure that the resulting data is accurate."}:{title:"No start date found",message:"In order to get the most from this data, please enter a start month above. Vault will calculate new clients starting from that month."}}get namespacePathForFilter(){const{namespace:e}=this.args,t=this.namespace.currentNamespace
return(0,s.sanitizePath)(e||t||"root")}get activityForNamespace(){const{activity:e}=this.args,t=this.namespacePathForFilter
return e?.byNamespace?.find((e=>(0,s.sanitizePath)(e.label)===t))}get totalUsageCounts(){const{namespace:e,mountPath:t,activity:n}=this.args
return t?(0,o.filteredTotalForMount)(n.byNamespace,e,t):n?.total}get namespaces(){return this.args.activity?.byNamespace?this.args.activity.byNamespace.map((e=>({name:e.label,id:e.label}))).filter((e=>(0,s.sanitizePath)(e.name)!==this.namespacePathForFilter)):[]}get mountPaths(){return this.activityForNamespace?.mounts.map((e=>({id:e.label,name:e.label})))||[]}get startTimeDiscrepancy(){const{activity:e,config:t}=this.args,n=(0,a.parseAPITimestamp)(e.startTime),l=(0,a.parseAPITimestamp)(this.args.startTimestamp),i=this.args.startTimestamp===t.billingStartTimestamp?.toISOString()&&this.version.isEnterprise?"Your license start date is":"You requested data from"
return(0,r.isAfter)(n,l)&&!(0,r.isSameMonth)(n,l)?`${i} ${this.formattedStartDate}.\n        We only have data from ${(0,a.parseAPITimestamp)(e.startTime,"MMMM yyyy")},\n        and that is what is being shown here.`:null}get hasSecretsSyncClients(){return this.args.activity?.total?.secret_syncs>0}onDateChange(e){this.args.onFilterChange(e)}setFilterValue(e,[t]){const n={[e]:t}
"ns"!==e||t?"mountPath"!==e||this.args.namespace||(n.ns=this.namespacePathForFilter):n.mountPath=void 0,this.args.onFilterChange(n)}resetFilters(){this.args.onFilterChange({start_time:void 0,end_time:void 0,ns:void 0,mountPath:void 0})}},d=b(c.prototype,"flags",[l.service],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),p=b(c.prototype,"version",[l.service],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),f=b(c.prototype,"namespace",[l.service],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),m=b(c.prototype,"store",[l.service],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),b(c.prototype,"onDateChange",[i.action],Object.getOwnPropertyDescriptor(c.prototype,"onDateChange"),c.prototype),b(c.prototype,"setFilterValue",[i.action],Object.getOwnPropertyDescriptor(c.prototype,"setFilterValue"),c.prototype),b(c.prototype,"resetFilters",[i.action],Object.getOwnPropertyDescriptor(c.prototype,"resetFilters"),c.prototype),c);(0,t.setComponentTemplate)(y,v)})),define("vault/components/clients/page/overview",["exports","@ember/component","vault/components/clients/activity","@ember/service","core/utils/sanitize-path","@ember/template-factory"],(function(e,t,n,l,i,r){var a,o
Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
const s=(0,r.createTemplateFactory)({id:"zxcdyw+m",block:'[[[8,[39,0],null,[["@isSecretsSyncActivated","@byMonthActivityData","@isHistoricalMonth","@isCurrentMonth","@runningTotals","@upgradeData","@responseTimestamp","@mountPath"],[[30,0,["flags","secretsSyncIsActivated"]],[30,0,["byMonthActivityData"]],[28,[37,1],[[28,[37,2],[[30,0,["isCurrentMonth"]]],null],[28,[37,2],[[30,0,["isDateRange"]]],null]],null],[30,0,["isCurrentMonth"]],[30,0,["totalUsageCounts"]],[30,0,["upgradesDuringActivity"]],[30,1,["responseTimestamp"]],[30,2]]],null],[1,"\\n\\n"],[41,[30,0,["hasAttributionData"]],[[[1,"  "],[8,[39,4],null,[["@noun","@attribution","@responseTimestamp","@isSecretsSyncActivated"],["namespace",[30,1,["byNamespace"]],[30,1,["responseTimestamp"]],[30,0,["flags","secretsSyncIsActivated"]]]],null],[1,"\\n"],[41,[30,0,["namespaceMountAttribution"]],[[[1,"    "],[8,[39,4],null,[["@noun","@attribution","@responseTimestamp","@isSecretsSyncActivated"],["mount",[30,0,["namespaceMountAttribution"]],[30,1,["responseTimestamp"]],[30,0,["flags","secretsSyncIsActivated"]]]],null],[1,"\\n"]],[]],null]],[]],null]],["@activity","@mountPath"],false,["clients/running-total","and","not","if","clients/attribution"]]',moduleName:"vault/components/clients/page/overview.hbs",isStrictMode:!1})
let u=e.default=(a=class extends n.default{constructor(...e){var t,n,l,i
super(...e),t=this,n="flags",i=this,(l=o)&&Object.defineProperty(t,n,{enumerable:l.enumerable,configurable:l.configurable,writable:l.writable,value:l.initializer?l.initializer.call(i):void 0})}get hasAttributionData(){return!(this.args.mountPath||!this.totalUsageCounts.clients)}get namespaceMountAttribution(){const{activity:e}=this.args,t=this.namespacePathForFilter
return e?.byNamespace?.find((e=>(0,i.sanitizePath)(e.label)===t))?.mounts||[]}},c=a.prototype,d="flags",p=[l.service],f={configurable:!0,enumerable:!0,writable:!0,initializer:null},h={},Object.keys(f).forEach((function(e){h[e]=f[e]})),h.enumerable=!!h.enumerable,h.configurable=!!h.configurable,("value"in h||h.initializer)&&(h.writable=!0),h=p.slice().reverse().reduce((function(e,t){return t(c,d,e)||e}),h),m&&void 0!==h.initializer&&(h.value=h.initializer?h.initializer.call(m):void 0,h.initializer=void 0),o=void 0===h.initializer?(Object.defineProperty(c,d,h),null):h,a)
var c,d,p,f,m,h;(0,t.setComponentTemplate)(s,u)})),define("vault/components/clients/page/sync",["exports","@ember/component","vault/components/clients/activity","@ember/service","@ember/template-factory"],(function(e,t,n,l,i){var r,a
function o(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e
var n=e[Symbol.toPrimitive]
if(void 0!==n){var l=n.call(e,t||"default")
if("object"!=typeof l)return l
throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string")
return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
const s=(0,i.createTemplateFactory)({id:"tKkl4VW/",block:'[[[41,[30,0,["flags","secretsSyncIsActivated"]],[[[41,[28,[37,1],[[30,0,["byMonthActivityData"]]],null],[[[1,"    "],[8,[39,2],[[24,0,"is-shadowless"]],[["@title","@message"],["No secrets sync clients",[29,["There is no sync data available for this ",[52,[30,0,["isDateRange"]],"date range","month"],"."]]]],null],[1,"\\n"]],[]],[[[41,[30,0,["isDateRange"]],[[[1,"    "],[8,[39,3],[[24,0,"no-legend"]],[["@title","@description","@timestamp","@hasChartData"],[[30,0,["title"]],[30,0,["description"]],[30,1,["responseTimestamp"]],true]],[["subTitle","chart"],[[[[1,"\\n        "],[8,[39,4],null,[["@label","@subText","@value","@tooltipText","@size"],["Total sync clients","The total number of secrets synced from Vault to other destinations during this date range.",[30,0,["totalUsageCounts","secret_syncs"]],"This number is the total for the queried date range. The chart displays a monthly breakdown of total sync clients per month.","l"]],null],[1,"\\n      "]],[]],[[[1,"\\n        "],[8,[39,5],null,[["@chartTitle","@data","@dataKey","@chartHeight"],[[30,0,["title"]],[30,0,["byMonthActivityData"]],"secret_syncs",200]],null],[1,"\\n      "]],[]]]]],[1,"\\n\\n"],[41,[30,0,["totalUsageCounts","secret_syncs"]],[[[1,"      "],[8,[39,3],[[24,0,"no-legend"]],[["@title","@description","@timestamp","@hasChartData"],["Monthly new","Secrets sync clients which interacted with Vault for the first time each month. Each bar represents the total new sync clients for that month.",[30,1,["responseTimestamp"]],true]],[["stats","chart"],[[[[1,"\\n"],[44,[[28,[30,0,["average"]],[[30,0,["byMonthNewClients"]],"secret_syncs"],null]],[[[41,[30,2],[[[1,"              "],[8,[39,4],[[24,0,"chart-subTitle has-top-padding-l"]],[["@label","@value","@size"],["Average new sync clients per month",[30,2],"m"]],null],[1,"\\n"]],[]],null]],[2]]],[1,"        "]],[]],[[[1,"\\n          "],[8,[39,5],null,[["@chartTitle","@data","@dataKey","@chartHeight"],["Monthly new",[30,0,["byMonthNewClients"]],"secret_syncs",200]],null],[1,"\\n        "]],[]]]]],[1,"\\n"]],[]],null]],[]],[[[1,"    "],[8,[39,7],null,[["@title","@description"],[[30,0,["title"]],[30,0,["description"]]]],[["default"],[[[[1,"\\n      "],[8,[39,4],[[24,0,"column"]],[["@label","@value","@size"],["Total sync clients",[30,0,["totalUsageCounts","secret_syncs"]],"l"]],null],[1,"\\n    "]],[]]]]],[1,"\\n  "]],[]]]],[]]]],[]],[[[1,"  "],[8,[39,2],[[24,0,"is-shadowless"]],[["@title","@message"],["No Secrets Sync clients","No data is available because Secrets Sync has not been activated."]],[["default"],[[[[1,"\\n    "],[8,[39,8],null,[["@icon","@iconPosition","@text","@route"],["chevron-right","trailing","Activate Secrets Sync","vault.cluster.sync.secrets.overview"]],null],[1,"\\n  "]],[]]]]],[1,"\\n"]],[]]]],["@activity","avg"],false,["if","not","empty-state","clients/chart-container","stat-text","clients/charts/vertical-bar-basic","let","clients/usage-stats","hds/link/standalone"]]',moduleName:"vault/components/clients/page/sync.hbs",isStrictMode:!1})
let u=e.default=(r=class extends n.default{constructor(...e){var t,n,l,i
super(...e),t=this,n="flags",i=this,(l=a)&&Object.defineProperty(t,n,{enumerable:l.enumerable,configurable:l.configurable,writable:l.writable,value:l.initializer?l.initializer.call(i):void 0}),o(this,"title","Secrets sync usage"),o(this,"description","This data can be used to understand how many secrets sync clients have been used for this date range. Each Vault secret that is synced to at least one destination counts as one Vault client.")}},c=r.prototype,d="flags",p=[l.service],f={configurable:!0,enumerable:!0,writable:!0,initializer:null},h={},Object.keys(f).forEach((function(e){h[e]=f[e]})),h.enumerable=!!h.enumerable,h.configurable=!!h.configurable,("value"in h||h.initializer)&&(h.writable=!0),h=p.slice().reverse().reduce((function(e,t){return t(c,d,e)||e}),h),m&&void 0!==h.initializer&&(h.value=h.initializer?h.initializer.call(m):void 0,h.initializer=void 0),a=void 0===h.initializer?(Object.defineProperty(c,d,h),null):h,r)
var c,d,p,f,m,h;(0,t.setComponentTemplate)(s,u)})),define("vault/components/clients/page/token",["exports","@ember/component","vault/components/clients/activity","@ember/template-factory"],(function(e,t,n,l){function i(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e
var n=e[Symbol.toPrimitive]
if(void 0!==n){var l=n.call(e,t||"default")
if("object"!=typeof l)return l
throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string")
return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
const r=(0,l.createTemplateFactory)({id:"2WyhT9gB",block:'[[[41,[28,[37,1],[[30,0,["byMonthActivityData"]],[30,0,["isDateRange"]]],null],[[[1,"  "],[8,[39,2],null,[["@title","@description","@timestamp","@legend","@hasChartData"],["Entity/Non-entity clients usage","This data can be used to understand how many entity and non-entity clients are using Vault each month for this date range. Each client is counted once per month.",[30,1,["responseTimestamp"]],[30,0,["legend"]],true]],[["subTitle","chart"],[[[[1,"\\n      "],[8,[39,3],null,[["@label","@subText","@value","@tooltipText","@size"],["Total clients","The total number of entity and non-entity clients for this date range.",[30,0,["tokenStats","total"]],"This number is the total for the queried date range. The chart displays a monthly breakdown of total clients per month.","l"]],null],[1,"\\n    "]],[]],[[[1,"\\n      "],[8,[39,4],null,[["@chartTitle","@data","@chartLegend","@chartHeight"],["Entity/Non-entity clients usage",[30,0,["byMonthActivityData"]],[30,0,["legend"]],250]],null],[1,"\\n    "]],[]]]]],[1,"\\n\\n  "],[8,[39,2],[[16,0,[52,[51,[30,0,["hasNewClients"]]],"no-legend"]]],[["@title","@description","@timestamp","@legend","@hasChartData"],["Monthly new","Entity or non-entity clients which interacted with Vault for the first time during this date range. Each bar represents the total new clients for that month.",[30,1,["responseTimestamp"]],[30,0,["legend"]],[30,0,["hasNewClients"]]]],[["stats","chart","emptyState"],[[[[1,"\\n      "],[8,[39,3],[[24,0,"chart-subTitle has-top-padding-l"]],[["@label","@value","@size"],["Average new entity clients per month",[28,[30,0,["average"]],[[30,0,["byMonthNewClients"]],"entity_clients"],null],"m"]],null],[1,"\\n\\n      "],[8,[39,3],[[24,0,"data-details-top has-top-padding-l"]],[["@label","@value","@size"],["Average new non-entity clients per month",[28,[30,0,["average"]],[[30,0,["byMonthNewClients"]],"non_entity_clients"],null],"m"]],null],[1,"\\n    "]],[]],[[[1,"\\n      "],[8,[39,4],null,[["@chartTitle","@data","@chartLegend","@chartHeight"],["Monthly new",[30,0,["byMonthNewClients"]],[30,0,["legend"]],250]],null],[1,"\\n    "]],[]],[[[1,"\\n      "],[8,[39,6],[[24,0,"is-shadowless"]],[["@title","@subTitle","@bottomBorder"],["No new clients",[29,["There is no new client data available for this ",[52,[30,0,["countsController","mountPath"]],"auth method","namespace"]," in this date range."]],true]],null],[1,"\\n    "]],[]]]]],[1,"\\n"]],[]],[[[1,"  "],[8,[39,7],null,[["@title","@description"],["Entity/Non-entity usage",[29,["Client counts for this\\n    ",[52,[30,2],"mount","namespace and all its children"],".\\n    ",[52,[30,0,["isCurrentMonth"]],"Only totals are available when viewing the current month. To see a breakdown of new and total clients for this month, select the \'Current Billing Period\' filter."]]]]],[["default"],[[[[1,"\\n    "],[8,[39,3],[[24,0,"column"]],[["@label","@value","@size","@subText"],["Total clients",[30,0,["tokenStats","total"]],"l","The number of clients which interacted with Vault during this month. This is Vault’s primary billing metric."]],null],[1,"\\n    "],[8,[39,3],[[24,0,"column"]],[["@label","@value","@size","@subText"],["Entity",[30,0,["tokenStats","entity_clients"]],"l","Representations of a particular user, client, or application that created a token via login."]],null],[1,"\\n    "],[8,[39,3],[[24,0,"column"]],[["@label","@value","@size","@subText"],["Non-entity",[30,0,["tokenStats","non_entity_clients"]],"l","Clients created with a shared set of permissions, but not associated with an entity."]],null],[1,"\\n  "]],[]]]]],[1,"\\n"]],[]]]],["@activity","@mountPath"],false,["if","and","clients/chart-container","stat-text","clients/charts/vertical-bar-stacked","unless","empty-state","clients/usage-stats"]]',moduleName:"vault/components/clients/page/token.hbs",isStrictMode:!1})
class a extends n.default{constructor(...e){super(...e),i(this,"legend",[{key:"entity_clients",label:"entity clients"},{key:"non_entity_clients",label:"non-entity clients"}])}calculateClientAverages(e){return["entity_clients","non_entity_clients"].reduce(((t,n)=>t+(this.average(e,n)||0)),0)}get hasNewClients(){return this.byMonthNewClients.find((e=>e.entity_clients||e.non_entity_clients))}get tokenStats(){if(this.totalUsageCounts){const{entity_clients:e,non_entity_clients:t}=this.totalUsageCounts
return{total:e+t,entity_clients:e,non_entity_clients:t}}return null}}e.default=a,(0,t.setComponentTemplate)(r,a)})),define("vault/components/clients/running-total",["exports","@ember/component","@glimmer/component","@ember/template-factory"],(function(e,t,n,l){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
const i=(0,l.createTemplateFactory)({id:"wvl0ktZr",block:'[[[41,[28,[37,1],[[30,1,["length"]],1],null],[[[1,"  "],[8,[39,2],null,[["@title","@description","@timestamp","@hasChartData"],["Vault client counts",[30,0,["chartContainerText"]],[30,2],true]],[["subTitle","stats","chart","legend"],[[[[1,"\\n      "],[8,[39,3],null,[["@label","@subText","@value","@size","@tooltipText"],["Running client total","The number of clients which interacted with Vault during this date range.",[30,3,["clients"]],"l","This number is the total for the queried date range. The chart displays a monthly breakdown of total clients per month."]],null],[1,"\\n    "]],[]],[[[1,"\\n      "],[10,0],[14,0,"data-details-top has-top-padding-l"],[12],[1,"\\n        "],[10,0],[14,0,"is-flex-row"],[12],[1,"\\n          "],[8,[39,3],null,[["@label","@value","@size"],["Entity",[30,3,["entity_clients"]],"m"]],null],[1,"\\n          "],[8,[39,3],[[24,0,"has-left-margin-l"]],[["@label","@value","@size"],["Non-entity",[30,3,["non_entity_clients"]],"m"]],null],[1,"\\n        "],[13],[1,"\\n      "],[13],[1,"\\n      "],[10,0],[14,0,"data-details-bottom is-flex-row"],[12],[1,"\\n        "],[8,[39,3],null,[["@label","@value","@size"],["ACME",[30,3,["acme_clients"]],"m"]],null],[1,"\\n"],[41,[30,4],[[[1,"          "],[8,[39,3],[[24,0,"has-left-margin-l"]],[["@label","@value","@size"],["Secret sync",[30,3,["secret_syncs"]],"m"]],null],[1,"\\n"]],[]],null],[1,"      "],[13],[1,"\\n    "]],[]],[[[1,"\\n      "],[8,[39,4],null,[["@data","@legend","@upgradeData","@chartHeight","@chartTitle"],[[30,0,["runningTotalData"]],[30,0,["chartLegend"]],[30,5],"250","Vault client counts"]],null],[1,"\\n    "]],[]],[[[1,"\\n"],[42,[28,[37,6],[[28,[37,6],[[30,0,["chartLegend"]]],null]],null],null,[[[1,"        "],[10,1],[15,0,[29,["legend-colors dot-",[30,6,["key"]]]]],[12],[13],[10,1],[14,0,"legend-label"],[12],[1,[28,[35,7],[[30,6,["label"]]],null]],[13],[1,"\\n"]],[6]],null],[1,"    "]],[]]]]],[1,"\\n"]],[]],[[[44,[[28,[37,9],[[30,1],"0"],null]],[[[41,[28,[37,10],[[30,8],[30,7,["new_clients","clients"]]],null],[[[1,"      "],[8,[39,11],null,[["@title","@description"],["Vault client counts",[30,0,["chartContainerText"]]]],[["default"],[[[[1,"\\n        "],[10,0],[14,0,"column"],[12],[1,"\\n          "],[8,[39,3],[[24,0,"has-bottom-margin-l"]],[["@label","@subText","@value","@size"],["New clients","This is the number of clients which were created in Vault for the first time in the selected month.",[30,7,["new_clients","clients"]],"l"]],null],[1,"\\n          "],[10,0],[14,0,"flex row-wrap gap-36"],[12],[1,"\\n            "],[8,[39,3],null,[["@label","@value","@size"],["Entity",[30,7,["new_clients","entity_clients"]],"m"]],null],[1,"\\n            "],[8,[39,3],null,[["@label","@value","@size"],["Non-entity",[30,7,["new_clients","non_entity_clients"]],"m"]],null],[1,"\\n            "],[8,[39,3],null,[["@label","@value","@size"],["ACME",[30,7,["new_clients","acme_clients"]],"m"]],null],[1,"\\n"],[41,[30,4],[[[1,"              "],[8,[39,3],null,[["@label","@value","@size"],["Secret sync",[30,7,["new_clients","secret_syncs"]],"m"]],null],[1,"\\n"]],[]],null],[1,"          "],[13],[1,"\\n        "],[13],[1,"\\n        "],[10,0],[14,0,"column"],[12],[1,"\\n          "],[8,[39,3],[[24,0,"has-bottom-margin-l"]],[["@label","@subText","@value","@size"],["Total monthly clients","This is the number of total clients which used Vault for the given month, both new and previous.",[30,7,["clients"]],"l"]],null],[1,"\\n          "],[10,0],[14,0,"flex row-wrap gap-36"],[12],[1,"\\n            "],[8,[39,3],null,[["@label","@value","@size"],["Entity",[30,7,["entity_clients"]],"m"]],null],[1,"\\n            "],[8,[39,3],null,[["@label","@value","@size"],["Non-entity",[30,7,["non_entity_clients"]],"m"]],null],[1,"\\n            "],[8,[39,3],null,[["@label","@value","@size"],["ACME",[30,7,["acme_clients"]],"m"]],null],[1,"\\n"],[41,[30,4],[[[1,"              "],[8,[39,3],[[24,0,"column-start-4"]],[["@label","@value","@size"],["Secret sync",[30,7,["secret_syncs"]],"m"]],null],[1,"\\n"]],[]],null],[1,"          "],[13],[1,"\\n        "],[13],[1,"\\n      "]],[]]]]],[1,"\\n"]],[]],[[[1,"      "],[8,[39,11],null,[["@title","@description"],["Total usage",[29,["These totals are within this ",[28,[37,12],[[30,9],"namespace and all its children"],null],". ",[52,[30,10],"Only totals are available when viewing the current month. To see a breakdown of new and total clients for this month, select the \'Current billing period\' filter."]]]]],[["default"],[[[[1,"\\n        "],[8,[39,3],[[24,0,"column"]],[["@label","@value","@size","@subText"],["Total clients",[30,3,["clients"]],"l","The number of clients which interacted with Vault during this month. This is Vault’s primary billing metric."]],null],[1,"\\n        "],[8,[39,3],[[24,0,"column"]],[["@label","@value","@size","@subText"],["Entity",[30,3,["entity_clients"]],"l","Representations of a particular user, client, or application that created a token via login."]],null],[1,"\\n        "],[8,[39,3],[[24,0,"column"]],[["@label","@value","@size","@subText"],["Non-entity",[30,3,["non_entity_clients"]],"l","Clients created with a shared set of permissions, but not associated with an entity."]],null],[1,"\\n        "],[8,[39,3],[[24,0,"column"]],[["@label","@value","@size","@subText"],["ACME",[30,3,["acme_clients"]],"l","Each ACME request counts as one client."]],null],[1,"\\n"],[41,[30,4],[[[1,"          "],[8,[39,3],[[24,0,"column"]],[["@label","@value","@size","@subText"],["Secret sync",[30,3,["secret_syncs"]],"l","A secret with a configured sync destination qualifies as a unique and active client."]],null],[1,"\\n"]],[]],null],[1,"      "]],[]]]]],[1,"\\n"]],[]]]],[7]]]],[]]]],["@byMonthActivityData","@responseTimestamp","@runningTotals","@isSecretsSyncActivated","@upgradeData","l","singleMonthData","@isHistoricalMonth","@mountPath","@isCurrentMonth"],false,["if","gt","clients/chart-container","stat-text","clients/charts/vertical-bar-grouped","each","-track-array","capitalize","let","get","and","clients/usage-stats","or"]]',moduleName:"vault/components/clients/running-total.hbs",isStrictMode:!1})
class r extends n.default{get chartContainerText(){const{isSecretsSyncActivated:e}=this.args
return`The total clients in the specified date range, displayed per month. This includes entity, non-entity${e?", ACME and secrets sync clients":" and ACME clients"}. The total client count number is an important consideration for Vault billing.`}get runningTotalData(){return this.args.byMonthActivityData.map((e=>({...e,new_clients:e.new_clients?.clients})))}get chartLegend(){return[{key:"clients",label:"total clients"},{key:"new_clients",label:"new clients"}]}}e.default=r,(0,t.setComponentTemplate)(i,r)})),define("vault/components/clients/usage-stats",["exports","@ember/component","@ember/component/template-only","@ember/template-factory"],(function(e,t,n,l){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
const i=(0,l.createTemplateFactory)({id:"qLySXRJF",block:'[[[8,[39,0],[[24,0,"has-padding-m has-bottom-margin-m"]],[["@level","@hasBorder"],["base",true]],[["default"],[[[[1,"\\n  "],[10,0],[14,0,"flex row-wrap space-between"],[12],[1,"\\n    "],[8,[39,1],null,[["@tag","@weight","@size"],["h3","semibold","400"]],[["default"],[[[[1,"\\n      "],[1,[30,1]],[1,"\\n    "]],[]]]]],[1,"\\n    "],[8,[39,2],[[24,0,"has-bottom-margin-s"]],[["@href","@text","@icon","@iconPosition"],[[28,[37,3],["/vault/tutorials/monitoring/usage-metrics"],null],"Usage metrics tutorial","learn-link","trailing"]],null],[1,"\\n  "],[13],[1,"\\n"],[41,[30,2],[[[1,"    "],[8,[39,5],null,[["@tag"],["p"]],[["default"],[[[[1,"\\n      "],[1,[30,2]],[1,"\\n    "]],[]]]]],[1,"\\n"]],[]],null],[1,"\\n  "],[10,"hr"],[14,0,"has-background-gray-100 has-bottom-margin-m"],[12],[13],[1,"\\n\\n  "],[10,0],[14,0,"columns"],[12],[1,"\\n    "],[18,3,null],[1,"\\n  "],[13],[1,"\\n"]],[]]]]]],["@title","@description","&default"],false,["hds/card/container","hds/text/display","hds/link/standalone","doc-link","if","hds/text/body","yield"]]',moduleName:"vault/components/clients/usage-stats.hbs",isStrictMode:!1})
e.default=(0,t.setComponentTemplate)(i,(0,n.default)())})),define("vault/components/confirm-action",["exports","core/components/confirm-action"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.default}})})),define("vault/components/confirm-modal",["exports","core/components/confirm-modal"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.default}})})),define("vault/components/confirmation-modal",["exports","core/components/confirmation-modal"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.default}})})),define("vault/components/console/command-input",["exports","@ember/component","core/utils/key-codes"],(function(e,t,n){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default=t.default.extend({onExecuteCommand(){},onFullscreen(){},onValueUpdate(){},onShiftCommand(){},value:null,isFullscreen:null,actions:{handleKeyUp(e){const t=e.keyCode,l=e.target.value
switch(t){case n.default.ENTER:this.onExecuteCommand(l)
break
case n.default.UP:case n.default.DOWN:this.onShiftCommand(t)
break
default:this.onValueUpdate(l)}},fullscreen(){this.onFullscreen()}}})})),define("vault/components/console/log-json",["exports","@ember/component"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default=t.default.extend({"data-test-component":"console/log-json",attributeBindings:["data-test-component"]})})),define("vault/components/console/log-list",["exports","@ember/object/computed","@ember/component"],(function(e,t,n){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default=n.default.extend({content:null,list:(0,t.reads)("content.keys")})})),define("vault/components/console/log-object",["exports","@ember/string","@ember/component","@ember/object","columnify"],(function(e,t,n,l,i){function r(e){Object.keys(e).forEach((t=>{let n=e[t]
"string"!=typeof n&&(n=JSON.stringify(n)),e[t]=n}))}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,e.stringifyObjectValues=r
e.default=n.default.extend({content:null,columns:(0,l.computed)("content",(function(){const e=this.content
return r(e),(0,i.default)(e,{preserveNewLines:!0,headingTransform:function(e){return(0,t.capitalize)(e)}})}))})})),define("vault/components/console/log-text",["exports","@ember/component"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default=t.default.extend({"data-test-component":"console/log-text",attributeBindings:["data-test-component"]})})),define("vault/components/console/output-log",["exports","@ember/component"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default=t.default.extend({"data-test-component":"console/output-log",attributeBindings:["data-test-component"],log:null})})),define("vault/components/console/ui-panel",["exports","@ember/service","@ember/object/computed","@ember/component","@ember/owner","@ember/runloop","@ember/string","ember-concurrency","@ember/test-waiters","vault/lib/control-group-error","vault/lib/console-helpers"],(function(e,t,n,l,i,r,a,o,s,u,c){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
const d=(0,s.buildWaiter)("web-repl")
e.default=l.default.extend({console:(0,t.service)(),router:(0,t.service)(),controlGroup:(0,t.service)(),store:(0,t.service)(),"data-test-component":"console/ui-panel",attributeBindings:["data-test-component"],classNames:"console-ui-panel",classNameBindings:["isFullscreen:fullscreen"],isFullscreen:!1,inputValue:null,cliLog:(0,n.alias)("console.log"),didRender(){this._super(...arguments),this.scrollToBottom()},logAndOutput(e,t){this.console.logAndOutput(e,t),(0,r.schedule)("afterRender",(()=>this.scrollToBottom()))},isRunning:(0,n.or)("executeCommand.isRunning","refreshRoute.isRunning"),executeCommand:(0,o.task)((function*(e,t=!1){this.set("inputValue","")
const n=d.beginAsync(),l=this.console
let i
if((0,c.executeUICommand)(e,(e=>this.logAndOutput(e)),{api:()=>this.routeToExplore.perform(e),clearall:()=>l.clearLog(!0),clear:()=>l.clearLog(),fullscreen:()=>this.toggleProperty("isFullscreen"),refresh:()=>this.refreshRoute.perform()}))return void d.endAsync(n)
try{i=(0,c.parseCommand)(e)}catch(b){return t&&this.logAndOutput(e,{type:"help"}),void d.endAsync(n)}const{method:r,flagArray:o,path:s,dataArray:p}=i,f=(0,c.extractFlagsFromStrings)(o,r),m=(0,c.extractDataFromStrings)(p),h=(0,c.formattedErrorFromInput)(s,r,f,p)
if(h)return this.logAndOutput(e,h),void d.endAsync(n)
try{const t=yield l[(0,a.camelize)(r)].call(l,s,m,f)
this.logAndOutput(e,(0,c.logFromResponse)(t,s,r,f))}catch(y){if(y instanceof u.default)return d.endAsync(n),this.logAndOutput(e,this.controlGroup.logFromError(y))
this.logAndOutput(e,(0,c.logFromError)(y,s,r))}d.endAsync(n)})),refreshRoute:(0,o.task)((function*(){const e=(0,i.getOwner)(this).lookup("router:main").currentRouteName
try{this.store.clearAllDatasets(),yield this.router.transitionTo(e),this.logAndOutput(null,{type:"success",content:"The current screen has been refreshed!"})}catch(t){this.logAndOutput(null,{type:"error",content:"The was a problem refreshing the current screen."})}})),routeToExplore:(0,o.task)((function*(e){const t=e.replace("api","").trim()
let n="Welcome to the Vault API explorer! \nYou can search for endpoints, see what parameters they accept, and even execute requests with your current token."
t&&(n=`Welcome to the Vault API explorer! \nWe've filtered the list of endpoints for '${t}'.`)
try{yield this.router.transitionTo("vault.cluster.tools.open-api-explorer",{queryParams:{filter:t}}),this.logAndOutput(null,{type:"success",content:n})}catch(l){"TransitionAborted"===l.message?this.logAndOutput(null,{type:"success",content:n}):this.logAndOutput(null,{type:"error",content:"There was a problem navigating to the api explorer."})}})),shiftCommandIndex(e){this.console.shiftCommandIndex(e,(e=>{this.set("inputValue",e)}))},scrollToBottom(){this.element.scrollTop=this.element.scrollHeight},actions:{closeConsole(){this.set("console.isOpen",!1)},toggleFullscreen(){this.toggleProperty("isFullscreen")},executeCommand(e){this.executeCommand.perform(e,!0)},shiftCommandIndex(e){this.shiftCommandIndex(e)}}})})),define("vault/components/control-group-inline-error",["exports","core/components/control-group-inline-error"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.default}})})),define("vault/components/control-group-success",["exports","@ember/service","@ember/component","ember-concurrency"],(function(e,t,n,l){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default=n.default.extend({router:(0,t.service)(),controlGroup:(0,t.service)(),store:(0,t.service)(),model:null,controlGroupResponse:null,error:null,unwrapData:null,unwrap:(0,l.task)((function*(e){const t=this.store.adapterFor("tools")
this.set("error",null)
try{const n=yield t.toolAction("unwrap",null,{clientToken:e})
this.set("unwrapData",n.auth||n.data),this.controlGroup.deleteControlGroupToken(this.model.id)}catch(n){this.set("error",`Token unwrap failed: ${n.errors[0]}`)}})).drop(),markAndNavigate:(0,l.task)((function*(){this.controlGroup.markTokenForUnwrap(this.model.id)
const{url:e}=this.controlGroupResponse.uiParams
yield this.router.transitionTo(e)})).drop()})})),define("vault/components/control-group",["exports","@ember/service","@ember/object/computed","@ember/component","@ember/object","ember-concurrency"],(function(e,t,n,l,i,r){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default=l.default.extend({tagName:"",auth:(0,t.service)(),controlGroup:(0,t.service)(),model:null,didReceiveAttrs(){this._super(...arguments)
const e=this.model.id,t=this.controlGroup.wrapInfoForAccessor(e)
this.set("controlGroupResponse",t)},currentUserEntityId:(0,n.alias)("auth.authData.entity_id"),currentUserIsRequesting:(0,i.computed)("currentUserEntityId","model.requestEntity.id",(function(){return!!this.model.requestEntity&&this.currentUserEntityId===this.model.requestEntity.id})),currentUserHasAuthorized:(0,i.computed)("currentUserEntityId","model.authorizations.@each.id",(function(){const e=this.model.authorizations||[]
return Boolean(e.find((e=>e.id===this.currentUserEntityId)))})),isSuccess:(0,n.or)("currentUserHasAuthorized","model.approved"),requestorName:(0,i.computed)("currentUserIsRequesting","model.requestEntity",(function(){const e=this.model.requestEntity
return this.currentUserIsRequesting?"You":e&&e.name?e.name:"Someone"})),bannerPrefix:(0,i.computed)("model.approved","currentUserHasAuthorized",(function(){return this.currentUserHasAuthorized?"Thanks!":this.model.approved?"Success!":"Locked"})),bannerText:(0,i.computed)("model.approved","currentUserIsRequesting","currentUserHasAuthorized",(function(){const e=this.model.approved,{currentUserHasAuthorized:t,currentUserIsRequesting:n}=this
return t?"You have given authorization":n&&e?"You have been given authorization":e?"This Control Group has been authorized":n?"The path you requested is locked by a Control Group":"Someone is requesting access to a path locked by a Control Group"})),refresh:(0,r.task)((function*(){try{yield this.model.reload()}catch(e){this.set("errors",e)}})).drop(),authorize:(0,r.task)((function*(){try{yield this.model.save(),yield this.refresh.perform()}catch(e){this.set("errors",e)}})).drop()})})),define("vault/components/copy-secret-dropdown",["exports","core/components/copy-secret-dropdown"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.default}})})),define("vault/components/dashboard/client-count-card",["exports","@ember/component","@glimmer/component","core/utils/timestamp","ember-concurrency","@ember/test-waiters","@glimmer/tracking","@ember/service","core/utils/date-formatters","@ember/template-factory"],(function(e,t,n,l,i,r,a,o,s,u){var c,d,p,f,m
function h(e,t,n,l){n&&Object.defineProperty(e,t,{enumerable:n.enumerable,configurable:n.configurable,writable:n.writable,value:n.initializer?n.initializer.call(l):void 0})}function b(e,t,n,l,i){var r={}
return Object.keys(l).forEach((function(e){r[e]=l[e]})),r.enumerable=!!r.enumerable,r.configurable=!!r.configurable,("value"in r||r.initializer)&&(r.writable=!0),r=n.slice().reverse().reduce((function(n,l){return l(e,t,n)||n}),r),i&&void 0!==r.initializer&&(r.value=r.initializer?r.initializer.call(i):void 0,r.initializer=void 0),void 0===r.initializer?(Object.defineProperty(e,t,r),null):r}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
const y=(0,u.createTemplateFactory)({id:"lKX1+6jN",block:'[[[8,[39,0],[[24,0,"has-padding-l"]],[["@hasBorder"],[true]],[["default"],[[[[1,"\\n  "],[10,0],[14,0,"is-flex-between"],[12],[1,"\\n    "],[10,"h2"],[14,0,"title is-4 has-bottom-margin-xxs"],[12],[1,"\\n      Client count\\n    "],[13],[1,"\\n\\n    "],[8,[39,1],null,[["@route"],["vault.cluster.clients"]],[["default"],[[[[1,"Details"]],[]]]]],[1,"\\n  "],[13],[1,"\\n\\n  "],[10,"hr"],[14,0,"has-background-gray-100"],[12],[13],[1,"\\n\\n"],[41,[30,0,["fetchClientActivity","isRunning"]],[[[1,"    "],[8,[39,3],null,null,null],[1,"\\n"]],[]],[[[41,[30,0,["activityData"]],[[[1,"      "],[10,0],[14,0,"is-grid grid-2-columns grid-gap-2 has-top-margin-m grid-align-items-start is-flex-v-centered"],[12],[1,"\\n        "],[8,[39,4],null,[["@label","@value","@size","@subText"],["Total",[30,0,["activityData","total","clients"]],"l",[30,0,["statSubText","total"]]]],null],[1,"\\n        "],[8,[39,4],null,[["@label","@value","@size","@subText"],["New",[30,0,["currentMonthActivityTotalCount"]],"l",[30,0,["statSubText","new"]]]],null],[1,"\\n      "],[13],[1,"\\n\\n      "],[10,0],[14,0,"has-top-margin-l is-flex-center"],[12],[1,"\\n        "],[8,[39,5],[[16,"disabled",[30,0,["fetchClientActivity","isRunning"]]],[24,0,"has-padding-xxs"],[4,[38,6],["click",[28,[37,7],[[30,0,["fetchClientActivity"]]],null]],null]],[["@text","@isIconOnly","@color","@icon"],["Refresh",true,"tertiary","sync"]],null],[1,"\\n        "],[10,"small"],[14,0,"has-left-margin-xs has-text-grey"],[12],[1,"\\n          Updated\\n          "],[1,[28,[35,8],[[30,0,["updatedAt"]],"MMM d yyyy, h:mm:ss aaa"],[["withTimeZone"],[true]]]],[1,"\\n        "],[13],[1,"\\n      "],[13],[1,"\\n"]],[]],[[[1,"      "],[8,[39,9],null,[["@config"],[[30,0,["activityConfig"]]]],null],[1,"\\n"]],[]]]],[]]]],[]]]]]],[],false,["hds/card/container","link-to","if","vault-logo-spinner","stat-text","hds/button","on","perform","date-format","clients/no-data"]]',moduleName:"vault/components/dashboard/client-count-card.hbs",isStrictMode:!1})
let v=e.default=(c=class extends n.default{constructor(){super(...arguments),h(this,"store",d,this),h(this,"activityData",p,this),h(this,"activityConfig",f,this),h(this,"updatedAt",m,this),this.fetchClientActivity.perform()}get currentMonthActivityTotalCount(){return this.activityData?.byMonth?.lastObject?.new_clients.clients}get statSubText(){const e=e=>(0,s.parseAPITimestamp)(e,"MMM yyyy"),{startTime:t,endTime:n}=this.activityData
return t&&n?{total:`The number of clients in this billing period (${e(t)} - ${e(n)}).`,new:"The number of clients new to Vault in the current month."}:{total:"No total client data available.",new:"No new client data available."}}*fetchClientActivity(e){e&&e.preventDefault(),this.updatedAt=l.default.now().toISOString()
try{this.activityData=yield this.store.findRecord("clients/activity","clients/activity")}catch(t){this.activityConfig=yield this.store.queryRecord("clients/config",{}).catch((()=>null)),this.error=t}}},d=b(c.prototype,"store",[o.service],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),p=b(c.prototype,"activityData",[a.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),f=b(c.prototype,"activityConfig",[a.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),m=b(c.prototype,"updatedAt",[a.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),b(c.prototype,"fetchClientActivity",[i.task,r.waitFor],Object.getOwnPropertyDescriptor(c.prototype,"fetchClientActivity"),c.prototype),c);(0,t.setComponentTemplate)(y,v)})),define("vault/components/dashboard/learn-more-card",["exports","@ember/component","@glimmer/component","@ember/template-factory"],(function(e,t,n,l){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
const i=(0,l.createTemplateFactory)({id:"SFqcGPOl",block:'[[[8,[39,0],[[24,0,"has-padding-l"]],[["@hasBorder"],[true]],[["default"],[[[[1,"\\n  "],[10,"h2"],[14,0,"title is-4 has-bottom-margin-xxs"],[12],[1,"Learn more"],[13],[1,"\\n  "],[10,0],[14,0,"sub-text"],[12],[1,"\\n    Explore the features of Vault and learn advance practices with the following tutorials and documentation.\\n  "],[13],[1,"\\n  "],[10,0],[14,0,"has-top-margin-xs"],[12],[1,"\\n"],[42,[28,[37,2],[[28,[37,2],[[30,0,["learnMoreLinks"]]],null]],null],null,[[[41,[28,[37,4],[[28,[37,5],[[30,1,["requiredFeature"]],[30,2],[28,[37,6],[[30,1,["requiredFeature"]]],null]],null],[28,[37,7],[[30,1,["requiredFeature"]]],null]],null],[[[1,"        "],[8,[39,8],[[24,0,"is-size-8 has-font-weight-normal is-block has-bottom-margin-xxs"]],[["@path"],[[30,1,["link"]]]],[["default"],[[[[1,"\\n          "],[8,[39,9],null,[["@name"],[[30,1,["icon"]]]],null],[1,"\\n          "],[1,[30,1,["title"]]],[1,"\\n        "]],[]]]]],[1,"\\n"]],[]],null],[1,"\\n"]],[1]],null],[1,"  "],[13],[1,"\\n"]],[]]]]]],["learnMoreLink","@isEnterprise"],false,["hds/card/container","each","-track-array","if","or","and","has-feature","not","doc-link","icon"]]',moduleName:"vault/components/dashboard/learn-more-card.hbs",isStrictMode:!1})
class r extends n.default{get learnMoreLinks(){return[{link:"/vault/tutorials/secrets-management",icon:"docs-link",title:"Secrets Management"},{link:"/vault/tutorials/monitoring",icon:"docs-link",title:"Monitor & Troubleshooting"},{link:"/vault/tutorials/adp/transform",icon:"learn-link",title:"Advanced Data Protection: Transform engine",requiredFeature:"Transform Secrets Engine"},{link:"/vault/tutorials/secrets-management/pki-engine",icon:"learn-link",title:"Build your own Certificate Authority (CA)"}]}}e.default=r,(0,t.setComponentTemplate)(i,r)})),define("vault/components/dashboard/overview",["exports","@ember/component","@ember/component/template-only","@ember/template-factory"],(function(e,t,n,l){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
const i=(0,l.createTemplateFactory)({id:"UFKpi74+",block:'[[[8,[39,0],null,[["@version"],[[30,1]]],null],[1,"\\n\\n"],[10,0],[14,0,"has-bottom-margin-xl"],[12],[1,"\\n  "],[10,0],[14,0,"is-flex-row gap-24"],[12],[1,"\\n"],[41,[28,[37,2],[[30,1,["isEnterprise"]],[30,2]],null],[[[1,"      "],[10,0],[14,0,"is-flex-column is-flex-1 gap-24"],[12],[1,"\\n"],[41,[28,[37,3],["clients"],[["routeParams"],["activity"]]],[[[1,"          "],[8,[39,4],null,null,null],[1,"\\n"]],[]],null],[41,[28,[37,2],[[28,[37,3],["status"],[["routeParams"],["replication"]]],[28,[37,5],[[28,[37,6],[[30,3]],null]],null]],null],[[[1,"          "],[8,[39,7],null,[["@replication","@version","@refresh","@updatedAt"],[[30,3],[30,1],[30,4],[30,5]]],null],[1,"\\n"]],[]],null],[1,"        "],[8,[39,8],null,[["@secretsEngines"],[[30,6]]],null],[1,"\\n      "],[13],[1,"\\n\\n      "],[10,0],[14,0,"is-flex-column is-flex-1 gap-24"],[12],[1,"\\n        "],[8,[39,9],null,[["@secretsEngines"],[[30,6]]],null],[1,"\\n"],[41,[30,7],[[[1,"          "],[8,[39,10],null,[["@vaultConfiguration"],[[30,7]]],null],[1,"\\n"]],[]],null],[1,"        "],[10,0],[12],[1,"\\n          "],[8,[39,11],null,[["@isEnterprise"],[[30,1,["isEnterprise"]]]],null],[1,"\\n          "],[8,[39,12],null,null,null],[1,"\\n        "],[13],[1,"\\n      "],[13],[1,"\\n\\n"]],[]],[[[1,"      "],[10,0],[14,0,"is-flex-column is-flex-1 gap-24"],[12],[1,"\\n        "],[8,[39,8],null,[["@secretsEngines"],[[30,6]]],null],[1,"\\n        "],[10,0],[12],[1,"\\n          "],[8,[39,11],null,[["@isEnterprise"],[[30,1,["isEnterprise"]]]],null],[1,"\\n          "],[8,[39,12],null,null,null],[1,"\\n        "],[13],[1,"\\n      "],[13],[1,"\\n      "],[10,0],[14,0,"is-flex-column is-flex-1 gap-24"],[12],[1,"\\n        "],[8,[39,9],null,[["@secretsEngines"],[[30,6]]],null],[1,"\\n"],[41,[30,7],[[[1,"          "],[8,[39,10],null,[["@vaultConfiguration"],[[30,7]]],null],[1,"\\n"]],[]],null],[1,"      "],[13],[1,"\\n"]],[]]],[1,"  "],[13],[1,"\\n"],[13]],["@version","@isRootNamespace","@replication","@refreshModel","@replicationUpdatedAt","@secretsEngines","@vaultConfiguration"],false,["dashboard/vault-version-title","if","and","has-permission","dashboard/client-count-card","not","is-empty-value","dashboard/replication-card","dashboard/secrets-engines-card","dashboard/quick-actions-card","dashboard/vault-configuration-details-card","dashboard/learn-more-card","dashboard/survey-link-text"]]',moduleName:"vault/components/dashboard/overview.hbs",isStrictMode:!1})
e.default=(0,t.setComponentTemplate)(i,(0,n.default)())})),define("vault/components/dashboard/quick-actions-card",["exports","@ember/component","@glimmer/component","@ember/object","@glimmer/tracking","@ember/service","kv/utils/kv-breadcrumbs","@ember/template-factory"],(function(e,t,n,l,i,r,a,o){var s,u,c,d,p
function f(e,t,n,l){n&&Object.defineProperty(e,t,{enumerable:n.enumerable,configurable:n.configurable,writable:n.writable,value:n.initializer?n.initializer.call(l):void 0})}function m(e,t,n,l,i){var r={}
return Object.keys(l).forEach((function(e){r[e]=l[e]})),r.enumerable=!!r.enumerable,r.configurable=!!r.configurable,("value"in r||r.initializer)&&(r.writable=!0),r=n.slice().reverse().reduce((function(n,l){return l(e,t,n)||n}),r),i&&void 0!==r.initializer&&(r.value=r.initializer?r.initializer.call(i):void 0,r.initializer=void 0),void 0===r.initializer?(Object.defineProperty(e,t,r),null):r}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
const h=(0,o.createTemplateFactory)({id:"M6azggES",block:'[[[8,[39,0],[[24,0,"has-padding-l"]],[["@hasBorder"],[true]],[["default"],[[[[1,"\\n  "],[10,"h2"],[14,0,"title is-4"],[12],[1,"Quick actions"],[13],[1,"\\n"],[41,[30,0,["filteredSecretEngines"]],[[[1,"    "],[10,0],[14,0,"has-top-margin-m has-bottom-margin-m"],[12],[1,"\\n      "],[10,"h3"],[14,0,"title is-marginless is-6"],[12],[1,"Secrets engines"],[13],[1,"\\n      "],[10,2],[14,0,"is-size-8 has-top-margin-xxs has-bottom-margin-s has-text-grey"],[12],[1,"Supported engines include databases, KV\\n        version 2, and PKI."],[13],[1,"\\n      "],[8,[39,2],[[24,0,"is-marginless"]],[["@id","@options","@selectLimit","@disallowNewItems","@fallbackComponent","@onChange","@placeholder","@displayInherit","@shouldRenderName","@passObject","@objectKeys"],["secrets-engines-select",[30,0,["mountOptions"]],"1",true,"input-search",[30,0,["handleSearchEngineSelect"]],"Type to select a mount",true,true,true,[28,[37,3],["type","version"],null]]],null],[1,"\\n    "],[13],[1,"\\n\\n"],[41,[30,0,["selectedEngine"]],[[[1,"      "],[10,"h3"],[14,1,"action-select-title"],[14,0,"title is-6"],[12],[1,"Action"],[13],[1,"\\n      "],[8,[39,4],null,[["@name","@options","@isFullwidth","@selectedValue","@onChange","@noDefault","@ariaLabel"],["action-select",[30,0,["actionOptions"]],true,[30,0,["selectedAction"]],[30,0,["setSelectedAction"]],true,"Action"]],null],[1,"\\n\\n"],[41,[30,0,["searchSelectParams","model"]],[[[41,[28,[37,5],[[30,0,["selectedEngine","type"]],"kv"],null],[[[1,"          "],[8,[39,6],null,[["@label","@value","@mountPath","@onChange"],["Secret Path",[30,0,["paramValue"]],[30,0,["selectedEngine","id"]],[28,[37,7],[[28,[37,8],[[30,0,["paramValue"]]],null]],null]]],null],[1,"\\n"]],[]],[[[1,"          "],[10,"h3"],[14,0,"title is-6"],[12],[1,[30,0,["searchSelectParams","title"]]],[13],[1,"\\n\\n          "],[8,[39,2],[[24,0,"is-flex-grow-1"]],[["@ariaLabel","@selectLimit","@models","@placeholder","@disallowNewItems","@onChange","@fallbackComponent","@disabled","@nameKey","@queryObject","@objectKeys","@passObject","@shouldRenderName"],[[30,0,["searchSelectParams","title"]],"1",[28,[37,3],[[30,0,["searchSelectParams","model"]]],null],[30,0,["searchSelectParams","placeholder"]],true,[30,0,["handleActionSelect"]],"input-search",[28,[37,9],[[30,0,["searchSelectParams","model"]]],null],[30,0,["searchSelectParams","nameKey"]],[30,0,["searchSelectParams","queryObject"]],[30,0,["searchSelectParams","objectKeys"]],true,[30,0,["searchSelectParams","nameKey"]]]],null],[1,"\\n"]],[]]],[1,"        "],[10,0],[12],[1,"\\n          "],[8,[39,10],[[24,0,"has-top-margin-m"],[16,"disabled",[28,[37,9],[[28,[37,11],[[30,0,["selectedAction"]],[30,0,["selectedEngine"]],[30,0,["paramValue"]]],null]],null]],[4,[38,12],["click",[30,0,["navigateToPage"]]],null]],[["@text"],[[30,0,["searchSelectParams","buttonText"]]]],null],[1,"\\n        "],[13],[1,"\\n"]],[]],null]],[]],[[[1,"      "],[8,[39,13],null,[["@title","@message"],["No mount selected","Select a mount above to get started."]],null],[1,"\\n"]],[]]]],[]],[[[1,"\\n    "],[8,[39,13],null,[["@title","@message"],["Welcome to quick actions","Access secret engine actions easily. Enable a compatible secret engine (such as database, KV version 2, or PKI) to get started."]],[["default"],[[[[1,"\\n      "],[8,[39,14],null,[["@icon","@iconPosition","@text","@route"],["chevron-right","trailing","Enable a secrets engine","vault.cluster.settings.mount-secret-backend"]],null],[1,"\\n    "]],[]]]]],[1,"\\n"]],[]]]],[]]]]]],[],false,["hds/card/container","if","search-select","array","select","eq","kv-suggestion-input","fn","mut","not","hds/button","and","on","empty-state","hds/link/standalone"]]',moduleName:"vault/components/dashboard/quick-actions-card.hbs",isStrictMode:!1}),b=["pki","database"]
let y=e.default=(s=class extends n.default{constructor(...e){super(...e),f(this,"router",u,this),f(this,"selectedEngine",c,this),f(this,"selectedAction",d,this),f(this,"paramValue",p,this)}get actionOptions(){switch(this.selectedEngine.type){case"kv":return["Find KV secrets"]
case"database":return["Generate credentials for database"]
case"pki":return["Issue certificate","View certificate","View issuer"]
default:return[]}}get searchSelectParams(){switch(this.selectedAction){case"Find KV secrets":return{title:"Secret path",subText:"Path of the secret you want to read.",buttonText:"Read secrets",model:"kv/metadata",route:"vault.cluster.secrets.backend.kv.secret.index",nameKey:"path",queryObject:{pathToSecret:"",backend:this.selectedEngine.id},objectKeys:["path","id"]}
case"Generate credentials for database":return{title:"Role to use",buttonText:"Generate credentials",model:"database/role",route:"vault.cluster.secrets.backend.credentials",queryObject:{backend:this.selectedEngine.id}}
case"Issue certificate":return{title:"Role to use",placeholder:"Type to find a role",buttonText:"Issue leaf certificate",model:"pki/role",route:"vault.cluster.secrets.backend.pki.roles.role.generate",queryObject:{backend:this.selectedEngine.id}}
case"View certificate":return{title:"Certificate serial number",placeholder:"33:a3:...",buttonText:"View certificate",model:"pki/certificate/base",route:"vault.cluster.secrets.backend.pki.certificates.certificate.details",queryObject:{backend:this.selectedEngine.id}}
case"View issuer":return{title:"Issuer",placeholder:"Type issuer name or ID",buttonText:"View issuer",model:"pki/issuer",route:"vault.cluster.secrets.backend.pki.issuers.issuer.details",nameKey:"issuerName",queryObject:{backend:this.selectedEngine.id},objectKeys:["id","issuerName"]}
default:return{placeholder:"Please select an action above",buttonText:"Select an action",model:""}}}get filteredSecretEngines(){return this.args.secretsEngines?.filter((e=>"kv"===e.type&&2==e.version||b.includes(e.type)))}get mountOptions(){return this.filteredSecretEngines?.map((e=>{const{id:t,type:n}=e
return{name:t,type:n,id:t}}))}handleSearchEngineSelect([e]){this.selectedEngine=e,this.selectedAction=null,this.paramValue=null}setSelectedAction(e){this.selectedAction=e,this.paramValue=null}handleActionSelect(e){Array.isArray(e)?this.paramValue=e[0]:this.paramValue=e}navigateToPage(){let e=this.searchSelectParams.route,t=this.paramValue.id||this.paramValue
if("kv"===this.selectedEngine.type){const n=this.paramValue.path||this.paramValue
e=(0,a.pathIsDirectory)(n)?"vault.cluster.secrets.backend.kv.list-directory":"vault.cluster.secrets.backend.kv.secret.index",t=n}this.router.transitionTo(e,this.selectedEngine.id,t)}},u=m(s.prototype,"router",[r.service],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),c=m(s.prototype,"selectedEngine",[i.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),d=m(s.prototype,"selectedAction",[i.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),p=m(s.prototype,"paramValue",[i.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),m(s.prototype,"handleSearchEngineSelect",[l.action],Object.getOwnPropertyDescriptor(s.prototype,"handleSearchEngineSelect"),s.prototype),m(s.prototype,"setSelectedAction",[l.action],Object.getOwnPropertyDescriptor(s.prototype,"setSelectedAction"),s.prototype),m(s.prototype,"handleActionSelect",[l.action],Object.getOwnPropertyDescriptor(s.prototype,"handleActionSelect"),s.prototype),m(s.prototype,"navigateToPage",[l.action],Object.getOwnPropertyDescriptor(s.prototype,"navigateToPage"),s.prototype),s);(0,t.setComponentTemplate)(h,y)})),define("vault/components/dashboard/replication-card",["exports","@ember/component","@ember/component/template-only","@ember/template-factory"],(function(e,t,n,l){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
const i=(0,l.createTemplateFactory)({id:"5+P9HtmA",block:'[[[8,[39,0],[[24,0,"has-padding-l"]],[["@hasBorder"],[true]],[["default"],[[[[1,"\\n\\n  "],[10,0],[14,0,"is-flex-between"],[12],[1,"\\n    "],[10,"h3"],[14,0,"title is-4 has-bottom-margin-xxs"],[12],[1,"\\n      Replication\\n    "],[13],[1,"\\n\\n"],[41,[28,[37,2],[[30,1,["dr","clusterId"]],[30,1,["performance","clusterId"]]],null],[[[1,"      "],[8,[39,3],null,[["@route"],["vault.cluster.replication.index"]],[["default"],[[[[1,"\\n        Details\\n      "]],[]]]]],[1,"\\n"]],[]],null],[1,"  "],[13],[1,"\\n\\n"],[41,[28,[37,2],[[30,1,["dr","clusterId"]],[30,1,["performance","clusterId"]]],null],[[[1,"    "],[10,"hr"],[14,0,"has-background-gray-100"],[12],[13],[1,"\\n"],[41,[28,[37,4],[[30,2,["hasPerfReplication"]],[30,2,["hasDRReplication"]]],null],[[[1,"      "],[10,0],[14,0,"is-grid grid-2-columns grid-gap-2 has-top-margin-m has-bottom-margin-xs grid-align-items-start"],[12],[1,"\\n        "],[8,[39,5],null,[["@title","@name","@state","@clusterStates"],["DR primary","dr",[30,1,["dr","state"]],[28,[37,6],[[30,1,["dr","state"]]],null]]],null],[1,"\\n        "],[8,[39,5],null,[["@title","@name","@state","@clusterStates"],[[29,["Performance ",[52,[30,1,["performance","isPrimary"]],"primary","secondary"]]],"performance",[52,[30,1,["performance","clusterId"]],[30,1,["performance","state"]],"not set up"],[52,[30,1,["performance","clusterId"]],[28,[37,6],[[30,1,["performance","state"]]],null]]]],null],[1,"\\n      "],[13],[1,"\\n"]],[]],[[[41,[30,2,["hasDRReplication"]],[[[1,"      "],[8,[39,3],[[24,0,"title is-5 has-text-weight-semibold is-marginless"]],[["@route","@model"],["vault.cluster.replication.mode.index","dr"]],[["default"],[[[[1,"\\n        DR Primary\\n      "]],[]]]]],[1,"\\n\\n      "],[10,0],[14,0,"is-grid grid-2-columns grid-gap-2 has-top-margin-m has-bottom-margin-m grid-align-items-start"],[12],[1,"\\n        "],[8,[39,5],null,[["@title","@state","@clusterStates","@subText"],["state",[30,1,["dr","state"]],[28,[37,6],[[30,1,["dr","state"]]],null],"The current operating state of the cluster."]],null],[1,"\\n        "],[8,[39,7],null,[["@label","@value","@size","@subText"],["known secondaries",[30,1,["dr","knownSecondaries","length"]],"l","Number of secondaries connected to this primary."]],null],[1,"\\n      "],[13],[1,"\\n    "]],[]],null]],[]]],[1,"    "],[10,0],[14,0,"has-top-margin-s is-flex-center"],[12],[1,"\\n      "],[8,[39,8],[[24,0,"has-padding-xxs"],[4,[38,9],["click",[30,3]],null]],[["@text","@isIconOnly","@color","@icon"],["Refresh",true,"tertiary","sync"]],null],[1,"\\n      "],[10,"small"],[14,0,"has-left-margin-xs has-text-grey"],[12],[1,"\\n        Updated\\n        "],[1,[28,[35,10],[[30,4],"MMM d yyyy, h:mm:ss aaa"],[["withTimeZone"],[true]]]],[1,"\\n      "],[13],[1,"\\n    "],[13],[1,"\\n"]],[]],[[[1,"    "],[8,[39,11],[[24,0,"has-top-margin-m"]],[["@title","@message"],["Replication not set up","Data will be listed here. Enable a primary replication cluster to get started."]],[["default"],[[[[1,"\\n      "],[8,[39,12],null,[["@icon","@iconPosition","@text","@route"],["chevron-right","trailing","Enable replication","vault.cluster.replication"]],null],[1,"\\n    "]],[]]]]],[1,"\\n"]],[]]]],[]]]]]],["@replication","@version","@refresh","@updatedAt"],false,["hds/card/container","if","or","link-to","and","dashboard/replication-state-text","cluster-states","stat-text","hds/button","on","date-format","empty-state","hds/link/standalone"]]',moduleName:"vault/components/dashboard/replication-card.hbs",isStrictMode:!1})
e.default=(0,t.setComponentTemplate)(i,(0,n.default)())}))
define("vault/components/dashboard/replication-state-text",["exports","@ember/component","@ember/component/template-only","@ember/template-factory"],(function(e,t,n,l){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
const i=(0,l.createTemplateFactory)({id:"Q2cCp1Wl",block:'[[[10,0],[12],[1,"\\n  "],[10,"h2"],[14,0,"is-size-5 has-text-weight-semibold has-bottom-margin-xs"],[12],[1,"\\n    "],[1,[30,1]],[1,"\\n  "],[13],[1,"\\n\\n"],[41,[30,2],[[[1,"    "],[10,0],[14,0,"title is-8 has-font-weight-normal has-text-grey-dark"],[12],[1,"\\n      "],[1,[30,2]],[1,"\\n    "],[13],[1,"\\n"]],[]],null],[1,"\\n  "],[8,[39,1],null,[["@verticalPosition","@horizontalPosition"],["above","center"]],[["default"],[[[[1,"\\n    "],[8,[30,3,["Trigger"]],[[24,"tabindex","-1"],[24,0,"title is-4 has-text-weight-semibold has-top-margin-xxs has-bottom-margin-xxs"]],null,[["default"],[[[[1,"\\n      "],[1,[28,[35,2],[[30,4],"not set up"],null]],[1,"\\n\\n      "],[8,[39,3],[[16,0,[52,[30,5,["isOk"]],"has-text-success","has-text-danger"]]],[["@name"],[[28,[37,2],[[30,5,["glyph"]],"x-circle"],null]]],null],[1,"\\n    "]],[]]]]],[1,"\\n    "],[8,[30,3,["Content"]],null,[["@defaultClass"],["tool-tip smaller-font"]],[["default"],[[[[1,"\\n      "],[10,0],[14,0,"box"],[12],[1,"\\n        The cluster\'s current operating state\\n      "],[13],[1,"\\n    "]],[]]]]],[1,"\\n  "]],[3]]]]],[1,"\\n"],[13]],["@title","@subText","T","@state","@clusterStates"],false,["if","tool-tip","or","flight-icon"]]',moduleName:"vault/components/dashboard/replication-state-text.hbs",isStrictMode:!1})
e.default=(0,t.setComponentTemplate)(i,(0,n.default)())})),define("vault/components/dashboard/secrets-engines-card",["exports","@ember/component","@glimmer/component","@ember/template-factory"],(function(e,t,n,l){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
const i=(0,l.createTemplateFactory)({id:"Y8zSG8Dq",block:'[[[8,[39,0],[[16,0,[29,["has-padding-l ",[52,[30,0,["filteredSecretsEngines"]],"secrets-engines-card"]]]]],[["@hasBorder"],[true]],[["default"],[[[[1,"\\n  "],[10,0],[14,0,"is-flex-between"],[12],[1,"\\n    "],[10,"h2"],[14,0,"title is-4 has-left-margin-xxs"],[12],[1,"Secrets engines"],[13],[1,"\\n\\n"],[41,[30,0,["filteredSecretsEngines"]],[[[1,"      "],[8,[39,2],[[24,0,"has-right-margin-xxs"]],[["@route"],["vault.cluster.secrets.backends"]],[["default"],[[[[1,"\\n        Details\\n      "]],[]]]]],[1,"\\n"]],[]],null],[1,"  "],[13],[1,"\\n\\n"],[41,[30,0,["filteredSecretsEngines"]],[[[1,"    "],[8,[39,3],[[24,0,"is-border-spacing-revert"]],[["@caption"],["Five secrets engines"]],[["body"],[[[[1,"\\n"],[42,[28,[37,5],[[28,[37,5],[[30,0,["firstFiveSecretsEngines"]]],null]],null],null,[[[1,"          "],[8,[30,1,["Tr"]],null,null,[["default"],[[[[1,"\\n            "],[8,[30,1,["Td"]],[[24,0,"is-flex-between is-flex-center gap-16"]],null,[["default"],[[[[1,"\\n              "],[10,0],[12],[1,"\\n                "],[10,0],[14,0,"is-flex-center"],[12],[1,"\\n"],[41,[30,2,["icon"]],[[[1,"                    "],[8,[39,6],[[16,"title",[28,[37,7],[[30,2,["engineType"]],[30,2,["path"]]],null]],[16,0,[52,[51,[30,2,["isSupportedBackend"]]],"has-text-grey"]]],[["@name","@title"],[[30,2,["icon"]],[29,[[28,[37,7],[[30,2,["engineType"]],[30,2,["path"]]],null]," type backend"]]]],null],[1,"\\n"]],[]],null],[41,[30,2,["path"]],[[[41,[30,2,["isSupportedBackend"]],[[[1,"                      "],[8,[39,2],[[24,0,"has-text-black has-text-weight-semibold"]],[["@route","@model"],[[30,2,["backendLink"]],[30,2,["id"]]]],[["default"],[[[[1,"\\n                        "],[1,[30,2,["path"]]],[1,"\\n                      "]],[]]]]],[1,"\\n"]],[]],[[[1,"                      "],[10,1],[14,0,"has-text-grey"],[12],[1,[30,2,["path"]]],[13],[1,"\\n"]],[]]]],[]],null],[1,"                "],[13],[1,"\\n"],[41,[30,2,["accessor"]],[[[1,"                  "],[10,"code"],[14,0,"has-text-grey is-size-8"],[12],[1,"\\n                    "],[1,[30,2,["accessor"]]],[1,"\\n                  "],[13],[1,"\\n"]],[]],null],[41,[30,2,["description"]],[[[1,"                  "],[10,0],[14,0,"truncate-first-line"],[12],[1,"\\n                    "],[1,[30,2,["description"]]],[1,"\\n                  "],[13],[1,"\\n"]],[]],null],[1,"              "],[13],[1,"\\n"],[41,[30,2,["isSupportedBackend"]],[[[1,"                "],[8,[39,2],[[24,0,"has-text-weight-semibold"]],[["@route","@model"],[[30,2,["backendLink"]],[30,2,["id"]]]],[["default"],[[[[1,"\\n                  View\\n                "]],[]]]]],[1,"\\n"]],[]],null],[1,"            "]],[]]]]],[1,"\\n          "]],[]]]]],[1,"\\n"]],[2]],null],[1,"      "]],[1]]]]],[1,"\\n\\n"],[41,[28,[37,9],[[30,0,["filteredSecretsEngines","length"]],5],null],[[[1,"      "],[10,2],[14,0,"is-size-9 has-top-margin-xs has-text-grey"],[12],[1,"\\n        Showing 5 out of\\n        "],[1,[30,0,["filteredSecretsEngines","length"]]],[1,"\\n        secret engines. Navigate to\\n        "],[8,[39,10],null,[["@route"],["vault.cluster.secrets.backends"]],[["default"],[[[[1,"details"]],[]]]]],[1,"\\n        to view more.\\n      "],[13],[1,"\\n"]],[]],null],[1,"\\n"]],[]],[[[1,"    "],[8,[39,11],[[24,0,"has-top-margin-m"]],[["@title","@message"],["No secrets engines enabled","Secret engines will be listed here. Enable a secret engine to get started."]],[["default"],[[[[1,"\\n      "],[8,[39,12],null,[["@icon","@iconPosition","@text","@route"],["chevron-right","trailing","Enable a secrets engine","vault.cluster.settings.mount-secret-backend"]],null],[1,"\\n    "]],[]]]]],[1,"\\n"]],[]]]],[]]]]]],["B","backend"],false,["hds/card/container","if","link-to","hds/table","each","-track-array","icon","or","unless","gt","hds/link/inline","empty-state","hds/link/standalone"]]',moduleName:"vault/components/dashboard/secrets-engines-card.hbs",isStrictMode:!1})
class r extends n.default{get filteredSecretsEngines(){return this.args.secretsEngines?.filter((e=>e.shouldIncludeInList))}get firstFiveSecretsEngines(){return this.filteredSecretsEngines?.slice(0,5)}}e.default=r,(0,t.setComponentTemplate)(i,r)})),define("vault/components/dashboard/survey-link-text",["exports","@ember/component","@ember/component/template-only","@ember/template-factory"],(function(e,t,n,l){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
const i=(0,l.createTemplateFactory)({id:"XPw2ZPS1",block:'[[[10,0],[14,0,"has-top-padding-xs has-bottom-padding-xs has-top-margin-m"],[12],[1,"\\n  "],[10,"small"],[12],[1,"\\n    Don\'t see what you\'re looking for on this page? Let us know via our\\n    "],[8,[39,0],null,[["@icon","@href"],["external-link","https://hashicorp.sjc1.qualtrics.com/jfe/form/SV_1SNUsZLdWHpfw0e"]],[["default"],[[[[1,"\\n      feedback form\\n    "]],[]]]]],[1,"\\n    .\\n  "],[13],[1,"\\n"],[13]],[],false,["hds/link/inline"]]',moduleName:"vault/components/dashboard/survey-link-text.hbs",isStrictMode:!1})
e.default=(0,t.setComponentTemplate)(i,(0,n.default)())})),define("vault/components/dashboard/vault-configuration-details-card",["exports","@ember/component","@glimmer/component","@ember/template-factory"],(function(e,t,n,l){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
const i=(0,l.createTemplateFactory)({id:"EicJ5bxe",block:'[[[8,[39,0],[[24,0,"has-padding-l"]],[["@hasBorder"],[true]],[["default"],[[[[1,"\\n  "],[10,"h3"],[14,0,"title is-4"],[12],[1,"Configuration details"],[13],[1,"\\n\\n  "],[8,[39,1],[[24,0,"is-border-spacing-revert"]],[["@caption"],["Vault configuration details"]],[["body"],[[[[1,"\\n      "],[8,[30,1,["Tr"]],null,null,[["default"],[[[[1,"\\n        "],[8,[30,1,["Td"]],null,null,[["default"],[[[[1,"API_ADDR"]],[]]]]],[1,"\\n        "],[8,[30,1,["Td"]],null,null,[["default"],[[[[1,[28,[35,2],[[30,2,["api_addr"]],"None"],null]]],[]]]]],[1,"\\n      "]],[]]]]],[1,"\\n      "],[8,[30,1,["Tr"]],null,null,[["default"],[[[[1,"\\n        "],[8,[30,1,["Td"]],null,null,[["default"],[[[[1,"Default lease TTL"]],[]]]]],[1,"\\n        "],[8,[30,1,["Td"]],null,null,[["default"],[[[[1,[28,[35,3],[[30,2,["default_lease_ttl"]]],null]]],[]]]]],[1,"\\n      "]],[]]]]],[1,"\\n      "],[8,[30,1,["Tr"]],null,null,[["default"],[[[[1,"\\n        "],[8,[30,1,["Td"]],null,null,[["default"],[[[[1,"Max lease TTL"]],[]]]]],[1,"\\n        "],[8,[30,1,["Td"]],null,null,[["default"],[[[[1,[28,[35,3],[[30,2,["max_lease_ttl"]]],null]]],[]]]]],[1,"\\n      "]],[]]]]],[1,"\\n      "],[8,[30,1,["Tr"]],null,null,[["default"],[[[[1,"\\n        "],[8,[30,1,["Td"]],null,null,[["default"],[[[[1,"TLS"]],[]]]]],[1,"\\n        "],[8,[30,1,["Td"]],null,null,[["default"],[[[[1,[30,0,["tls"]]]],[]]]]],[1,"\\n      "]],[]]]]],[1,"\\n      "],[8,[30,1,["Tr"]],null,null,[["default"],[[[[1,"\\n        "],[8,[30,1,["Td"]],null,null,[["default"],[[[[1,"Log format"]],[]]]]],[1,"\\n        "],[8,[30,1,["Td"]],null,null,[["default"],[[[[1,[28,[35,2],[[30,2,["log_format"]],"None"],null]]],[]]]]],[1,"\\n      "]],[]]]]],[1,"\\n      "],[8,[30,1,["Tr"]],null,null,[["default"],[[[[1,"\\n        "],[8,[30,1,["Td"]],null,null,[["default"],[[[[1,"Log level"]],[]]]]],[1,"\\n        "],[8,[30,1,["Td"]],null,null,[["default"],[[[[1,[30,2,["log_level"]]]],[]]]]],[1,"\\n      "]],[]]]]],[1,"\\n      "],[8,[30,1,["Tr"]],null,null,[["default"],[[[[1,"\\n        "],[8,[30,1,["Td"]],null,null,[["default"],[[[[1,"Storage type"]],[]]]]],[1,"\\n        "],[8,[30,1,["Td"]],null,null,[["default"],[[[[1,[30,2,["storage","type"]]]],[]]]]],[1,"\\n      "]],[]]]]],[1,"\\n    "]],[1]]]]],[1,"\\n"]],[]]]]]],["B","@vaultConfiguration"],false,["hds/card/container","hds/table","or","format-duration"]]',moduleName:"vault/components/dashboard/vault-configuration-details-card.hbs",isStrictMode:!1})
class r extends n.default{get tls(){const e=this.args.vaultConfiguration?.listeners.find((e=>{const{tls_disable:t,tls_cert_file:n,tls_key_file:l}=e.config||{}
return!t&&n&&l}))
return e?"Enabled":"Disabled"}}e.default=r,(0,t.setComponentTemplate)(i,r)})),define("vault/components/dashboard/vault-version-title",["exports","@ember/component","@glimmer/component","@ember/service","@ember/template-factory"],(function(e,t,n,l,i){var r,a
Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
const o=(0,i.createTemplateFactory)({id:"Hx427BwU",block:'[[[8,[39,0],null,null,[["default"],[[[[1,"\\n  "],[8,[30,1,["levelLeft"]],null,null,[["default"],[[[[1,"\\n    "],[10,"h1"],[14,0,"title is-3"],[12],[1,"\\n      Vault\\n      "],[1,[30,2,["versionDisplay"]]],[1,"\\n"],[41,[30,2,["isEnterprise"]],[[[1,"        "],[8,[39,2],null,[["@text","@icon"],[[30,0,["namespace","currentNamespace"]],"org"]],null],[1,"\\n"]],[]],null],[1,"    "],[13],[1,"\\n  "]],[]]]]],[1,"\\n"]],[1]]]]],[1,"\\n"],[10,"hr"],[14,0,"has-top-margin-xxs has-bottom-margin-l has-background-gray-200"],[12],[13]],["p","@version"],false,["page-header","if","hds/badge"]]',moduleName:"vault/components/dashboard/vault-version-title.hbs",isStrictMode:!1})
let s=e.default=(r=class extends n.default{constructor(...e){var t,n,l,i
super(...e),t=this,n="namespace",i=this,(l=a)&&Object.defineProperty(t,n,{enumerable:l.enumerable,configurable:l.configurable,writable:l.writable,value:l.initializer?l.initializer.call(i):void 0})}},u=r.prototype,c="namespace",d=[l.service],p={configurable:!0,enumerable:!0,writable:!0,initializer:null},m={},Object.keys(p).forEach((function(e){m[e]=p[e]})),m.enumerable=!!m.enumerable,m.configurable=!!m.configurable,("value"in m||m.initializer)&&(m.writable=!0),m=d.slice().reverse().reduce((function(e,t){return t(u,c,e)||e}),m),f&&void 0!==m.initializer&&(m.value=m.initializer?m.initializer.call(f):void 0,m.initializer=void 0),a=void 0===m.initializer?(Object.defineProperty(u,c,m),null):m,r)
var u,c,d,p,f,m;(0,t.setComponentTemplate)(o,s)})),define("vault/components/database-connection",["exports","ember-concurrency/async-arrow-runtime","@glimmer/component","@ember/service","@glimmer/tracking","@ember/object","@ember/test-waiters","ember-concurrency"],(function(e,t,n,l,i,r,a,o){var s,u,c,d,p,f
function m(e,t,n,l){n&&Object.defineProperty(e,t,{enumerable:n.enumerable,configurable:n.configurable,writable:n.writable,value:n.initializer?n.initializer.call(l):void 0})}function h(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e
var n=e[Symbol.toPrimitive]
if(void 0!==n){var l=n.call(e,t||"default")
if("object"!=typeof l)return l
throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string")
return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function b(e,t,n,l,i){var r={}
return Object.keys(l).forEach((function(e){r[e]=l[e]})),r.enumerable=!!r.enumerable,r.configurable=!!r.configurable,("value"in r||r.initializer)&&(r.writable=!0),r=n.slice().reverse().reduce((function(n,l){return l(e,t,n)||n}),r),i&&void 0!==r.initializer&&(r.value=r.initializer?r.initializer.call(i):void 0,r.initializer=void 0),void 0===r.initializer?(Object.defineProperty(e,t,r),null):r}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
const y="vault.cluster.secrets.backend.show",v=e=>{let t=e?.join(". ")||"Something went wrong. Check the Vault logs for more information."
return t.indexOf("failed to verify")>=0&&(t="There was a verification error for this connection. Check the Vault logs for more information."),t}
e.default=(s=class extends n.default{constructor(...e){super(...e),m(this,"store",u,this),m(this,"router",c,this),m(this,"flashMessages",d,this),m(this,"showPasswordField",p,this),m(this,"showSaveModal",f,this),h(this,"handleCreateConnection",(0,t.buildTask)((()=>({context:this,generator:(0,a.waitFor)((function*(e){e.preventDefault()
try{const e=this.args.model
yield e.save(),this.showSaveModal=!0}catch(t){const e=v(t.errors)
this.flashMessages.danger(e)}}))})),null,"handleCreateConnection",null)),h(this,"continueWithRotate",(0,t.buildTask)((()=>({context:this,generator:(0,a.waitFor)((function*(){const{backend:e,name:t}=this.args.model
try{yield this.rotateCredentials(e,t),this.flashMessages.success(`Successfully rotated root credentials for connection "${t}"`),this.transitionToRoute(y,t)}catch(n){this.flashMessages.danger(`Error rotating root credentials: ${n.errors}`),this.transitionToRoute(y,t)}finally{this.showSaveModal=!1}}))})),null,"continueWithRotate",null))}rotateCredentials(e,t){return this.store.adapterFor("database/connection").rotateRootCredentials(e,t)}transitionToRoute(){return this.router.transitionTo(...arguments)}updateShowPassword(e){this.showPasswordField=e,e||(this.args.model.password=void 0)}updatePassword(e,t){const n=t.target.value
this.args.model[e]=n}continueWithoutRotate(){if(this.continueWithRotate.isRunning)return
this.showSaveModal=!1
const{name:e}=this.args.model
this.transitionToRoute(y,e)}handleUpdateConnection(e){e.preventDefault()
const t=this.args.model,n=t.name
t.save().then((()=>{this.transitionToRoute(y,n)})).catch((e=>{const t=v(e.errors)
this.flashMessages.danger(t)}))}delete(e){e.preventDefault()
const t=this.args.model,n=t.backend
t.destroyRecord().then((()=>{this.transitionToRoute("vault.cluster.secrets.backend.list-root",n)}))}reset(){const{name:e,backend:t}=this.args.model
this.store.adapterFor("database/connection").resetConnection(t,e).then((()=>{this.flashMessages.success("Successfully reset connection")})).catch((e=>{const t=v(e.errors)
this.flashMessages.danger(t)}))}rotate(){const{name:e,backend:t}=this.args.model
this.rotateCredentials(t,e).then((()=>{this.flashMessages.success("Successfully rotated credentials")})).catch((e=>{const t=v(e.errors)
this.flashMessages.danger(t)}))}},u=b(s.prototype,"store",[l.service],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),c=b(s.prototype,"router",[l.service],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),d=b(s.prototype,"flashMessages",[l.service],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),p=b(s.prototype,"showPasswordField",[i.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),f=b(s.prototype,"showSaveModal",[i.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),b(s.prototype,"updateShowPassword",[r.action],Object.getOwnPropertyDescriptor(s.prototype,"updateShowPassword"),s.prototype),b(s.prototype,"updatePassword",[r.action],Object.getOwnPropertyDescriptor(s.prototype,"updatePassword"),s.prototype),b(s.prototype,"continueWithoutRotate",[r.action],Object.getOwnPropertyDescriptor(s.prototype,"continueWithoutRotate"),s.prototype),b(s.prototype,"handleUpdateConnection",[r.action],Object.getOwnPropertyDescriptor(s.prototype,"handleUpdateConnection"),s.prototype),b(s.prototype,"delete",[r.action],Object.getOwnPropertyDescriptor(s.prototype,"delete"),s.prototype),b(s.prototype,"reset",[r.action],Object.getOwnPropertyDescriptor(s.prototype,"reset"),s.prototype),b(s.prototype,"rotate",[r.action],Object.getOwnPropertyDescriptor(s.prototype,"rotate"),s.prototype),s)})),define("vault/components/database-role-edit",["exports","@glimmer/component","@ember/service","@ember/object","@glimmer/tracking"],(function(e,t,n,l,i){var r,a,o,s,u
function c(e,t,n,l){n&&Object.defineProperty(e,t,{enumerable:n.enumerable,configurable:n.configurable,writable:n.writable,value:n.initializer?n.initializer.call(l):void 0})}function d(e,t,n,l,i){var r={}
return Object.keys(l).forEach((function(e){r[e]=l[e]})),r.enumerable=!!r.enumerable,r.configurable=!!r.configurable,("value"in r||r.initializer)&&(r.writable=!0),r=n.slice().reverse().reduce((function(n,l){return l(e,t,n)||n}),r),i&&void 0!==r.initializer&&(r.value=r.initializer?r.initializer.call(i):void 0,r.initializer=void 0),void 0===r.initializer?(Object.defineProperty(e,t,r),null):r}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default=(r=class extends t.default{constructor(){super(...arguments),c(this,"router",a,this),c(this,"flashMessages",o,this),c(this,"store",s,this),c(this,"loading",u,this),this.args.initialKey&&(this.args.model.database=[this.args.initialKey])}get warningMessages(){const e={}
return("dynamic"===this.args.model.type&&!1===this.args.model.canCreateDynamic||"static"===this.args.model.type&&!1===this.args.model.canCreateStatic)&&(e.type="You don't have permissions to create this type of role."),e}get databaseType(){const e=this.args.model?.backend,t=this.args.model?.database||[]
return e&&0!==t.length?this.store.queryRecord("database/connection",{id:t[0],backend:e}).then((e=>e.plugin_name)).catch((()=>null)):null}generateCreds(e,t=""){this.router.transitionTo("vault.cluster.secrets.backend.credentials",e,{queryParams:{roleType:t}})}delete(){const e=this.args.model,t=e.backend
return e.destroyRecord().then((()=>{try{this.router.transitionTo("vault.cluster.secrets.backend.list-root",t,{queryParams:{tab:"role"}})}catch(e){console.debug(e)}})).catch((e=>{this.flashMessages.danger(e.errors?.join(". "))}))}handleCreateEditRole(e){e.preventDefault(),this.loading=!0
const t=this.args.mode,n=this.args.model,l=n.name
if("create"===t){n.set("id",l)
const e="static"===n.type?"static-roles":"roles"
n.set("path",e)}return n.save().then((()=>{try{this.router.transitionTo("vault.cluster.secrets.backend.show",`role/${l}`)}catch(e){console.debug(e)}})).catch((e=>{const t=e.errors?.join(". ")||e.message
this.flashMessages.danger(t||"Could not save the role. Please check Vault logs for more information."),this.loading=!1}))}rotateRoleCred(e){const t=this.args.model?.backend
return this.store.adapterFor("database/credential").rotateRoleCredentials(t,e).then((()=>{this.flashMessages.success(`Success: Credentials for ${e} role were rotated`)})).catch((e=>{this.flashMessages.danger(e.errors)}))}},a=d(r.prototype,"router",[n.service],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),o=d(r.prototype,"flashMessages",[n.service],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),s=d(r.prototype,"store",[n.service],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),u=d(r.prototype,"loading",[i.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),d(r.prototype,"generateCreds",[l.action],Object.getOwnPropertyDescriptor(r.prototype,"generateCreds"),r.prototype),d(r.prototype,"delete",[l.action],Object.getOwnPropertyDescriptor(r.prototype,"delete"),r.prototype),d(r.prototype,"handleCreateEditRole",[l.action],Object.getOwnPropertyDescriptor(r.prototype,"handleCreateEditRole"),r.prototype),d(r.prototype,"rotateRoleCred",[l.action],Object.getOwnPropertyDescriptor(r.prototype,"rotateRoleCred"),r.prototype),r)})),define("vault/components/database-role-setting-form",["exports","@glimmer/component","vault/utils/database-helpers"],(function(e,t,n){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
class l extends t.default{get settingFields(){if(!this.args.roleType)return null
const e=(0,n.getRoleFields)(this.args.roleType)
return this.args.attrs.filter((t=>e.includes(t.name)))}get statementFields(){const e=this.args.roleType,t=this.args.dbType
if(!e)return null
const l=(0,n.getStatementFields)(e,t)
return this.args.attrs.filter((e=>l.includes(e.name)))}}e.default=l})),define("vault/components/doc-link",["exports","core/components/doc-link"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.default}})})),define("vault/components/docfy-demo",["exports","@docfy/ember/components/docfy-demo"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.default}})})),define("vault/components/docfy-demo/description",["exports","@docfy/ember/components/docfy-demo/description"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.default}})})),define("vault/components/docfy-demo/example",["exports","@docfy/ember/components/docfy-demo/example"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.default}})})),define("vault/components/docfy-demo/snippet",["exports","@docfy/ember/components/docfy-demo/snippet"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.default}})})),define("vault/components/docfy-demo/snippets",["exports","@docfy/ember/components/docfy-demo/snippets"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.default}})})),define("vault/components/docfy-link",["exports","@docfy/ember/components/docfy-link"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.default}})})),define("vault/components/docfy-output",["exports","@docfy/ember/components/docfy-output"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.default}})})),define("vault/components/docfy-previous-and-next-page",["exports","@docfy/ember/components/docfy-previous-and-next-page"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.default}})})),define("vault/components/download-button",["exports","core/components/download-button"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.default}})})),define("vault/components/edit-form",["exports","core/components/edit-form"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.default}})})),define("vault/components/ember-modal-dialog-positioned-container",["exports","ember-modal-dialog/components/positioned-container"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.default}})})),define("vault/components/ember-modal-dialog/-basic-dialog",["exports","ember-modal-dialog/components/basic-dialog"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.default}})})),define("vault/components/ember-modal-dialog/-in-place-dialog",["exports","ember-modal-dialog/components/in-place-dialog"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.default}})})),define("vault/components/ember-modal-dialog/-liquid-dialog",["exports","ember-modal-dialog/components/liquid-dialog"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.default}})})),define("vault/components/ember-modal-dialog/-liquid-tether-dialog",["exports","ember-modal-dialog/components/liquid-tether-dialog"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.default}})})),define("vault/components/ember-modal-dialog/-tether-dialog",["exports","ember-modal-dialog/components/tether-dialog"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.default}})})),define("vault/components/ember-modal-dialog/overlay",["exports","ember-modal-dialog/components/overlay"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.default}})})),define("vault/components/ember-tether",["exports","ember-tether/components/ember-tether"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.default}})})),define("vault/components/ember-wormhole",["exports","ember-wormhole/components/ember-wormhole"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.default}})})),define("vault/components/empty-state",["exports","core/components/empty-state"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.default}})})),define("vault/components/enable-input",["exports","core/components/enable-input"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.default}})}))
define("vault/components/external-link",["exports","core/components/external-link"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.default}})})),define("vault/components/field-group-show",["exports","core/components/field-group-show"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.default}})})),define("vault/components/file-to-array-buffer",["exports","@glimmer/component","@glimmer/tracking","@ember/object","filesize"],(function(e,t,n,l,i){var r,a,o,s
function u(e,t,n,l){n&&Object.defineProperty(e,t,{enumerable:n.enumerable,configurable:n.configurable,writable:n.writable,value:n.initializer?n.initializer.call(l):void 0})}function c(e,t,n,l,i){var r={}
return Object.keys(l).forEach((function(e){r[e]=l[e]})),r.enumerable=!!r.enumerable,r.configurable=!!r.configurable,("value"in r||r.initializer)&&(r.writable=!0),r=n.slice().reverse().reduce((function(n,l){return l(e,t,n)||n}),r),i&&void 0!==r.initializer&&(r.value=r.initializer?r.initializer.call(i):void 0,r.initializer=void 0),void 0===r.initializer?(Object.defineProperty(e,t,r),null):r}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default=(r=class extends t.default{constructor(...e){super(...e),u(this,"filename",a,this),u(this,"fileSize",o,this),u(this,"fileLastModified",s,this)}readFile(e){const t=new FileReader
t.onload=()=>{this.isDestroyed||this.isDestroying||this.fileChange(t.result,e)},t.readAsArrayBuffer(e)}pickedFile(e){const{files:t}=e.target
if(t.length)for(let n=0,l=t.length;n<l;n++)this.readFile(t[n])}fileChange(e,t){const{name:n,size:l,lastModifiedDate:r}=t||{}
this.filename=n,this.fileSize=l?(0,i.default)(l):null,this.fileLastModified=r,this.args.onChange(e,n)}},a=c(r.prototype,"filename",[n.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),o=c(r.prototype,"fileSize",[n.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),s=c(r.prototype,"fileLastModified",[n.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),c(r.prototype,"pickedFile",[l.action],Object.getOwnPropertyDescriptor(r.prototype,"pickedFile"),r.prototype),c(r.prototype,"fileChange",[l.action],Object.getOwnPropertyDescriptor(r.prototype,"fileChange"),r.prototype),r)})),define("vault/components/filter-input-explicit",["exports","core/components/filter-input-explicit"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.default}})})),define("vault/components/filter-input",["exports","core/components/filter-input"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.default}})})),define("vault/components/flash-message",["exports","ember-cli-flash/components/flash-message"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
class n extends t.default{get alertType(){return`is-${this.args.flash.type||""}`}}e.default=n})),define("vault/components/flash-toast",["exports","@ember/component","@ember/string","@glimmer/component","@ember/template-factory"],(function(e,t,n,l,i){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
const r=(0,i.createTemplateFactory)({id:"2nuXYb8S",block:'[[[8,[39,0],[[24,0,"has-bottom-margin-m"]],[["@color","@onDismiss"],[[30,0,["color"]],[30,1]]],[["default"],[[[[1,"\\n  "],[8,[30,2,["Title"]],null,null,[["default"],[[[[1,[30,0,["title"]]]],[]]]]],[1,"\\n  "],[8,[30,2,["Description"]],null,null,[["default"],[[[[1,"\\n    "],[10,2],[14,0,"is-word-break"],[12],[1,[30,3,["message"]]],[13],[1,"\\n  "]],[]]]]],[1,"\\n"]],[2]]]]]],["@close","T","@flash"],false,["hds/toast"]]',moduleName:"vault/components/flash-toast.hbs",isStrictMode:!1})
class a extends l.default{get color(){switch(this.args.flash.type){case"info":return"highlight"
case"danger":return"critical"
case"warning":case"success":return this.args.flash.type
default:return"neutral"}}get title(){return this.args.title?this.args.title:"danger"===this.args.flash.type?"Error":(0,n.capitalize)(this.args.flash.type)}}e.default=a,(0,t.setComponentTemplate)(r,a)})),define("vault/components/flight-icon",["exports","@hashicorp/ember-flight-icons/components/flight-icon"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.default}})})),define("vault/components/form-error",["exports","core/components/form-error"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.default}})})),define("vault/components/form-field-groups-loop",["exports","core/components/form-field-groups-loop"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.default}})})),define("vault/components/form-field-groups",["exports","core/components/form-field-groups"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.default}})})),define("vault/components/form-field-label",["exports","core/components/form-field-label"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.default}})})),define("vault/components/form-field",["exports","core/components/form-field"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.default}})})),define("vault/components/form-save-buttons",["exports","core/components/form-save-buttons"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.default}})})),define("vault/components/generate-credentials-database",["exports","@glimmer/component","@ember/object"],(function(e,t,n){var l
Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default=(l=class extends t.default{get errorTitle(){return this.args.model.errorTitle||"Something went wrong"}redirectPreviousPage(){window.history.back()}},i=l.prototype,r="redirectPreviousPage",a=[n.action],o=Object.getOwnPropertyDescriptor(l.prototype,"redirectPreviousPage"),s=l.prototype,u={},Object.keys(o).forEach((function(e){u[e]=o[e]})),u.enumerable=!!u.enumerable,u.configurable=!!u.configurable,("value"in u||u.initializer)&&(u.writable=!0),u=a.slice().reverse().reduce((function(e,t){return t(i,r,e)||e}),u),s&&void 0!==u.initializer&&(u.value=u.initializer?u.initializer.call(s):void 0,u.initializer=void 0),void 0===u.initializer&&Object.defineProperty(i,r,u),l)
var i,r,a,o,s,u})),define("vault/components/generate-credentials",["exports","@ember/component","@ember/service","@ember/object","@glimmer/component","@glimmer/tracking","@ember/template-factory"],(function(e,t,n,l,i,r,a){var o,s,u,c,d,p,f
function m(e,t,n,l){n&&Object.defineProperty(e,t,{enumerable:n.enumerable,configurable:n.configurable,writable:n.writable,value:n.initializer?n.initializer.call(l):void 0})}function h(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e
var n=e[Symbol.toPrimitive]
if(void 0!==n){var l=n.call(e,t||"default")
if("object"!=typeof l)return l
throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string")
return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function b(e,t,n,l,i){var r={}
return Object.keys(l).forEach((function(e){r[e]=l[e]})),r.enumerable=!!r.enumerable,r.configurable=!!r.configurable,("value"in r||r.initializer)&&(r.writable=!0),r=n.slice().reverse().reduce((function(n,l){return l(e,t,n)||n}),r),i&&void 0!==r.initializer&&(r.value=r.initializer?r.initializer.call(i):void 0,r.initializer=void 0),void 0===r.initializer?(Object.defineProperty(e,t,r),null):r}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
const y=(0,a.createTemplateFactory)({id:"3d1TTt/A",block:'[[[8,[39,0],null,null,[["default"],[[[[1,"\\n  "],[8,[30,1,["top"]],null,null,[["default"],[[[[1,"\\n    "],[8,[39,1],null,null,[["default"],[[[[1,"\\n      "],[8,[39,2],null,[["@text","@route","@model"],[[30,2],"vault.cluster.secrets.backend",[30,2]]],null],[1,"\\n      "],[8,[39,2],null,[["@text","@route","@model"],["Credentials","vault.cluster.secrets.backend",[30,2]]],null],[1,"\\n      "],[8,[39,2],null,[["@text","@route","@model"],[[30,3],"vault.cluster.secrets.backend.show",[30,3]]],null],[1,"\\n      "],[8,[39,2],null,[["@text","@current"],[[30,0,["options","title"]],true]],null],[1,"\\n    "]],[]]]]],[1,"\\n  "]],[]]]]],[1,"\\n  "],[8,[30,1,["levelLeft"]],null,null,[["default"],[[[[1,"\\n    "],[10,"h1"],[14,0,"title is-3"],[12],[1,"\\n      "],[1,[30,0,["options","title"]]],[1,"\\n    "],[13],[1,"\\n  "]],[]]]]],[1,"\\n"]],[1]]]]],[1,"\\n\\n"],[41,[30,0,["hasGenerated"]],[[[1,"  "],[10,0],[14,0,"box is-fullwidth is-sideless is-paddingless is-marginless"],[12],[1,"\\n    "],[8,[39,4],null,[["@model"],[[30,0,["model"]]]],null],[1,"\\n"],[41,[51,[30,0,["model","isError"]]],[[[1,"      "],[8,[39,6],[[24,0,"has-top-bottom-margin"]],[["@type","@color"],["inline","warning"]],[["default"],[[[[1,"\\n        "],[8,[30,4,["Title"]],null,null,[["default"],[[[[1,"Warning"]],[]]]]],[1,"\\n        "],[8,[30,4,["Description"]],null,null,[["default"],[[[[1,"\\n          You will not be able to access this information later, so please copy the information below.\\n        "]],[]]]]],[1,"\\n      "]],[4]]]]],[1,"\\n"]],[]],null],[42,[28,[37,8],[[28,[37,8],[[30,0,["displayFields"]]],null]],null],null,[[[44,[[28,[37,10],[[30,0,["model","allByKey"]],[30,5]],null]],[[[41,[28,[37,11],[[30,6,["type"]],"object"],null],[[[1,"          "],[8,[39,12],null,[["@label","@value"],[[28,[37,13],[[28,[37,14],[[30,6,["options","label"]],[28,[37,15],[[28,[37,16],[[30,6,["name"]]],null]],null]],null]],null],[28,[37,17],[[28,[37,10],[[30,0,["model"]],[30,6,["name"]]],null]],null]]],null],[1,"\\n"]],[]],[[[41,[30,6,["options","masked"]],[[[41,[28,[37,10],[[30,0,["model"]],[30,6,["name"]]],null],[[[1,"              "],[8,[39,12],null,[["@label","@value"],[[28,[37,13],[[28,[37,14],[[30,6,["options","label"]],[28,[37,15],[[28,[37,16],[[30,6,["name"]]],null]],null]],null]],null],[28,[37,10],[[30,0,["model"]],[30,6,["name"]]],null]]],[["default"],[[[[1,"\\n                "],[8,[39,18],null,[["@value","@name","@displayOnly","@allowCopy"],[[28,[37,10],[[30,0,["model"]],[30,6,["name"]]],null],[30,6,["name"]],true,true]],null],[1,"\\n              "]],[]]]]],[1,"\\n"]],[]],null]],[]],[[[41,[28,[37,19],[[28,[37,10],[[30,0,["model"]],[30,6,["name"]]],null],[28,[37,14],[[28,[37,11],[[30,6,["name"]],"issueDate"],null],[28,[37,11],[[30,6,["name"]],"expiryDate"],null]],null]],null],[[[1,"            "],[8,[39,12],null,[["@label","@value"],[[28,[37,13],[[28,[37,14],[[30,6,["options","label"]],[28,[37,15],[[28,[37,16],[[30,6,["name"]]],null]],null]],null]],null],[28,[37,20],[[28,[37,10],[[30,0,["model"]],[30,6,["name"]]],null],"MMM dd, yyyy hh:mm:ss a"],null]]],null],[1,"\\n"]],[]],[[[1,"            "],[8,[39,12],null,[["@label","@value"],[[28,[37,13],[[28,[37,14],[[30,6,["options","label"]],[28,[37,15],[[28,[37,16],[[30,6,["name"]]],null]],null]],null]],null],[28,[37,10],[[30,0,["model"]],[30,6,["name"]]],null]]],null],[1,"\\n          "]],[]]]],[]]]],[]]]],[6]]]],[5]],null],[1,"  "],[13],[1,"\\n  "],[10,0],[14,0,"field is-grouped box is-fullwidth is-bottomless"],[12],[1,"\\n    "],[10,0],[14,0,"control"],[12],[1,"\\n      "],[8,[39,21],[[24,0,"primary"]],[["@text","@textToCopy","@onError"],["Copy credentials",[30,0,["model","toCreds"]],[28,[37,22],[[28,[37,23],["Clipboard copy failed. The Clipboard API requires a secure context.","danger"],null]],null]]],null],[1,"\\n    "],[13],[1,"\\n"],[41,[30,0,["model","leaseId"]],[[[1,"      "],[10,0],[14,0,"control"],[12],[1,"\\n        "],[8,[39,21],[[24,0,"secondary"]],[["@text","@textToCopy","@onError"],["Copy Lease ID",[30,0,["model","leaseId"]],[28,[37,22],[[28,[37,23],["Clipboard copy failed. The Clipboard API requires a secure context.","danger"],null]],null]]],null],[1,"\\n      "],[13],[1,"\\n"]],[]],null],[1,"    "],[10,0],[14,0,"control"],[12],[1,"\\n"],[41,[30,0,["options","backIsListLink"]],[[[1,"        "],[8,[39,24],null,[["@text","@color","@route","@model"],["Back","secondary","vault.cluster.secrets.backend.list-root",[30,2]]],null],[1,"\\n"]],[]],[[[1,"        "],[8,[39,24],[[4,[38,25],["click",[30,0,["reset"]]],null]],[["@text","@color"],["Back","secondary"]],null],[1,"\\n"]],[]]],[1,"    "],[13],[1,"\\n  "],[13],[1,"\\n"]],[]],[[[1,"  "],[11,"form"],[4,[38,25],["submit",[30,0,["create"]]],null],[12],[1,"\\n    "],[10,0],[14,0,"box is-sideless no-padding-top is-fullwidth is-marginless"],[12],[1,"\\n      "],[8,[39,26],null,[["@mode","@noun"],["generate","credential"]],null],[1,"\\n      "],[8,[39,4],null,[["@model"],[[30,0,["model"]]]],null],[1,"\\n"],[41,[30,0,["helpText"]],[[[1,"        "],[10,2],[14,0,"is-hint"],[12],[1,[30,0,["helpText"]]],[13],[1,"\\n"]],[]],null],[42,[28,[37,8],[[28,[37,8],[[30,0,["formFields"]]],null]],null],null,[[[1,"        "],[8,[39,27],null,[["@attr","@model"],[[28,[37,10],[[30,0,["model","allByKey"]],[30,7]],null],[30,0,["model"]]]],null],[1,"\\n"]],[7]],null],[1,"    "],[13],[1,"\\n    "],[10,0],[14,0,"field is-grouped box is-fullwidth is-bottomless"],[12],[1,"\\n      "],[8,[39,28],null,null,[["default"],[[[[1,"\\n        "],[8,[39,24],[[16,"disabled",[30,0,["loading"]]],[24,4,"submit"]],[["@text","@icon"],["Generate",[52,[30,0,["loading"]],"loading"]]],null],[1,"\\n        "],[8,[39,24],null,[["@text","@route","@color","@model"],["Cancel","vault.cluster.secrets.backend.list-root","secondary",[30,2]]],null],[1,"\\n      "]],[]]]]],[1,"\\n    "],[13],[1,"\\n  "],[13],[1,"\\n"]],[]]]],["p","@backendPath","@roleName","A","key","attr","key"],false,["page-header","hds/breadcrumb","hds/breadcrumb/item","if","message-error","unless","hds/alert","each","-track-array","let","get","eq","info-table-row","capitalize","or","humanize","dasherize","stringify","masked-input","and","date-format","hds/copy/button","fn","set-flash-message","hds/button","on","namespace-reminder","form-field","hds/button-set"]]',moduleName:"vault/components/generate-credentials.hbs",isStrictMode:!1}),v={ssh:{model:"ssh-otp-credential",title:"Generate SSH Credentials",formFields:["username","ip"],displayFields:["username","ip","key","keyType","port"]},aws:{model:"aws-credential",title:"Generate AWS Credentials",backIsListLink:!0,displayFields:["accessKey","secretKey","securityToken","leaseId","renewable","leaseDuration"],formFields:e=>({iam_user:["credentialType"],assumed_role:["credentialType","ttl","roleArn"],federation_token:["credentialType","ttl"],session_token:["credentialType","ttl"]}[e.credentialType])}}
let g=e.default=(o=class extends i.default{constructor(){super(...arguments),m(this,"controlGroup",s,this),m(this,"store",u,this),m(this,"router",c,this),m(this,"model",d,this),m(this,"loading",p,this),m(this,"hasGenerated",f,this),h(this,"emptyData","{\n}")
const e=this.modelForType()
this.model=this.generateNewModel(e)}willDestroy(){!(this.store&&!this.store.isDestroying)||this.model.isDestroyed||this.model.isDestroying||this.model.unloadRecord(),super.willDestroy()}modelForType(){const e=this.options
if(e)return e.model
this.router.transitionTo("vault.cluster.secrets.backend.list-root",this.args.backendPath)}get helpText(){return"aws-credential"===this.options?.model?"For Vault roles of credential type iam_user, there are no inputs, just submit the form. Choose a type to change the input options.":""}get options(){return v[this.args.backendType]}get formFields(){const e=this.options
return"function"==typeof e.formFields?e.formFields(this.model):e.formFields}get displayFields(){return this.options.displayFields}generateNewModel(e){if(!e)return
const{roleName:t,backendPath:n,awsRoleType:l}=this.args,i={role:{backend:n,name:t},id:`${n}-${t}`}
return l&&(i.credentialType=l),this.store.createRecord(e,i)}replaceModel(){const e=this.modelForType()
e&&(this.model&&this.model.unloadRecord(),this.model=this.generateNewModel(e))}create(e){e.preventDefault(),this.loading=!0,this.model.save().then((()=>{this.hasGenerated=!0})).catch((e=>{if("Control Group encountered"===e.message){this.controlGroup.saveTokenFromError(e)
const t=this.controlGroup.logFromError(e)
e.errors=[t.content]}throw e})).finally((()=>{this.loading=!1}))}codemirrorUpdated(e,t,n){n.performLint()
n.state.lint.marked.length>0||(this.model[e]=JSON.parse(t))}reset(){this.hasGenerated=!1,this.replaceModel()}},s=b(o.prototype,"controlGroup",[n.service],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),u=b(o.prototype,"store",[n.service],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),c=b(o.prototype,"router",[n.service],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),d=b(o.prototype,"model",[r.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),p=b(o.prototype,"loading",[r.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),f=b(o.prototype,"hasGenerated",[r.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),b(o.prototype,"create",[l.action],Object.getOwnPropertyDescriptor(o.prototype,"create"),o.prototype),b(o.prototype,"codemirrorUpdated",[l.action],Object.getOwnPropertyDescriptor(o.prototype,"codemirrorUpdated"),o.prototype),b(o.prototype,"reset",[l.action],Object.getOwnPropertyDescriptor(o.prototype,"reset"),o.prototype),o);(0,t.setComponentTemplate)(y,g)})),define("vault/components/generated-item-list",["exports","@ember/service","@glimmer/component","@ember/object","@ember/owner","@glimmer/tracking"],(function(e,t,n,l,i,r){var a,o,s,u
function c(e,t,n,l){n&&Object.defineProperty(e,t,{enumerable:n.enumerable,configurable:n.configurable,writable:n.writable,value:n.initializer?n.initializer.call(l):void 0})}function d(e,t,n,l,i){var r={}
return Object.keys(l).forEach((function(e){r[e]=l[e]})),r.enumerable=!!r.enumerable,r.configurable=!!r.configurable,("value"in r||r.initializer)&&(r.writable=!0),r=n.slice().reverse().reduce((function(n,l){return l(e,t,n)||n}),r),i&&void 0!==r.initializer&&(r.value=r.initializer?r.initializer.call(i):void 0,r.initializer=void 0),void 0===r.initializer?(Object.defineProperty(e,t,r),null):r}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default=(a=class extends n.default{constructor(...e){super(...e),c(this,"router",o,this),c(this,"store",s,this),c(this,"itemToDelete",u,this)}refreshItemList(){const e=(0,i.getOwner)(this).lookup(`route:${this.router.currentRouteName}`)
this.store.clearAllDatasets(),e.refresh()}},o=d(a.prototype,"router",[t.service],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),s=d(a.prototype,"store",[t.service],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),u=d(a.prototype,"itemToDelete",[r.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),d(a.prototype,"refreshItemList",[l.action],Object.getOwnPropertyDescriptor(a.prototype,"refreshItemList"),a.prototype),a)})),define("vault/components/generated-item",["exports","@ember-data/adapter/error","@ember/service","@ember/component","@ember/object","ember-concurrency","@ember/test-waiters"],(function(e,t,n,l,i,r,a){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default=l.default.extend({model:null,itemType:null,flashMessages:(0,n.service)(),router:(0,n.service)(),modelValidations:null,isFormInvalid:!1,props:(0,i.computed)("model",(function(){return this.model.serialize()})),validateForm(){if(this.model.validate&&this.model.isNew){const{isValid:e,state:t}=this.model.validate()
return this.setProperties({modelValidations:t,isFormInvalid:!e}),e}return this.set("isFormInvalid",!1),!0},saveModel:(0,r.task)((0,a.waitFor)((function*(){if(this.validateForm()){try{yield this.model.save()}catch(e){if(e instanceof t.default==!1)throw e
return}this.router.transitionTo("vault.cluster.access.method.item.list").followRedirects(),this.flashMessages.success(`Successfully saved ${this.itemType} ${this.model.id}.`)}}))),init(){this._super(...arguments),"edit"===this.mode&&this.model.fieldGroups.forEach((e=>{e.default&&e.default.forEach((e=>{const t=e.options&&e.options.fieldValue
t&&(this.model[e.name]=this.model[t])}))}))},actions:{onKeyUp(e,t){this.model.set(e,t)},deleteItem(){this.model.destroyRecord().then((()=>{this.router.transitionTo("vault.cluster.access.method.item.list").followRedirects(),this.flashMessages.success(`Successfully deleted ${this.itemType} ${this.model.id}.`)}))}}})})),define("vault/components/get-credentials-card",["exports","@ember/component","@glimmer/component","@ember/service","@ember/object","@glimmer/tracking","@ember/template-factory"],(function(e,t,n,l,i,r,a){var o,s,u
function c(e,t,n,l){n&&Object.defineProperty(e,t,{enumerable:n.enumerable,configurable:n.configurable,writable:n.writable,value:n.initializer?n.initializer.call(l):void 0})}function d(e,t,n,l,i){var r={}
return Object.keys(l).forEach((function(e){r[e]=l[e]})),r.enumerable=!!r.enumerable,r.configurable=!!r.configurable,("value"in r||r.initializer)&&(r.writable=!0),r=n.slice().reverse().reduce((function(n,l){return l(e,t,n)||n}),r),i&&void 0!==r.initializer&&(r.value=r.initializer?r.initializer.call(i):void 0,r.initializer=void 0),void 0===r.initializer?(Object.defineProperty(e,t,r),null):r}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
const p=(0,a.createTemplateFactory)({id:"1NMV6eri",block:'[[[8,[39,0],[[24,0,"has-padding-l"],[17,1]],[["@level","@hasBorder"],["mid",true]],[["default"],[[[[1,"\\n  "],[11,"form"],[4,[38,1],["submit",[30,0,["transitionToCredential"]]],null],[12],[1,"\\n    "],[10,0],[14,0,"is-flex-between is-fullwidth"],[12],[1,"\\n      "],[10,"h3"],[14,0,"title is-5"],[12],[1,[30,2]],[13],[1,"\\n    "],[13],[1,"\\n    "],[10,2],[14,0,"has-top-margin-s has-bottom-margin-xs has-text-weight-semibold"],[12],[1,[30,3]],[13],[1,"\\n    "],[8,[39,2],null,[["@id","@models","@selectLimit","@backend","@fallbackComponent","@onChange","@placeholder"],["search-input-role",[30,4],"1",[30,5],"input-search",[30,0,["handleInput"]],[30,6]]],null],[1,"\\n    "],[8,[39,3],[[16,"disabled",[28,[37,4],[[30,0,["role"]]],null]],[24,4,"submit"]],[["@text","@color"],["Get credentials","secondary"]],null],[1,"\\n  "],[13],[1,"\\n"]],[]]]]]],["&attrs","@title","@searchLabel","@models","@backend","@placeholder"],false,["hds/card/container","on","search-select","hds/button","not"]]',moduleName:"vault/components/get-credentials-card.hbs",isStrictMode:!1})
let f=e.default=(o=class extends n.default{constructor(...e){super(...e),c(this,"router",s,this),c(this,"role",u,this)}transitionToCredential(e){e.preventDefault()
const t=this.role
t&&this.router.transitionTo("vault.cluster.secrets.backend.credentials",t)}handleInput(e){Array.isArray(e)?this.role=e[0]:this.role=e}},s=d(o.prototype,"router",[l.service],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),u=d(o.prototype,"role",[r.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return""}}),d(o.prototype,"transitionToCredential",[i.action],Object.getOwnPropertyDescriptor(o.prototype,"transitionToCredential"),o.prototype),d(o.prototype,"handleInput",[i.action],Object.getOwnPropertyDescriptor(o.prototype,"handleInput"),o.prototype),o);(0,t.setComponentTemplate)(p,f)})),define("vault/components/hds/accordion/index",["exports","@hashicorp/design-system-components/components/hds/accordion/index"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.default}})})),define("vault/components/hds/accordion/item/button",["exports","@hashicorp/design-system-components/components/hds/accordion/item/button"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.default}})})),define("vault/components/hds/accordion/item/index",["exports","@hashicorp/design-system-components/components/hds/accordion/item/index"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.default}})})),define("vault/components/hds/alert/description",["exports","@hashicorp/design-system-components/components/hds/alert/description"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.default}})})),define("vault/components/hds/alert/index",["exports","@hashicorp/design-system-components/components/hds/alert/index"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.default}})})),define("vault/components/hds/alert/title",["exports","@hashicorp/design-system-components/components/hds/alert/title"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.default}})})),define("vault/components/hds/app-footer/copyright",["exports","@hashicorp/design-system-components/components/hds/app-footer/copyright"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.default}})})),define("vault/components/hds/app-footer/index",["exports","@hashicorp/design-system-components/components/hds/app-footer/index"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.default}})})),define("vault/components/hds/app-footer/item",["exports","@hashicorp/design-system-components/components/hds/app-footer/item"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.default}})})),define("vault/components/hds/app-footer/legal-links",["exports","@hashicorp/design-system-components/components/hds/app-footer/legal-links"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.default}})})),define("vault/components/hds/app-footer/link",["exports","@hashicorp/design-system-components/components/hds/app-footer/link"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.default}})}))
define("vault/components/hds/app-footer/status-link",["exports","@hashicorp/design-system-components/components/hds/app-footer/status-link"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.default}})})),define("vault/components/hds/app-frame/index",["exports","@hashicorp/design-system-components/components/hds/app-frame/index"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.default}})})),define("vault/components/hds/app-frame/parts/footer",["exports","@hashicorp/design-system-components/components/hds/app-frame/parts/footer"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.default}})})),define("vault/components/hds/app-frame/parts/header",["exports","@hashicorp/design-system-components/components/hds/app-frame/parts/header"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.default}})})),define("vault/components/hds/app-frame/parts/main",["exports","@hashicorp/design-system-components/components/hds/app-frame/parts/main"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.default}})})),define("vault/components/hds/app-frame/parts/modals",["exports","@hashicorp/design-system-components/components/hds/app-frame/parts/modals"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.default}})})),define("vault/components/hds/app-frame/parts/sidebar",["exports","@hashicorp/design-system-components/components/hds/app-frame/parts/sidebar"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.default}})})),define("vault/components/hds/application-state/body",["exports","@hashicorp/design-system-components/components/hds/application-state/body"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.default}})})),define("vault/components/hds/application-state/footer",["exports","@hashicorp/design-system-components/components/hds/application-state/footer"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.default}})})),define("vault/components/hds/application-state/header",["exports","@hashicorp/design-system-components/components/hds/application-state/header"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.default}})})),define("vault/components/hds/application-state/index",["exports","@hashicorp/design-system-components/components/hds/application-state/index"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.default}})})),define("vault/components/hds/badge-count/index",["exports","@hashicorp/design-system-components/components/hds/badge-count/index"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.default}})})),define("vault/components/hds/badge/index",["exports","@hashicorp/design-system-components/components/hds/badge/index"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.default}})})),define("vault/components/hds/breadcrumb/index",["exports","@hashicorp/design-system-components/components/hds/breadcrumb/index"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.default}})})),define("vault/components/hds/breadcrumb/item",["exports","@hashicorp/design-system-components/components/hds/breadcrumb/item"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.default}})})),define("vault/components/hds/breadcrumb/truncation",["exports","@hashicorp/design-system-components/components/hds/breadcrumb/truncation"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.default}})})),define("vault/components/hds/button-set/index",["exports","@hashicorp/design-system-components/components/hds/button-set/index"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.default}})})),define("vault/components/hds/button/index",["exports","@hashicorp/design-system-components/components/hds/button/index"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.default}})})),define("vault/components/hds/card/container",["exports","@hashicorp/design-system-components/components/hds/card/container"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.default}})})),define("vault/components/hds/code-block/copy-button",["exports","@hashicorp/design-system-components/components/hds/code-block/copy-button"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.default}})})),define("vault/components/hds/code-block/description",["exports","@hashicorp/design-system-components/components/hds/code-block/description"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.default}})})),define("vault/components/hds/code-block/index",["exports","@hashicorp/design-system-components/components/hds/code-block/index"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.default}})})),define("vault/components/hds/code-block/title",["exports","@hashicorp/design-system-components/components/hds/code-block/title"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.default}})})),define("vault/components/hds/copy/button/index",["exports","@hashicorp/design-system-components/components/hds/copy/button/index"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.default}})})),define("vault/components/hds/copy/snippet/index",["exports","@hashicorp/design-system-components/components/hds/copy/snippet/index"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.default}})})),define("vault/components/hds/dialog-primitive/body",["exports","@hashicorp/design-system-components/components/hds/dialog-primitive/body"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.default}})})),define("vault/components/hds/dialog-primitive/description",["exports","@hashicorp/design-system-components/components/hds/dialog-primitive/description"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.default}})})),define("vault/components/hds/dialog-primitive/footer",["exports","@hashicorp/design-system-components/components/hds/dialog-primitive/footer"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.default}})})),define("vault/components/hds/dialog-primitive/header",["exports","@hashicorp/design-system-components/components/hds/dialog-primitive/header"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.default}})})),define("vault/components/hds/dialog-primitive/overlay",["exports","@hashicorp/design-system-components/components/hds/dialog-primitive/overlay"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.default}})}))
define("vault/components/hds/dialog-primitive/wrapper",["exports","@hashicorp/design-system-components/components/hds/dialog-primitive/wrapper"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.default}})})),define("vault/components/hds/disclosure-primitive/index",["exports","@hashicorp/design-system-components/components/hds/disclosure-primitive/index"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.default}})})),define("vault/components/hds/dismiss-button/index",["exports","@hashicorp/design-system-components/components/hds/dismiss-button/index"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.default}})})),define("vault/components/hds/dropdown/footer",["exports","@hashicorp/design-system-components/components/hds/dropdown/footer"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.default}})})),define("vault/components/hds/dropdown/header",["exports","@hashicorp/design-system-components/components/hds/dropdown/header"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.default}})})),define("vault/components/hds/dropdown/index",["exports","@hashicorp/design-system-components/components/hds/dropdown/index"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.default}})})),define("vault/components/hds/dropdown/list-item/checkbox",["exports","@hashicorp/design-system-components/components/hds/dropdown/list-item/checkbox"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.default}})})),define("vault/components/hds/dropdown/list-item/checkmark",["exports","@hashicorp/design-system-components/components/hds/dropdown/list-item/checkmark"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.default}})})),define("vault/components/hds/dropdown/list-item/copy-item",["exports","@hashicorp/design-system-components/components/hds/dropdown/list-item/copy-item"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.default}})})),define("vault/components/hds/dropdown/list-item/description",["exports","@hashicorp/design-system-components/components/hds/dropdown/list-item/description"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.default}})})),define("vault/components/hds/dropdown/list-item/generic",["exports","@hashicorp/design-system-components/components/hds/dropdown/list-item/generic"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.default}})})),define("vault/components/hds/dropdown/list-item/interactive",["exports","@hashicorp/design-system-components/components/hds/dropdown/list-item/interactive"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.default}})})),define("vault/components/hds/dropdown/list-item/radio",["exports","@hashicorp/design-system-components/components/hds/dropdown/list-item/radio"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.default}})})),define("vault/components/hds/dropdown/list-item/separator",["exports","@hashicorp/design-system-components/components/hds/dropdown/list-item/separator"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.default}})})),define("vault/components/hds/dropdown/list-item/title",["exports","@hashicorp/design-system-components/components/hds/dropdown/list-item/title"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.default}})})),define("vault/components/hds/dropdown/toggle/button",["exports","@hashicorp/design-system-components/components/hds/dropdown/toggle/button"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.default}})})),define("vault/components/hds/dropdown/toggle/chevron",["exports","@hashicorp/design-system-components/components/hds/dropdown/toggle/chevron"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.default}})})),define("vault/components/hds/dropdown/toggle/icon",["exports","@hashicorp/design-system-components/components/hds/dropdown/toggle/icon"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.default}})})),define("vault/components/hds/flyout/body",["exports","@hashicorp/design-system-components/components/hds/flyout/body"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.default}})})),define("vault/components/hds/flyout/description",["exports","@hashicorp/design-system-components/components/hds/flyout/description"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.default}})})),define("vault/components/hds/flyout/footer",["exports","@hashicorp/design-system-components/components/hds/flyout/footer"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.default}})})),define("vault/components/hds/flyout/header",["exports","@hashicorp/design-system-components/components/hds/flyout/header"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.default}})})),define("vault/components/hds/flyout/index",["exports","@hashicorp/design-system-components/components/hds/flyout/index"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.default}})})),define("vault/components/hds/form/character-count/index",["exports","@hashicorp/design-system-components/components/hds/form/character-count/index"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.default}})})),define("vault/components/hds/form/checkbox/base",["exports","@hashicorp/design-system-components/components/hds/form/checkbox/base"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.default}})})),define("vault/components/hds/form/checkbox/field",["exports","@hashicorp/design-system-components/components/hds/form/checkbox/field"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.default}})})),define("vault/components/hds/form/checkbox/group",["exports","@hashicorp/design-system-components/components/hds/form/checkbox/group"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.default}})})),define("vault/components/hds/form/error/index",["exports","@hashicorp/design-system-components/components/hds/form/error/index"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.default}})})),define("vault/components/hds/form/error/message",["exports","@hashicorp/design-system-components/components/hds/form/error/message"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.default}})})),define("vault/components/hds/form/field/index",["exports","@hashicorp/design-system-components/components/hds/form/field/index"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.default}})}))
define("vault/components/hds/form/fieldset/index",["exports","@hashicorp/design-system-components/components/hds/form/fieldset/index"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.default}})})),define("vault/components/hds/form/file-input/base",["exports","@hashicorp/design-system-components/components/hds/form/file-input/base"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.default}})})),define("vault/components/hds/form/file-input/field",["exports","@hashicorp/design-system-components/components/hds/form/file-input/field"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.default}})})),define("vault/components/hds/form/helper-text/index",["exports","@hashicorp/design-system-components/components/hds/form/helper-text/index"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.default}})})),define("vault/components/hds/form/indicator/index",["exports","@hashicorp/design-system-components/components/hds/form/indicator/index"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.default}})})),define("vault/components/hds/form/label/index",["exports","@hashicorp/design-system-components/components/hds/form/label/index"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.default}})})),define("vault/components/hds/form/legend/index",["exports","@hashicorp/design-system-components/components/hds/form/legend/index"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.default}})})),define("vault/components/hds/form/masked-input/base",["exports","@hashicorp/design-system-components/components/hds/form/masked-input/base"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.default}})})),define("vault/components/hds/form/masked-input/field",["exports","@hashicorp/design-system-components/components/hds/form/masked-input/field"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.default}})})),define("vault/components/hds/form/radio-card/description",["exports","@hashicorp/design-system-components/components/hds/form/radio-card/description"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.default}})})),define("vault/components/hds/form/radio-card/group",["exports","@hashicorp/design-system-components/components/hds/form/radio-card/group"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.default}})})),define("vault/components/hds/form/radio-card/index",["exports","@hashicorp/design-system-components/components/hds/form/radio-card/index"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.default}})})),define("vault/components/hds/form/radio-card/label",["exports","@hashicorp/design-system-components/components/hds/form/radio-card/label"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.default}})})),define("vault/components/hds/form/radio/base",["exports","@hashicorp/design-system-components/components/hds/form/radio/base"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.default}})})),define("vault/components/hds/form/radio/field",["exports","@hashicorp/design-system-components/components/hds/form/radio/field"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.default}})})),define("vault/components/hds/form/radio/group",["exports","@hashicorp/design-system-components/components/hds/form/radio/group"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.default}})})),define("vault/components/hds/form/select/base",["exports","@hashicorp/design-system-components/components/hds/form/select/base"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.default}})})),define("vault/components/hds/form/select/field",["exports","@hashicorp/design-system-components/components/hds/form/select/field"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.default}})})),define("vault/components/hds/form/super-select/after-options",["exports","@hashicorp/design-system-components/components/hds/form/super-select/after-options"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.default}})})),define("vault/components/hds/form/super-select/multiple/base",["exports","@hashicorp/design-system-components/components/hds/form/super-select/multiple/base"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.default}})})),define("vault/components/hds/form/super-select/multiple/field",["exports","@hashicorp/design-system-components/components/hds/form/super-select/multiple/field"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.default}})})),define("vault/components/hds/form/super-select/option-group",["exports","@hashicorp/design-system-components/components/hds/form/super-select/option-group"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.default}})})),define("vault/components/hds/form/super-select/placeholder",["exports","@hashicorp/design-system-components/components/hds/form/super-select/placeholder"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.default}})})),define("vault/components/hds/form/super-select/single/base",["exports","@hashicorp/design-system-components/components/hds/form/super-select/single/base"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.default}})})),define("vault/components/hds/form/super-select/single/field",["exports","@hashicorp/design-system-components/components/hds/form/super-select/single/field"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.default}})})),define("vault/components/hds/form/text-input/base",["exports","@hashicorp/design-system-components/components/hds/form/text-input/base"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.default}})})),define("vault/components/hds/form/text-input/field",["exports","@hashicorp/design-system-components/components/hds/form/text-input/field"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.default}})})),define("vault/components/hds/form/textarea/base",["exports","@hashicorp/design-system-components/components/hds/form/textarea/base"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.default}})})),define("vault/components/hds/form/textarea/field",["exports","@hashicorp/design-system-components/components/hds/form/textarea/field"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.default}})})),define("vault/components/hds/form/toggle/base",["exports","@hashicorp/design-system-components/components/hds/form/toggle/base"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.default}})}))
define("vault/components/hds/form/toggle/field",["exports","@hashicorp/design-system-components/components/hds/form/toggle/field"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.default}})})),define("vault/components/hds/form/toggle/group",["exports","@hashicorp/design-system-components/components/hds/form/toggle/group"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.default}})})),define("vault/components/hds/form/visibility-toggle/index",["exports","@hashicorp/design-system-components/components/hds/form/visibility-toggle/index"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.default}})})),define("vault/components/hds/icon-tile/index",["exports","@hashicorp/design-system-components/components/hds/icon-tile/index"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.default}})})),define("vault/components/hds/interactive/index",["exports","@hashicorp/design-system-components/components/hds/interactive/index"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.default}})})),define("vault/components/hds/link/inline",["exports","@hashicorp/design-system-components/components/hds/link/inline"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.default}})})),define("vault/components/hds/link/standalone",["exports","@hashicorp/design-system-components/components/hds/link/standalone"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.default}})})),define("vault/components/hds/menu-primitive/index",["exports","@hashicorp/design-system-components/components/hds/menu-primitive/index"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.default}})})),define("vault/components/hds/modal/body",["exports","@hashicorp/design-system-components/components/hds/modal/body"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.default}})})),define("vault/components/hds/modal/footer",["exports","@hashicorp/design-system-components/components/hds/modal/footer"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.default}})})),define("vault/components/hds/modal/header",["exports","@hashicorp/design-system-components/components/hds/modal/header"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.default}})})),define("vault/components/hds/modal/index",["exports","@hashicorp/design-system-components/components/hds/modal/index"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.default}})})),define("vault/components/hds/page-header/actions",["exports","@hashicorp/design-system-components/components/hds/page-header/actions"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.default}})})),define("vault/components/hds/page-header/badges",["exports","@hashicorp/design-system-components/components/hds/page-header/badges"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.default}})})),define("vault/components/hds/page-header/description",["exports","@hashicorp/design-system-components/components/hds/page-header/description"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.default}})})),define("vault/components/hds/page-header/index",["exports","@hashicorp/design-system-components/components/hds/page-header/index"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.default}})})),define("vault/components/hds/page-header/subtitle",["exports","@hashicorp/design-system-components/components/hds/page-header/subtitle"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.default}})})),define("vault/components/hds/page-header/title",["exports","@hashicorp/design-system-components/components/hds/page-header/title"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.default}})})),define("vault/components/hds/pagination/compact/index",["exports","@hashicorp/design-system-components/components/hds/pagination/compact/index"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.default}})})),define("vault/components/hds/pagination/info/index",["exports","@hashicorp/design-system-components/components/hds/pagination/info/index"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.default}})})),define("vault/components/hds/pagination/nav/arrow",["exports","@hashicorp/design-system-components/components/hds/pagination/nav/arrow"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.default}})})),define("vault/components/hds/pagination/nav/ellipsis",["exports","@hashicorp/design-system-components/components/hds/pagination/nav/ellipsis"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.default}})})),define("vault/components/hds/pagination/nav/number",["exports","@hashicorp/design-system-components/components/hds/pagination/nav/number"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.default}})})),define("vault/components/hds/pagination/numbered/index",["exports","@hashicorp/design-system-components/components/hds/pagination/numbered/index"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.default}})})),define("vault/components/hds/pagination/size-selector/index",["exports","@hashicorp/design-system-components/components/hds/pagination/size-selector/index"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.default}})})),define("vault/components/hds/popover-primitive/index",["exports","@hashicorp/design-system-components/components/hds/popover-primitive/index"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.default}})})),define("vault/components/hds/reveal/index",["exports","@hashicorp/design-system-components/components/hds/reveal/index"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.default}})})),define("vault/components/hds/reveal/toggle/button",["exports","@hashicorp/design-system-components/components/hds/reveal/toggle/button"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.default}})})),define("vault/components/hds/rich-tooltip/bubble",["exports","@hashicorp/design-system-components/components/hds/rich-tooltip/bubble"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.default}})})),define("vault/components/hds/rich-tooltip/index",["exports","@hashicorp/design-system-components/components/hds/rich-tooltip/index"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.default}})}))
define("vault/components/hds/rich-tooltip/toggle",["exports","@hashicorp/design-system-components/components/hds/rich-tooltip/toggle"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.default}})})),define("vault/components/hds/segmented-group/index",["exports","@hashicorp/design-system-components/components/hds/segmented-group/index"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.default}})})),define("vault/components/hds/separator/index",["exports","@hashicorp/design-system-components/components/hds/separator/index"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.default}})})),define("vault/components/hds/side-nav/base",["exports","@hashicorp/design-system-components/components/hds/side-nav/base"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.default}})})),define("vault/components/hds/side-nav/header/home-link",["exports","@hashicorp/design-system-components/components/hds/side-nav/header/home-link"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.default}})})),define("vault/components/hds/side-nav/header/icon-button",["exports","@hashicorp/design-system-components/components/hds/side-nav/header/icon-button"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.default}})})),define("vault/components/hds/side-nav/header/index",["exports","@hashicorp/design-system-components/components/hds/side-nav/header/index"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.default}})})),define("vault/components/hds/side-nav/index",["exports","@hashicorp/design-system-components/components/hds/side-nav/index"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.default}})})),define("vault/components/hds/side-nav/list/back-link",["exports","@hashicorp/design-system-components/components/hds/side-nav/list/back-link"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.default}})})),define("vault/components/hds/side-nav/list/index",["exports","@hashicorp/design-system-components/components/hds/side-nav/list/index"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.default}})})),define("vault/components/hds/side-nav/list/item",["exports","@hashicorp/design-system-components/components/hds/side-nav/list/item"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.default}})})),define("vault/components/hds/side-nav/list/link",["exports","@hashicorp/design-system-components/components/hds/side-nav/list/link"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.default}})})),define("vault/components/hds/side-nav/list/title",["exports","@hashicorp/design-system-components/components/hds/side-nav/list/title"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.default}})})),define("vault/components/hds/side-nav/portal/index",["exports","@hashicorp/design-system-components/components/hds/side-nav/portal/index"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.default}})})),define("vault/components/hds/side-nav/portal/target",["exports","@hashicorp/design-system-components/components/hds/side-nav/portal/target"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.default}})})),define("vault/components/hds/side-nav/toggle-button",["exports","@hashicorp/design-system-components/components/hds/side-nav/toggle-button"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.default}})})),define("vault/components/hds/stepper/step/indicator",["exports","@hashicorp/design-system-components/components/hds/stepper/step/indicator"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.default}})})),define("vault/components/hds/stepper/task/indicator",["exports","@hashicorp/design-system-components/components/hds/stepper/task/indicator"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.default}})})),define("vault/components/hds/table/index",["exports","@hashicorp/design-system-components/components/hds/table/index"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.default}})})),define("vault/components/hds/table/td",["exports","@hashicorp/design-system-components/components/hds/table/td"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.default}})})),define("vault/components/hds/table/th-button-sort",["exports","@hashicorp/design-system-components/components/hds/table/th-button-sort"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.default}})})),define("vault/components/hds/table/th-button-tooltip",["exports","@hashicorp/design-system-components/components/hds/table/th-button-tooltip"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.default}})})),define("vault/components/hds/table/th-selectable",["exports","@hashicorp/design-system-components/components/hds/table/th-selectable"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.default}})})),define("vault/components/hds/table/th-sort",["exports","@hashicorp/design-system-components/components/hds/table/th-sort"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.default}})})),define("vault/components/hds/table/th",["exports","@hashicorp/design-system-components/components/hds/table/th"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.default}})})),define("vault/components/hds/table/tr",["exports","@hashicorp/design-system-components/components/hds/table/tr"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.default}})})),define("vault/components/hds/tabs/index",["exports","@hashicorp/design-system-components/components/hds/tabs/index"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.default}})})),define("vault/components/hds/tabs/panel",["exports","@hashicorp/design-system-components/components/hds/tabs/panel"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.default}})})),define("vault/components/hds/tabs/tab",["exports","@hashicorp/design-system-components/components/hds/tabs/tab"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.default}})})),define("vault/components/hds/tag/index",["exports","@hashicorp/design-system-components/components/hds/tag/index"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.default}})}))
define("vault/components/hds/text/body",["exports","@hashicorp/design-system-components/components/hds/text/body"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.default}})})),define("vault/components/hds/text/code",["exports","@hashicorp/design-system-components/components/hds/text/code"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.default}})})),define("vault/components/hds/text/display",["exports","@hashicorp/design-system-components/components/hds/text/display"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.default}})})),define("vault/components/hds/text/index",["exports","@hashicorp/design-system-components/components/hds/text/index"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.default}})})),define("vault/components/hds/toast/index",["exports","@hashicorp/design-system-components/components/hds/toast/index"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.default}})})),define("vault/components/hds/tooltip-button/index",["exports","@hashicorp/design-system-components/components/hds/tooltip-button/index"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.default}})})),define("vault/components/hds/yield/index",["exports","@hashicorp/design-system-components/components/hds/yield/index"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.default}})})),define("vault/components/icon",["exports","core/components/icon"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.default}})})),define("vault/components/identity/edit-form",["exports","@ember/service","@ember/component","@ember/object","ember-concurrency","vault/helpers/humanize","@ember/test-waiters"],(function(e,t,n,l,i,r,a){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default=n.default.extend({flashMessages:(0,t.service)(),store:(0,t.service)(),"data-test-component":"identity-edit-form",attributeBindings:["data-test-component"],model:null,mode:"create",onSave:()=>{},cancelLink:(0,l.computed)("mode","model.identityType",(function(){const{model:e,mode:t}=this
return{"create-entity":"vault.cluster.access.identity","edit-entity":"vault.cluster.access.identity.show","merge-entity-merge":"vault.cluster.access.identity","create-entity-alias":"vault.cluster.access.identity.aliases","edit-entity-alias":"vault.cluster.access.identity.aliases.show","create-group":"vault.cluster.access.identity","edit-group":"vault.cluster.access.identity.show","create-group-alias":"vault.cluster.access.identity.aliases","edit-group-alias":"vault.cluster.access.identity.aliases.show"}[e?`${t}-${e.identityType}`:"merge-entity-alias"]})),getMessage(e,t=!1){const n=this.mode,l=(0,r.humanize)([e.identityType]),i=t?"deleted":"saved"
return"merge"===n?"Successfully merged entities":e.id?`Successfully ${i} ${l} ${e.id}.`:`Successfully ${i} ${l}.`},save:(0,i.task)((0,a.waitFor)((function*(){const e=this.model,t=this.getMessage(e)
try{yield e.save()}catch(n){return}this.flashMessages.success(t),yield this.onSave({saveType:"save",model:e})}))).drop(),willDestroy(){const e=this.store&&!this.store.isDestroying,t=this.model
e&&t&&t.isDirty&&!t.isDestroyed&&!t.isDestroying&&t.rollbackAttributes(),this._super(...arguments)},actions:{deleteItem(e){const t=this.getMessage(e,!0),n=this.flashMessages
e.destroyRecord().then((()=>(n.success(t),this.onSave({saveType:"delete",model:e}))))}}})})),define("vault/components/identity/entity-nav",["exports","@ember/component"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default=t.default.extend({})})),define("vault/components/identity/item-details",["exports","@ember/service","@ember/component"],(function(e,t,n){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default=n.default.extend({flashMessages:(0,t.service)(),actions:{enable(e){e.set("disabled",!1),e.save().then((()=>{this.flashMessages.success(`Successfully enabled entity: ${e.id}`)})).catch((t=>{this.flashMessages.success(`There was a problem enabling the entity: ${e.id} - ${t.errors.join(" ")||t.message}`)}))}}})})),define("vault/components/identity/lookup-input",["exports","@ember/service","@ember/component","ember-concurrency","vault/helpers/underscore"],(function(e,t,n,l,i){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default=n.default.extend({store:(0,t.service)(),flashMessages:(0,t.service)(),router:(0,t.service)(),type:"entity",param:"alias name",paramValue:null,aliasMountAccessor:null,authMethods:null,init(){this._super(...arguments),this.store.findAll("auth-method").then((e=>{this.set("authMethods",e),this.set("aliasMountAccessor",e[0].accessor)}))},adapter(){const e=this.type
return this.store.adapterFor(`identity/${e}`)},data(){const{param:e,paramValue:t,aliasMountAccessor:n}=this,l={}
return l[(0,i.underscore)([e])]=t,"alias name"===e&&(l.alias_mount_accessor=n),l},lookup:(0,l.task)((function*(){const e=this.flashMessages,t=this.type,n=this.store,{param:l,paramValue:i}=this
let r
try{r=yield this.adapter().lookup(n,this.data())}catch(a){return void e.danger(`We encountered an error attempting the ${t} lookup: ${a.message||a.errors.join("")}.`)}if(r)return this.router.transitionTo("vault.cluster.access.identity.show",r.id,"details")
e.danger(`We were unable to find an identity ${t} with a "${l}" of "${i}".`)}))})})),define("vault/components/identity/popup-alias",["exports","@glimmer/component","@ember/service","@glimmer/tracking","@ember/object","vault/utils/error-message"],(function(e,t,n,l,i,r){var a,o,s
function u(e,t,n,l){n&&Object.defineProperty(e,t,{enumerable:n.enumerable,configurable:n.configurable,writable:n.writable,value:n.initializer?n.initializer.call(l):void 0})}function c(e,t,n,l,i){var r={}
return Object.keys(l).forEach((function(e){r[e]=l[e]})),r.enumerable=!!r.enumerable,r.configurable=!!r.configurable,("value"in r||r.initializer)&&(r.writable=!0),r=n.slice().reverse().reduce((function(n,l){return l(e,t,n)||n}),r),i&&void 0!==r.initializer&&(r.value=r.initializer?r.initializer.call(i):void 0,r.initializer=void 0),void 0===r.initializer?(Object.defineProperty(e,t,r),null):r}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default=(a=class extends t.default{constructor(...e){super(...e),u(this,"flashMessages",o,this),u(this,"showConfirmModal",s,this)}onSuccess(e,t){this.args.onSuccess&&this.args.onSuccess(),this.flashMessages.success(`Successfully deleted ${e}: ${t}`)}onError(e,t,n){this.args.onError&&this.args.onError()
const l=(0,r.default)(e)
this.flashMessages.danger(`There was a problem deleting ${t}: ${n} - ${l}`)}async deleteAlias(){const{identityType:e,id:t}=this.args.item
try{await this.args.item.destroyRecord(),this.onSuccess(e,t)}catch(n){this.onError(n,e,t)}}},o=c(a.prototype,"flashMessages",[n.service],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),s=c(a.prototype,"showConfirmModal",[l.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),c(a.prototype,"deleteAlias",[i.action],Object.getOwnPropertyDescriptor(a.prototype,"deleteAlias"),a.prototype),a)})),define("vault/components/identity/popup-members",["exports","@glimmer/component","@ember/object","@ember/service","@glimmer/tracking","vault/utils/error-message"],(function(e,t,n,l,i,r){var a,o,s
function u(e,t,n,l){n&&Object.defineProperty(e,t,{enumerable:n.enumerable,configurable:n.configurable,writable:n.writable,value:n.initializer?n.initializer.call(l):void 0})}function c(e,t,n,l,i){var r={}
return Object.keys(l).forEach((function(e){r[e]=l[e]})),r.enumerable=!!r.enumerable,r.configurable=!!r.configurable,("value"in r||r.initializer)&&(r.writable=!0),r=n.slice().reverse().reduce((function(n,l){return l(e,t,n)||n}),r),i&&void 0!==r.initializer&&(r.value=r.initializer?r.initializer.call(i):void 0,r.initializer=void 0),void 0===r.initializer?(Object.defineProperty(e,t,r),null):r}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default=(a=class extends t.default{constructor(...e){super(...e),u(this,"flashMessages",o,this),u(this,"showConfirmModal",s,this)}onSuccess(e){this.args.onSuccess&&this.args.onSuccess(),this.flashMessages.success(`Successfully removed '${e}' from the group`)}onError(e,t){this.args.onError&&this.args.onError()
const n=(0,r.default)(e)
this.flashMessages.danger(`There was a problem removing '${t}' from the group - ${n}`)}transaction(){const e=this.args.model[this.args.groupArray]
return this.args.model[this.args.groupArray]=e.without(this.args.memberId),this.args.model.save()}async removeGroup(){const e=this.args.memberId
try{await this.transaction(),this.onSuccess(e)}catch(t){this.onError(t,e)}}},o=c(a.prototype,"flashMessages",[l.service],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),s=c(a.prototype,"showConfirmModal",[i.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),c(a.prototype,"removeGroup",[n.action],Object.getOwnPropertyDescriptor(a.prototype,"removeGroup"),a.prototype),a)})),define("vault/components/identity/popup-metadata",["exports","@ember/object","@ember/service","@glimmer/component","@glimmer/tracking","vault/utils/error-message"],(function(e,t,n,l,i,r){var a,o,s
function u(e,t,n,l){n&&Object.defineProperty(e,t,{enumerable:n.enumerable,configurable:n.configurable,writable:n.writable,value:n.initializer?n.initializer.call(l):void 0})}function c(e,t,n,l,i){var r={}
return Object.keys(l).forEach((function(e){r[e]=l[e]})),r.enumerable=!!r.enumerable,r.configurable=!!r.configurable,("value"in r||r.initializer)&&(r.writable=!0),r=n.slice().reverse().reduce((function(n,l){return l(e,t,n)||n}),r),i&&void 0!==r.initializer&&(r.value=r.initializer?r.initializer.call(i):void 0,r.initializer=void 0),void 0===r.initializer?(Object.defineProperty(e,t,r),null):r}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default=(a=class extends l.default{constructor(...e){super(...e),u(this,"flashMessages",o,this),u(this,"showConfirmModal",s,this)}onSuccess(e){this.args.onSuccess&&this.args.onSuccess(),this.flashMessages.success(`Successfully removed '${e}' from metadata`)}onError(e,t){this.args.onError&&this.args.onError()
const n=(0,r.default)(e)
this.flashMessages.danger(`There was a problem removing '${t}' from the metadata - ${n}`)}transaction(){const e=this.args.model.metadata
return delete e[this.args.key],this.args.model.metadata={...e},this.args.model.save()}async removeMetadata(){const e=this.args.key
try{await this.transaction(),this.onSuccess(e)}catch(t){this.onError(t,e)}}},o=c(a.prototype,"flashMessages",[n.service],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),s=c(a.prototype,"showConfirmModal",[i.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),c(a.prototype,"removeMetadata",[t.action],Object.getOwnPropertyDescriptor(a.prototype,"removeMetadata"),a.prototype),a)})),define("vault/components/identity/popup-policy",["exports","@glimmer/component","@ember/object","@ember/service","vault/utils/error-message","@glimmer/tracking"],(function(e,t,n,l,i,r){var a,o,s
function u(e,t,n,l){n&&Object.defineProperty(e,t,{enumerable:n.enumerable,configurable:n.configurable,writable:n.writable,value:n.initializer?n.initializer.call(l):void 0})}function c(e,t,n,l,i){var r={}
return Object.keys(l).forEach((function(e){r[e]=l[e]})),r.enumerable=!!r.enumerable,r.configurable=!!r.configurable,("value"in r||r.initializer)&&(r.writable=!0),r=n.slice().reverse().reduce((function(n,l){return l(e,t,n)||n}),r),i&&void 0!==r.initializer&&(r.value=r.initializer?r.initializer.call(i):void 0,r.initializer=void 0),void 0===r.initializer?(Object.defineProperty(e,t,r),null):r}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default=(a=class extends t.default{constructor(...e){super(...e),u(this,"flashMessages",o,this),u(this,"showConfirmModal",s,this)}onSuccess(e,t){this.args.onSuccess&&this.args.onSuccess(),this.flashMessages.success(`Successfully removed '${e}' policy from ${t}`)}onError(e,t){this.args.onError&&this.args.onError()
const n=(0,i.default)(e)
this.flashMessages.danger(`There was a problem removing '${t}' policy - ${n}`)}transaction(){const e=this.args.model.policies
return this.args.model.policies=e.without(this.args.policyName),this.args.model.save()}async removePolicy(){const{policyName:e,model:{id:t}}=this.args
try{await this.transaction(),this.onSuccess(e,t)}catch(n){this.onError(n,e)}}},o=c(a.prototype,"flashMessages",[l.service],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),s=c(a.prototype,"showConfirmModal",[r.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),c(a.prototype,"removePolicy",[n.action],Object.getOwnPropertyDescriptor(a.prototype,"removePolicy"),a.prototype),a)})),define("vault/components/info-table-item-array",["exports","core/components/info-table-item-array"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.default}})})),define("vault/components/info-table-row",["exports","core/components/info-table-row"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.default}})})),define("vault/components/info-tooltip",["exports","core/components/info-tooltip"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.default}})})),define("vault/components/input-search",["exports","core/components/input-search"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.default}})})),define("vault/components/json-editor",["exports","core/components/json-editor"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.default}})})),define("vault/components/key-value-header",["exports","core/components/key-value-header"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.default}})})),define("vault/components/key-version-select",["exports","@ember/component"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default=t.default.extend({tagName:""})})),define("vault/components/keymgmt/distribute",["exports","@glimmer/component","@ember/object","@ember/service","@glimmer/tracking","vault/models/keymgmt/key","ember-concurrency","@ember/test-waiters"],(function(e,t,n,l,i,r,a,o){var s,u,c,d,p,f,m,h,b,y,v,g,w,k
function x(e,t,n,l){n&&Object.defineProperty(e,t,{enumerable:n.enumerable,configurable:n.configurable,writable:n.writable,value:n.initializer?n.initializer.call(l):void 0})}function P(e,t,n,l,i){var r={}
return Object.keys(l).forEach((function(e){r[e]=l[e]})),r.enumerable=!!r.enumerable,r.configurable=!!r.configurable,("value"in r||r.initializer)&&(r.writable=!0),r=n.slice().reverse().reduce((function(n,l){return l(e,t,n)||n}),r),i&&void 0!==r.initializer&&(r.value=r.initializer?r.initializer.call(i):void 0,r.initializer=void 0),void 0===r.initializer?(Object.defineProperty(e,t,r),null):r}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
let _=(u=P((s=class{constructor(){x(this,"key",u,this),x(this,"provider",c,this),x(this,"operations",d,this),x(this,"protection",p,this)}}).prototype,"key",[i.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),c=P(s.prototype,"provider",[i.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),d=P(s.prototype,"operations",[i.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),p=P(s.prototype,"protection",[i.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),s)
const T={gcpckms:["aes256-gcm96","rsa-2048","rsa-3072","rsa-4096","ecdsa-p256","ecdsa-p384","ecdsa-p521"],awskms:["aes256-gcm96"],azurekeyvault:["rsa-2048","rsa-3072","rsa-4096"]}
e.default=(f=class extends t.default{constructor(){super(...arguments),x(this,"store",m,this),x(this,"flashMessages",h,this),x(this,"router",b,this),x(this,"keyModel",y,this),x(this,"isNewKey",v,this),x(this,"providerType",g,this),x(this,"formData",w,this),x(this,"formErrors",k,this),this.formData=new _,this.formData.key=this.args.key||"",this.formData.provider=this.args.provider||"",this.args.provider&&this.getProviderType(this.args.provider),this.args.key&&this.getKeyInfo(this.args.key),this.formData.operations=[]}get keyTypes(){return r.KEY_TYPES}get validMatchError(){if(!this.providerType||!this.keyModel?.type)return null
const e=T[this.providerType]?.includes(this.keyModel.type)
if(e)return null
if(this.args.provider)return{key:`This key type is incompatible with the ${this.providerType} provider. To distribute to this provider, change the key type or choose another key.`}
const t=`This provider is incompatible with the ${this.keyModel.type} key type. Please choose another provider`
return{provider:this.args.key?`${t}.`:`${t} or change the key type.`}}get operations(){const e=this.providerType
if("awskms"===e)return["encrypt","decrypt"]
if("gcpckms"===e){switch(this.keyModel?.type||""){case"aes256-gcm96":return["encrypt","decrypt"]
case"rsa-2048":case"rsa-3072":case"rsa-4096":return["decrypt","sign"]
case"ecdsa-p256":case"ecdsa-p384":return["sign"]
default:return["encrypt","decrypt","sign","verify","wrap","unwrap"]}}return["encrypt","decrypt","sign","verify","wrap","unwrap"]}get disableOperations(){return this.validMatchError||!this.formData.provider||!this.formData.key||this.isNewKey&&!this.keyModel.type}async getKeyInfo(e,t=!1){let n
t?(this.isNewKey=!0,n=this.store.createRecord("keymgmt/key",{backend:this.args.backend,id:e,name:e})):n=await this.store.queryRecord("keymgmt/key",{backend:this.args.backend,id:e,recordOnly:!0}).catch((()=>{})),this.keyModel=n}async getProviderType(e){if(!e)return void(this.providerType="")
const t=await this.store.queryRecord("keymgmt/provider",{backend:this.args.backend,id:e}).catch((()=>{}))
this.providerType=t?.provider}destroyKey(){this.isNewKey&&this.keyModel.destroyRecord().finally((()=>{this.keyModel=null})),this.isNewKey=!1,this.keyModel=null}formatData(e){const{key:t,provider:n,operations:l,protection:i}=e
return t&&n&&l&&0!==l.length?{key:t,provider:n,purpose:l.join(","),protection:i}:null}distributeKey(e,t){const n=this.store.adapterFor("keymgmt/key"),{key:l,provider:i,purpose:r,protection:a}=t
return n.distribute(e,i,l,{purpose:r,protection:a}).then((()=>{this.flashMessages.success(`Successfully distributed key ${l} to ${i}`),this.store.clearDataset("keymgmt/key")
const e=this.store.peekRecord("keymgmt/provider",i)
e.fetchKeys(e.keys?.meta?.currentPage||1),this.args.onClose()})).catch((e=>{this.formErrors=`${e.errors}`}))}handleProvider(e){let t=e[0]
"string"==typeof e&&(t=e),this.formData.provider=t,t&&this.getProviderType(t)}handleKeyType(e){this.keyModel.set("type",e.target.value)}handleOperation(e){const t=[...this.formData.operations]
if(e.target.checked)t.push(e.target.id)
else{const n=t.indexOf(e.target.id)
t.splice(n,1)}this.formData.operations=t}async handleKeySelect(e){const t=e[0]||null
return t?(this.formData.key=t.id,this.getKeyInfo(t.id,t.isNew)):(this.formData.key=null,this.destroyKey())}*createDistribution(e){e.preventDefault()
const{backend:t}=this.args,n=this.formatData(this.formData)
if(n){if(this.isNewKey)try{yield this.keyModel.save(),this.flashMessages.success(`Successfully created key ${this.keyModel.name}`)}catch(l){return void this.flashMessages.danger(`Error creating new key ${this.keyModel.name}: ${l.errors}`)}yield this.distributeKey(t,n),yield this.store.queryRecord("keymgmt/key",{backend:this.args.backend,id:this.keyModel.name})}else this.flashMessages.danger("Key, provider, and operations are all required")}},m=P(f.prototype,"store",[l.service],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),h=P(f.prototype,"flashMessages",[l.service],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),b=P(f.prototype,"router",[l.service],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),y=P(f.prototype,"keyModel",[i.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),v=P(f.prototype,"isNewKey",[i.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),g=P(f.prototype,"providerType",[i.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),w=P(f.prototype,"formData",[i.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),k=P(f.prototype,"formErrors",[i.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),P(f.prototype,"handleProvider",[n.action],Object.getOwnPropertyDescriptor(f.prototype,"handleProvider"),f.prototype),P(f.prototype,"handleKeyType",[n.action],Object.getOwnPropertyDescriptor(f.prototype,"handleKeyType"),f.prototype),P(f.prototype,"handleOperation",[n.action],Object.getOwnPropertyDescriptor(f.prototype,"handleOperation"),f.prototype),P(f.prototype,"handleKeySelect",[n.action],Object.getOwnPropertyDescriptor(f.prototype,"handleKeySelect"),f.prototype),P(f.prototype,"createDistribution",[a.task,o.waitFor],Object.getOwnPropertyDescriptor(f.prototype,"createDistribution"),f.prototype),f)})),define("vault/components/keymgmt/key-edit",["exports","@glimmer/component","@ember/service","@ember/object","@glimmer/tracking","ember-concurrency","@ember/test-waiters"],(function(e,t,n,l,i,r,a){var o,s,u,c,d
function p(e,t,n,l){n&&Object.defineProperty(e,t,{enumerable:n.enumerable,configurable:n.configurable,writable:n.writable,value:n.initializer?n.initializer.call(l):void 0})}function f(e,t,n,l,i){var r={}
return Object.keys(l).forEach((function(e){r[e]=l[e]})),r.enumerable=!!r.enumerable,r.configurable=!!r.configurable,("value"in r||r.initializer)&&(r.writable=!0),r=n.slice().reverse().reduce((function(n,l){return l(e,t,n)||n}),r),i&&void 0!==r.initializer&&(r.value=r.initializer?r.initializer.call(i):void 0,r.initializer=void 0),void 0===r.initializer?(Object.defineProperty(e,t,r),null):r}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
const m="vault.cluster.secrets.backend.show"
e.default=(o=class extends t.default{constructor(...e){super(...e),p(this,"store",s,this),p(this,"router",u,this),p(this,"flashMessages",c,this),p(this,"isDeleteModalOpen",d,this)}get mode(){return this.args.mode||"show"}get keyAdapter(){return this.store.adapterFor("keymgmt/key")}get isMutable(){return["create","edit"].includes(this.args.mode)}get isCreating(){return"create"===this.args.mode}*saveKey(e){e.preventDefault()
const{model:t}=this.args
try{yield t.save(),this.router.transitionTo(m,t.name)}catch(n){let e=n
n.errors&&(e=n.errors.join(". ")),this.flashMessages.danger(e),n.errors||this.router.transitionTo(m,t.name)}}*removeKey(){try{yield this.keyAdapter.removeFromProvider(this.args.model),yield this.args.model.reload(),this.flashMessages.success("Key has been successfully removed from provider")}catch(e){this.flashMessages.danger(e.errors?.join(". "))}}deleteKey(){const e=this.args.model,t=e.backend
e.destroyRecord().then((()=>{this.router.transitionTo("vault.cluster.secrets.backend.list-root",t)})).catch((e=>{this.flashMessages.danger(e.errors?.join(". "))}))}*rotateKey(){const e=this.args.model.name,t=this.args.model.backend,n=this.keyAdapter
yield n.rotateKey(t,e).then((()=>{this.flashMessages.success(`Success: ${e} connection was rotated`)})).catch((e=>{this.flashMessages.danger(e.errors)}))}},s=f(o.prototype,"store",[n.service],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),u=f(o.prototype,"router",[n.service],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),c=f(o.prototype,"flashMessages",[n.service],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),d=f(o.prototype,"isDeleteModalOpen",[i.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),f(o.prototype,"saveKey",[r.task,a.waitFor],Object.getOwnPropertyDescriptor(o.prototype,"saveKey"),o.prototype),f(o.prototype,"removeKey",[r.task,a.waitFor],Object.getOwnPropertyDescriptor(o.prototype,"removeKey"),o.prototype),f(o.prototype,"deleteKey",[l.action],Object.getOwnPropertyDescriptor(o.prototype,"deleteKey"),o.prototype),f(o.prototype,"rotateKey",[r.task,a.waitFor],Object.getOwnPropertyDescriptor(o.prototype,"rotateKey"),o.prototype),o)})),define("vault/components/keymgmt/provider-edit",["exports","@glimmer/component","@ember/service","@ember/object","@glimmer/tracking","ember-concurrency","@ember/test-waiters","vault/helpers/remove-from-array"],(function(e,t,n,l,i,r,a,o){var s,u,c,d
function p(e,t,n,l){n&&Object.defineProperty(e,t,{enumerable:n.enumerable,configurable:n.configurable,writable:n.writable,value:n.initializer?n.initializer.call(l):void 0})}function f(e,t,n,l,i){var r={}
return Object.keys(l).forEach((function(e){r[e]=l[e]})),r.enumerable=!!r.enumerable,r.configurable=!!r.configurable,("value"in r||r.initializer)&&(r.writable=!0),r=n.slice().reverse().reduce((function(n,l){return l(e,t,n)||n}),r),i&&void 0!==r.initializer&&(r.value=r.initializer?r.initializer.call(i):void 0,r.initializer=void 0),void 0===r.initializer?(Object.defineProperty(e,t,r),null):r}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default=(s=class extends t.default{constructor(){super(...arguments),p(this,"router",u,this),p(this,"flashMessages",c,this),p(this,"modelValidations",d,this),"show"===this.args.mode&&this.fetchKeys.perform()}get isShowing(){return"show"===this.args.mode}get isCreating(){return"create"===this.args.mode}get viewingKeys(){return"keys"===this.args.tab}*saveTask(){const{model:e}=this.args
try{yield e.save(),this.router.transitionTo("vault.cluster.secrets.backend.show",e.id,{queryParams:{itemType:"provider"}})}catch(t){this.flashMessages.danger(t.errors.join(". "))}}*fetchKeys(e){try{yield this.args.model.fetchKeys(e)}catch(t){this.flashMessages.danger(t.errors.join(". "))}}async onSave(e){e.preventDefault()
const{isValid:t,state:n}=await this.args.model.validate()
t?(this.modelValidations=null,this.saveTask.perform()):this.modelValidations=n}async onDelete(){try{const{model:e,root:t}=this.args
await e.destroyRecord(),this.router.transitionTo(t.path,t.model,{queryParams:{tab:"provider"}})}catch(e){this.flashMessages.danger(e.errors.join(". "))}}async onDeleteKey(e){try{const t=(0,o.removeFromArray)(this.args.model.keys,e)
await e.destroyRecord(),this.args.model.keys=t}catch(t){this.flashMessages.danger(t.errors.join(". "))}}},u=f(s.prototype,"router",[n.service],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),c=f(s.prototype,"flashMessages",[n.service],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),d=f(s.prototype,"modelValidations",[i.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),f(s.prototype,"saveTask",[r.task,a.waitFor],Object.getOwnPropertyDescriptor(s.prototype,"saveTask"),s.prototype),f(s.prototype,"fetchKeys",[r.task,a.waitFor],Object.getOwnPropertyDescriptor(s.prototype,"fetchKeys"),s.prototype),f(s.prototype,"onSave",[l.action],Object.getOwnPropertyDescriptor(s.prototype,"onSave"),s.prototype),f(s.prototype,"onDelete",[l.action],Object.getOwnPropertyDescriptor(s.prototype,"onDelete"),s.prototype),f(s.prototype,"onDeleteKey",[l.action],Object.getOwnPropertyDescriptor(s.prototype,"onDeleteKey"),s.prototype),s)})),define("vault/components/kv-object-editor",["exports","core/components/kv-object-editor"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.default}})})),define("vault/components/kv-suggestion-input",["exports","core/components/kv-suggestion-input"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.default}})})),define("vault/components/layout-loading",["exports","core/components/layout-loading"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.default}})})),define("vault/components/license-banners",["exports","@glimmer/component","@ember/object","@glimmer/tracking","@ember/service","date-fns/isAfter","date-fns/differenceInDays","vault/lib/local-storage","core/utils/timestamp"],(function(e,t,n,l,i,r,a,o,s){var u,c,d,p
function f(e,t,n,l){n&&Object.defineProperty(e,t,{enumerable:n.enumerable,configurable:n.configurable,writable:n.writable,value:n.initializer?n.initializer.call(l):void 0})}function m(e,t,n,l,i){var r={}
return Object.keys(l).forEach((function(e){r[e]=l[e]})),r.enumerable=!!r.enumerable,r.configurable=!!r.configurable,("value"in r||r.initializer)&&(r.writable=!0),r=n.slice().reverse().reduce((function(n,l){return l(e,t,n)||n}),r),i&&void 0!==r.initializer&&(r.value=r.initializer?r.initializer.call(i):void 0,r.initializer=void 0),void 0===r.initializer?(Object.defineProperty(e,t,r),null):r}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default=(u=class extends t.default{constructor(){super(...arguments),f(this,"version",c,this),f(this,"warningDismissed",d,this),f(this,"expiredDismissed",p,this)
const e=o.default.getItem(this.dismissedBannerKey)
this.updateDismissType(e)}get currentVersion(){return this.version.version}get dismissedBannerKey(){return`dismiss-license-banner-${this.currentVersion}-${this.args.expiry}`}get licenseExpired(){return!!this.args.expiry&&(0,r.default)(s.default.now(),new Date(this.args.expiry))}get licenseExpiringInDays(){return this.args.expiry?(0,a.default)(new Date(this.args.expiry),s.default.now()):99}dismissBanner(e){o.default.cleanupStorage("dismiss-license-banner",this.dismissedBannerKey),o.default.setItem(this.dismissedBannerKey,e),this.updateDismissType(e)}updateDismissType(e){"warning"===e?this.warningDismissed=!0:"expired"===e&&(this.expiredDismissed=!0)}},c=m(u.prototype,"version",[i.service],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),d=m(u.prototype,"warningDismissed",[l.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),p=m(u.prototype,"expiredDismissed",[l.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),m(u.prototype,"dismissBanner",[n.action],Object.getOwnPropertyDescriptor(u.prototype,"dismissBanner"),u.prototype),u)}))
define("vault/components/license-info",["exports","@ember/component","@glimmer/component","vault/helpers/all-features","@ember/template-factory"],(function(e,t,n,l,i){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
const r=(0,i.createTemplateFactory)(
/*
    {{!
    Copyright (c) HashiCorp, Inc.
    SPDX-License-Identifier: BUSL-1.1
  ~}}
  
  <PageHeader as |p|>
    <p.levelLeft>
      <h1 class="title is-3">License</h1>
    </p.levelLeft>
  </PageHeader>
  
  <section class="box is-sideless is-marginless is-shadowless is-fullwidth">
    <span class="title is-5">Details</span>
    <div class="field box is-fullwidth is-shadowless is-paddingless is-marginless">
      <InfoTableRow @label="License ID" @value={{@licenseId}} data-test-detail-row />
      <InfoTableRow @label="Valid from" @value={{@startTime}} data-test-detail-row>
        {{date-format @startTime "MMM dd, yyyy hh:mm:ss a"}}
        to
        {{date-format @expirationTime "MMM dd, yyyy hh:mm:ss a"}}
      </InfoTableRow>
      <InfoTableRow @label="License state" @value={{"Autoloaded"}} data-test-detail-row />
    </div>
  </section>
  
  <section class="box is-sideless is-marginless is-shadowless is-fullwidth">
    <span class="title is-5">Features</span>
    <div class="field box is-fullwidth is-shadowless is-paddingless is-marginless">
      {{#each this.featuresInfo as |info|}}
        <InfoTableRow @label={{info.name}} @value={{if info.active "Active" "Not Active"}} data-test-feature-row>
          {{#if info.active}}
            <Icon @name="check-circle" class="icon-true" />
            <span data-test-feature-status>
              Active
              {{#if info.count}}&mdash; {{info.count}} standby nodes allotted{{/if}}
            </span>
          {{else}}
            <Icon @name="x-circle" class="icon-false" />
            <span data-test-feature-status>Not Active</span>
          {{/if}}
        </InfoTableRow>
      {{/each}}
    </div>
  </section>
  */
{id:"4GZArJyg",block:'[[[8,[39,0],null,null,[["default"],[[[[1,"\\n  "],[8,[30,1,["levelLeft"]],null,null,[["default"],[[[[1,"\\n    "],[10,"h1"],[14,0,"title is-3"],[12],[1,"License"],[13],[1,"\\n  "]],[]]]]],[1,"\\n"]],[1]]]]],[1,"\\n\\n"],[10,"section"],[14,0,"box is-sideless is-marginless is-shadowless is-fullwidth"],[12],[1,"\\n  "],[10,1],[14,0,"title is-5"],[12],[1,"Details"],[13],[1,"\\n  "],[10,0],[14,0,"field box is-fullwidth is-shadowless is-paddingless is-marginless"],[12],[1,"\\n    "],[8,[39,1],null,[["@label","@value"],["License ID",[30,2]]],null],[1,"\\n    "],[8,[39,1],null,[["@label","@value"],["Valid from",[30,3]]],[["default"],[[[[1,"\\n      "],[1,[28,[35,2],[[30,3],"MMM dd, yyyy hh:mm:ss a"],null]],[1,"\\n      to\\n      "],[1,[28,[35,2],[[30,4],"MMM dd, yyyy hh:mm:ss a"],null]],[1,"\\n    "]],[]]]]],[1,"\\n    "],[8,[39,1],null,[["@label","@value"],["License state","Autoloaded"]],null],[1,"\\n  "],[13],[1,"\\n"],[13],[1,"\\n\\n"],[10,"section"],[14,0,"box is-sideless is-marginless is-shadowless is-fullwidth"],[12],[1,"\\n  "],[10,1],[14,0,"title is-5"],[12],[1,"Features"],[13],[1,"\\n  "],[10,0],[14,0,"field box is-fullwidth is-shadowless is-paddingless is-marginless"],[12],[1,"\\n"],[42,[28,[37,4],[[28,[37,4],[[30,0,["featuresInfo"]]],null]],null],null,[[[1,"      "],[8,[39,1],null,[["@label","@value"],[[30,5,["name"]],[52,[30,5,["active"]],"Active","Not Active"]]],[["default"],[[[[1,"\\n"],[41,[30,5,["active"]],[[[1,"          "],[8,[39,6],[[24,0,"icon-true"]],[["@name"],["check-circle"]],null],[1,"\\n          "],[10,1],[12],[1,"\\n            Active\\n            "],[41,[30,5,["count"]],[[[1,"— "],[1,[30,5,["count"]]],[1," standby nodes allotted"]],[]],null],[1,"\\n          "],[13],[1,"\\n"]],[]],[[[1,"          "],[8,[39,6],[[24,0,"icon-false"]],[["@name"],["x-circle"]],null],[1,"\\n          "],[10,1],[12],[1,"Not Active"],[13],[1,"\\n"]],[]]],[1,"      "]],[]]]]],[1,"\\n"]],[5]],null],[1,"  "],[13],[1,"\\n"],[13]],["p","@licenseId","@startTime","@expirationTime","info"],false,["page-header","info-table-row","date-format","each","-track-array","if","icon"]]',moduleName:"vault/components/license-info.hbs",isStrictMode:!1})

;/**
   * @module LicenseInfo
   *
   * @example
   * ```js
   * <LicenseInfo
   *   @startTime="2020-03-12T23:20:50.52Z"
   *   @expirationTime="2021-05-12T23:20:50.52Z"
   *   @licenseId="some-license-id"
   *   @features={{array 'Namespaces' 'DR Replication'}}
   *   @autoloaded={{true}}
   *   @performanceStandbyCount=1
   * />
   *
   * @param {string} startTime - RFC3339 formatted timestamp of when the license became active
   * @param {string} expirationTime - RFC3339 formatted timestamp of when the license will expire
   * @param {string} licenseId - unique ID of the license
   * @param {Array<string>} features - Array of feature names active on license
   * @param {boolean} autoloaded - Whether the license is autoloaded
   * @param {number} performanceStandbyCount - Number of performance standbys active
   */class a extends n.default{get featuresInfo(){const e=this.args.features.filter((e=>!(0,l.allFeatures)().includes(e)))
return[...(0,l.allFeatures)(),...e].map((e=>{const t=this.args.features.includes(e)
if(t&&"Performance Standby"===e){const n=this.args.performanceStandbyCount
return{name:e,active:!!n&&t,count:n}}return{name:e,active:t}}))}}e.default=a,(0,t.setComponentTemplate)(r,a)})),define("vault/components/lineal/arc/index",["exports","@lineal-viz/lineal/components/lineal/arc/index"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.default}})})),define("vault/components/lineal/arcs/index",["exports","@lineal-viz/lineal/components/lineal/arcs/index"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.default}})})),define("vault/components/lineal/area/index",["exports","@lineal-viz/lineal/components/lineal/area/index"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.default}})})),define("vault/components/lineal/axis/index",["exports","@lineal-viz/lineal/components/lineal/axis/index"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.default}})})),define("vault/components/lineal/bars/index",["exports","@lineal-viz/lineal/components/lineal/bars/index"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.default}})})),define("vault/components/lineal/fluid/index",["exports","@lineal-viz/lineal/components/lineal/fluid/index"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.default}})})),define("vault/components/lineal/gridlines/index",["exports","@lineal-viz/lineal/components/lineal/gridlines/index"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.default}})})),define("vault/components/lineal/h-bars/index",["exports","@lineal-viz/lineal/components/lineal/h-bars/index"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.default}})})),define("vault/components/lineal/line/index",["exports","@lineal-viz/lineal/components/lineal/line/index"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.default}})})),define("vault/components/lineal/points/index",["exports","@lineal-viz/lineal/components/lineal/points/index"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.default}})})),define("vault/components/lineal/v-bars/index",["exports","@lineal-viz/lineal/components/lineal/v-bars/index"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.default}})})),define("vault/components/link-status",["exports","@glimmer/component","@ember/service"],(function(e,t,n){var l,i
Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default=(l=class extends t.default{constructor(...e){var t,n,l,r
super(...e),t=this,n="version",r=this,(l=i)&&Object.defineProperty(t,n,{enumerable:l.enumerable,configurable:l.configurable,writable:l.writable,value:l.initializer?l.initializer.call(r):void 0})}get state(){return this.args.status?"connected"===this.args.status?this.args.status:this.args.status.split(" ",1).toString():null}get timestamp(){try{return"connected"!==this.state?this.args.status.split("since")[1].split(";")[0].trim():null}catch{return null}}get error(){const e=this.args.status
return e&&"connected"!==e?e.split("error:")[1]:null}},r=l.prototype,a="version",o=[n.service],s={configurable:!0,enumerable:!0,writable:!0,initializer:null},c={},Object.keys(s).forEach((function(e){c[e]=s[e]})),c.enumerable=!!c.enumerable,c.configurable=!!c.configurable,("value"in c||c.initializer)&&(c.writable=!0),c=o.slice().reverse().reduce((function(e,t){return t(r,a,e)||e}),c),u&&void 0!==c.initializer&&(c.value=c.initializer?c.initializer.call(u):void 0,c.initializer=void 0),i=void 0===c.initializer?(Object.defineProperty(r,a,c),null):c,l)
var r,a,o,s,u,c})),define("vault/components/link-to-external",["exports","ember-engines/components/link-to-external"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.default}})})),define("vault/components/linked-block",["exports","core/components/linked-block"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.default}})})),define("vault/components/list-item",["exports","core/components/list-item"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.default}})})),define("vault/components/list-item/content",["exports","core/components/list-item/content"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.default}})})),define("vault/components/list-item/popup-menu",["exports","core/components/list-item/popup-menu"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.default}})})),define("vault/components/list-view",["exports","core/components/list-view"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.default}})})),define("vault/components/loading-dropdown-option",["exports","core/components/loading-dropdown-option"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.default}})})),define("vault/components/logo-edition",["exports","@ember/component","@ember/service","@ember/template-factory"],(function(e,t,n,l){var i,r
Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
const a=(0,l.createTemplateFactory)({id:"N0p/Sw/d",block:'[[[10,"svg"],[14,"width","146"],[14,"height","51"],[14,"viewBox","0 0 146 51"],[14,"xmlns","http://www.w3.org/2000/svg","http://www.w3.org/2000/xmlns/"],[12],[1,"\\n  "],[10,"g"],[14,1,"vault-logo-v"],[14,"fill-rule","nonzero"],[12],[1,"\\n    "],[10,"path"],[14,"d","M0,0 L25.4070312,51 L51,0 L0,0 Z M28.5,10.5 L31.5,10.5 L31.5,13.5 L28.5,13.5 L28.5,10.5 Z M22.5,22.5 L19.5,22.5 L19.5,19.5 L22.5,19.5 L22.5,22.5 Z M22.5,18 L19.5,18 L19.5,15 L22.5,15 L22.5,18 Z M22.5,13.5 L19.5,13.5 L19.5,10.5 L22.5,10.5 L22.5,13.5 Z M26.991018,27 L24,27 L24,24 L27,24 L26.991018,27 Z M26.991018,22.5 L24,22.5 L24,19.5 L27,19.5 L26.991018,22.5 Z M26.991018,18 L24,18 L24,15 L27,15 L26.991018,18 Z M26.991018,13.5 L24,13.5 L24,10.5 L27,10.5 L26.991018,13.5 Z M28.5,15 L31.5,15 L31.5,18 L28.5089552,18 L28.5,15 Z M28.5,22.5 L28.5,19.5 L31.5,19.5 L31.5,22.4601182 L28.5,22.5 Z"],[12],[13],[1,"\\n  "],[13],[1,"\\n\\n  "],[10,"path"],[14,1,"vault-logo-name"],[14,"d","M69.7218638,30.2482468 L63.2587814,8.45301543 L58,8.45301543 L65.9885305,34.6072931 L73.4551971,34.6072931 L81.4437276,8.45301543 L76.1849462,8.45301543 L69.7218638,30.2482468 Z M97.6329749,22.0014025 C97.6329749,17.2103787 95.8265233,15.0897616 89.6845878,15.0897616 C87.5168459,15.0897616 84.8272401,15.4431978 82.9806452,15.9929874 L83.5827957,19.6451613 C85.3089606,19.2917251 87.2358423,19.056101 89.0021505,19.056101 C92.1333333,19.056101 92.7354839,19.802244 92.7354839,21.9228612 L92.7354839,23.9256662 L88.0387097,23.9256662 C84.0645161,23.9256662 82.3383513,25.4179523 82.3383513,29.3057504 C82.3383513,32.6044881 83.8637993,35 87.4365591,35 C89.4035842,35 91.4910394,34.4502104 93.2573477,33.3113604 L93.618638,34.6072931 L97.6329749,34.6072931 L97.6329749,22.0014025 Z M92.7354839,30.2089762 C91.8121864,30.7194951 90.4874552,31.1907433 89.0422939,31.1907433 C87.5168459,31.1907433 87.0752688,30.601683 87.0752688,29.2664797 C87.0752688,27.8134642 87.5168459,27.3814867 89.1225806,27.3814867 L92.7354839,27.3814867 L92.7354839,30.2089762 Z M102.421505,15.4824684 L102.421505,29.345021 C102.421505,32.7615708 103.585663,35 106.837276,35 C109.125448,35 112.216487,34.1753156 114.665233,32.997195 L115.146953,34.6072931 L118.880287,34.6072931 L118.880287,15.4824684 L113.982796,15.4824684 L113.982796,28.7559607 C112.216487,29.6591865 110.088889,30.3660589 108.884588,30.3660589 C107.760573,30.3660589 107.318996,29.85554 107.318996,28.8345021 L107.318996,15.4824684 L102.421505,15.4824684 Z M129.168459,34.6072931 L129.168459,7 L124.270968,7.66760168 L124.270968,34.6072931 L129.168459,34.6072931 Z M144.394265,30.601683 C143.551254,30.8373072 142.6681,30.9943899 141.94552,30.9943899 C140.660932,30.9943899 140.179211,30.3267882 140.179211,29.3057504 L140.179211,19.2917251 L144.875986,19.2917251 L145.197133,15.4824684 L140.179211,15.4824684 L140.179211,10.0631136 L135.28172,10.7307153 L135.28172,15.4824684 L132.351254,15.4824684 L132.351254,19.2917251 L135.28172,19.2917251 L135.28172,29.9340813 C135.28172,33.3506311 137.088172,35 140.660932,35 C141.905376,35 143.912545,34.6858345 144.956272,34.2538569 L144.394265,30.601683 Z"],[12],[13],[1,"\\n\\n"],[41,[30,0,["version","isEnterprise"]],[[[1,"    "],[10,"g"],[14,1,"vault-logo-edition-enterprise"],[14,"transform","translate(65.000000, 40.000000)"],[14,"fill-rule","nonzero"],[12],[1,"\\n      "],[10,"polygon"],[14,"points","0.435816733 0.579322709 4.39438247 0.579322709 4.39438247 1.35454183 1.30175299 1.35454183 1.30175299 3.46577689 4.17171315 3.46577689 4.17171315 4.24099602 1.30175299 4.24099602 1.30175299 6.52541833 4.40262948 6.52541833 4.40262948 7.30063745 0.435816733 7.30063745"],[12],[13],[1,"\\n      "],[10,"polygon"],[14,"points","7.3138247 1.58545817 7.3138247 7.31713147 6.48912351 7.31713147 6.48912351 0.579322709 7.68494024 0.579322709 10.6126295 6.35223108 10.6126295 0.579322709 11.4373307 0.579322709 11.4373307 7.31713147 10.249761 7.31713147"],[12],[13],[1,"\\n      "],[10,"polygon"],[14,"points","15.107251 1.36278884 13.1032271 1.36278884 13.1032271 0.587569721 17.9937052 0.587569721 17.9937052 1.36278884 15.9814343 1.36278884 15.9814343 7.31713147 15.107251 7.31713147"],[12],[13],[1,"\\n      "],[10,"polygon"],[14,"points","19.6513546 0.579322709 23.6099203 0.579322709 23.6099203 1.35454183 20.5172908 1.35454183 20.5172908 3.46577689 23.387251 3.46577689 23.387251 4.24099602 20.5172908 4.24099602 20.5172908 6.52541833 23.6181673 6.52541833 23.6181673 7.30063745 19.6431076 7.30063745"],[12],[13],[1,"\\n      "],[10,"path"],[14,"d","M28.22,4.87601594 L26.5705976,4.87601594 L26.5705976,7.35011952 L25.7046614,7.35011952 L25.7046614,0.579322709 L28.2694821,0.579322709 C29.7127092,0.579322709 30.2240239,1.20609562 30.2240239,2.2287251 L30.2240239,3.20187251 C30.3204128,3.92160892 29.8576792,4.59791178 29.1519124,4.76880478 L30.9002789,7.30888446 L29.9023904,7.30888446 L28.22,4.87601594 Z M28.22,1.35454183 L26.5705976,1.35454183 L26.5705976,4.10079681 L28.22,4.10079681 C29.0447012,4.10079681 29.3333466,3.86988048 29.3333466,3.21011952 L29.3333466,2.25346614 C29.3580876,1.58545817 29.0694422,1.36278884 28.244741,1.36278884 L28.22,1.35454183 Z"],[12],[13],[1,"\\n      "],[10,"path"],[14,"d","M32.6898805,0.579322709 L35.1639841,0.579322709 C36.6072112,0.579322709 37.1185259,1.20609562 37.1185259,2.2287251 L37.1185259,3.22661355 C37.1185259,4.26573705 36.6154582,4.87601594 35.1639841,4.87601594 L33.5970518,4.87601594 L33.5970518,7.31713147 L32.7311155,7.31713147 L32.6898805,0.579322709 Z M35.098008,1.35454183 L33.5640637,1.35454183 L33.5640637,4.12553785 L35.098008,4.12553785 C35.9227092,4.12553785 36.2113546,3.89462151 36.2113546,3.23486056 L36.2113546,2.24521912 C36.2113546,1.58545817 35.9309562,1.36278884 35.098008,1.36278884 L35.098008,1.35454183 Z"],[12],[13],[1,"\\n      "],[10,"path"],[14,"d","M41.4399602,4.87601594 L39.7905578,4.87601594 L39.7905578,7.35011952 L38.9246215,7.35011952 L38.9246215,0.579322709 L41.4894422,0.579322709 C42.9326693,0.579322709 43.4439841,1.20609562 43.4439841,2.2287251 L43.4439841,3.20187251 C43.5403729,3.92160892 43.0776394,4.59791178 42.3718725,4.76880478 L44.120239,7.30888446 L43.1223506,7.30888446 L41.4399602,4.87601594 Z M41.4399602,1.35454183 L39.7905578,1.35454183 L39.7905578,4.10079681 L41.4399602,4.10079681 C42.2646614,4.10079681 42.5533068,3.86988048 42.5533068,3.21011952 L42.5533068,2.25346614 C42.5698008,1.58545817 42.2894024,1.36278884 41.4564542,1.36278884 L41.4399602,1.35454183 Z"],[12],[13],[1,"\\n      "],[10,"polygon"],[14,"points","46.8087649 7.31713147 45.9840637 7.31713147 45.9840637 0.579322709 46.8087649 0.579322709"],[12],[13],[1,"\\n      "],[10,"path"],[14,"d","M50.9322709,7.41609562 C50.2485334,7.41749872 49.5699834,7.29742608 48.928247,7.0614741 L49.0684462,6.35223108 C49.6711823,6.54568134 50.2993133,6.64851694 50.9322709,6.65737052 C52.0126295,6.65737052 52.2352988,6.37697211 52.2352988,5.61 C52.2352988,4.70282869 52.2352988,4.62035857 50.8415538,4.30697211 C49.1921514,3.94410359 49.0189641,3.63071713 49.0189641,2.23697211 C49.0189641,1.06589641 49.5055378,0.49685259 51.1714343,0.49685259 C51.7856888,0.497823804 52.3976026,0.572582499 52.9940239,0.719521912 L52.9198008,1.45350598 C52.3508265,1.32930718 51.7702971,1.26572539 51.1879283,1.2638247 C50.0828287,1.2638247 49.8849004,1.48649402 49.8849004,2.26171315 C49.8849004,3.1936255 49.8849004,3.23486056 51.2209163,3.56474104 C53.0105179,4.01007968 53.1012351,4.27398406 53.1012351,5.58525896 C53.1342231,6.74808765 52.7878486,7.41609562 50.9322709,7.41609562 Z"],[12],[13],[1,"\\n      "],[10,"polygon"],[14,"points","55.2454582 0.579322709 59.1792829 0.579322709 59.1792829 1.35454183 56.0866534 1.35454183 56.0866534 3.46577689 58.9566135 3.46577689 58.9566135 4.24099602 56.0866534 4.24099602 56.0866534 6.52541833 59.1875299 6.52541833 59.1875299 7.30063745 55.2124701 7.30063745"],[12],[13],[1,"\\n    "],[13],[1,"\\n"]],[]],null],[13]],[],false,["if"]]',moduleName:"vault/components/logo-edition.hbs",isStrictMode:!1})
let o=e.default=(i=class extends t.default{constructor(...e){var t,n,l,i
super(...e),t=this,n="version",i=this,(l=r)&&Object.defineProperty(t,n,{enumerable:l.enumerable,configurable:l.configurable,writable:l.writable,value:l.initializer?l.initializer.call(i):void 0})}},s=i.prototype,u="version",c=[n.service],d={configurable:!0,enumerable:!0,writable:!0,initializer:null},f={},Object.keys(d).forEach((function(e){f[e]=d[e]})),f.enumerable=!!f.enumerable,f.configurable=!!f.configurable,("value"in f||f.initializer)&&(f.writable=!0),f=c.slice().reverse().reduce((function(e,t){return t(s,u,e)||e}),f),p&&void 0!==f.initializer&&(f.value=f.initializer?f.initializer.call(p):void 0,f.initializer=void 0),r=void 0===f.initializer?(Object.defineProperty(s,u,f),null):f,i)
var s,u,c,d,p,f;(0,t.setComponentTemplate)(a,o)})),define("vault/components/masked-input",["exports","core/components/masked-input"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.default}})})),define("vault/components/message-error",["exports","core/components/message-error"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.default}})})),define("vault/components/mfa/method-form",["exports","@glimmer/component","@ember/object","@glimmer/tracking","@ember/service","ember-concurrency"],(function(e,t,n,l,i,r){var a,o,s,u,c
function d(e,t,n,l){n&&Object.defineProperty(e,t,{enumerable:n.enumerable,configurable:n.configurable,writable:n.writable,value:n.initializer?n.initializer.call(l):void 0})}function p(e,t,n,l,i){var r={}
return Object.keys(l).forEach((function(e){r[e]=l[e]})),r.enumerable=!!r.enumerable,r.configurable=!!r.configurable,("value"in r||r.initializer)&&(r.writable=!0),r=n.slice().reverse().reduce((function(n,l){return l(e,t,n)||n}),r),i&&void 0!==r.initializer&&(r.value=r.initializer?r.initializer.call(i):void 0,r.initializer=void 0),void 0===r.initializer?(Object.defineProperty(e,t,r),null):r}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default=(a=class extends t.default{constructor(...e){super(...e),d(this,"store",o,this),d(this,"flashMessages",s,this),d(this,"editValidations",u,this),d(this,"isEditModalActive",c,this)}*save(){try{yield this.args.model.save(),this.args.onSave()}catch(e){this.flashMessages.danger(e.errors?.join(". ")||e.message)}}async initSave(e){e.preventDefault()
const{isValid:t,state:n}=await this.args.model.validate()
t?this.isEditModalActive=!0:this.editValidations=n}cancel(){this.args.model.rollbackAttributes(),this.args.onClose()}},o=p(a.prototype,"store",[i.service],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),s=p(a.prototype,"flashMessages",[i.service],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),u=p(a.prototype,"editValidations",[l.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),c=p(a.prototype,"isEditModalActive",[l.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),p(a.prototype,"save",[r.task],Object.getOwnPropertyDescriptor(a.prototype,"save"),a.prototype),p(a.prototype,"initSave",[n.action],Object.getOwnPropertyDescriptor(a.prototype,"initSave"),a.prototype),p(a.prototype,"cancel",[n.action],Object.getOwnPropertyDescriptor(a.prototype,"cancel"),a.prototype),a)})),define("vault/components/mfa/mfa-form",["exports","ember","@glimmer/component","@ember/service","@glimmer/tracking","@ember/object","ember-concurrency","vault/helpers/number-to-word"],(function(e,t,n,l,i,r,a,o){var s,u,c,d,p
function f(e,t,n,l){n&&Object.defineProperty(e,t,{enumerable:n.enumerable,configurable:n.configurable,writable:n.writable,value:n.initializer?n.initializer.call(l):void 0})}function m(e,t,n,l,i){var r={}
return Object.keys(l).forEach((function(e){r[e]=l[e]})),r.enumerable=!!r.enumerable,r.configurable=!!r.configurable,("value"in r||r.initializer)&&(r.writable=!0),r=n.slice().reverse().reduce((function(n,l){return l(e,t,n)||n}),r),i&&void 0!==r.initializer&&(r.value=r.initializer?r.initializer.call(i):void 0,r.initializer=void 0),void 0===r.initializer?(Object.defineProperty(e,t,r),null):r}Object.defineProperty(e,"__esModule",{value:!0}),e.default=e.TOTP_VALIDATION_ERROR=void 0
const h=e.TOTP_VALIDATION_ERROR="The passcode failed to validate. If you entered the correct passcode, contact your administrator."
e.default=(s=class extends n.default{constructor(){super(...arguments),f(this,"auth",u,this),f(this,"countdown",c,this),f(this,"error",d,this),f(this,"codeDelayMessage",p,this)
this.constraints.filter((e=>e.methods.length>1||e.methods.find((e=>e.uses_passcode)))).length||this.validate.perform()}get constraints(){return this.args.authData.mfa_requirement.mfa_constraints}get multiConstraint(){return this.constraints.length>1}get singleConstraintMultiMethod(){return!this.isMultiConstraint&&this.constraints[0].methods.length>1}get singlePasscode(){return!this.isMultiConstraint&&1===this.constraints[0].methods.length&&this.constraints[0].methods[0].uses_passcode}get description(){let e="Multi-factor authentication is enabled for your account."
if(this.singlePasscode&&(e+=" Enter your authentication code to log in."),this.singleConstraintMultiMethod&&(e+=" Select the MFA method you wish to use."),this.multiConstraint){const t=this.constraints.length
e+=` ${(0,o.numberToWord)(t,!0)} methods are required for successful authentication.`}return e}*validate(){try{this.error=null
const e=yield this.auth.totpValidate({clusterId:this.args.clusterId,...this.args.authData})
this.args.onSuccess(e)}catch(e){const t=e.errors||[],n=t.find((e=>e.includes("code already used"))),l=t.find((e=>e.includes("maximum TOTP validation attempts"))),i=n||l
if(i){const e=n?"This code has already been used":"Maximum validation attempts exceeded"
this.codeDelayMessage=`${e}. Please wait until a new code is available.`,this.newCodeDelay.perform(i)}else this.singlePasscode?this.error=h:this.args.onError(this.auth.handleError(e))}}*newCodeDelay(e){let n
const l=e.match(/(\d+\w seconds)/)
if(n=l&&l.length?l[0].split(" ")[0]:30,this.countdown=parseInt(n),!t.default.testing)for(;this.countdown>0;)yield(0,a.timeout)(1e3),this.countdown--}onSelect(e,t){(0,r.set)(e,"selectedId",t),(0,r.set)(e,"selectedMethod",e.methods.find((e=>e.id===t)))}submit(e){e.preventDefault(),this.validate.perform()}},u=m(s.prototype,"auth",[l.service],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),c=m(s.prototype,"countdown",[i.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return 0}}),d=m(s.prototype,"error",[i.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),p=m(s.prototype,"codeDelayMessage",[i.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),m(s.prototype,"validate",[a.task],Object.getOwnPropertyDescriptor(s.prototype,"validate"),s.prototype),m(s.prototype,"newCodeDelay",[a.task],Object.getOwnPropertyDescriptor(s.prototype,"newCodeDelay"),s.prototype),m(s.prototype,"onSelect",[r.action],Object.getOwnPropertyDescriptor(s.prototype,"onSelect"),s.prototype),m(s.prototype,"submit",[r.action],Object.getOwnPropertyDescriptor(s.prototype,"submit"),s.prototype),s)})),define("vault/components/mfa/mfa-login-enforcement-form",["exports","@glimmer/component","@glimmer/tracking","@ember/object","@ember/service","ember-concurrency","vault/helpers/add-to-array","vault/helpers/remove-from-array"],(function(e,t,n,l,i,r,a,o){var s,u,c,d,p,f,m,h,b,y
function v(e,t,n,l){n&&Object.defineProperty(e,t,{enumerable:n.enumerable,configurable:n.configurable,writable:n.writable,value:n.initializer?n.initializer.call(l):void 0})}function g(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e
var n=e[Symbol.toPrimitive]
if(void 0!==n){var l=n.call(e,t||"default")
if("object"!=typeof l)return l
throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string")
return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function w(e,t,n,l,i){var r={}
return Object.keys(l).forEach((function(e){r[e]=l[e]})),r.enumerable=!!r.enumerable,r.configurable=!!r.configurable,("value"in r||r.initializer)&&(r.writable=!0),r=n.slice().reverse().reduce((function(n,l){return l(e,t,n)||n}),r),i&&void 0!==r.initializer&&(r.value=r.initializer?r.initializer.call(i):void 0,r.initializer=void 0),void 0===r.initializer?(Object.defineProperty(e,t,r),null):r}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default=(s=class extends t.default{constructor(){super(...arguments),v(this,"store",u,this),v(this,"flashMessages",c,this),g(this,"targetTypes",[{label:"Authentication mount",type:"accessor",key:"auth_method_accessors"},{label:"Authentication method",type:"method",key:"auth_method_types"},{label:"Group",type:"identity/group",key:"identity_groups"},{label:"Entity",type:"identity/entity",key:"identity_entities"}]),g(this,"searchSelectOptions",null),v(this,"name",d,this),v(this,"targets",p,this),v(this,"selectedTargetType",f,this),v(this,"selectedTargetValue",m,this),v(this,"searchSelect",h,this),v(this,"authMethods",b,this),v(this,"modelErrors",y,this),this.flattenTargets(),this.resetTargetState(),this.fetchAuthMethods()}async flattenTargets(){for(const{label:e,key:t}of this.targetTypes){const n=(await this.args.model[t]).map((n=>({label:e,key:t,value:n})))
this.targets=(0,a.addManyToArray)(this.targets,n)}}async resetTargetState(){this.selectedTargetValue=null
const e=this.searchSelectOptions||{}
if(!this.searchSelectOptions){const n=["identity/group","identity/entity"]
for(const l of n)try{e[l]=await this.store.query(l,{})}catch(t){e[l]=[]}this.searchSelectOptions=e}this.selectedTargetType.includes("identity")&&(this.searchSelect={selected:[],options:[...e[this.selectedTargetType]]})}async fetchAuthMethods(){const e=await this.store.findAll("auth-method")
this.authMethods=e.map((e=>e.type))}get selectedTarget(){return this.targetTypes.find((e=>e.type===this.selectedTargetType))}get errors(){return this.args.modelErrors||this.modelErrors}updateModelForKey(e){const t=this.targets.filter((t=>t.key===e)).map((e=>e.value))
this.args.model[e]=t}*save(){this.modelErrors={}
const{isValid:e,state:t}=this.args.model.validate()
if(e)try{yield this.args.model.save(),this.args.onSave()}catch(n){const e=n.errors?n.errors.join(". "):n.message
this.flashMessages.danger(e)}else this.modelErrors=t}async onMethodChange(e){const t=(await this.args.model.mfa_methods).filter((t=>e.includes(t.id))),n=t.map((e=>e.id)),l=e.filter((e=>!n.includes(e))).map((e=>this.store.peekRecord("mfa-method",e)))
this.args.model.mfa_methods=(0,a.addManyToArray)(t,l)}onTargetSelect(e){this.selectedTargetType=e,this.resetTargetState()}setTargetValue(e){const{type:t}=this.selectedTarget
t.includes("identity")?this.selectedTargetValue=this.store.peekRecord(t,e[0]):this.selectedTargetValue=e}addTarget(){const{label:e,key:t}=this.selectedTarget,n=this.selectedTargetValue
this.targets=(0,a.addToArray)(this.targets,{label:e,value:n,key:t}),this.updateModelForKey(t),this.selectedTargetValue=null,this.resetTargetState()}removeTarget(e){this.targets=(0,o.removeFromArray)(this.targets,e),this.updateModelForKey(e.key)}cancel(){this.args.model.rollbackAttributes(),this.args.onClose()}},u=w(s.prototype,"store",[i.service],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),c=w(s.prototype,"flashMessages",[i.service],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),d=w(s.prototype,"name",[n.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),p=w(s.prototype,"targets",[n.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return[]}}),f=w(s.prototype,"selectedTargetType",[n.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return"accessor"}}),m=w(s.prototype,"selectedTargetValue",[n.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),h=w(s.prototype,"searchSelect",[n.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return{options:[],selected:[]}}}),b=w(s.prototype,"authMethods",[n.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return[]}}),y=w(s.prototype,"modelErrors",[n.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),w(s.prototype,"save",[r.task],Object.getOwnPropertyDescriptor(s.prototype,"save"),s.prototype),w(s.prototype,"onMethodChange",[l.action],Object.getOwnPropertyDescriptor(s.prototype,"onMethodChange"),s.prototype),w(s.prototype,"onTargetSelect",[l.action],Object.getOwnPropertyDescriptor(s.prototype,"onTargetSelect"),s.prototype),w(s.prototype,"setTargetValue",[l.action],Object.getOwnPropertyDescriptor(s.prototype,"setTargetValue"),s.prototype),w(s.prototype,"addTarget",[l.action],Object.getOwnPropertyDescriptor(s.prototype,"addTarget"),s.prototype),w(s.prototype,"removeTarget",[l.action],Object.getOwnPropertyDescriptor(s.prototype,"removeTarget"),s.prototype),w(s.prototype,"cancel",[l.action],Object.getOwnPropertyDescriptor(s.prototype,"cancel"),s.prototype),s)})),define("vault/components/mfa/mfa-login-enforcement-header",["exports","@glimmer/component","@glimmer/tracking","@ember/service","@ember/object"],(function(e,t,n,l,i){var r,a,o
function s(e,t,n,l){n&&Object.defineProperty(e,t,{enumerable:n.enumerable,configurable:n.configurable,writable:n.writable,value:n.initializer?n.initializer.call(l):void 0})}function u(e,t,n,l,i){var r={}
return Object.keys(l).forEach((function(e){r[e]=l[e]})),r.enumerable=!!r.enumerable,r.configurable=!!r.configurable,("value"in r||r.initializer)&&(r.writable=!0),r=n.slice().reverse().reduce((function(n,l){return l(e,t,n)||n}),r),i&&void 0!==r.initializer&&(r.value=r.initializer?r.initializer.call(i):void 0,r.initializer=void 0),void 0===r.initializer?(Object.defineProperty(e,t,r),null):r}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default=(r=class extends t.default{constructor(){super(...arguments),s(this,"store",a,this),s(this,"enforcements",o,this),this.args.isInline&&this.fetchEnforcements()}async fetchEnforcements(){try{this._enforcements=await this.store.query("mfa-login-enforcement",{}),this.enforcements=[...this._enforcements]}catch(e){this.enforcements=[]}}onEnforcementSelect([e]){this.args.onEnforcementSelect(this._enforcements.find((t=>t.name===e)))}},a=u(r.prototype,"store",[l.service],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),o=u(r.prototype,"enforcements",[n.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return[]}}),u(r.prototype,"onEnforcementSelect",[i.action],Object.getOwnPropertyDescriptor(r.prototype,"onEnforcementSelect"),r.prototype),r)})),define("vault/components/mfa/mfa-setup-step-one",["exports","@glimmer/component","@ember/service","@ember/object","@glimmer/tracking"],(function(e,t,n,l,i){var r,a,o,s,u
function c(e,t,n,l){n&&Object.defineProperty(e,t,{enumerable:n.enumerable,configurable:n.configurable,writable:n.writable,value:n.initializer?n.initializer.call(l):void 0})}function d(e,t,n,l,i){var r={}
return Object.keys(l).forEach((function(e){r[e]=l[e]})),r.enumerable=!!r.enumerable,r.configurable=!!r.configurable,("value"in r||r.initializer)&&(r.writable=!0),r=n.slice().reverse().reduce((function(n,l){return l(e,t,n)||n}),r),i&&void 0!==r.initializer&&(r.value=r.initializer?r.initializer.call(i):void 0,r.initializer=void 0),void 0===r.initializer?(Object.defineProperty(e,t,r),null):r}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default=(r=class extends t.default{constructor(...e){super(...e),c(this,"store",a,this),c(this,"error",o,this),c(this,"warning",s,this),c(this,"qrCode",u,this)}redirectPreviousPage(){this.args.restartFlow(),window.history.back()}async verifyUUID(e){e.preventDefault()
const t=await this.postCurrentTokenGenerate()
"stop_progress"===t?this.args.isUUIDVerified(!1):"reset_method"===t?this.args.showWarning(this.warning):this.args.isUUIDVerified(!0)}async postCurrentTokenGenerate(){this.error="",this.warning=""
const e=this.store.adapterFor("mfa-setup")
let t
try{t=await e.currentTokenGenerate({method_id:this.UUID}),this.args.saveUUIDandQrCode(this.UUID,t.data?.url)
const n=t.warnings||[]
if(n.length>0){this.UUID=""
return n.find((e=>e.includes("Entity already has a secret for MFA method")))?(this.warning="A QR code has already been generated, scanned, and MFA set up for this entity. If a new code is required, contact your administrator.","reset_method"):(this.warning=n,"reset_method")}}catch(n){return this.UUID="",this.error=n.errors,"stop_progress"}return t}},a=d(r.prototype,"store",[n.service],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),o=d(r.prototype,"error",[i.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return""}}),s=d(r.prototype,"warning",[i.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return""}}),u=d(r.prototype,"qrCode",[i.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return""}}),d(r.prototype,"redirectPreviousPage",[l.action],Object.getOwnPropertyDescriptor(r.prototype,"redirectPreviousPage"),r.prototype),d(r.prototype,"verifyUUID",[l.action],Object.getOwnPropertyDescriptor(r.prototype,"verifyUUID"),r.prototype),r)})),define("vault/components/mfa/mfa-setup-step-two",["exports","@glimmer/component","@ember/service","@ember/object"],(function(e,t,n,l){var i,r
function a(e,t,n,l,i){var r={}
return Object.keys(l).forEach((function(e){r[e]=l[e]})),r.enumerable=!!r.enumerable,r.configurable=!!r.configurable,("value"in r||r.initializer)&&(r.writable=!0),r=n.slice().reverse().reduce((function(n,l){return l(e,t,n)||n}),r),i&&void 0!==r.initializer&&(r.value=r.initializer?r.initializer.call(i):void 0,r.initializer=void 0),void 0===r.initializer?(Object.defineProperty(e,t,r),null):r}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default=(i=class extends t.default{constructor(...e){var t,n,l,i
super(...e),t=this,n="store",i=this,(l=r)&&Object.defineProperty(t,n,{enumerable:l.enumerable,configurable:l.configurable,writable:l.writable,value:l.initializer?l.initializer.call(i):void 0})}redirectPreviousPage(){this.args.restartFlow(),window.history.back()}async restartSetup(){this.error=null
const e=this.store.adapterFor("mfa-setup")
try{await e.adminDestroy({entity_id:this.args.entityId,method_id:this.args.uuid})}catch(t){return this.error=t.errors,"stop_progress"}this.args.restartFlow()}},r=a(i.prototype,"store",[n.service],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),a(i.prototype,"redirectPreviousPage",[l.action],Object.getOwnPropertyDescriptor(i.prototype,"redirectPreviousPage"),i.prototype),a(i.prototype,"restartSetup",[l.action],Object.getOwnPropertyDescriptor(i.prototype,"restartSetup"),i.prototype),i)})),define("vault/components/modal-dialog",["exports","ember-modal-dialog/components/modal-dialog"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.default}})}))
define("vault/components/modal-form/oidc-assignment-template",["exports","@ember/component","@glimmer/component","@ember/object","@ember/service","@glimmer/tracking","@ember/template-factory"],(function(e,t,n,l,i,r,a){var o,s,u
function c(e,t,n,l){n&&Object.defineProperty(e,t,{enumerable:n.enumerable,configurable:n.configurable,writable:n.writable,value:n.initializer?n.initializer.call(l):void 0})}function d(e,t,n,l,i){var r={}
return Object.keys(l).forEach((function(e){r[e]=l[e]})),r.enumerable=!!r.enumerable,r.configurable=!!r.configurable,("value"in r||r.initializer)&&(r.writable=!0),r=n.slice().reverse().reduce((function(n,l){return l(e,t,n)||n}),r),i&&void 0!==r.initializer&&(r.value=r.initializer?r.initializer.call(i):void 0,r.initializer=void 0),void 0===r.initializer?(Object.defineProperty(e,t,r),null):r}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
const p=(0,a.createTemplateFactory)({id:"KQxxdMLY",block:'[[[8,[39,0],null,[["@onSave","@model","@onCancel"],[[30,0,["onSave"]],[30,0,["assignment"]],[30,1]]],null]],["@onCancel"],false,["oidc/assignment-form"]]',moduleName:"vault/components/modal-form/oidc-assignment-template.hbs",isStrictMode:!1})
let f=e.default=(o=class extends n.default{constructor(){super(...arguments),c(this,"store",s,this),c(this,"assignment",u,this),this.assignment=this.store.createRecord("oidc/assignment",{name:this.args.nameInput})}onSave(e){this.args.onSave(e),this.assignment=null}},s=d(o.prototype,"store",[i.service],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),u=d(o.prototype,"assignment",[r.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),d(o.prototype,"onSave",[l.action],Object.getOwnPropertyDescriptor(o.prototype,"onSave"),o.prototype),o);(0,t.setComponentTemplate)(p,f)})),define("vault/components/modal-form/oidc-key-template",["exports","@ember/component","@glimmer/component","@ember/object","@ember/service","@glimmer/tracking","@ember/template-factory"],(function(e,t,n,l,i,r,a){var o,s,u
function c(e,t,n,l){n&&Object.defineProperty(e,t,{enumerable:n.enumerable,configurable:n.configurable,writable:n.writable,value:n.initializer?n.initializer.call(l):void 0})}function d(e,t,n,l,i){var r={}
return Object.keys(l).forEach((function(e){r[e]=l[e]})),r.enumerable=!!r.enumerable,r.configurable=!!r.configurable,("value"in r||r.initializer)&&(r.writable=!0),r=n.slice().reverse().reduce((function(n,l){return l(e,t,n)||n}),r),i&&void 0!==r.initializer&&(r.value=r.initializer?r.initializer.call(i):void 0,r.initializer=void 0),void 0===r.initializer?(Object.defineProperty(e,t,r),null):r}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
const p=(0,a.createTemplateFactory)({id:"RHglzjly",block:'[[[8,[39,0],null,[["@onSave","@model","@onCancel","@isModalForm"],[[30,0,["onSave"]],[30,0,["key"]],[30,1],true]],null]],["@onCancel"],false,["oidc/key-form"]]',moduleName:"vault/components/modal-form/oidc-key-template.hbs",isStrictMode:!1})
let f=e.default=(o=class extends n.default{constructor(){super(...arguments),c(this,"store",s,this),c(this,"key",u,this),this.key=this.store.createRecord("oidc/key",{name:this.args.nameInput})}onSave(e){this.args.onSave(e),this.key=null}},s=d(o.prototype,"store",[i.service],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),u=d(o.prototype,"key",[r.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),d(o.prototype,"onSave",[l.action],Object.getOwnPropertyDescriptor(o.prototype,"onSave"),o.prototype),o);(0,t.setComponentTemplate)(p,f)})),define("vault/components/modal-form/policy-template",["exports","@ember/component","@glimmer/component","@ember/object","@ember/service","@glimmer/tracking","@ember/template-factory"],(function(e,t,n,l,i,r,a){var o,s,u,c
function d(e,t,n,l){n&&Object.defineProperty(e,t,{enumerable:n.enumerable,configurable:n.configurable,writable:n.writable,value:n.initializer?n.initializer.call(l):void 0})}function p(e,t,n,l,i){var r={}
return Object.keys(l).forEach((function(e){r[e]=l[e]})),r.enumerable=!!r.enumerable,r.configurable=!!r.configurable,("value"in r||r.initializer)&&(r.writable=!0),r=n.slice().reverse().reduce((function(n,l){return l(e,t,n)||n}),r),i&&void 0!==r.initializer&&(r.value=r.initializer?r.initializer.call(i):void 0,r.initializer=void 0),void 0===r.initializer?(Object.defineProperty(e,t,r),null):r}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
const f=(0,a.createTemplateFactory)({id:"+eKWtEpN",block:'[[[41,[30,0,["policy","policyType"]],[[[1,"  "],[8,[39,1],null,null,[["default"],[[[[1,"\\n    "],[8,[30,1,["Tab"]],null,null,[["default"],[[[[1,"\\n      Your Policy\\n    "]],[]]]]],[1,"\\n    "],[8,[30,1,["Tab"]],[[24,"Tab",""]],null,[["default"],[[[[1,"\\n      Example Policy\\n    "]],[]]]]],[1,"\\n\\n    "],[8,[30,1,["Panel"]],null,null,[["default"],[[[[1,"\\n      "],[8,[39,2],null,[["@onSave","@model","@onCancel"],[[30,0,["onSave"]],[30,0,["policy"]],[30,2]]],null],[1,"\\n    "]],[]]]]],[1,"\\n    "],[8,[30,1,["Panel"]],[[24,0,"has-top-padding-m"]],null,[["default"],[[[[1,"\\n      "],[8,[39,3],null,[["@policyType","@container"],[[30,0,["policy","policyType"]],"#search-select-modal"]],null],[1,"\\n    "]],[]]]]],[1,"\\n  "]],[1]]]]],[1,"\\n"]],[]],[[[1,"  "],[8,[39,4],null,[["@name","@label","@options","@isFullwidth","@selectedValue","@onChange","@noDefault"],["policyType","Type",[30,0,["policyOptions"]],true,[30,0,["policy","policyType"]],[30,0,["setPolicyType"]],true]],null],[1,"\\n  "],[8,[39,5],null,[["@title","@message"],["No policy type selected","Select a policy type to continue creating."]],null],[1,"\\n"]],[]]]],["T","@onCancel"],false,["if","hds/tabs","policy-form","policy-example","select","empty-state"]]',moduleName:"vault/components/modal-form/policy-template.hbs",isStrictMode:!1})
let m=e.default=(o=class extends n.default{constructor(...e){super(...e),d(this,"store",s,this),d(this,"version",u,this),d(this,"policy",c,this)}get policyOptions(){return[{label:"ACL Policy",value:"acl",isDisabled:!1},{label:"Role Governing Policy",value:"rgp",isDisabled:!this.version.hasSentinel}]}setPolicyType(e){this.policy&&this.policy.unloadRecord(),this.policy=this.store.createRecord(`policy/${e}`,{name:this.args.nameInput})}onSave(e){this.args.onSave(e),this.policy=null}},s=p(o.prototype,"store",[i.service],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),u=p(o.prototype,"version",[i.service],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),c=p(o.prototype,"policy",[r.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),p(o.prototype,"setPolicyType",[l.action],Object.getOwnPropertyDescriptor(o.prototype,"setPolicyType"),o.prototype),p(o.prototype,"onSave",[l.action],Object.getOwnPropertyDescriptor(o.prototype,"onSave"),o.prototype),o);(0,t.setComponentTemplate)(f,m)})),define("vault/components/mount-accessor-select",["exports","@glimmer/component","@ember/service","ember-concurrency","@ember/object"],(function(e,t,n,l,i){var r,a
function o(e,t,n,l,i){var r={}
return Object.keys(l).forEach((function(e){r[e]=l[e]})),r.enumerable=!!r.enumerable,r.configurable=!!r.configurable,("value"in r||r.initializer)&&(r.writable=!0),r=n.slice().reverse().reduce((function(n,l){return l(e,t,n)||n}),r),i&&void 0!==r.initializer&&(r.value=r.initializer?r.initializer.call(i):void 0,r.initializer=void 0),void 0===r.initializer?(Object.defineProperty(e,t,r),null):r}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default=(r=class extends t.default{get filterToken(){return this.args.filterToken||!1}get noDefault(){return this.args.noDefault||!1}constructor(){var e,t,n,l
super(...arguments),e=this,t="store",l=this,(n=a)&&Object.defineProperty(e,t,{enumerable:n.enumerable,configurable:n.configurable,writable:n.writable,value:n.initializer?n.initializer.call(l):void 0}),this.authMethods.perform()}*authMethods(){const e=yield this.store.findAll("auth-method")
if(!this.args.value&&!this.args.noDefault){const t=e[0].accessor
this.args.onChange(t)}return e}change(e){this.args.onChange(e.target.value)}},a=o(r.prototype,"store",[n.service],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),o(r.prototype,"authMethods",[l.task],Object.getOwnPropertyDescriptor(r.prototype,"authMethods"),r.prototype),o(r.prototype,"change",[i.action],Object.getOwnPropertyDescriptor(r.prototype,"change"),r.prototype),r)})),define("vault/components/mount-backend-form",["exports","@ember/component","@glimmer/component","@glimmer/tracking","@ember/service","@ember/object","ember-concurrency","@ember/test-waiters","vault/helpers/mountable-auth-methods","vault/helpers/mountable-secret-engines","@ember/template-factory"],(function(e,t,n,l,i,r,a,o,s,u,c){var d,p,f,m,h,b
function y(e,t,n,l){n&&Object.defineProperty(e,t,{enumerable:n.enumerable,configurable:n.configurable,writable:n.writable,value:n.initializer?n.initializer.call(l):void 0})}function v(e,t,n,l,i){var r={}
return Object.keys(l).forEach((function(e){r[e]=l[e]})),r.enumerable=!!r.enumerable,r.configurable=!!r.configurable,("value"in r||r.initializer)&&(r.writable=!0),r=n.slice().reverse().reduce((function(n,l){return l(e,t,n)||n}),r),i&&void 0!==r.initializer&&(r.value=r.initializer?r.initializer.call(i):void 0,r.initializer=void 0),void 0===r.initializer?(Object.defineProperty(e,t,r),null):r}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
const g=(0,c.createTemplateFactory)({id:"pP0pd3k1",block:'[[[8,[39,0],null,null,[["default"],[[[[1,"\\n  "],[8,[30,1,["levelLeft"]],null,null,[["default"],[[[[1,"\\n    "],[10,"h1"],[14,0,"title is-3 title-with-icon"],[12],[1,"\\n"],[41,[30,0,["showEnable"]],[[[44,[[28,[37,3],["type",[30,2,["type"]],[30,3]],null]],[[[1,"          "],[8,[39,4],[[24,0,"has-text-grey-light"]],[["@name","@size"],[[30,4,["glyph"]],"24"]],null],[1,"\\n"],[41,[28,[37,5],[[30,5],"secret"],null],[[[1,"            "],[1,[28,[35,6],["Enable ",[30,4,["displayName"]]," Secrets Engine"],null]],[1,"\\n"]],[]],[[[1,"            "],[1,[28,[35,6],["Enable ",[30,4,["displayName"]]," Authentication Method"],null]],[1,"\\n"]],[]]]],[4]]]],[]],[[[41,[28,[37,5],[[30,5],"secret"],null],[[[1,"        Enable a Secrets Engine\\n"]],[]],[[[1,"        Enable an Authentication Method\\n      "]],[]]]],[]]],[1,"    "],[13],[1,"\\n  "]],[]]]]],[1,"\\n"]],[1]]]]],[1,"\\n\\n"],[10,0],[14,0,"box is-sideless is-bottomless is-fullwidth is-marginless"],[12],[1,"\\n  "],[8,[39,7],null,[["@mode","@noun"],["enable",[52,[28,[37,5],[[30,5],"secret"],null],"Secret Engine","Auth Method"]]],null],[1,"\\n  "],[8,[39,8],null,[["@errorMessage"],[[30,0,["errorMessage"]]]],null],[1,"\\n"],[41,[30,2,["type"]],[[[1,"    "],[11,"form"],[4,[38,9],["submit",[28,[37,10],[[30,0,["mountBackend"]]],null]],null],[12],[1,"\\n      "],[8,[39,11],null,[["@model","@renderGroup","@modelValidations","@onKeyUp"],[[30,2],"default",[30,0,["modelValidations"]],[30,0,["onKeyUp"]]]],null],[1,"\\n\\n      "],[8,[39,11],null,[["@model","@renderGroup"],[[30,2],"Method Options"]],[["identityTokenKey"],[[[[1,"\\n          "],[8,[39,12],null,[["@id","@fallbackComponent","@inputValue","@onChange","@models","@selectLimit","@modalFormTemplate","@placeholder","@fallbackComponentPlaceholder","@modalSubtext"],["key","input-search",[30,2,["config","identityTokenKey"]],[30,0,["handleIdentityTokenKeyChange"]],[28,[37,13],["oidc/key"],null],"1","modal-form/oidc-key-template","Search for an existing OIDC key, or type a new key name to create it.","Input a key name","This key will be created in the OIDC key path."]],null],[1,"\\n        "]],[]]]]],[1,"\\n\\n      "],[10,0],[14,0,"field is-grouped box is-fullwidth is-bottomless"],[12],[1,"\\n        "],[10,0],[14,0,"control"],[12],[1,"\\n          "],[8,[39,14],[[16,"disabled",[30,0,["mountBackend","isRunning"]]],[24,4,"submit"]],[["@text","@icon"],[[52,[28,[37,5],[[30,5],"secret"],null],"Enable engine","Enable method"],[52,[30,0,["mountBackend","isRunning"]],"loading"]]],null],[1,"\\n        "],[13],[1,"\\n        "],[10,0],[14,0,"control"],[12],[1,"\\n          "],[8,[39,14],[[4,[38,9],["click",[28,[37,15],[[30,0,["setMountType"]],""],null]],null]],[["@text","@color"],["Back","secondary"]],null],[1,"\\n        "],[13],[1,"\\n"],[41,[30,0,["invalidFormAlert"]],[[[1,"          "],[10,0],[14,0,"control"],[12],[1,"\\n            "],[8,[39,16],[[24,0,"has-top-padding-s"]],[["@type","@message"],["danger",[30,0,["invalidFormAlert"]]]],null],[1,"\\n          "],[13],[1,"\\n"]],[]],null],[1,"      "],[13],[1,"\\n    "],[13],[1,"\\n"]],[]],[[[1,"    "],[8,[39,17],null,[["@setMountType","@mountType"],[[30,0,["setMountType"]],[30,5]]],null],[1,"\\n"]],[]]],[13]],["p","@mountModel","@mountTypes","typeInfo","@mountType"],false,["page-header","if","let","find-by","icon","eq","concat","namespace-reminder","message-error","on","perform","form-field-groups","search-select-with-modal","array","hds/button","fn","alert-inline","mount-backend/type-form"]]',moduleName:"vault/components/mount-backend-form.hbs",isStrictMode:!1})
let w=e.default=(d=class extends n.default{constructor(...e){super(...e),y(this,"store",p,this),y(this,"flashMessages",f,this),y(this,"modelValidations",m,this),y(this,"invalidFormAlert",h,this),y(this,"errorMessage",b,this)}willDestroy(){this.store&&!this.store.isDestroying&&this.args?.mountModel?.isNew&&this.args.mountModel.unloadRecord(),super.willDestroy()}checkPathChange(e){if(!e)return
const t=this.args.mountModel,n=t.path,l="secret"===this.args.mountType?(0,u.allEngines)().map((e=>e.type)):(0,s.methods)().map((e=>e.type))
n&&!l.includes(n)||(t.path=e)}typeChangeSideEffect(e){"secret"===this.args.mountType&&(this.args.mountModel.config.maxLeaseTtl="pki"===e?"3650d":0)}checkModelValidity(e){const{isValid:t,state:n,invalidFormMessage:l}=e.validate()
return this.modelValidations=n,this.invalidFormAlert=l,t}checkModelWarnings(){const{state:e}=this.args.mountModel.validate()
for(const t in e)e[t].errors=[]
this.modelValidations=e,this.invalidFormAlert=null}async showWarningsForKvv2(){try{const e=await this.store.findRecord("capabilities",`${this.args.mountModel.path}/config`)
e?.canUpdate||(this.flashMessages.warning("You do not have access to the config endpoint. The secret engine was mounted, but the configuration settings were not saved."),[this.args.mountModel.maxVersions,this.args.mountModel.casRequired,this.args.mountModel.deleteVersionAfter]=[0,!1,0])}catch(e){this.flashMessages.warning("You may not have access to the config endpoint. The secret engine was mounted, but the configuration settings may not be saved.")}}*mountBackend(e){e.preventDefault()
const t=this.args.mountModel,{type:n,path:l}=t
if(!this.checkModelValidity(t))return
const i=Object.keys(t.changedAttributes()),r=i.includes("casRequired")||i.includes("deleteVersionAfter")||i.includes("maxVersions")
try{yield t.save()}catch(o){if(403===o.httpStatus)return void this.flashMessages.danger("You do not have access to the sys/mounts endpoint. The secret engine was not mounted.")
if(o.errors){const e=o.errors.map((e=>"object"==typeof e?e.title||e.message||JSON.stringify(e):e))
this.errorMessage=e}else o.message?this.errorMessage=o.message:this.errorMessage="An error occurred, check the vault logs."
return}t.isV2KV&&r&&(yield this.showWarningsForKvv2()),this.flashMessages.success(`Successfully mounted the ${n} ${"secret"===this.args.mountType?"secrets engine":"auth method"} at ${l}.`)
const a=(0,u.isAddonEngine)(t.engineType,t.version)
yield this.args.onMountSuccess(n,l,a)}onKeyUp(e,t){this.args.mountModel[e]=t,this.checkModelWarnings()}setMountType(e){this.args.mountModel.type=e,this.typeChangeSideEffect(e),this.checkPathChange(e)}handleIdentityTokenKeyChange(e){this.args.mountModel.config.identityTokenKey=Array.isArray(e)?e[0]:e}},p=v(d.prototype,"store",[i.service],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),f=v(d.prototype,"flashMessages",[i.service],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),m=v(d.prototype,"modelValidations",[l.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),h=v(d.prototype,"invalidFormAlert",[l.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),b=v(d.prototype,"errorMessage",[l.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return""}}),v(d.prototype,"mountBackend",[a.task,o.waitFor],Object.getOwnPropertyDescriptor(d.prototype,"mountBackend"),d.prototype),v(d.prototype,"onKeyUp",[r.action],Object.getOwnPropertyDescriptor(d.prototype,"onKeyUp"),d.prototype),v(d.prototype,"setMountType",[r.action],Object.getOwnPropertyDescriptor(d.prototype,"setMountType"),d.prototype),v(d.prototype,"handleIdentityTokenKeyChange",[r.action],Object.getOwnPropertyDescriptor(d.prototype,"handleIdentityTokenKeyChange"),d.prototype),d);(0,t.setComponentTemplate)(g,w)})),define("vault/components/mount-backend/type-form",["exports","@ember/component","@glimmer/component","@ember/service","vault/helpers/mountable-auth-methods","vault/helpers/mountable-secret-engines","@ember/template-factory"],(function(e,t,n,l,i,r,a){var o,s
Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
const u=(0,a.createTemplateFactory)({id:"89wAvg44",block:'[[[42,[28,[37,1],[[28,[37,1],[[28,[37,2],["generic","cloud","infra"],null]],null]],null],null,[[[1,"  "],[8,[39,3],[[24,0,"has-top-padding-m has-bottom-padding-s"],[24,"size","400"]],[["@tag"],["h2"]],[["default"],[[[[1,"\\n    "],[1,[28,[35,4],[[30,1]],null]],[1,"\\n  "]],[]]]]],[1,"\\n  "],[10,0],[14,0,"flex row-wrap row-gap-8 column-gap-16 has-bottom-padding-m"],[12],[1,"\\n"],[42,[28,[37,1],[[28,[37,1],[[28,[37,5],["category",[30,1],[30,0,["mountTypes"]]],null]],null]],null],null,[[[1,"      "],[8,[39,6],[[16,1,[30,2,["type"]]],[24,0,"has-top-padding-l has-text-centered small-card"]],[["@onClick","@disabled"],[[28,[37,7],[[30,3],[30,2,["type"]]],null],[52,[30,2,["requiredFeature"]],[28,[37,9],[[28,[37,10],[[30,2,["requiredFeature"]]],null]],null],false]]],[["default"],[[[[1,"\\n        "],[8,[39,11],[[24,0,"has-bottom-margin-xs"]],[["@name","@size"],[[30,2,["glyph"]],"24"]],null],[1,"\\n        "],[8,[39,12],null,[["@tag","@size"],["h3","300"]],[["default"],[[[[1,"\\n          "],[1,[30,2,["displayName"]]],[1,"\\n        "]],[]]]]],[1,"\\n"],[41,[28,[37,13],[[30,2,["requiredFeature"]],[28,[37,9],[[28,[37,10],[[30,2,["requiredFeature"]]],null]],null]],null],[[[1,"          "],[8,[39,14],null,[["@text","@icon","@size"],["Enterprise","enterprise","small"]],null],[1,"\\n"]],[]],null],[1,"      "]],[]]]]],[1,"\\n"]],[2]],null],[1,"  "],[13],[1,"\\n"]],[1]],null],[1,"\\n"],[10,0],[14,0,"field is-grouped box is-fullwidth is-bottomless"],[12],[1,"\\n  "],[8,[39,15],null,[["@text","@color","@route"],["Cancel","secondary",[52,[28,[37,16],[[30,4],"secret"],null],"vault.cluster.secrets.backends","vault.cluster.access.methods"]]],null],[1,"\\n"],[13]],["category","type","@setMountType","@mountType"],false,["each","-track-array","array","hds/text/display","capitalize","filter-by","selectable-card","fn","if","not","has-feature","icon","hds/text/body","and","hds/badge","hds/button","eq"]]',moduleName:"vault/components/mount-backend/type-form.hbs",isStrictMode:!1})
let c=e.default=(o=class extends n.default{constructor(...e){var t,n,l,i
super(...e),t=this,n="version",i=this,(l=s)&&Object.defineProperty(t,n,{enumerable:l.enumerable,configurable:l.configurable,writable:l.writable,value:l.initializer?l.initializer.call(i):void 0})}get secretEngines(){return this.version.isEnterprise?(0,r.allEngines)():(0,r.mountableEngines)()}get authMethods(){return this.version.isEnterprise?(0,i.allMethods)():(0,i.methods)()}get mountTypes(){return"secret"===this.args.mountType?this.secretEngines:this.authMethods}},d=o.prototype,p="version",f=[l.service],m={configurable:!0,enumerable:!0,writable:!0,initializer:null},b={},Object.keys(m).forEach((function(e){b[e]=m[e]})),b.enumerable=!!b.enumerable,b.configurable=!!b.configurable,("value"in b||b.initializer)&&(b.writable=!0),b=f.slice().reverse().reduce((function(e,t){return t(d,p,e)||e}),b),h&&void 0!==b.initializer&&(b.value=b.initializer?b.initializer.call(h):void 0,b.initializer=void 0),s=void 0===b.initializer?(Object.defineProperty(d,p,b),null):b,o)
var d,p,f,m,h,b;(0,t.setComponentTemplate)(u,c)})),define("vault/components/namespace-link",["exports","@ember/service","@ember/object/computed","@ember/component","@ember/object"],(function(e,t,n,l,i){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default=l.default.extend({namespaceService:(0,t.service)("namespace"),currentNamespace:(0,n.alias)("namespaceService.path"),tagName:"",targetNamespace:null,showLastSegment:!1,unparsed:!1,normalizedNamespace:(0,i.computed)("targetNamespace","unparsed",(function(){const e=this.targetNamespace||""
return this.unparsed?e:e.replace(/\.+/g,"/").replace(/☃/g,".")})),namespaceDisplay:(0,i.computed)("normalizedNamespace","showLastSegment",(function(){const e=this.normalizedNamespace
if(!e)return"root"
const t=this.showLastSegment,n=e?.split("/")
return t?n[n.length-1]:e})),isCurrentNamespace:(0,i.computed)("targetNamespace","currentNamespace",(function(){return this.currentNamespace===this.targetNamespace})),get namespaceLink(){const e=window.location.protocol+"//"+window.location.hostname+(window.location.port?":"+window.location.port:"")
return this.normalizedNamespace?`${e}/ui/vault/dashboard?namespace=${encodeURIComponent(this.normalizedNamespace)}`:`${e}/ui/vault/dashboard`}})})),define("vault/components/namespace-picker",["exports","@ember/service","@ember/object/computed","@ember/component","@ember/object","ember-concurrency","vault/lib/path-to-tree","core/utils/key-utils"],(function(e,t,n,l,i,r,a,o){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default=l.default.extend({tagName:"",namespaceService:(0,t.service)("namespace"),auth:(0,t.service)(),store:(0,t.service)(),namespace:null,listCapability:null,canList:!1,init(){this._super(...arguments),this.namespaceService?.findNamespacesForUser.perform()},didReceiveAttrs(){this._super(...arguments)
const e=this.namespace,t=this.oldNamespace
t&&e===t||(this.setForAnimation.perform(),this.fetchListCapability.perform()),this.set("oldNamespace",e)},fetchListCapability:(0,r.task)((function*(){try{const e=yield this.store.findRecord("capabilities","sys/namespaces/")
this.set("listCapability",e),this.set("canList",!0)}catch(e){this.set("canList",!1)}})),setForAnimation:(0,r.task)((function*(){const e=this.menuLeaves,t=this.lastMenuLeaves
if(!t)return this.set("lastMenuLeaves",e),void(yield(0,r.timeout)(0))
const n=e.length>t.length,l=n?e:t,[i]=l.slice(-1)
if(this.set("isAdding",n),this.set("changedLeaf",i),n)return this.set("lastMenuLeaves",e),void(yield(0,r.timeout)(0))
yield(0,r.timeout)(250),this.set("lastMenuLeaves",e)})).drop(),isAnimating:(0,n.alias)("setForAnimation.isRunning"),namespacePath:(0,n.alias)("namespaceService.path"),accessibleNamespaces:(0,n.alias)("namespaceService.accessibleNamespaces"),inRootNamespace:(0,n.alias)("namespaceService.inRootNamespace"),namespaceTree:(0,i.computed)("accessibleNamespaces",(function(){const e=this.accessibleNamespaces
return e?(0,a.default)(e):[]})),maybeAddRoot(e){return""===this.auth.authData.userRootNamespace&&e.unshift(""),e.uniq()},pathToLeaf:e=>e.replace(/\/$/,"").replace(/\.+/g,"☃").replace(/\/+/g,"."),menuLeaves:(0,i.computed)("namespacePath","namespaceTree","pathToLeaf",(function(){let e=this.namespacePath
e=(e||"").replace(/^\//,"")
let t=(0,o.ancestorKeysForKey)(e)
return t.push(e),t=this.maybeAddRoot(t),t=t.map(this.pathToLeaf),t})),rootLeaves:(0,i.computed)("namespaceTree",(function(){const e=this.namespaceTree
return Object.keys(e)})),currentLeaf:(0,n.alias)("lastMenuLeaves.lastObject"),canAccessMultipleNamespaces:(0,n.gt)("accessibleNamespaces.length",1),isUserRootNamespace:(0,i.computed)("auth.authData.userRootNamespace","namespacePath",(function(){return this.auth.authData.userRootNamespace===this.namespacePath})),namespaceDisplay:(0,i.computed)("namespacePath","accessibleNamespaces","accessibleNamespaces.[]",(function(){const e=this.namespacePath
if(!e)return"root"
const t=e?.split("/")
return t[t.length-1]})),actions:{refreshNamespaceList(){this.namespaceService.findNamespacesForUser.perform()}}})})),define("vault/components/namespace-reminder",["exports","core/components/namespace-reminder"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.default}})})),define("vault/components/navigate-input",["exports","core/components/navigate-input"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.default}})})),define("vault/components/navigation-narrator",["exports","ember-a11y-refocus/components/navigation-narrator"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.default}})})),define("vault/components/not-found",["exports","@ember/component","@ember/service","@glimmer/component","@ember/template-factory"],(function(e,t,n,l,i){var r,a
Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
const o=(0,i.createTemplateFactory)({id:"uLChGYqD",block:'[[[10,0],[14,0,"box is-shadowless"],[12],[1,"\\n  "],[8,[39,0],null,null,[["default"],[[[[1,"\\n    "],[8,[30,1,["levelLeft"]],null,null,[["default"],[[[[1,"\\n      "],[10,"h1"],[14,0,"title is-3 has-text-grey"],[12],[1,"\\n        404 Not Found\\n      "],[13],[1,"\\n    "]],[]]]]],[1,"\\n  "]],[1]]]]],[1,"\\n  "],[10,0],[14,0,"box is-sideless has-background-white-bis has-text-grey has-text-centered"],[12],[1,"\\n    "],[10,2],[12],[1,"Sorry, we were unable to find any content at "],[10,"code"],[12],[1,[28,[35,1],[[30,2,["path"]],[30,0,["path"]]],null]],[13],[1,"."],[13],[1,"\\n    "],[10,2],[12],[1,"\\n      Double check the url or\\n      "],[8,[39,2],null,[["@href","@sameTab"],["/",true]],[["default"],[[[[1,"go back home"]],[]]]]],[1,".\\n    "],[13],[1,"\\n  "],[13],[1,"\\n"],[13]],["p","@model"],false,["page-header","or","external-link"]]',moduleName:"vault/components/not-found.hbs",isStrictMode:!1})
let s=e.default=(r=class extends l.default{constructor(...e){var t,n,l,i
super(...e),t=this,n="router",i=this,(l=a)&&Object.defineProperty(t,n,{enumerable:l.enumerable,configurable:l.configurable,writable:l.writable,value:l.initializer?l.initializer.call(i):void 0})}get path(){return this.router.currentURL}},u=r.prototype,c="router",d=[n.service],p={configurable:!0,enumerable:!0,writable:!0,initializer:null},m={},Object.keys(p).forEach((function(e){m[e]=p[e]})),m.enumerable=!!m.enumerable,m.configurable=!!m.configurable,("value"in m||m.initializer)&&(m.writable=!0),m=d.slice().reverse().reduce((function(e,t){return t(u,c,e)||e}),m),f&&void 0!==m.initializer&&(m.value=m.initializer?m.initializer.call(f):void 0,m.initializer=void 0),a=void 0===m.initializer?(Object.defineProperty(u,c,m),null):m,r)
var u,c,d,p,f,m;(0,t.setComponentTemplate)(o,s)})),define("vault/components/object-list-input",["exports","core/components/object-list-input"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.default}})})),define("vault/components/oidc-consent-block",["exports","ember","@glimmer/component","@ember/object","@glimmer/tracking"],(function(e,t,n,l,i){var r,a
function o(e,t,n,l,i){var r={}
return Object.keys(l).forEach((function(e){r[e]=l[e]})),r.enumerable=!!r.enumerable,r.configurable=!!r.configurable,("value"in r||r.initializer)&&(r.writable=!0),r=n.slice().reverse().reduce((function(n,l){return l(e,t,n)||n}),r),i&&void 0!==r.initializer&&(r.value=r.initializer?r.initializer.call(i):void 0,r.initializer=void 0),void 0===r.initializer?(Object.defineProperty(e,t,r),null):r}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
const s=["code","state"]
e.default=(r=class extends n.default{constructor(...e){var t,n,l,i
super(...e),t=this,n="didCancel",i=this,(l=a)&&Object.defineProperty(t,n,{enumerable:l.enumerable,configurable:l.configurable,writable:l.writable,value:l.initializer?l.initializer.call(i):void 0})}get win(){return this.window||window}buildUrl(e,t){try{const n=new URL(e)
return Object.keys(t).forEach((e=>{t[e]&&s.includes(e)&&n.searchParams.append(e,t[e])})),n}catch(n){throw console.debug("DEBUG: parsing url failed for",e),new Error("Invalid URL")}}handleSubmit(e){e.preventDefault()
const{redirect:n,...l}=this.args,i=this.buildUrl(n,l)
t.default.testing?this.args.testRedirect(i.toString()):this.win.location.replace(i)}handleCancel(e){e.preventDefault(),this.didCancel=!0}},a=o(r.prototype,"didCancel",[i.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),o(r.prototype,"handleSubmit",[l.action],Object.getOwnPropertyDescriptor(r.prototype,"handleSubmit"),r.prototype),o(r.prototype,"handleCancel",[l.action],Object.getOwnPropertyDescriptor(r.prototype,"handleCancel"),r.prototype),r)})),define("vault/components/oidc/assignment-form",["exports","@glimmer/component","@ember/object","@ember/service","ember-concurrency","@glimmer/tracking"],(function(e,t,n,l,i,r){var a,o,s,u,c
function d(e,t,n,l){n&&Object.defineProperty(e,t,{enumerable:n.enumerable,configurable:n.configurable,writable:n.writable,value:n.initializer?n.initializer.call(l):void 0})}function p(e,t,n,l,i){var r={}
return Object.keys(l).forEach((function(e){r[e]=l[e]})),r.enumerable=!!r.enumerable,r.configurable=!!r.configurable,("value"in r||r.initializer)&&(r.writable=!0),r=n.slice().reverse().reduce((function(n,l){return l(e,t,n)||n}),r),i&&void 0!==r.initializer&&(r.value=r.initializer?r.initializer.call(i):void 0,r.initializer=void 0),void 0===r.initializer?(Object.defineProperty(e,t,r),null):r}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default=(a=class extends t.default{constructor(...e){super(...e),d(this,"store",o,this),d(this,"flashMessages",s,this),d(this,"modelValidations",u,this),d(this,"errorBanner",c,this)}*save(e){e.preventDefault()
try{const{isValid:e,state:t}=this.args.model.validate()
if(this.modelValidations=e?null:t,e){const{isNew:e,name:t}=this.args.model
yield this.args.model.save(),this.flashMessages.success(`Successfully ${e?"created":"updated"} the assignment ${t}.`),this.args.onSave(this.args.model)}}catch(t){const e=t.errors?t.errors.join(". "):t.message
this.errorBanner=e}}cancel(){const e=this.args.model.isNew?"unloadRecord":"rollbackAttributes"
this.args.model[e](),this.args.onCancel()}handleOperation({target:e}){this.args.model.name=e.value}onEntitiesSelect(e){this.args.model.entityIds=e}onGroupsSelect(e){this.args.model.groupIds=e}},o=p(a.prototype,"store",[l.service],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),s=p(a.prototype,"flashMessages",[l.service],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),u=p(a.prototype,"modelValidations",[r.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),c=p(a.prototype,"errorBanner",[r.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),p(a.prototype,"save",[i.task],Object.getOwnPropertyDescriptor(a.prototype,"save"),a.prototype),p(a.prototype,"cancel",[n.action],Object.getOwnPropertyDescriptor(a.prototype,"cancel"),a.prototype),p(a.prototype,"handleOperation",[n.action],Object.getOwnPropertyDescriptor(a.prototype,"handleOperation"),a.prototype),p(a.prototype,"onEntitiesSelect",[n.action],Object.getOwnPropertyDescriptor(a.prototype,"onEntitiesSelect"),a.prototype),p(a.prototype,"onGroupsSelect",[n.action],Object.getOwnPropertyDescriptor(a.prototype,"onGroupsSelect"),a.prototype),a)})),define("vault/components/oidc/client-form",["exports","@glimmer/component","@ember/object","@ember/service","@glimmer/tracking","ember-concurrency"],(function(e,t,n,l,i,r){var a,o,s,u,c,d
function p(e,t,n,l){n&&Object.defineProperty(e,t,{enumerable:n.enumerable,configurable:n.configurable,writable:n.writable,value:n.initializer?n.initializer.call(l):void 0})}function f(e,t,n,l,i){var r={}
return Object.keys(l).forEach((function(e){r[e]=l[e]})),r.enumerable=!!r.enumerable,r.configurable=!!r.configurable,("value"in r||r.initializer)&&(r.writable=!0),r=n.slice().reverse().reduce((function(n,l){return l(e,t,n)||n}),r),i&&void 0!==r.initializer&&(r.value=r.initializer?r.initializer.call(i):void 0,r.initializer=void 0),void 0===r.initializer?(Object.defineProperty(e,t,r),null):r}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default=(a=class extends t.default{constructor(...e){super(...e),p(this,"flashMessages",o,this),p(this,"modelValidations",s,this),p(this,"errorBanner",u,this),p(this,"invalidFormAlert",c,this),p(this,"radioCardGroupValue",d,this)}get modelAssignments(){const{assignments:e}=this.args.model
return e.includes("allow_all")&&1===e.length?[]:e}handleAssignmentSelection(e){Array.isArray(e)?this.args.model.assignments=e:(this.radioCardGroupValue=e,this.args.model.assignments=[])}cancel(){const e=this.args.model.isNew?"unloadRecord":"rollbackAttributes"
this.args.model[e](),this.args.onCancel()}*save(e){e.preventDefault()
try{const{isValid:e,state:t,invalidFormMessage:n}=this.args.model.validate()
if(this.modelValidations=e?null:t,this.invalidFormAlert=n,e){"allow_all"===this.radioCardGroupValue&&(this.args.model.assignments=["allow_all"])
const{idTokenTtl:e,accessTokenTtl:t}=this.args.model
0===Number(e)&&(this.args.model.idTokenTtl="24h"),0===Number(t)&&(this.args.model.accessTokenTtl="24h")
const{isNew:n,name:l}=this.args.model
yield this.args.model.save(),this.flashMessages.success(`Successfully ${n?"created":"updated"} the application ${l}.`),this.args.onSave()}}catch(t){const e=t.errors?t.errors.join(". "):t.message
this.errorBanner=e,this.invalidFormAlert="There was an error submitting this form."}}},o=f(a.prototype,"flashMessages",[l.service],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),s=f(a.prototype,"modelValidations",[i.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),u=f(a.prototype,"errorBanner",[i.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),c=f(a.prototype,"invalidFormAlert",[i.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),d=f(a.prototype,"radioCardGroupValue",[i.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!this.args.model.assignments||this.args.model.assignments.includes("allow_all")?"allow_all":"limited"}}),f(a.prototype,"handleAssignmentSelection",[n.action],Object.getOwnPropertyDescriptor(a.prototype,"handleAssignmentSelection"),a.prototype),f(a.prototype,"cancel",[n.action],Object.getOwnPropertyDescriptor(a.prototype,"cancel"),a.prototype),f(a.prototype,"save",[r.task],Object.getOwnPropertyDescriptor(a.prototype,"save"),a.prototype),a)})),define("vault/components/oidc/key-form",["exports","@glimmer/component","@ember/object","@ember/service","@glimmer/tracking","ember-concurrency"],(function(e,t,n,l,i,r){var a,o,s,u,c,d,p
function f(e,t,n,l){n&&Object.defineProperty(e,t,{enumerable:n.enumerable,configurable:n.configurable,writable:n.writable,value:n.initializer?n.initializer.call(l):void 0})}function m(e,t,n,l,i){var r={}
return Object.keys(l).forEach((function(e){r[e]=l[e]})),r.enumerable=!!r.enumerable,r.configurable=!!r.configurable,("value"in r||r.initializer)&&(r.writable=!0),r=n.slice().reverse().reduce((function(n,l){return l(e,t,n)||n}),r),i&&void 0!==r.initializer&&(r.value=r.initializer?r.initializer.call(i):void 0,r.initializer=void 0),void 0===r.initializer?(Object.defineProperty(e,t,r),null):r}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default=(a=class extends t.default{constructor(...e){super(...e),f(this,"store",o,this),f(this,"flashMessages",s,this),f(this,"errorBanner",u,this),f(this,"invalidFormAlert",c,this),f(this,"modelValidations",d,this),f(this,"radioCardGroupValue",p,this)}get filterDropdownOptions(){return{paramKey:"key",filterFor:[this.args.model.name]}}handleClientSelection(e){Array.isArray(e)?this.args.model.allowedClientIds=e.map((e=>e.clientId)):(this.radioCardGroupValue=e,this.args.model.allowedClientIds=[])}cancel(){const e=this.args.model.isNew?"unloadRecord":"rollbackAttributes"
this.args.model[e](),this.args.onCancel()}*save(e){e.preventDefault()
try{const{isValid:e,state:t,invalidFormMessage:n}=this.args.model.validate()
if(this.modelValidations=e?null:t,this.invalidFormAlert=n,e){const{isNew:e,name:t}=this.args.model
"allow_all"===this.radioCardGroupValue&&(this.args.model.allowedClientIds=["*"])
const{rotationPeriod:n,verificationTtl:l}=this.args.model
0===Number(n)&&(this.args.model.rotationPeriod="24h"),0===Number(l)&&(this.args.model.verificationTtl="24h"),yield this.args.model.save(),this.flashMessages.success(`Successfully ${e?"created":"updated"} the key\n          ${t}.`),this.args.onSave(this.args.model)}}catch(t){const e=t.errors?t.errors.join(". "):t.message
this.errorBanner=e,this.invalidFormAlert="There was an error submitting this form."}}},o=m(a.prototype,"store",[l.service],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),s=m(a.prototype,"flashMessages",[l.service],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),u=m(a.prototype,"errorBanner",[i.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),c=m(a.prototype,"invalidFormAlert",[i.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),d=m(a.prototype,"modelValidations",[i.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),p=m(a.prototype,"radioCardGroupValue",[i.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!this.args.model.allowedClientIds||this.args.model.allowedClientIds.includes("*")?"allow_all":"limited"}}),m(a.prototype,"handleClientSelection",[n.action],Object.getOwnPropertyDescriptor(a.prototype,"handleClientSelection"),a.prototype),m(a.prototype,"cancel",[n.action],Object.getOwnPropertyDescriptor(a.prototype,"cancel"),a.prototype),m(a.prototype,"save",[r.task],Object.getOwnPropertyDescriptor(a.prototype,"save"),a.prototype),a)})),define("vault/components/oidc/provider-form",["exports","@glimmer/component","@ember/object","@ember/service","@glimmer/tracking","ember-concurrency","core/utils/parse-url"],(function(e,t,n,l,i,r,a){var o,s,u,c,d,p,f
function m(e,t,n,l){n&&Object.defineProperty(e,t,{enumerable:n.enumerable,configurable:n.configurable,writable:n.writable,value:n.initializer?n.initializer.call(l):void 0})}function h(e,t,n,l,i){var r={}
return Object.keys(l).forEach((function(e){r[e]=l[e]})),r.enumerable=!!r.enumerable,r.configurable=!!r.configurable,("value"in r||r.initializer)&&(r.writable=!0),r=n.slice().reverse().reduce((function(n,l){return l(e,t,n)||n}),r),i&&void 0!==r.initializer&&(r.value=r.initializer?r.initializer.call(i):void 0,r.initializer=void 0),void 0===r.initializer?(Object.defineProperty(e,t,r),null):r}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default=(o=class extends t.default{constructor(...e){super(...e),m(this,"store",s,this),m(this,"flashMessages",u,this),m(this,"modelValidations",c,this),m(this,"errorBanner",d,this),m(this,"invalidFormAlert",p,this),m(this,"radioCardGroupValue",f,this)}renderInfoTooltip(e,t){return!!!t.find((t=>t.clientId===e))&&"The application associated with this client_id no longer exists"}setIssuer(e,[t]){t.issuer=t.isNew?"":(0,a.default)(t.issuer).origin}handleClientSelection(e){Array.isArray(e)?this.args.model.allowedClientIds=e.map((e=>e.clientId)):(this.radioCardGroupValue=e,this.args.model.allowedClientIds=[])}cancel(){const e=this.args.model.isNew?"unloadRecord":"rollbackAttributes"
this.args.model[e](),this.args.onCancel()}*save(e){e.preventDefault()
try{const{isValid:e,state:t,invalidFormMessage:n}=this.args.model.validate()
if(this.modelValidations=e?null:t,this.invalidFormAlert=n,e){const{isNew:e,name:t}=this.args.model
"allow_all"===this.radioCardGroupValue&&(this.args.model.allowedClientIds=["*"]),yield this.args.model.save(),this.flashMessages.success(`Successfully ${e?"created":"updated"} the OIDC provider\n          ${t}.`),this.args.onSave()}}catch(t){const e=t.errors?t.errors.join(". "):t.message
this.errorBanner=e,this.invalidFormAlert="There was an error submitting this form."}}},s=h(o.prototype,"store",[l.service],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),u=h(o.prototype,"flashMessages",[l.service],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),c=h(o.prototype,"modelValidations",[i.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),d=h(o.prototype,"errorBanner",[i.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),p=h(o.prototype,"invalidFormAlert",[i.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),f=h(o.prototype,"radioCardGroupValue",[i.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!this.args.model.allowedClientIds||this.args.model.allowedClientIds.includes("*")?"allow_all":"limited"}}),h(o.prototype,"setIssuer",[n.action],Object.getOwnPropertyDescriptor(o.prototype,"setIssuer"),o.prototype),h(o.prototype,"handleClientSelection",[n.action],Object.getOwnPropertyDescriptor(o.prototype,"handleClientSelection"),o.prototype),h(o.prototype,"cancel",[n.action],Object.getOwnPropertyDescriptor(o.prototype,"cancel"),o.prototype),h(o.prototype,"save",[r.task],Object.getOwnPropertyDescriptor(o.prototype,"save"),o.prototype),o)})),define("vault/components/oidc/scope-form",["exports","@glimmer/component","@glimmer/tracking","@ember/object","ember-concurrency","@ember/service"],(function(e,t,n,l,i,r){var a,o,s,u,c
function d(e,t,n,l){n&&Object.defineProperty(e,t,{enumerable:n.enumerable,configurable:n.configurable,writable:n.writable,value:n.initializer?n.initializer.call(l):void 0})}function p(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e
var n=e[Symbol.toPrimitive]
if(void 0!==n){var l=n.call(e,t||"default")
if("object"!=typeof l)return l
throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string")
return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function f(e,t,n,l,i){var r={}
return Object.keys(l).forEach((function(e){r[e]=l[e]})),r.enumerable=!!r.enumerable,r.configurable=!!r.configurable,("value"in r||r.initializer)&&(r.writable=!0),r=n.slice().reverse().reduce((function(n,l){return l(e,t,n)||n}),r),i&&void 0!==r.initializer&&(r.value=r.initializer?r.initializer.call(i):void 0,r.initializer=void 0),void 0===r.initializer?(Object.defineProperty(e,t,r),null):r}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default=(a=class extends t.default{constructor(...e){super(...e),d(this,"flashMessages",o,this),d(this,"errorBanner",s,this),d(this,"invalidFormAlert",u,this),d(this,"modelValidations",c,this),p(this,"exampleTemplate",'{\n  "username": {{identity.entity.aliases.$MOUNT_ACCESSOR.name}},\n  "contact": {\n    "email": {{identity.entity.metadata.email}},\n    "phone_number": {{identity.entity.metadata.phone_number}}\n  },\n  "groups": {{identity.entity.groups.names}}\n}')}*save(e){e.preventDefault()
try{const{isValid:e,state:t,invalidFormMessage:n}=this.args.model.validate()
if(this.modelValidations=e?null:t,this.invalidFormAlert=n,e){const{isNew:e,name:t}=this.args.model
yield this.args.model.save(),this.flashMessages.success(`Successfully ${e?"created":"updated"} the scope ${t}.`),this.args.onSave()}}catch(t){const e=t.errors?t.errors.join(". "):t.message
this.errorBanner=e,this.invalidFormAlert="There was an error submitting this form."}}cancel(){const e=this.args.model.isNew?"unloadRecord":"rollbackAttributes"
this.args.model[e](),this.args.onCancel()}},o=f(a.prototype,"flashMessages",[r.service],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),s=f(a.prototype,"errorBanner",[n.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),u=f(a.prototype,"invalidFormAlert",[n.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),c=f(a.prototype,"modelValidations",[n.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),f(a.prototype,"save",[i.task],Object.getOwnPropertyDescriptor(a.prototype,"save"),a.prototype),f(a.prototype,"cancel",[l.action],Object.getOwnPropertyDescriptor(a.prototype,"cancel"),a.prototype),a)})),define("vault/components/outer-html",["exports","@ember/component"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default=t.default.extend({tagName:""})})),define("vault/components/overview-card",["exports","core/components/overview-card"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.default}})})),define("vault/components/page-header-level",["exports","core/components/page-header-level"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.default}})})),define("vault/components/page-header",["exports","core/components/page-header"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.default}})})),define("vault/components/page/breadcrumbs",["exports","core/components/page/breadcrumbs"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.default}})})),define("vault/components/page/error",["exports","core/components/page/error"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.default}})})),define("vault/components/page/userpass-reset-password",["exports","@ember/component","@ember/service","@glimmer/component","@glimmer/tracking","ember-concurrency","vault/utils/error-message","@ember/template-factory"],(function(e,t,n,l,i,r,a,o){var s,u,c,d,p
function f(e,t,n,l){n&&Object.defineProperty(e,t,{enumerable:n.enumerable,configurable:n.configurable,writable:n.writable,value:n.initializer?n.initializer.call(l):void 0})}function m(e,t,n,l,i){var r={}
return Object.keys(l).forEach((function(e){r[e]=l[e]})),r.enumerable=!!r.enumerable,r.configurable=!!r.configurable,("value"in r||r.initializer)&&(r.writable=!0),r=n.slice().reverse().reduce((function(n,l){return l(e,t,n)||n}),r),i&&void 0!==r.initializer&&(r.value=r.initializer?r.initializer.call(i):void 0,r.initializer=void 0),void 0===r.initializer?(Object.defineProperty(e,t,r),null):r}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
const h=(0,o.createTemplateFactory)({id:"zgc+og0S",block:'[[[8,[39,0],null,null,[["default"],[[[[1,"\\n  "],[8,[30,1,["levelLeft"]],null,null,[["default"],[[[[1,"\\n    "],[10,"h1"],[14,0,"title is-3"],[12],[1,"\\n      Reset password\\n    "],[13],[1,"\\n  "]],[]]]]],[1,"\\n"]],[1]]]]],[1,"\\n\\n"],[11,"form"],[4,[38,1],["submit",[28,[37,2],[[30,0,["updatePassword"]]],null]],[["on"],["submit"]]],[12],[1,"\\n  "],[10,0],[14,0,"box is-sideless is-fullwidth is-marginless"],[12],[1,"\\n    "],[8,[39,3],[[24,0,"has-bottom-margin-m"]],[["@type"],["inline"]],[["default"],[[[[1,"\\n      "],[8,[30,2,["Title"]],null,null,[["default"],[[[[1,"Current user"]],[]]]]],[1,"\\n      "],[8,[30,2,["Description"]],null,null,[["default"],[[[[1,"You are updating the password for\\n        "],[10,"strong"],[12],[1,[30,3]],[13],[1,"\\n        on the\\n        "],[10,"strong"],[12],[1,[30,4]],[13],[1,"\\n        auth mount."]],[]]]]],[1,"\\n    "]],[2]]]]],[1,"\\n    "],[8,[39,4],[[24,"for","reset-password"]],[["@label"],["New password"]],null],[1,"\\n    "],[8,[39,5],[[24,1,"reset-password"]],[["@name","@value","@onChange"],["reset-password",[30,0,["newPassword"]],[28,[37,6],[[28,[37,7],[[30,0,["newPassword"]]],null]],null]]],null],[1,"\\n  "],[13],[1,"\\n\\n  "],[8,[39,8],[[24,0,"has-top-margin-m"]],null,[["default"],[[[[1,"\\n    "],[8,[39,9],[[16,"disabled",[30,0,["updatePassword","isRunning"]]],[24,4,"submit"]],[["@text","@icon"],["Save",[52,[30,0,["updatePassword","isRunning"]],"loading"]]],null],[1,"\\n"],[41,[30,0,["error"]],[[[1,"      "],[8,[39,3],[[24,0,"has-left-margin-s"]],[["@type","@color"],["compact","critical"]],[["default"],[[[[1,"\\n        "],[8,[30,5,["Title"]],null,null,[["default"],[[[[1,"Error"]],[]]]]],[1,"\\n        "],[8,[30,5,["Description"]],null,null,[["default"],[[[[1,"\\n          "],[1,[30,0,["error"]]],[1,"\\n        "]],[]]]]],[1,"\\n      "]],[5]]]]],[1,"\\n"]],[]],null],[1,"  "]],[]]]]],[1,"\\n"],[13]],["p","A","@username","@backend","A"],false,["page-header","on","perform","hds/alert","form-field-label","masked-input","fn","mut","hds/button-set","hds/button","if"]]',moduleName:"vault/components/page/userpass-reset-password.hbs",isStrictMode:!1})
let b=e.default=(s=class extends l.default{constructor(...e){super(...e),f(this,"store",u,this),f(this,"flashMessages",c,this),f(this,"newPassword",d,this),f(this,"error",p,this)}onSuccess(){this.error="",this.newPassword="",this.flashMessages.success("Successfully reset password")}*updatePassword(e){e.preventDefault(),this.error=""
const t=this.store.adapterFor("auth-method"),{backend:n,username:l}=this.args
if(n&&l)if(this.newPassword)try{yield t.resetPassword(n,l,this.newPassword),this.onSuccess()}catch(i){this.error=(0,a.default)(i,"Check Vault logs for details")}else this.error="Please provide a new password."}},u=m(s.prototype,"store",[n.service],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),c=m(s.prototype,"flashMessages",[n.service],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),d=m(s.prototype,"newPassword",[i.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return""}}),p=m(s.prototype,"error",[i.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return""}}),m(s.prototype,"updatePassword",[r.task],Object.getOwnPropertyDescriptor(s.prototype,"updatePassword"),s.prototype),s);(0,t.setComponentTemplate)(h,b)})),define("vault/components/pgp-file",["exports","@ember/component","@ember/object","ember-concurrency","@ember/test-waiters"],(function(e,t,n,l,i){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
const r=/^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$/gi
e.default=t.default.extend({"data-test-pgp-file":!0,attributeBindings:["data-test-pgp-file"],classNames:["box","is-fullwidth","is-marginless","is-shadowless"],key:null,index:null,onChange:()=>{},label:null,fileHelpText:null,textareaHelpText:null,readFile(e){const t=new FileReader
t.onload=()=>this.setPGPKey.perform(t.result,e.name),t.readAsDataURL(e)},setPGPKey:(0,l.task)((0,i.waitFor)((function*(e,t){const n=e.split(",")[1].trim(),l=atob(n).trim(),i=l.match(r)?l:n
yield this.onChange(this.index,{value:i,filename:t})}))),actions:{pickedFile(e){const{files:t}=e.target
if(t.length)for(let n=0,l=t.length;n<l;n++)this.readFile(t[n])},updateData(e){const t=this.key;(0,n.set)(t,"value",e.target.value),this.onChange(this.index,this.key)},clearKey(){this.onChange(this.index,{value:""})}}})})),define("vault/components/pgp-list",["exports","@ember/component"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default=t.default.extend({onDataUpdate:()=>{},listLength:0,listData:null,init(){this._super(...arguments)
let e=this.listLength
e&&(e=parseInt(e,10))
const t=this.newList(e)
this.set("listData",t)},didReceiveAttrs(){let e
this._super(...arguments),this.listLength?this.listData.length!==this.listLength&&(this.listLength<this.listData.length?e=this.listData.slice(0,this.listLength):this.listLength>this.listData.length&&(e=[...this.listData,...this.newList(this.listLength-this.listData.length)]),this.set("listData",e||this.listData),this.onDataUpdate((e||this.listData).compact().map((e=>e.value)))):this.set("listData",[])},newList:e=>Array(e||0).fill(null).map((()=>({value:""}))),actions:{setKey(e,t){const{listData:n}=this
n.splice(e,1,t),this.onDataUpdate(n.compact().map((e=>e.value)))}}})})),define("vault/components/policy-example",["exports","core/components/policy-example"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.default}})})),define("vault/components/policy-form",["exports","@ember/component","@glimmer/component","@ember/object","@ember/service","ember-concurrency","vault/utils/trim-right","@glimmer/tracking","@ember/template-factory"],(function(e,t,n,l,i,r,a,o,s){var u,c,d,p,f
function m(e,t,n,l){n&&Object.defineProperty(e,t,{enumerable:n.enumerable,configurable:n.configurable,writable:n.writable,value:n.initializer?n.initializer.call(l):void 0})}function h(e,t,n,l,i){var r={}
return Object.keys(l).forEach((function(e){r[e]=l[e]})),r.enumerable=!!r.enumerable,r.configurable=!!r.configurable,("value"in r||r.initializer)&&(r.writable=!0),r=n.slice().reverse().reduce((function(n,l){return l(e,t,n)||n}),r),i&&void 0!==r.initializer&&(r.value=r.initializer?r.initializer.call(i):void 0,r.initializer=void 0),void 0===r.initializer?(Object.defineProperty(e,t,r),null):r}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
const b=(0,s.createTemplateFactory)({id:"zPwl+Gla",block:'[[[11,"form"],[4,[38,0],["submit",[28,[37,1],[[30,0,["save"]]],null]],null],[12],[1,"\\n  "],[10,0],[14,0,"box is-shadowless is-fullwidth is-marginless"],[12],[1,"\\n    "],[8,[39,2],null,[["@errorMessage"],[[30,0,["errorBanner"]]]],null],[1,"\\n    "],[8,[39,3],null,[["@mode","@noun"],[[52,[30,1,["isNew"]],"create","edit"],"policy"]],null],[1,"\\n"],[41,[30,1,["isNew"]],[[[1,"      "],[10,0],[14,0,"field"],[12],[1,"\\n        "],[10,"label"],[14,"for","policy-name"],[14,0,"is-label"],[12],[1,"Name"],[13],[1,"\\n        "],[10,0],[14,0,"control"],[12],[1,"\\n          "],[8,[39,5],[[24,1,"policy-name"],[24,0,"input"],[4,[38,0],["input",[30,0,["setModelName"]]],null]],[["@type","@value"],["text",[28,[37,6],[[30,1,["name"]]],null]]],null],[1,"\\n        "],[13],[1,"\\n      "],[13],[1,"\\n"]],[]],null],[1,"    "],[10,0],[14,0,"field"],[12],[1,"\\n      "],[8,[39,7],[[16,"aria-label",[29,["toolbar for managing ",[28,[37,8],[[30,1,["name"]],"new"],null]," policy"]]]],null,[["default"],[[[[1,"\\n        "],[10,"label"],[14,0,"has-text-weight-bold has-right-margin-xxs"],[12],[1,"Policy"],[13],[1,"\\n"],[41,[30,2],[[[1,"          "],[8,[39,9],[[16,"aria-label",[29,["help tools for managing ",[28,[37,8],[[30,1,["name"]],"new"],null]," policy"]]]],null,[["default"],[[[[1,"\\n            "],[8,[39,10],[[4,[38,0],["click",[28,[37,11],[[28,[37,12],[[30,0,["showTemplateModal"]]],null]],null]],null]],[["@text","@icon","@size","@color"],["How to write a policy","bulb","small","tertiary"]],null],[1,"\\n          "]],[]]]]],[1,"\\n"]],[]],null],[1,"        "],[8,[39,13],[[16,"aria-label",[29,["actions for managing ",[28,[37,8],[[30,1,["name"]],"new"],null]," policy"]]]],null,[["default"],[[[[1,"\\n          "],[10,0],[14,0,"toolbar-separator"],[12],[13],[1,"\\n"],[41,[30,1,["isNew"]],[[[1,"            "],[10,0],[14,0,"control is-flex"],[12],[1,"\\n              "],[8,[39,5],[[24,1,"fileUploadToggle"],[24,3,"fileUploadToggle"],[24,0,"toggle is-success is-small"],[4,[38,0],["change",[28,[37,11],[[28,[37,12],[[30,0,["showFileUpload"]]],null],[28,[37,14],[[30,0,["showFileUpload"]]],null]],null]],null]],[["@type","@checked"],["checkbox",[30,0,["showFileUpload"]]]],null],[1,"\\n              "],[10,"label"],[14,"for","fileUploadToggle"],[14,0,"has-text-weight-bold is-size-8"],[12],[1,"Upload file"],[13],[1,"\\n            "],[13],[1,"\\n"]],[]],[[[1,"            "],[8,[39,15],[[24,0,"transparent"]],[["@text","@isIconOnly","@textToCopy","@onError"],["Copy",true,[30,1,["policy"]],[28,[37,11],[[28,[37,16],["Clipboard copy failed. The Clipboard API requires a secure context.","danger"],null]],null]]],null],[1,"\\n"]],[]]],[1,"        "]],[]]]]],[1,"\\n      "]],[]]]]],[1,"\\n"],[41,[30,0,["showFileUpload"]],[[[1,"        "],[8,[39,17],null,[["@uploadOnly","@onChange"],[true,[30,0,["setPolicyFromFile"]]]],null],[1,"\\n"]],[]],[[[1,"        "],[8,[39,18],null,[["@title","@showToolbar","@value","@valueUpdated","@mode","@extraKeys"],["Policy",false,[30,1,["policy"]],[28,[37,19],[[30,0],[28,[37,12],[[30,1,["policy"]]],null]],null],"ruby",[28,[37,20],null,[["Shift-Enter"],[[28,[37,1],[[30,0,["save"]]],null]]]]]],null],[1,"\\n"]],[]]],[1,"      "],[10,0],[14,0,"has-top-margin-xs"],[12],[1,"\\n        "],[10,1],[14,0,"is-size-9 has-text-grey has-bottom-margin-l"],[12],[1,"\\n          You can use Alt+Tab (Option+Tab on MacOS) in the code editor to skip to the next field.\\n        "],[13],[1,"\\n      "],[13],[1,"\\n    "],[13],[1,"\\n"],[42,[28,[37,22],[[28,[37,22],[[30,1,["additionalAttrs"]]],null]],null],null,[[[1,"      "],[8,[39,23],null,[["@attr","@model"],[[30,3],[30,1]]],null],[1,"\\n"]],[3]],null],[1,"  "],[13],[1,"\\n  "],[10,0],[14,0,"field is-grouped box is-fullwidth is-bottomless"],[12],[1,"\\n    "],[8,[39,24],null,null,[["default"],[[[[1,"\\n      "],[8,[39,10],[[16,"disabled",[30,0,["save","isRunning"]]],[24,4,"submit"]],[["@text","@icon"],[[52,[30,1,["isNew"]],"Create policy","Save"],[52,[30,0,["save","isRunning"]],"loading"]]],null],[1,"\\n      "],[8,[39,10],[[16,"disabled",[30,0,["save","isRunning"]]],[4,[38,0],["click",[30,0,["cancel"]]],null]],[["@text","@color"],["Cancel","secondary"]],null],[1,"\\n    "]],[]]]]],[1,"\\n  "],[13],[1,"\\n"],[13],[1,"\\n\\n"],[41,[30,0,["showTemplateModal"]],[[[1,"  "],[8,[39,25],[[24,1,"policy-example-modal"]],[["@size","@onClose"],["large",[28,[37,11],[[28,[37,12],[[30,0,["showTemplateModal"]]],null],false],null]]],[["default"],[[[[1,"\\n    "],[8,[30,4,["Header"]],null,null,[["default"],[[[[1,"\\n      Example\\n      "],[1,[28,[35,26],[[30,1,["policyType"]]],null]],[1,"\\n      Policy\\n    "]],[]]]]],[1,"\\n    "],[8,[30,4,["Body"]],null,null,[["default"],[[[[1,"\\n      "],[8,[39,27],null,[["@policyType","@container"],[[30,1,["policyType"]],"#policy-example-modal"]],null],[1,"\\n    "]],[]]]]],[1,"\\n    "],[8,[30,4,["Footer"]],null,null,[["default"],[[[[1,"\\n      "],[8,[39,10],[[4,[38,0],["click",[30,5,["close"]]],null]],[["@text"],["Close"]],null],[1,"\\n    "]],[5]]]]],[1,"\\n  "]],[4]]]]],[1,"\\n"]],[]],null]],["@model","@renderPolicyExampleModal","attr","M","F"],false,["on","perform","message-error","namespace-reminder","if","input","lowercase","toolbar","or","toolbar-filters","hds/button","fn","mut","toolbar-actions","not","hds/copy/button","set-flash-message","text-file","json-editor","action","hash","each","-track-array","form-field","hds/button-set","hds/modal","uppercase","policy-example"]]',moduleName:"vault/components/policy-form.hbs",isStrictMode:!1})
let y=e.default=(u=class extends n.default{constructor(...e){super(...e),m(this,"flashMessages",c,this),m(this,"errorBanner",d,this),m(this,"showFileUpload",p,this),m(this,"showTemplateModal",f,this)}*save(e){e.preventDefault()
try{const{name:e,policyType:t,isNew:n}=this.args.model
yield this.args.model.save(),this.flashMessages.success(`${t.toUpperCase()} policy "${e}" was successfully ${n?"created":"updated"}.`),this.args.onSave(this.args.model)}catch(t){const e=t.errors?t.errors.join(". "):t.message
this.errorBanner=e}}setModelName({target:e}){this.args.model.name=e.value.toLowerCase()}setPolicyFromFile(e){const{value:t,filename:n}=e
if(this.args.model.policy=t,!this.args.model.name){const e=(0,a.default)(n,[".json",".txt",".hcl",".policy"])
this.args.model.name=e.toLowerCase()}this.showFileUpload=!1}cancel(){const e=this.args.model.isNew?"unloadRecord":"rollbackAttributes"
this.args.model[e](),this.args.onCancel()}},c=h(u.prototype,"flashMessages",[i.service],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),d=h(u.prototype,"errorBanner",[o.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return""}}),p=h(u.prototype,"showFileUpload",[o.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),f=h(u.prototype,"showTemplateModal",[o.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),h(u.prototype,"save",[r.task],Object.getOwnPropertyDescriptor(u.prototype,"save"),u.prototype),h(u.prototype,"setModelName",[l.action],Object.getOwnPropertyDescriptor(u.prototype,"setModelName"),u.prototype),h(u.prototype,"setPolicyFromFile",[l.action],Object.getOwnPropertyDescriptor(u.prototype,"setPolicyFromFile"),u.prototype),h(u.prototype,"cancel",[l.action],Object.getOwnPropertyDescriptor(u.prototype,"cancel"),u.prototype),u);(0,t.setComponentTemplate)(b,y)}))
define("vault/components/portal-target",["exports","ember-stargate/components/portal-target"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.default}})})),define("vault/components/portal",["exports","ember-stargate/components/portal"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.default}})})),define("vault/components/power-select-multiple",["exports","ember-power-select/components/power-select-multiple"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.default}})})),define("vault/components/power-select-multiple/input",["exports","ember-power-select/components/power-select-multiple/input"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.default}})})),define("vault/components/power-select-multiple/trigger",["exports","ember-power-select/components/power-select-multiple/trigger"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.default}})})),define("vault/components/power-select",["exports","ember-power-select/components/power-select"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.default}})})),define("vault/components/power-select/before-options",["exports","ember-power-select/components/power-select/before-options"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.default}})})),define("vault/components/power-select/label",["exports","ember-power-select/components/power-select/label"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.default}})})),define("vault/components/power-select/no-matches-message",["exports","ember-power-select/components/power-select/no-matches-message"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.default}})})),define("vault/components/power-select/options",["exports","ember-power-select/components/power-select/options"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.default}})})),define("vault/components/power-select/placeholder",["exports","ember-power-select/components/power-select/placeholder"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.default}})})),define("vault/components/power-select/power-select-group",["exports","ember-power-select/components/power-select/power-select-group"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.default}})})),define("vault/components/power-select/search-message",["exports","ember-power-select/components/power-select/search-message"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.default}})})),define("vault/components/power-select/trigger",["exports","ember-power-select/components/power-select/trigger"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.default}})})),define("vault/components/qr-code",["exports","ember-qrcode-shim/components/qr-code"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.default}})})),define("vault/components/radial-progress",["exports","@ember/component","@ember/object"],(function(e,t,n){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default=t.default.extend({"data-test-radial-progress":!0,tagName:"svg",classNames:"radial-progress",attributeBindings:["size:width","size:height","viewBox","data-test-radial-progress"],progressDecimal:null,size:20,strokeWidth:1,viewBox:(0,n.computed)("size",(function(){const e=this.size
return`0 0 ${e} ${e}`})),centerValue:(0,n.computed)("size",(function(){return this.size/2})),r:(0,n.computed)("size","strokeWidth",(function(){return(this.size-this.strokeWidth)/2})),c:(0,n.computed)("r",(function(){return 2*Math.PI*this.r})),dashArrayOffset:(0,n.computed)("c","progressDecimal",(function(){return this.c*(1-this.progressDecimal)}))})})),define("vault/components/radio-button",["exports","core/components/radio-button"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.default}})})),define("vault/components/radio-card",["exports","core/components/radio-card"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.default}})})),define("vault/components/raft-join",["exports","@ember/service","@ember/component"],(function(e,t,n){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default=n.default.extend({classNames:"raft-join",store:(0,t.service)(),onDismiss(){},preference:"join",showJoinForm:!1,actions:{advanceFirstScreen(e){e.preventDefault(),"join"===this.preference?this.set("showJoinForm",!0):this.onDismiss()},newModel(){return this.store.createRecord("raft-join")}}})})),define("vault/components/raft-storage-overview",["exports","@ember/component","@ember/owner","vault/config/environment","@ember/service"],(function(e,t,n,l,i){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default=t.default.extend({flashMessages:(0,i.service)(),auth:(0,i.service)(),useServiceWorker:null,async init(){if(this._super(...arguments),!1!==this.useServiceWorker&&"serviceWorker"in navigator){await navigator.serviceWorker.getRegistration(l.default.serviceWorkerScope)&&(navigator.serviceWorker.addEventListener("message",this.serviceWorkerGetToken.bind(this)),this.set("useServiceWorker",!0))}},willDestroy(){this.useServiceWorker&&navigator.serviceWorker.removeEventListener("message",this.serviceWorkerGetToken),this._super(...arguments)},serviceWorkerGetToken(e){const{action:t}=e.data,[n]=e.ports
"getToken"===t?n.postMessage({token:this.auth.currentToken}):(console.error("Unknown event",e),n.postMessage({error:"Unknown request"}))},actions:{async removePeer(e){const{nodeId:t}=e
try{await e.destroyRecord()}catch(n){const e=n.errors?n.errors.join(" "):n.message||n
return void this.flashMessages.danger(`There was an issue removing the peer ${t}: ${e}`)}this.flashMessages.success(`Successfully removed the peer: ${t}.`)},downloadViaServiceWorker(){this.flashMessages.success("The snapshot download will begin shortly.")},async downloadSnapshot(){const e=(0,n.getOwner)(this).lookup("adapter:application")
let t,l
this.flashMessages.success("The snapshot download has begun.")
try{t=await e.rawRequest("/v1/sys/storage/raft/snapshot","GET"),l=await t.blob()}catch(s){const e=s.errors?s.errors.join(" "):s.message||s
this.flashMessages.danger(`There was an error trying to download the snapshot: ${e}`)}const i="snapshot.gz",r=new Blob([l],{type:"application/x-gzip"})
if(r.name=i,"msSaveOrOpenBlob"in navigator)return void navigator.msSaveOrOpenBlob(r,i)
const a=document.createElement("a"),o=window.URL.createObjectURL(r)
a.href=o,a.download=i,document.body.appendChild(a),a.click(),a.remove(),window.URL.revokeObjectURL(o)}}})})),define("vault/components/raft-storage-restore",["exports","@ember/component","ember-concurrency","@ember/owner","@ember/service","@ember/object/computed"],(function(e,t,n,l,i,r){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default=t.default.extend({file:null,errors:null,forceRestore:!1,flashMessages:(0,i.service)(),isUploading:(0,r.alias)("restore.isRunning"),abortController:null,restore:(0,n.task)((function*(){this.set("errors",null)
const e=(0,l.getOwner)(this).lookup("adapter:application")
try{let t="/v1/sys/storage/raft/snapshot"
this.forceRestore&&(t=`${t}-force`)
const n=new Blob([this.file],{type:"application/gzip"}),l=new AbortController
this.set("abortController",l),yield e.rawRequest(t,"POST",{body:n,signal:l.signal}),this.flashMessages.success("The snapshot was successfully uploaded!")}catch(t){if("AbortError"===t.name)return
let e
t.json&&(e=yield t.json())
const n=e?e.errors:[t]
this.set("errors",n)}})),actions:{cancelUpload(){this.abortController.abort()}}})})),define("vault/components/read-more",["exports","core/components/read-more"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.default}})})),define("vault/components/readonly-form-field",["exports","core/components/readonly-form-field"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.default}})})),define("vault/components/regex-validator",["exports","@ember/component","@glimmer/component","@glimmer/tracking","@ember/object","@ember/template-factory"],(function(e,t,n,l,i,r){var a,o,s
function u(e,t,n,l){n&&Object.defineProperty(e,t,{enumerable:n.enumerable,configurable:n.configurable,writable:n.writable,value:n.initializer?n.initializer.call(l):void 0})}function c(e,t,n,l,i){var r={}
return Object.keys(l).forEach((function(e){r[e]=l[e]})),r.enumerable=!!r.enumerable,r.configurable=!!r.configurable,("value"in r||r.initializer)&&(r.writable=!0),r=n.slice().reverse().reduce((function(n,l){return l(e,t,n)||n}),r),i&&void 0!==r.initializer&&(r.value=r.initializer?r.initializer.call(i):void 0,r.initializer=void 0),void 0===r.initializer?(Object.defineProperty(e,t,r),null):r}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
const d=(0,r.createTemplateFactory)({id:"wzspKEgi",block:'[[[41,[30,1],[[[1,"  "],[10,0],[14,0,"field"],[12],[1,"\\n    "],[10,0],[14,0,"regex-label-wrapper"],[12],[1,"\\n      "],[10,0],[14,0,"regex-label"],[12],[1,"\\n        "],[10,"label"],[15,"for",[30,1,["name"]]],[14,0,"is-label"],[12],[1,"\\n          "],[1,[30,2]],[1,"\\n"],[41,[30,1,["options","helpText"]],[[[1,"            "],[8,[39,1],null,null,[["default"],[[[[1,"\\n              "],[10,1],[12],[1,"\\n                "],[1,[30,1,["options","helpText"]]],[1,"\\n              "],[13],[1,"\\n            "]],[]]]]],[1,"\\n"]],[]],null],[1,"        "],[13],[1,"\\n"],[41,[30,1,["options","subText"]],[[[1,"          "],[10,2],[14,0,"sub-text"],[12],[1,"\\n            "],[1,[30,1,["options","subText"]]],[1,"\\n"],[41,[30,1,["options","docLink"]],[[[1,"              "],[8,[39,2],null,[["@path"],[[30,1,["options","docLink"]]]],[["default"],[[[[1,"\\n                See our documentation\\n              "]],[]]]]],[1,"\\n              for help.\\n"]],[]],null],[1,"          "],[13],[1,"\\n"]],[]],null],[1,"      "],[13],[1,"\\n      "],[10,0],[12],[1,"\\n        "],[8,[39,3],null,[["@name","@checked","@onChange"],[[28,[37,4],[[30,1,["name"]],"-validation-toggle"],null],[30,0,["showTestValue"]],[30,0,["toggleTestValue"]]]],[["default"],[[[[1,"\\n          "],[10,1],[14,0,"has-text-grey"],[12],[1,"Validation"],[13],[1,"\\n        "]],[]]]]],[1,"\\n      "],[13],[1,"\\n    "],[13],[1,"\\n    "],[11,"input"],[16,1,[30,1,["name"]]],[24,"autocomplete","off"],[24,"spellcheck","false"],[16,2,[30,3]],[24,0,"input"],[4,[38,5],["change",[30,4]],null],[12],[13],[1,"\\n  "],[13],[1,"\\n"]],[]],null],[41,[30,0,["showTestValue"]],[[[1,"  "],[10,0],[12],[1,"\\n    "],[10,"label"],[14,"for","regex-test-val"],[14,0,"is-label"],[12],[1,"\\n      "],[1,[30,0,["testInputLabel"]]],[1,"\\n    "],[13],[1,"\\n"],[41,[30,5],[[[1,"      "],[10,2],[14,0,"sub-text"],[12],[1,[30,5]],[13],[1,"\\n"]],[]],null],[1,"    "],[11,"input"],[24,1,"regex-test-val"],[24,"autocomplete","off"],[24,"spellcheck","false"],[16,2,[30,0,["testValue"]]],[16,0,[29,["input ",[52,[30,0,["regexError"]],"has-error"]]]],[4,[38,5],["change",[30,0,["updateTestValue"]]],null],[12],[13],[1,"\\n\\n"],[41,[30,0,["testValue"]],[[[1,"      "],[10,0],[12],[1,"\\n"],[41,[28,[37,6],[[30,3]],null],[[[1,"          "],[8,[39,7],null,[["@type","@message"],["warning",[28,[37,4],["A pattern has not been entered. Enter a pattern to check this ",[28,[37,8],[[30,0,["testInputLabel"]]],null]," against it."],null]]],null],[1,"\\n"]],[]],[[[41,[30,0,["regexError"]],[[[1,"          "],[8,[39,7],null,[["@type","@message"],["danger","This test string does not match the pattern regex."]],null],[1,"\\n"]],[]],[[[1,"          "],[8,[39,7],null,[["@type","@message"],["success","This test string matches the pattern regex."]],null],[1,"\\n        "]],[]]]],[]]],[1,"      "],[13],[1,"\\n"]],[]],null],[1,"  "],[13],[1,"\\n"]],[]],null],[41,[30,6],[[[1,"  "],[10,0],[14,0,"has-top-margin-l"],[12],[1,"\\n    "],[10,"label"],[14,0,"is-label"],[12],[1,"Groups"],[13],[1,"\\n"],[41,[28,[37,9],[[30,3],[30,0,["testValue"]],[28,[37,6],[[30,0,["regexError"]]],null]],null],[[[1,"      "],[10,0],[14,0,"regex-group"],[12],[1,"\\n"],[42,[28,[37,11],[[28,[37,11],[[30,0,["captureGroups"]]],null]],null],null,[[[1,"          "],[10,1],[14,0,"regex-group-position"],[12],[1,"\\n            "],[10,1],[12],[1,[30,7,["position"]]],[13],[1,"\\n          "],[13],[1,"\\n          "],[10,1],[14,0,"regex-group-value"],[12],[1,"\\n            "],[1,[30,7,["value"]]],[1,"\\n          "],[13],[1,"\\n"]],[7]],null],[1,"      "],[13],[1,"\\n"]],[]],[[[1,"      "],[10,2],[14,0,"sub-text"],[12],[1,"\\n        Enter pattern and test string to show groupings.\\n      "],[13],[1,"\\n"]],[]]],[1,"  "],[13],[1,"\\n"]],[]],null]],["@attr","@labelString","@value","@onChange","@testInputSubText","@showGroups","group"],false,["if","info-tooltip","doc-link","toggle","concat","on","not","alert-inline","lowercase","and","each","-track-array"]]',moduleName:"vault/components/regex-validator.hbs",isStrictMode:!1})
let p=e.default=(a=class extends n.default{constructor(){super(...arguments),u(this,"testValue",o,this),u(this,"showTestValue",s,this),this.showTestValue=!this.args.attr}get testInputLabel(){return this.args.testInputLabel||"Test string"}get regex(){return new RegExp(this.args.value,"g")}get regexError(){const e=this.testValue
if(!e||!this.args.value)return!1
const t=e.toString().match(this.regex)
return this.args.onValidate&&this.args.onValidate(this.testValue,this.captureGroups),e!==t?.join("")}get captureGroups(){const e=this.regex.exec(this.testValue)
if(e){const[t,...n]=e,l=n.map(((e,t)=>({position:`$${t+1}`,value:e})))
if(e.groups)for(const i in e.groups)l.push({position:`$${i}`,value:e.groups[i]})
return l}return[]}updateTestValue(e){this.testValue=e.target.value}toggleTestValue(){this.showTestValue=!this.showTestValue}},o=c(a.prototype,"testValue",[l.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return""}}),s=c(a.prototype,"showTestValue",[l.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),c(a.prototype,"updateTestValue",[i.action],Object.getOwnPropertyDescriptor(a.prototype,"updateTestValue"),a.prototype),c(a.prototype,"toggleTestValue",[i.action],Object.getOwnPropertyDescriptor(a.prototype,"toggleTestValue"),a.prototype),a);(0,t.setComponentTemplate)(d,p)})),define("vault/components/replication-action-demote",["exports","core/components/replication-action-demote"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.default}})})),define("vault/components/replication-action-disable",["exports","core/components/replication-action-disable"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.default}})})),define("vault/components/replication-action-generate-token",["exports","core/components/replication-action-generate-token"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.default}})})),define("vault/components/replication-action-promote",["exports","core/components/replication-action-promote"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.default}})})),define("vault/components/replication-action-recover",["exports","core/components/replication-action-recover"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.default}})})),define("vault/components/replication-action-reindex",["exports","core/components/replication-action-reindex"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.default}})}))
define("vault/components/replication-action-update-primary",["exports","core/components/replication-action-update-primary"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.default}})})),define("vault/components/replication-actions-single",["exports","core/components/replication-actions-single"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.default}})})),define("vault/components/replication-actions",["exports","core/components/replication-actions"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.default}})})),define("vault/components/replication-dashboard",["exports","core/components/replication-dashboard"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.default}})})),define("vault/components/replication-header",["exports","core/components/replication-header"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.default}})})),define("vault/components/replication-mode-summary",["exports","core/components/replication-mode-summary"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.default}})})),define("vault/components/replication-page",["exports","core/components/replication-page"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.default}})})),define("vault/components/replication-secondary-card",["exports","core/components/replication-secondary-card"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.default}})})),define("vault/components/replication-summary-card",["exports","core/components/replication-summary-card"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.default}})})),define("vault/components/replication-table-rows",["exports","core/components/replication-table-rows"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.default}})})),define("vault/components/resultant-acl-banner",["exports","@ember/component","@ember/service","@glimmer/component","@glimmer/tracking","vault/services/permissions","@ember/template-factory"],(function(e,t,n,l,i,r,a){var o,s,u,c
function d(e,t,n,l){n&&Object.defineProperty(e,t,{enumerable:n.enumerable,configurable:n.configurable,writable:n.writable,value:n.initializer?n.initializer.call(l):void 0})}function p(e,t,n,l,i){var r={}
return Object.keys(l).forEach((function(e){r[e]=l[e]})),r.enumerable=!!r.enumerable,r.configurable=!!r.configurable,("value"in r||r.initializer)&&(r.writable=!0),r=n.slice().reverse().reduce((function(n,l){return l(e,t,n)||n}),r),i&&void 0!==r.initializer&&(r.value=r.initializer?r.initializer.call(i):void 0,r.initializer=void 0),void 0===r.initializer?(Object.defineProperty(e,t,r),null):r}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
const f=(0,a.createTemplateFactory)({id:"YUQgQgcS",block:'[[[41,[51,[30,0,["hideBanner"]]],[[[1,"  "],[8,[39,1],null,[["@type","@color","@onDismiss"],["inline","critical",[28,[37,2],[[28,[37,3],[[30,0,["hideBanner"]]],null],true],null]]],[["default"],[[[[1,"\\n    "],[8,[30,1,["Title"]],null,null,[["default"],[[[[1,[30,0,["title"]]]],[]]]]],[1,"\\n    "],[8,[30,1,["Description"]],null,null,[["default"],[[[[1,"\\n      "],[1,[30,0,["message"]]],[1,"\\n    "]],[]]]]],[1,"\\n"],[41,[30,2],[[[1,"      "],[8,[30,1,["LinkStandalone"]],null,[["@icon","@iconPosition","@text","@route","@query"],["arrow-right","trailing",[28,[37,5],["Log into ",[30,0,["ns"]]," namespace"],null],"vault.cluster.logout",[30,0,["queryParams"]]]],null],[1,"\\n"]],[]],null],[1,"  "]],[1]]]]],[1,"\\n"]],[]],null]],["A","@isEnterprise"],false,["unless","hds/alert","fn","mut","if","concat"]]',moduleName:"vault/components/resultant-acl-banner.hbs",isStrictMode:!1})
let m=e.default=(o=class extends l.default{constructor(...e){super(...e),d(this,"namespace",s,this),d(this,"router",u,this),d(this,"hideBanner",c,this)}get ns(){return this.namespace.path||"root"}get queryParams(){return{redirect_to:this.router.currentURL}}get title(){return this.args.failType===r.PERMISSIONS_BANNER_STATES.noAccess?"You do not have access to this namespace":"Resultant ACL check failed"}get message(){return this.args.failType===r.PERMISSIONS_BANNER_STATES.noAccess?"Log into the namespace directly, or contact your administrator if you think you should have access.":"Links might be shown that you don't have access to. Contact your administrator to update your policy."}},s=p(o.prototype,"namespace",[n.service],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),u=p(o.prototype,"router",[n.service],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),c=p(o.prototype,"hideBanner",[i.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),o);(0,t.setComponentTemplate)(f,m)})),define("vault/components/role-aws-edit",["exports","@ember/utils","@ember/object","vault/components/role-edit"],(function(e,t,n,l){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default=l.default.extend({actions:{createOrUpdate(e,l){l.preventDefault()
const i=this.model.id||this.model.name
if("create"!==e||!(0,t.isBlank)(i)){var r=this.model.credential_type
"iam_user"==r&&(0,n.set)(this,"model.role_arns",[]),"assumed_role"==r&&(0,n.set)(this,"model.policy_arns",[]),"federation_token"==r&&((0,n.set)(this,"model.role_arns",[]),(0,n.set)(this,"model.policy_arns",[])),"{}"==this.model.policy_document&&(0,n.set)(this,"model.policy_document",""),this.persist("save",(()=>{this.hasDataChanges(),this.transitionToRoute("vault.cluster.secrets.backend.show",i)}))}},codemirrorUpdated(e,t,l){l.performLint()
l.state.lint.marked.length>0||(0,n.set)(this.model,e,t)}}})})),define("vault/components/role-edit",["exports","@ember/service","@ember/object/computed","@ember/utils","ember-concurrency","@ember/component","@ember/object","vault/mixins/focus-on-insert","core/utils/key-codes"],(function(e,t,n,l,i,r,a,o,s){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
const u="vault.cluster.secrets.backend.list-root"
e.default=r.default.extend(o.default,{router:(0,t.service)(),mode:null,emptyData:"{\n}",onDataChange(){},onRefresh(){},model:null,requestInFlight:(0,n.or)("model.isLoading","model.isReloading","model.isSaving"),willDestroyElement(){this.model&&this.model.isError&&!this.model.isDestroyed&&!this.model.isDestroying&&this.model.rollbackAttributes(),this._super(...arguments)},waitForKeyUp:(0,i.task)((function*(){for(;;){const e=yield(0,i.waitForEvent)(document.body,"keyup")
this.onEscape(e)}})).on("didInsertElement").cancelOn("willDestroyElement"),transitionToRoute(){this.router.transitionTo(...arguments)},onEscape(e){e.keyCode===s.default.ESC&&"show"===this.mode&&this.transitionToRoute(u)},hasDataChanges(){this.onDataChange(this.model.hasDirtyAttributes)},persist(e,t){const n=this.model
return n[e]().then((()=>{n.isError||t(n)}))},actions:{createOrUpdate(e,t){t.preventDefault()
const n=this.model.id||this.model.name
"create"===e&&(0,l.isBlank)(n)||this.persist("save",(()=>{this.hasDataChanges(),this.transitionToRoute("vault.cluster.secrets.backend.show",n)}))},setValue(e,t){(0,a.set)(this.model,e,t.target.checked)},refresh(){this.onRefresh()},delete(){this.persist("destroyRecord",(()=>{this.hasDataChanges(),this.transitionToRoute(u)}))},codemirrorUpdated(e,t,n){n.performLint()
n.state.lint.marked.length>0||(0,a.set)(this.model,e,JSON.parse(t))}}})})),define("vault/components/role-ssh-edit",["exports","vault/components/role-edit"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default=t.default.extend({init(){this._super(...arguments),this.set("backendType","ssh")},actions:{updateTtl(e,t){const n=this.model,l=!0===t.enabled?`${t.seconds}s`:void 0
n.set(e,l)}}})})),define("vault/components/seal-action",["exports","@ember/component","@ember/object","@glimmer/component","@glimmer/tracking","vault/utils/error-message","@ember/template-factory"],(function(e,t,n,l,i,r,a){var o,s
function u(e,t,n,l,i){var r={}
return Object.keys(l).forEach((function(e){r[e]=l[e]})),r.enumerable=!!r.enumerable,r.configurable=!!r.configurable,("value"in r||r.initializer)&&(r.writable=!0),r=n.slice().reverse().reduce((function(n,l){return l(e,t,n)||n}),r),i&&void 0!==r.initializer&&(r.value=r.initializer?r.initializer.call(i):void 0,r.initializer=void 0),void 0===r.initializer?(Object.defineProperty(e,t,r),null):r}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
const c=(0,a.createTemplateFactory)({id:"SU26t6mX",block:'[[[10,0],[14,0,"box is-sideless is-fullwidth is-marginless"],[12],[1,"\\n"],[41,[30,0,["error"]],[[[1,"    "],[8,[39,1],[[24,0,"has-bottom-margin-m"]],[["@type","@color"],["inline","critical"]],[["default"],[[[[1,"\\n      "],[8,[30,1,["Title"]],null,null,[["default"],[[[[1,"Error"]],[]]]]],[1,"\\n      "],[8,[30,1,["Description"]],null,null,[["default"],[[[[1,"\\n        "],[1,[30,0,["error"]]],[1,"\\n      "]],[]]]]],[1,"\\n    "]],[1]]]]],[1,"\\n"]],[]],null],[1,"  "],[10,2],[12],[1,"\\n    Sealing a vault tells the Vault server to stop responding to any access operations until it is unsealed again. A sealed\\n    vault throws away its root key to unlock the data, so it physically is blocked from responding to operations again until\\n    the Vault is unsealed again with the \\"unseal\\" command or via the API.\\n  "],[13],[1,"\\n"],[13],[1,"\\n\\n"],[10,0],[14,0,"field is-grouped box is-fullwidth is-bottomless"],[12],[1,"\\n  "],[8,[39,2],null,[["@buttonText","@confirmTitle","@confirmMessage","@onConfirmAction"],["Seal","Seal this cluster?","You will not be able to read or write any data until the cluster is unsealed again.",[30,0,["handleSeal"]]]],null],[1,"\\n"],[13]],["A"],false,["if","hds/alert","confirm-action"]]',moduleName:"vault/components/seal-action.hbs",isStrictMode:!1})
let d=e.default=(o=class extends l.default{constructor(...e){var t,n,l,i
super(...e),t=this,n="error",i=this,(l=s)&&Object.defineProperty(t,n,{enumerable:l.enumerable,configurable:l.configurable,writable:l.writable,value:l.initializer?l.initializer.call(i):void 0})}async handleSeal(){try{await this.args.onSeal()}catch(e){this.error=(0,r.default)(e,"Seal attempt failed. Check Vault logs for details.")}}},s=u(o.prototype,"error",[i.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),u(o.prototype,"handleSeal",[n.action],Object.getOwnPropertyDescriptor(o.prototype,"handleSeal"),o.prototype),o);(0,t.setComponentTemplate)(c,d)})),define("vault/components/search-select-placeholder",["exports","core/components/search-select-placeholder"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.default}})})),define("vault/components/search-select-with-modal",["exports","core/components/search-select-with-modal"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.default}})})),define("vault/components/search-select",["exports","core/components/search-select"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.default}})})),define("vault/components/secret-create-or-update",["exports","@glimmer/component","vault/lib/control-group-error","ember","core/utils/key-codes","@ember/object","@ember/service","@glimmer/tracking","@ember/utils","ember-concurrency","vault/utils/validators"],(function(e,t,n,l,i,r,a,o,s,u,c){var d,p,f,m,h,b,y,v,g,w,k,x,P
function _(e,t,n,l){n&&Object.defineProperty(e,t,{enumerable:n.enumerable,configurable:n.configurable,writable:n.writable,value:n.initializer?n.initializer.call(l):void 0})}function T(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e
var n=e[Symbol.toPrimitive]
if(void 0!==n){var l=n.call(e,t||"default")
if("object"!=typeof l)return l
throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string")
return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function O(e,t,n,l,i){var r={}
return Object.keys(l).forEach((function(e){r[e]=l[e]})),r.enumerable=!!r.enumerable,r.configurable=!!r.configurable,("value"in r||r.initializer)&&(r.writable=!0),r=n.slice().reverse().reduce((function(n,l){return l(e,t,n)||n}),r),i&&void 0!==r.initializer&&(r.value=r.initializer?r.initializer.call(i):void 0,r.initializer=void 0),void 0===r.initializer?(Object.defineProperty(e,t,r),null):r}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default=(d=(0,u.task)((function*(e,t){for(this.checkValidation(e,t);;){const e=yield(0,u.waitForEvent)(document.body,"keyup")
this.onEscape(e)}})).on("didInsertElement").cancelOn("willDestroyElement"),p=class extends t.default{constructor(...e){super(...e),_(this,"codemirrorString",f,this),_(this,"error",m,this),_(this,"secretPaths",h,this),_(this,"pathWhiteSpaceWarning",b,this),_(this,"validationErrorCount",y,this),_(this,"validationMessages",v,this),_(this,"controlGroup",g,this),_(this,"flashMessages",w,this),_(this,"router",k,this),_(this,"store",x,this),T(this,"whitespaceWarning",(0,c.WHITESPACE_WARNING)("path")),_(this,"waitForKeyUp",P,this)}setup(e,[t,n]){this.codemirrorString=t.toJSONString(),this.validationMessages={path:""},l.default.testing&&(this.secretPaths=["beep","bop","boop"]),this.checkRows(),"edit"===n&&this.addRow()}checkRows(){0===this.args.secretData.length&&this.addRow()}checkValidation(e,t){"path"===e&&(this.pathHasWhiteSpace(t),t?(0,r.set)(this.validationMessages,e,""):(0,r.set)(this.validationMessages,e,`${e} can't be blank.`))
const n=Object.values(this.validationMessages)
this.validationErrorCount=n.filter(Boolean).length}onEscape(e){if(e.keyCode!==i.default.ESC||"show"!==this.args.mode)return
const t=this.args.model.parentKey
t?this.transitionToRoute("vault.cluster.secrets.backend.list",t):this.transitionToRoute("vault.cluster.secrets.backend.list-root")}pathHasWhiteSpace(e){const t=new RegExp("\\s","g")
this.pathWhiteSpaceWarning=t.test(e)}persistKey(e){const t=this.args.model,l=this.args.modelForData
let i=l?.path||t.id
return i.startsWith("/")&&(i=i.replace(/^\/+/g,""),l.set(l.pathAttr,i)),l.save().then((()=>{l.isError||this.saveComplete(e,i)})).catch((e=>{if(e instanceof n.default){const t=this.controlGroup.logFromError(e)
this.error=t.content,this.controlGroup.saveTokenFromError(e)}throw e}))}saveComplete(e,t){e(t)}transitionToRoute(){return this.router.transitionTo(...arguments)}addRow(){const e=this.args.secretData;(0,s.isNone)(e.find((e=>""===e.name)))&&(e.pushObject({name:"",value:""}),this.handleChange()),this.checkRows()}codemirrorUpdated(e,t){this.error=null,t.performLint()
if(0===t.state.lint.marked.length)try{this.args.secretData.fromJSONString(e),(0,r.set)(this.args.modelForData,"secretData",this.args.secretData.toJSON())}catch(n){this.error=n.message}this.codemirrorString=e}createOrUpdateKey(e,t){if(t.preventDefault(),"create"===e&&(0,s.isBlank)(this.args.modelForData.path||this.args.modelForData.id))return void this.checkValidation("path","")
const n="create"===e?this.args.modelForData.path:this.args.model.id
this.persistKey((()=>{this.flashMessages.success(`Secret ${n} ${"create"===e?"created":"updated"} successfully.`),this.transitionToRoute("vault.cluster.secrets.backend.show",n)}))}deleteRow(e){const t=this.args.secretData,n=t.find((t=>t.name===e));(0,s.isBlank)(n.name)||(t.removeObject(n),this.checkRows(),this.handleChange())}formatJSON(){this.codemirrorString=this.args.secretData.toJSONString(!0)}handleMaskedInputChange(e,t,n){const l={...e,value:n};(0,r.set)(this.args.secretData,t,l),this.handleChange()}handleChange(){this.codemirrorString=this.args.secretData.toJSONString(!0),(0,r.set)(this.args.modelForData,"secretData",this.args.secretData.toJSON())}updateValidationErrorCount(e){this.validationErrorCount=e}},f=O(p.prototype,"codemirrorString",[o.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),m=O(p.prototype,"error",[o.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),h=O(p.prototype,"secretPaths",[o.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),b=O(p.prototype,"pathWhiteSpaceWarning",[o.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),y=O(p.prototype,"validationErrorCount",[o.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return 0}}),v=O(p.prototype,"validationMessages",[o.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),g=O(p.prototype,"controlGroup",[a.service],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),w=O(p.prototype,"flashMessages",[a.service],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),k=O(p.prototype,"router",[a.service],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),x=O(p.prototype,"store",[a.service],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),O(p.prototype,"setup",[r.action],Object.getOwnPropertyDescriptor(p.prototype,"setup"),p.prototype),P=O(p.prototype,"waitForKeyUp",[d],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),O(p.prototype,"addRow",[r.action],Object.getOwnPropertyDescriptor(p.prototype,"addRow"),p.prototype),O(p.prototype,"codemirrorUpdated",[r.action],Object.getOwnPropertyDescriptor(p.prototype,"codemirrorUpdated"),p.prototype),O(p.prototype,"createOrUpdateKey",[r.action],Object.getOwnPropertyDescriptor(p.prototype,"createOrUpdateKey"),p.prototype),O(p.prototype,"deleteRow",[r.action],Object.getOwnPropertyDescriptor(p.prototype,"deleteRow"),p.prototype),O(p.prototype,"formatJSON",[r.action],Object.getOwnPropertyDescriptor(p.prototype,"formatJSON"),p.prototype),O(p.prototype,"handleMaskedInputChange",[r.action],Object.getOwnPropertyDescriptor(p.prototype,"handleMaskedInputChange"),p.prototype),O(p.prototype,"handleChange",[r.action],Object.getOwnPropertyDescriptor(p.prototype,"handleChange"),p.prototype),O(p.prototype,"updateValidationErrorCount",[r.action],Object.getOwnPropertyDescriptor(p.prototype,"updateValidationErrorCount"),p.prototype),p)})),define("vault/components/secret-edit-toolbar",["exports","@glimmer/component","@ember/object","@ember/service","@glimmer/tracking","ember-concurrency","@ember/test-waiters"],(function(e,t,n,l,i,r,a){var o,s,u,c,d
function p(e,t,n,l){n&&Object.defineProperty(e,t,{enumerable:n.enumerable,configurable:n.configurable,writable:n.writable,value:n.initializer?n.initializer.call(l):void 0})}function f(e,t,n,l,i){var r={}
return Object.keys(l).forEach((function(e){r[e]=l[e]})),r.enumerable=!!r.enumerable,r.configurable=!!r.configurable,("value"in r||r.initializer)&&(r.writable=!0),r=n.slice().reverse().reduce((function(n,l){return l(e,t,n)||n}),r),i&&void 0!==r.initializer&&(r.value=r.initializer?r.initializer.call(i):void 0,r.initializer=void 0),void 0===r.initializer?(Object.defineProperty(e,t,r),null):r}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default=(o=class extends t.default{constructor(...e){super(...e),p(this,"store",s,this),p(this,"router",u,this),p(this,"flashMessages",c,this),p(this,"wrappedData",d,this)}clearWrappedData(){this.wrappedData=null}handleDelete(){this.args.model.destroyRecord().then((()=>{this.router.transitionTo("vault.cluster.secrets.backend.list-root")}))}*wrapSecret(){const{id:e}=this.args.modelForData,{backend:t}=this.args.model,n={wrapTTL:1800}
try{const l=yield this.store.adapterFor("secret").queryRecord(null,null,{backend:t,id:e,...n})
this.wrappedData=l.wrap_info.token,this.flashMessages.success("Secret successfully wrapped!")}catch(l){this.flashMessages.danger("Could not wrap secret.")}}},s=f(o.prototype,"store",[l.service],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),u=f(o.prototype,"router",[l.service],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),c=f(o.prototype,"flashMessages",[l.service],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),d=f(o.prototype,"wrappedData",[i.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),f(o.prototype,"clearWrappedData",[n.action],Object.getOwnPropertyDescriptor(o.prototype,"clearWrappedData"),o.prototype),f(o.prototype,"handleDelete",[n.action],Object.getOwnPropertyDescriptor(o.prototype,"handleDelete"),o.prototype),f(o.prototype,"wrapSecret",[r.task,a.waitFor],Object.getOwnPropertyDescriptor(o.prototype,"wrapSecret"),o.prototype),o)})),define("vault/components/secret-edit",["exports","@ember/service","@glimmer/component","@ember/object","@glimmer/tracking","vault/lib/kv-object","vault/macros/maybe-query-record","@ember/object/computed"],(function(e,t,n,l,i,r,a,o){var s,u,c,d,p,f,m,h,b,y,v,g,w,k
function x(e,t,n,l){n&&Object.defineProperty(e,t,{enumerable:n.enumerable,configurable:n.configurable,writable:n.writable,value:n.initializer?n.initializer.call(l):void 0})}function P(e,t,n,l,i){var r={}
return Object.keys(l).forEach((function(e){r[e]=l[e]})),r.enumerable=!!r.enumerable,r.configurable=!!r.configurable,("value"in r||r.initializer)&&(r.writable=!0),r=n.slice().reverse().reduce((function(n,l){return l(e,t,n)||n}),r),i&&void 0!==r.initializer&&(r.value=r.initializer?r.initializer.call(i):void 0,r.initializer=void 0),void 0===r.initializer?(Object.defineProperty(e,t,r),null):r}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default=(s=(0,a.maybeQueryRecord)("capabilities",(e=>{if(!e.args.model||"create"===e.args.mode)return
return{id:`${e.args.model.backend}/${e.args.model.id}`}}),"model","model.id","mode"),u=(0,o.alias)("checkSecretCapabilities.canUpdate"),c=(0,o.alias)("checkSecretCapabilities.canRead"),d=(0,o.or)("model.isLoading","model.isReloading","model.isSaving"),p=(0,o.or)("requestInFlight","model.isFolder","model.flagsIsInvalid"),f=class extends n.default{constructor(...e){super(...e),x(this,"store",m,this),x(this,"secretData",h,this),x(this,"codemirrorString",b,this),x(this,"checkSecretCapabilities",y,this),x(this,"canUpdateSecret",v,this),x(this,"canReadSecret",g,this),x(this,"requestInFlight",w,this),x(this,"buttonDisabled",k,this)}createKvData(e,[t]){this.secretData=r.default.create({content:[]}).fromJSON(t.secretData),this.codemirrorString=this.secretData.toJSONString()}get modelForData(){const{model:e}=this.args
return e||null}get basicModeDisabled(){return this.secretDataIsAdvanced||!1===this.showAdvancedMode}get secretDataAsJSON(){return this.secretData.toJSON()}get secretDataIsAdvanced(){return this.secretData.isAdvanced()}get showAdvancedMode(){return this.secretDataIsAdvanced||this.args.preferAdvancedEdit}get isWriteWithoutRead(){return!!this.args.model&&!!this.args.model.failedServerRead}refresh(){this.args.onRefresh()}toggleAdvanced(e){this.args.onToggleAdvancedEdit(e)}},m=P(f.prototype,"store",[t.service],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),h=P(f.prototype,"secretData",[i.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),b=P(f.prototype,"codemirrorString",[i.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),P(f.prototype,"createKvData",[l.action],Object.getOwnPropertyDescriptor(f.prototype,"createKvData"),f.prototype),y=P(f.prototype,"checkSecretCapabilities",[s],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),v=P(f.prototype,"canUpdateSecret",[u],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),g=P(f.prototype,"canReadSecret",[c],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),w=P(f.prototype,"requestInFlight",[d],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),k=P(f.prototype,"buttonDisabled",[p],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),P(f.prototype,"refresh",[l.action],Object.getOwnPropertyDescriptor(f.prototype,"refresh"),f.prototype),P(f.prototype,"toggleAdvanced",[l.action],Object.getOwnPropertyDescriptor(f.prototype,"toggleAdvanced"),f.prototype),f)})),define("vault/components/secret-engine/configuration-details",["exports","@ember/component","@ember/component/template-only","@ember/template-factory"],(function(e,t,n,l){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
const i=(0,l.createTemplateFactory)({id:"RStzVbs4",block:'[[[41,[30,1,["length"]],[[[42,[28,[37,2],[[28,[37,2],[[30,1]],null]],null],null,[[[42,[28,[37,2],[[28,[37,2],[[30,2,["attrs"]]],null]],null],null,[[[41,[28,[37,3],[[30,3,["options","sensitive"]],[28,[37,4],[[30,3,["name"]],"publicKey"],null]],null],[[[1,"        "],[8,[39,5],[[16,"alwaysRender",[28,[37,6],[[28,[37,7],[[28,[37,8],[[30,2],[30,3,["name"]]],null]],null]],null]]],[["@label","@value"],[[28,[37,3],[[30,3,["options","label"]],[28,[37,9],[[30,3,["name"]]],null]],null],[28,[37,8],[[30,2],[28,[37,3],[[30,3,["options","fieldValue"]],[30,3,["name"]]],null]],null]]],[["default"],[[[[1,"\\n"],[41,[28,[37,3],[[30,3,["options","sensitive"]],[28,[37,4],[[30,3,["name"]],"publicKey"],null]],null],[[[1,"            "],[8,[39,10],null,[["@value","@name","@displayOnly","@allowCopy"],[[28,[37,8],[[30,2],[30,3,["name"]]],null],[30,3,["name"]],true,true]],null],[1,"\\n"]],[]],null],[1,"        "]],[]]]]],[1,"\\n"]],[]],[[[1,"        "],[8,[39,5],null,[["@alwaysRender","@label","@value"],[[28,[37,6],[[28,[37,7],[[28,[37,8],[[30,4],[30,3,["name"]]],null]],null]],null],[28,[37,3],[[30,3,["options","label"]],[28,[37,9],[[30,3,["name"]]],null]],null],[28,[37,8],[[30,2],[28,[37,3],[[30,3,["options","fieldValue"]],[30,3,["name"]]],null]],null]]],null],[1,"\\n"]],[]]]],[3]],null]],[2]],null]],[]],[[[1,"  "],[8,[39,11],null,[["@title","@message"],[[29,[[30,5]," not configured"]],[29,["Get started by configuring your ",[30,5]," engine."]]]],[["default"],[[[[1,"\\n    "],[8,[39,12],null,[["@icon","@iconPosition","@text","@route","@model"],["chevron-right","trailing",[29,["Configure ",[30,5]]],"vault.cluster.secrets.backend.configuration.edit",[30,6]]],null],[1,"\\n  "]],[]]]]],[1,"\\n"]],[]]]],["@configModels","configModel","attr","@model","@typeDisplay","@id"],false,["if","each","-track-array","or","eq","info-table-row","not","is-empty-value","get","to-label","masked-input","empty-state","hds/link/standalone"]]',moduleName:"vault/components/secret-engine/configuration-details.hbs",isStrictMode:!1})
e.default=(0,t.setComponentTemplate)(i,(0,n.default)())})),define("vault/components/secret-engine/configure-aws",["exports","@ember/component","ember-concurrency/async-arrow-runtime","@glimmer/component","@ember/object","ember-concurrency","@ember/test-waiters","@ember/service","@glimmer/tracking","vault/utils/error-message","@ember/template-factory"],(function(e,t,n,l,i,r,a,o,s,u,c){var d,p,f,m,h,b,y,v,g,w,k
function x(e,t,n,l){n&&Object.defineProperty(e,t,{enumerable:n.enumerable,configurable:n.configurable,writable:n.writable,value:n.initializer?n.initializer.call(l):void 0})}function P(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e
var n=e[Symbol.toPrimitive]
if(void 0!==n){var l=n.call(e,t||"default")
if("object"!=typeof l)return l
throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string")
return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function _(e,t,n,l,i){var r={}
return Object.keys(l).forEach((function(e){r[e]=l[e]})),r.enumerable=!!r.enumerable,r.configurable=!!r.configurable,("value"in r||r.initializer)&&(r.writable=!0),r=n.slice().reverse().reduce((function(n,l){return l(e,t,n)||n}),r),i&&void 0!==r.initializer&&(r.value=r.initializer?r.initializer.call(i):void 0,r.initializer=void 0),void 0===r.initializer?(Object.defineProperty(e,t,r),null):r}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
const T=(0,c.createTemplateFactory)({id:"K5X4jawD",block:'[[[11,"form"],[24,"aria-label","save aws creds"],[4,[38,0],["submit",[28,[37,1],[[30,0,["submitForm"]]],null]],null],[12],[1,"\\n  "],[10,0],[14,0,"box is-fullwidth is-shadowless is-marginless"],[12],[1,"\\n    "],[8,[39,2],null,[["@mode","@noun"],["save","configuration"]],null],[1,"\\n    "],[8,[39,3],null,[["@errorMessage"],[[30,0,["errorMessageRoot"]]]],null],[1,"\\n    "],[10,2],[14,0,"has-text-grey-dark"],[12],[1,"\\n      Note: the client uses the official AWS SDK and will use the specified credentials, environment credentials, shared file\\n      credentials, or IAM role/ECS task credentials in that order.\\n    "],[13],[1,"\\n  "],[13],[1,"\\n"],[1,"  "],[10,"h2"],[14,0,"title is-5 has-bottom-padding-s has-top-margin-l"],[12],[1,"\\n    Access to AWS\\n  "],[13],[1,"\\n  "],[10,0],[14,0,"box is-fullwidth is-sideless"],[12],[1,"\\n"],[41,[30,0,["version","isEnterprise"]],[[[1,"      "],[10,"fieldset"],[14,0,"field form-fieldset"],[14,1,"protection"],[12],[1,"\\n        "],[10,"legend"],[14,0,"is-label"],[12],[1,"Access Type"],[13],[1,"\\n        "],[10,2],[14,0,"sub-text"],[12],[1,"\\n"],[41,[30,0,["disableAccessType"]],[[[1,"            You cannot edit Access Type if you have already saved access credentials.\\n"]],[]],[[[1,"            Choose the way to configure access to AWS. Access can be configured either with IAM access keys, or using Plugin\\n            Workload Identity Federation (WIF)."]],[]]],[13],[1,"\\n        "],[10,0],[12],[1,"\\n          "],[8,[39,5],[[24,1,"access-type-iam"],[24,3,"iam"],[24,0,"radio"]],[["@value","@groupValue","@onChange","@disabled"],["iam",[30,0,["accessType"]],[28,[37,6],[[30,0,["onChangeAccessType"]],"iam"],null],[30,0,["disableAccessType"]]]],null],[1,"\\n          "],[10,"label"],[14,"for","access-type-iam"],[12],[1,"IAM Credentials"],[13],[1,"\\n\\n          "],[8,[39,5],[[24,1,"access-type-wif"],[24,3,"wif"],[24,0,"radio has-left-margin-m"]],[["@value","@groupValue","@onChange","@disabled"],["wif",[30,0,["accessType"]],[28,[37,6],[[30,0,["onChangeAccessType"]],"wif"],null],[30,0,["disableAccessType"]]]],null],[1,"\\n          "],[10,"label"],[14,"for","access-type-wif"],[12],[1,"Workload Identity Federation"],[13],[1,"\\n        "],[13],[1,"\\n      "],[13],[1,"\\n"]],[]],null],[41,[28,[37,7],[[30,0,["accessType"]],"wif"],null],[[[42,[28,[37,9],[[28,[37,9],[[30,1,["attrs"]]],null]],null],null,[[[1,"        "],[8,[39,10],null,[["@attr","@model"],[[30,2],[30,1]]],null],[1,"\\n"]],[2]],null],[1,"      "],[8,[39,11],null,[["@model","@mode","@modelValidations","@groupName"],[[30,3],[52,[30,3,["isNew"]],"create","edit"],[30,0,["modelValidationsRoot"]],"fieldGroupsWif"]],null],[1,"\\n"]],[]],[[[1,"      "],[8,[39,11],null,[["@model","@mode","@modelValidations","@useEnableInput","@groupName"],[[30,3],[52,[30,3,["isNew"]],"create","edit"],[30,0,["modelValidationsRoot"]],true,"fieldGroupsIam"]],null],[1,"\\n"]],[]]],[1,"  "],[13],[1,"\\n\\n"],[1,"  "],[10,"h2"],[14,0,"title is-5 has-bottom-padding-s has-top-margin-l"],[12],[1,"\\n    Leases\\n  "],[13],[1,"\\n  "],[10,0],[14,0,"box is-fullwidth is-sideless is-bottomless"],[12],[1,"\\n"],[42,[28,[37,9],[[28,[37,9],[[30,4,["attrs"]]],null]],null],null,[[[1,"      "],[8,[39,10],null,[["@attr","@model","@modelValidations"],[[30,5],[30,4],[30,0,["modelValidationsLease"]]]],null],[1,"\\n"]],[5]],null],[1,"  "],[13],[1,"\\n\\n  "],[10,0],[14,0,"box is-fullwidth is-bottomless"],[12],[1,"\\n    "],[10,0],[14,0,"control"],[12],[1,"\\n      "],[8,[39,12],[[16,"disabled",[30,0,["save","isRunning"]]],[24,4,"submit"]],[["@text","@icon"],["Save",[52,[30,0,["save","isRunning"]],"loading"]]],null],[1,"\\n      "],[8,[39,12],[[24,0,"has-left-margin-s"],[16,"disabled",[30,0,["save","isRunning"]]],[4,[38,0],["click",[30,0,["onCancel"]]],null]],[["@text","@color"],["Cancel","secondary"]],null],[1,"\\n    "],[13],[1,"\\n"],[41,[30,0,["invalidFormAlert"]],[[[1,"      "],[8,[39,13],[[24,0,"has-top-padding-s"]],[["@type","@message"],["danger",[30,0,["invalidFormAlert"]]]],null],[1,"\\n"]],[]],null],[1,"  "],[13],[1,"\\n"],[13],[1,"\\n\\n"],[41,[30,0,["saveIssuerWarning"]],[[[1,"  "],[8,[39,14],null,[["@color","@onClose"],["warning",[28,[37,15],[[30,0],[28,[37,16],[[30,0,["saveIssuerWarning"]]],null],""],null]]],[["default"],[[[[1,"\\n    "],[8,[30,6,["Header"]],null,[["@icon"],["alert-circle"]],[["default"],[[[[1,"\\n      Are you sure?\\n    "]],[]]]]],[1,"\\n    "],[8,[30,6,["Body"]],null,null,[["default"],[[[[1,"\\n      "],[10,2],[14,0,"has-bottom-margin-s"],[12],[1,"\\n        "],[1,[30,0,["saveIssuerWarning"]]],[1,"\\n      "],[13],[1,"\\n    "]],[]]]]],[1,"\\n    "],[8,[30,6,["Footer"]],null,null,[["default"],[[[[1,"\\n      "],[8,[39,17],null,null,[["default"],[[[[1,"\\n        "],[8,[39,12],[[4,[38,0],["click",[30,0,["continueSubmitForm"]]],null]],[["@text"],["Continue"]],null],[1,"\\n        "],[8,[39,12],[[4,[38,0],["click",[30,7,["close"]]],null]],[["@text","@color"],["Cancel","secondary"]],null],[1,"\\n      "]],[]]]]],[1,"\\n    "]],[7]]]]],[1,"\\n  "]],[6]]]]],[1,"\\n"]],[]],null]],["@issuerConfig","attr","@rootConfig","@leaseConfig","attr","M","F"],false,["on","perform","namespace-reminder","message-error","if","radio-button","fn","eq","each","-track-array","form-field","form-field-groups","hds/button","alert-inline","hds/modal","action","mut","hds/button-set"]]',moduleName:"vault/components/secret-engine/configure-aws.hbs",isStrictMode:!1})
let O=e.default=(d=class extends l.default{constructor(e,t){if(super(e,t),x(this,"router",p,this),x(this,"store",f,this),x(this,"version",m,this),x(this,"flashMessages",h,this),x(this,"errorMessageRoot",b,this),x(this,"errorMessageLease",y,this),x(this,"invalidFormAlert",v,this),x(this,"modelValidationsLease",g,this),x(this,"accessType",w,this),x(this,"saveIssuerWarning",k,this),P(this,"disableAccessType",!1),P(this,"submitForm",(0,n.buildTask)((()=>({context:this,generator:(0,a.waitFor)((function*(e){e?.preventDefault(),this.resetErrors()
const{leaseConfig:t,issuerConfig:n}=this.args
this.validate(t)&&(n?.hasDirtyAttributes?this.saveIssuerWarning=`You are updating the global issuer config. This will overwrite Vault's current issuer ${n.queryIssuerError?"if it exists ":""}and may affect other configurations using this value. Continue?`:yield this.save.perform())}))})),null,"submitForm",null)),P(this,"save",(0,n.buildTask)((()=>({context:this,generator:(0,a.waitFor)((function*(){const{leaseConfig:e,rootConfig:t,issuerConfig:n}=this.args,l=Object.keys(e?.changedAttributes()).some((e=>"backend"!==e)),i=Object.keys(t?.changedAttributes()).some((e=>"backend"!==e)),r=n?.hasDirtyAttributes
if(!l&&!i&&!r)return this.flashMessages.info("No changes detected."),void this.transition()
const a=!!i&&(yield this.saveRoot()),o=!!l&&(yield this.saveLease()),s=!!r&&(yield this.updateIssuer());(a||o||s)&&this.transition()}))})),null,"save",null)),this.version.isCommunity||this.args.rootConfig.isNew)return
const{roleArn:l,identityTokenAudience:i,identityTokenTtl:r,accessKey:o}=this.args.rootConfig,s=!!l||!!i||!!r,u=!!o
this.accessType=s?"wif":"iam",this.disableAccessType=s||u}continueSubmitForm(){this.saveIssuerWarning="",this.save.perform()}async updateIssuer(){try{return await this.args.issuerConfig.save(),this.flashMessages.success("Issuer saved successfully"),!0}catch(e){return this.flashMessages.danger(`Issuer was not saved: ${(0,u.default)(e,"Check Vault logs for details.")}`),!1}}async saveRoot(){const{backendPath:e,rootConfig:t}=this.args
try{return await t.save(),this.flashMessages.success(`Successfully saved ${e}'s root configuration.`),!0}catch(n){return this.errorMessageRoot=(0,u.default)(n),this.invalidFormAlert="There was an error submitting this form.",!1}}async saveLease(){const{backendPath:e,leaseConfig:t}=this.args
try{return await t.save(),this.flashMessages.success(`Successfully saved ${e}'s lease configuration.`),!0}catch(n){return this.errorMessageRoot?(this.errorMessageLease=(0,u.default)(n),this.flashMessages.danger(`Configuration not saved: ${(0,u.default)(n)}. ${this.errorMessageRoot}`),!1):(this.flashMessages.danger(`Lease configuration was not saved: ${(0,u.default)(n)}`,{sticky:!0}),!0)}}resetErrors(){this.flashMessages.clearMessages(),this.errorMessageRoot=null,this.invalidFormAlert=null}transition(){this.router.transitionTo("vault.cluster.secrets.backend.configuration",this.args.backendPath)}validate(e){const{isValid:t,state:n,invalidFormMessage:l}=e.validate()
return this.modelValidationsLease=t?null:n,this.invalidFormAlert=t?"":l,t}unloadModels(){this.args.rootConfig.unloadRecord(),this.args.leaseConfig.unloadRecord()}onChangeAccessType(e){this.accessType=e
const{rootConfig:t}=this.args
"iam"===e&&(t.roleArn=t.identityTokenAudience=t.identityTokenTtl=void 0,this.args.issuerConfig.rollbackAttributes()),"wif"===e&&(t.accessKey=t.secretKey=void 0)}onCancel(){this.resetErrors(),this.unloadModels(),this.transition()}},p=_(d.prototype,"router",[o.service],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),f=_(d.prototype,"store",[o.service],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),m=_(d.prototype,"version",[o.service],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),h=_(d.prototype,"flashMessages",[o.service],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),b=_(d.prototype,"errorMessageRoot",[s.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),y=_(d.prototype,"errorMessageLease",[s.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),v=_(d.prototype,"invalidFormAlert",[s.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),g=_(d.prototype,"modelValidationsLease",[s.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),w=_(d.prototype,"accessType",[s.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return"iam"}}),k=_(d.prototype,"saveIssuerWarning",[s.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return""}}),_(d.prototype,"continueSubmitForm",[i.action],Object.getOwnPropertyDescriptor(d.prototype,"continueSubmitForm"),d.prototype),_(d.prototype,"onChangeAccessType",[i.action],Object.getOwnPropertyDescriptor(d.prototype,"onChangeAccessType"),d.prototype),_(d.prototype,"onCancel",[i.action],Object.getOwnPropertyDescriptor(d.prototype,"onCancel"),d.prototype),d);(0,t.setComponentTemplate)(T,O)})),define("vault/components/secret-engine/configure-ssh",["exports","@ember/component","@glimmer/component","@ember/object","ember-concurrency","@ember/test-waiters","@ember/service","@glimmer/tracking","vault/utils/error-message","@ember/template-factory"],(function(e,t,n,l,i,r,a,o,s,u){var c,d,p,f,m,h,b
function y(e,t,n,l){n&&Object.defineProperty(e,t,{enumerable:n.enumerable,configurable:n.configurable,writable:n.writable,value:n.initializer?n.initializer.call(l):void 0})}function v(e,t,n,l,i){var r={}
return Object.keys(l).forEach((function(e){r[e]=l[e]})),r.enumerable=!!r.enumerable,r.configurable=!!r.configurable,("value"in r||r.initializer)&&(r.writable=!0),r=n.slice().reverse().reduce((function(n,l){return l(e,t,n)||n}),r),i&&void 0!==r.initializer&&(r.value=r.initializer?r.initializer.call(i):void 0,r.initializer=void 0),void 0===r.initializer?(Object.defineProperty(e,t,r),null):r}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
const g=(0,u.createTemplateFactory)({id:"xt9WDGmC",block:'[[[11,"form"],[24,"aria-label","save ssh creds"],[24,0,"has-top-padding-m"],[4,[38,0],["submit",[28,[37,1],[[30,0,["save"]]],null]],null],[12],[1,"\\n  "],[8,[39,2],null,[["@mode","@noun"],["save","configuration"]],null],[1,"\\n  "],[8,[39,3],null,[["@errorMessage"],[[30,0,["errorMessage"]]]],null],[1,"\\n"],[41,[30,1,["isNew"]],[[[42,[28,[37,6],[[28,[37,6],[[30,1,["formFields"]]],null]],null],null,[[[1,"      "],[8,[39,7],null,[["@attr","@model","@modelValidations"],[[30,2],[30,1],[30,0,["modelValidations"]]]],null],[1,"\\n"]],[2]],null],[1,"    "],[10,"hr"],[14,0,"has-background-gray-300"],[12],[13],[1,"\\n    "],[8,[39,8],null,null,[["default"],[[[[1,"\\n      "],[8,[39,9],[[16,"disabled",[30,0,["save","isRunning"]]],[24,4,"submit"]],[["@text","@icon"],["Save",[52,[30,0,["save","isRunning"]],"loading"]]],null],[1,"\\n      "],[8,[39,9],[[16,"disabled",[30,0,["save","isRunning"]]],[4,[38,0],["click",[30,0,["onCancel"]]],null]],[["@text","@color"],["Cancel","secondary"]],null],[1,"\\n    "]],[]]]]],[1,"\\n"],[41,[30,0,["invalidFormAlert"]],[[[1,"      "],[8,[39,10],[[24,0,"has-top-padding-s"]],[["@type","@message"],["danger",[30,0,["invalidFormAlert"]]]],null],[1,"\\n"]],[]],null]],[]],[[[1,"    "],[10,2],[14,0,"has-text-grey-dark has-top-bottom-margin"],[12],[1,"\\n      NOTE: You must delete your existing certificate and key before saving new values.\\n    "],[13],[1,"\\n\\n    "],[10,0],[14,0,"box is-fullwidth is-sideless"],[12],[1,"\\n      "],[10,"label"],[14,"for","publicKey"],[14,0,"is-label"],[12],[1,"\\n        Public key\\n      "],[13],[1,"\\n      "],[10,0],[14,0,"control"],[12],[1,"\\n        "],[8,[39,11],null,[["@name","@id","@value","@displayOnly","@allowCopy"],["publickey","publicKey",[30,1,["publicKey"]],true,true]],null],[1,"\\n      "],[13],[1,"\\n    "],[13],[1,"\\n    "],[8,[39,8],null,null,[["default"],[[[[1,"\\n      "],[8,[39,12],[[24,0,"primary"]],[["@text","@textToCopy","@onError"],["Copy",[30,1,["publicKey"]],[28,[37,13],[[28,[37,14],["Clipboard copy failed. The Clipboard API requires a secure context.","danger"],null]],null]]],null],[1,"\\n      "],[8,[39,15],null,[["@buttonText","@buttonColor","@confirmMessage","@onConfirmAction"],["Delete","secondary","Confirming will remove the CA certificate information.",[30,0,["deleteCaConfig"]]]],null],[1,"\\n    "]],[]]]]],[1,"\\n"]],[]]],[13]],["@model","attr"],false,["on","perform","namespace-reminder","message-error","if","each","-track-array","form-field","hds/button-set","hds/button","alert-inline","masked-input","hds/copy/button","fn","set-flash-message","confirm-action"]]',moduleName:"vault/components/secret-engine/configure-ssh.hbs",isStrictMode:!1})
let w=e.default=(c=class extends n.default{constructor(...e){super(...e),y(this,"router",d,this),y(this,"store",p,this),y(this,"flashMessages",f,this),y(this,"errorMessage",m,this),y(this,"invalidFormAlert",h,this),y(this,"modelValidations",b,this)}*save(e){e.preventDefault(),this.resetErrors()
const{id:t,model:n}=this.args
if(!this.validate(n))return
Object.keys(n.changedAttributes()).length>0||(this.flashMessages.info("No changes detected."),this.transition())
try{yield n.save(),this.transition(),this.flashMessages.success(`Successfully saved ${t}'s root configuration.`)}catch(l){this.errorMessage=(0,s.default)(l),this.invalidFormAlert="There was an error submitting this form."}}resetErrors(){this.flashMessages.clearMessages(),this.errorMessage=null,this.invalidFormAlert=null}transition(e=!1){const{id:t}=this.args
e?this.router.transitionTo("vault.cluster.secrets.backend.configuration.edit",t):this.router.transitionTo("vault.cluster.secrets.backend.configuration",t)}validate(e){const{isValid:t,state:n,invalidFormMessage:l}=e.validate()
return this.modelValidations=t?null:n,this.invalidFormAlert=t?"":l,t}onCancel(){this.resetErrors(),this.transition()}async deleteCaConfig(){const{model:e}=this.args
try{await e.destroyRecord(),this.transition(!0),this.flashMessages.success("CA information deleted successfully.")}catch(t){e.rollbackAttributes(),this.flashMessages.danger((0,s.default)(t))}}},d=v(c.prototype,"router",[a.service],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),p=v(c.prototype,"store",[a.service],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),f=v(c.prototype,"flashMessages",[a.service],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),m=v(c.prototype,"errorMessage",[o.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),h=v(c.prototype,"invalidFormAlert",[o.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),b=v(c.prototype,"modelValidations",[o.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),v(c.prototype,"save",[i.task,r.waitFor],Object.getOwnPropertyDescriptor(c.prototype,"save"),c.prototype),v(c.prototype,"onCancel",[l.action],Object.getOwnPropertyDescriptor(c.prototype,"onCancel"),c.prototype),v(c.prototype,"deleteCaConfig",[l.action],Object.getOwnPropertyDescriptor(c.prototype,"deleteCaConfig"),c.prototype),c);(0,t.setComponentTemplate)(g,w)})),define("vault/components/secret-link",["exports","@ember/component","@glimmer/component","@ember/object","vault/utils/path-encoding-helpers","@ember/debug","@ember/template-factory"],(function(e,t,n,l,i,r,a){var o
Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
const s=(0,a.createTemplateFactory)({id:"bLrGrCxV",block:'[[[8,[39,0],[[17,1]],[["@route","@models","@query","@disabled"],[[30,0,["link","route"]],[30,0,["link","models"]],[30,0,["query"]],[30,2]]],[["default"],[[[[1,"\\n  "],[18,3,null],[1,"\\n"]],[]]]]]],["&attrs","@disabled","&default"],false,["link-to","yield"]]',moduleName:"vault/components/secret-link.hbs",isStrictMode:!1})
let u=e.default=(o=class extends n.default{get link(){const{mode:e,secret:t,backend:n}=this.args
n||(0,r.debug)(`Arg "backend" missing from secret-link with mode: ${e} secret: ${t}`)
const l=`vault.cluster.secrets.backend.${e}`,a=n?[(0,i.encodePath)(n)]:[]
return"versions"!==e&&!t||" "===t?{route:`${l}-root`,models:a}:(a.push((0,i.encodePath)(t)),{route:l,models:a})}get query(){const e=this.args.queryParams||{}
return e.isQueryParams?e.values:e}onLinkClick(){this.args.onLinkClick&&this.args.onLinkClick(...arguments)}},c=o.prototype,d="onLinkClick",p=[l.action],f=Object.getOwnPropertyDescriptor(o.prototype,"onLinkClick"),m=o.prototype,h={},Object.keys(f).forEach((function(e){h[e]=f[e]})),h.enumerable=!!h.enumerable,h.configurable=!!h.configurable,("value"in h||h.initializer)&&(h.writable=!0),h=p.slice().reverse().reduce((function(e,t){return t(c,d,e)||e}),h),m&&void 0!==h.initializer&&(h.value=h.initializer?h.initializer.call(m):void 0,h.initializer=void 0),void 0===h.initializer&&Object.defineProperty(c,d,h),o)
var c,d,p,f,m,h;(0,t.setComponentTemplate)(s,u)})),define("vault/components/secret-list-header-tab",["exports","core/components/secret-list-header-tab"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.default}})})),define("vault/components/secret-list-header",["exports","core/components/secret-list-header"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.default}})})),define("vault/components/secret-list/aws-role-item",["exports","@glimmer/component","@glimmer/tracking"],(function(e,t,n){var l,i
Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default=(l=class extends t.default{constructor(...e){var t,n,l,r
super(...e),t=this,n="showConfirmModal",r=this,(l=i)&&Object.defineProperty(t,n,{enumerable:l.enumerable,configurable:l.configurable,writable:l.writable,value:l.initializer?l.initializer.call(r):void 0})}},r=l.prototype,a="showConfirmModal",o=[n.tracked],s={configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}},c={},Object.keys(s).forEach((function(e){c[e]=s[e]})),c.enumerable=!!c.enumerable,c.configurable=!!c.configurable,("value"in c||c.initializer)&&(c.writable=!0),c=o.slice().reverse().reduce((function(e,t){return t(r,a,e)||e}),c),u&&void 0!==c.initializer&&(c.value=c.initializer?c.initializer.call(u):void 0,c.initializer=void 0),i=void 0===c.initializer?(Object.defineProperty(r,a,c),null):c,l)
var r,a,o,s,u,c})),define("vault/components/secret-list/database-list-item",["exports","@glimmer/component","@glimmer/tracking","@ember/service","@ember/object"],(function(e,t,n,l,i){var r,a,o,s,u
function c(e,t,n,l){n&&Object.defineProperty(e,t,{enumerable:n.enumerable,configurable:n.configurable,writable:n.writable,value:n.initializer?n.initializer.call(l):void 0})}function d(e,t,n,l,i){var r={}
return Object.keys(l).forEach((function(e){r[e]=l[e]})),r.enumerable=!!r.enumerable,r.configurable=!!r.configurable,("value"in r||r.initializer)&&(r.writable=!0),r=n.slice().reverse().reduce((function(n,l){return l(e,t,n)||n}),r),i&&void 0!==r.initializer&&(r.value=r.initializer?r.initializer.call(i):void 0,r.initializer=void 0),void 0===r.initializer?(Object.defineProperty(e,t,r),null):r}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default=(r=class extends t.default{constructor(...e){super(...e),c(this,"roleType",a,this),c(this,"actionRunning",o,this),c(this,"store",s,this),c(this,"flashMessages",u,this)}get keyTypeValue(){const e=this.args.item
return"roles"===e.path?"dynamic":"static-roles"===e.path?"static":""}resetConnection(e){const{backend:t}=this.args.item,n=this.store.adapterFor("database/connection")
this.actionRunning="reset",n.resetConnection(t,e).then((()=>{this.flashMessages.success(`Success: ${e} connection was reset`)})).catch((e=>{this.flashMessages.danger(e.errors)})).finally((()=>this.actionRunning=null))}rotateRootCred(e){const{backend:t}=this.args.item,n=this.store.adapterFor("database/connection")
this.actionRunning="rotateRoot",n.rotateRootCredentials(t,e).then((()=>{this.flashMessages.success(`Success: ${e} connection was rotated`)})).catch((e=>{this.flashMessages.danger(e.errors)})).finally((()=>this.actionRunning=null))}rotateRoleCred(e){const{backend:t}=this.args.item,n=this.store.adapterFor("database/credential")
this.actionRunning="rotateRole",n.rotateRoleCredentials(t,e).then((()=>{this.flashMessages.success(`Success: Credentials for ${e} role were rotated`)})).catch((e=>{this.flashMessages.danger(e.errors)})).finally((()=>this.actionRunning=null))}},a=d(r.prototype,"roleType",[n.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return""}}),o=d(r.prototype,"actionRunning",[n.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),s=d(r.prototype,"store",[l.service],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),u=d(r.prototype,"flashMessages",[l.service],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),d(r.prototype,"resetConnection",[i.action],Object.getOwnPropertyDescriptor(r.prototype,"resetConnection"),r.prototype),d(r.prototype,"rotateRootCred",[i.action],Object.getOwnPropertyDescriptor(r.prototype,"rotateRootCred"),r.prototype),d(r.prototype,"rotateRoleCred",[i.action],Object.getOwnPropertyDescriptor(r.prototype,"rotateRoleCred"),r.prototype),r)})),define("vault/components/secret-list/item",["exports","@glimmer/component","@glimmer/tracking"],(function(e,t,n){var l,i
Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default=(l=class extends t.default{constructor(...e){var t,n,l,r
super(...e),t=this,n="showConfirmModal",r=this,(l=i)&&Object.defineProperty(t,n,{enumerable:l.enumerable,configurable:l.configurable,writable:l.writable,value:l.initializer?l.initializer.call(r):void 0})}},r=l.prototype,a="showConfirmModal",o=[n.tracked],s={configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}},c={},Object.keys(s).forEach((function(e){c[e]=s[e]})),c.enumerable=!!c.enumerable,c.configurable=!!c.configurable,("value"in c||c.initializer)&&(c.writable=!0),c=o.slice().reverse().reduce((function(e,t){return t(r,a,e)||e}),c),u&&void 0!==c.initializer&&(c.value=c.initializer?c.initializer.call(u):void 0,c.initializer=void 0),i=void 0===c.initializer?(Object.defineProperty(r,a,c),null):c,l)
var r,a,o,s,u,c}))
define("vault/components/secret-list/ssh-role-item",["exports","@glimmer/component","@glimmer/tracking"],(function(e,t,n){var l,i
Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default=(l=class extends t.default{constructor(...e){var t,n,l,r
super(...e),t=this,n="showConfirmModal",r=this,(l=i)&&Object.defineProperty(t,n,{enumerable:l.enumerable,configurable:l.configurable,writable:l.writable,value:l.initializer?l.initializer.call(r):void 0})}},r=l.prototype,a="showConfirmModal",o=[n.tracked],s={configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}},c={},Object.keys(s).forEach((function(e){c[e]=s[e]})),c.enumerable=!!c.enumerable,c.configurable=!!c.configurable,("value"in c||c.initializer)&&(c.writable=!0),c=o.slice().reverse().reduce((function(e,t){return t(r,a,e)||e}),c),u&&void 0!==c.initializer&&(c.value=c.initializer?c.initializer.call(u):void 0,c.initializer=void 0),i=void 0===c.initializer?(Object.defineProperty(r,a,c),null):c,l)
var r,a,o,s,u,c})),define("vault/components/secret-list/transform-list-item",["exports","@ember/object","@ember/component"],(function(e,t,n){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default=n.default.extend({item:null,itemPath:"",itemType:"",isBuiltin:(0,t.computed)("item","itemType",(function(){const e=this.item
return("alphabet"===this.itemType||"template"===this.itemType)&&e.id.startsWith("builtin/")})),backendType:"transform"})})),define("vault/components/secrets-engine-mount-config",["exports","core/components/secrets-engine-mount-config"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.default}})})),define("vault/components/section-tabs",["exports","@ember/component","@glimmer/component","@ember/template-factory"],(function(e,t,n,l){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
const i=(0,l.createTemplateFactory)({id:"/Cv+DYV5",block:'[[[44,[[28,[37,1],[[30,1],[30,0,["tabType"]],[30,2]],null]],[[[41,[30,3,["length"]],[[[1,"    "],[10,0],[14,0,"tabs-container box is-sideless is-fullwidth is-paddingless is-marginless"],[12],[1,"\\n      "],[10,"nav"],[14,0,"tabs"],[15,"aria-label",[29,["navigation to manage ",[30,1,["type"]]]]],[12],[1,"\\n        "],[10,"ul"],[12],[1,"\\n"],[42,[28,[37,4],[[28,[37,4],[[30,3]],null]],null],null,[[[1,"            "],[10,"li"],[12],[1,"\\n              "],[8,[39,5],null,[["@route","@models"],[[30,4,["route"]],[30,4,["routeParams"]]]],[["default"],[[[[1,"\\n                "],[1,[30,4,["label"]]],[1,"\\n              "]],[]]]]],[1,"\\n            "],[13],[1,"\\n"]],[4]],null],[1,"        "],[13],[1,"\\n      "],[13],[1,"\\n    "],[13],[1,"\\n"]],[]],null]],[3]]]],["@model","@paths","tabs","tab"],false,["let","tabs-for-auth-section","if","each","-track-array","link-to"]]',moduleName:"vault/components/section-tabs.hbs",isStrictMode:!1})
class r extends n.default{get tabType(){return this.args.tabType||"authSettings"}}e.default=r,(0,t.setComponentTemplate)(i,r)})),define("vault/components/select",["exports","core/components/select"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.default}})})),define("vault/components/selectable-card",["exports","core/components/selectable-card"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.default}})})),define("vault/components/shamir-progress",["exports","@ember/component","@ember/object"],(function(e,t,n){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default=t.default.extend({threshold:null,progress:null,classNames:["shamir-progress"],progressDecimal:(0,n.computed)("threshold","progress",(function(){const{threshold:e,progress:t}=this
return e&&t?t/e:0}))})})),define("vault/components/shamir/dr-token-flow",["exports","core/components/shamir/dr-token-flow"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.default}})})),define("vault/components/shamir/flow",["exports","core/components/shamir/flow"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.default}})})),define("vault/components/shamir/form",["exports","core/components/shamir/form"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.default}})})),define("vault/components/sidebar/frame",["exports","@ember/component","@glimmer/component","@ember/service","@ember/controller","@ember/template-factory"],(function(e,t,n,l,i,r){var a,o,s,u,c
function d(e,t,n,l){n&&Object.defineProperty(e,t,{enumerable:n.enumerable,configurable:n.configurable,writable:n.writable,value:n.initializer?n.initializer.call(l):void 0})}function p(e,t,n,l,i){var r={}
return Object.keys(l).forEach((function(e){r[e]=l[e]})),r.enumerable=!!r.enumerable,r.configurable=!!r.configurable,("value"in r||r.initializer)&&(r.writable=!0),r=n.slice().reverse().reduce((function(n,l){return l(e,t,n)||n}),r),i&&void 0!==r.initializer&&(r.value=r.initializer?r.initializer.call(i):void 0,r.initializer=void 0),void 0===r.initializer?(Object.defineProperty(e,t,r),null):r}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
const f=(0,r.createTemplateFactory)({id:"V4fJWNxy",block:'[[[8,[39,0],null,[["@hasSidebar","@hasHeader","@hasFooter"],[[30,1],false,false]],[["default"],[[[[1,"\\n  "],[8,[30,2,["Sidebar"]],null,null,[["default"],[[[[1,"\\n    "],[8,[39,1],null,[["@isResponsive","@hasA11yRefocus","@a11yRefocusSkipTo"],[true,true,"app-main-content"]],[["header","body","footer"],[[[[1,"\\n        "],[8,[39,2],null,null,[["logo","actions"],[[[[1,"\\n            "],[8,[39,3],null,[["@icon","@route","@model","@ariaLabel"],["vault","vault.cluster.dashboard",[30,0,["currentCluster","cluster","name"]],"Vault home"]],null],[1,"\\n          "]],[]],[[[1,"\\n            "],[8,[39,4],[[4,[38,5],["click",[28,[37,6],[[28,[37,7],[[30,0,["console","isOpen"]]],null],[28,[37,8],[[30,0,["console","isOpen"]]],null]],null]],null]],[["@icon","@ariaLabel"],["terminal-screen","Console toggle"]],null],[1,"\\n            "],[8,[39,9],null,null,null],[1,"\\n          "]],[]]]]],[1,"\\n      "]],[]],[[[1,"\\n        "],[8,[39,10],null,null,null],[1,"\\n      "]],[]],[[[1,"\\n"],[41,[28,[37,12],["Namespaces"],null],[[[1,"          "],[8,[39,13],[[24,0,"hds-side-nav-hide-when-minimized"]],[["@namespace"],[[30,0,["clusterController","namespaceQueryParam"]]]],null],[1,"\\n"]],[]],null],[1,"      "]],[]]]]],[1,"\\n  "]],[]]]]],[1,"\\n  "],[8,[30,2,["Main"]],[[24,1,"app-main-content"],[16,0,[52,[30,0,["console","isOpen"]],"main--console-open"]]],null,[["default"],[[[[1,"\\n"],[1,"    "],[8,[39,14],null,[["@status"],[[30,0,["currentCluster","cluster","hcpLinkStatus"]]]],null],[1,"\\n    "],[18,3,null],[1,"\\n    "],[10,0],[15,0,[52,[30,0,["console","isOpen"]],"panel-open"]],[12],[1,"\\n"],[41,[30,0,["console","isOpen"]],[[[1,"        "],[8,[39,16],[[4,[38,17],null,[["focusTrapOptions"],[[28,[37,18],null,[["initialFocus","clickOutsideDeactivates","onDeactivate"],["#console-input",true,[30,0,["closeConsole"]]]]]]]]],[["@isFullscreen"],[[30,0,["consoleFullscreen"]]]],null],[1,"\\n"]],[]],null],[1,"    "],[13],[1,"\\n  "]],[]]]]],[1,"\\n"]],[2]]]]]],["@showSidebar","Frame","&default"],false,["hds/app-frame","hds/side-nav","hds/side-nav/header","hds/side-nav/header/home-link","hds/side-nav/header/icon-button","on","fn","mut","not","sidebar/user-menu","hds/side-nav/portal/target","if","has-feature","namespace-picker","link-status","yield","console/ui-panel","focus-trap","hash"]]',moduleName:"vault/components/sidebar/frame.hbs",isStrictMode:!1})
let m=e.default=(a=(0,i.inject)("vault.cluster"),o=class extends n.default{constructor(...e){super(...e),d(this,"currentCluster",s,this),d(this,"console",u,this),d(this,"clusterController",c,this)}},s=p(o.prototype,"currentCluster",[l.service],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),u=p(o.prototype,"console",[l.service],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),c=p(o.prototype,"clusterController",[a],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),o);(0,t.setComponentTemplate)(f,m)})),define("vault/components/sidebar/nav/access",["exports","@ember/component","@ember/component/template-only","@ember/template-factory"],(function(e,t,n,l){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
const i=(0,l.createTemplateFactory)({id:"K40BzJay",block:'[[[8,[39,0],null,[["@ariaLabel"],["Access Navigation Links"]],[["default"],[[[[1,"\\n  "],[8,[30,1,["BackLink"]],null,[["@route","@current-when","@icon","@text"],["vault.cluster",false,"arrow-left","Back to main navigation"]],null],[1,"\\n\\n"],[41,[28,[37,2],["access"],[["routeParams"],[[28,[37,3],["methods","mfa","oidc"],null]]]],[[[1,"    "],[8,[30,1,["Title"]],null,null,[["default"],[[[[1,"Authentication"]],[]]]]],[1,"\\n"]],[]],null],[41,[28,[37,2],["access"],[["routeParams"],["methods"]]],[[[1,"    "],[8,[30,1,["Link"]],null,[["@route","@current-when","@text"],["vault.cluster.access.methods","vault.cluster.access.methods vault.cluster.access.method vault.cluster.settings.auth","Authentication Methods"]],null],[1,"\\n"]],[]],null],[41,[28,[37,2],["access"],[["routeParams"],["mfa"]]],[[[1,"    "],[8,[30,1,["Link"]],null,[["@route","@current-when","@text"],["vault.cluster.access.mfa.methods","vault.cluster.access.mfa.methods vault.cluster.access.mfa.enforcements vault.cluster.access.mfa.index","Multi-Factor Authentication"]],null],[1,"\\n"]],[]],null],[41,[28,[37,2],["access"],[["routeParams"],["oidc"]]],[[[1,"    "],[8,[30,1,["Link"]],null,[["@route","@text"],["vault.cluster.access.oidc","OIDC Provider"]],null],[1,"\\n"]],[]],null],[1,"\\n"],[41,[28,[37,4],[[28,[37,5],["Control Groups"],null],[28,[37,2],["access"],[["routeParams"],["control-groups"]]]],null],[[[1,"    "],[8,[30,1,["Title"]],null,null,[["default"],[[[[1,"Access Control"]],[]]]]],[1,"\\n    "],[8,[30,1,["Link"]],null,[["@route","@current-when","@text"],["vault.cluster.access.control-groups","vault.cluster.access.control-groups vault.cluster.access.control-group-accessor vault.cluster.access.control-groups-configure","Control Groups"]],null],[1,"\\n"]],[]],null],[1,"\\n"],[41,[28,[37,2],["access"],[["routeParams"],[[28,[37,3],["namespaces","groups","entities"],null]]]],[[[1,"    "],[8,[30,1,["Title"]],null,null,[["default"],[[[[1,"Organization"]],[]]]]],[1,"\\n"]],[]],null],[41,[28,[37,4],[[28,[37,5],["Namespaces"],null],[28,[37,2],["access"],[["routeParams"],["namespaces"]]]],null],[[[1,"    "],[8,[30,1,["Link"]],null,[["@route","@text"],["vault.cluster.access.namespaces","Namespaces"]],null],[1,"\\n"]],[]],null],[41,[28,[37,2],["access"],[["routeParams"],["groups"]]],[[[1,"    "],[8,[30,1,["Link"]],null,[["@route","@model","@text"],["vault.cluster.access.identity","groups","Groups"]],null],[1,"\\n"]],[]],null],[41,[28,[37,2],["access"],[["routeParams"],["entities"]]],[[[1,"    "],[8,[30,1,["Link"]],null,[["@route","@model","@text"],["vault.cluster.access.identity","entities","Entities"]],null],[1,"\\n"]],[]],null],[1,"\\n"],[41,[28,[37,2],["access"],[["routeParams"],["leases"]]],[[[1,"    "],[8,[30,1,["Title"]],null,null,[["default"],[[[[1,"Administration"]],[]]]]],[1,"\\n    "],[8,[30,1,["Link"]],null,[["@route","@text"],["vault.cluster.access.leases","Leases"]],null],[1,"\\n"]],[]],null]],[1]]]]]],["Nav"],false,["hds/side-nav/portal","if","has-permission","array","and","has-feature"]]',moduleName:"vault/components/sidebar/nav/access.hbs",isStrictMode:!1})
e.default=(0,t.setComponentTemplate)(i,(0,n.default)())})),define("vault/components/sidebar/nav/clients",["exports","@ember/component","@ember/component/template-only","@ember/template-factory"],(function(e,t,n,l){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
const i=(0,l.createTemplateFactory)({id:"RDLIeiNa",block:'[[[8,[39,0],null,[["@ariaLabel"],["Client Count Navigation Links"]],[["default"],[[[[1,"\\n  "],[8,[30,1,["BackLink"]],null,[["@route","@current-when","@icon","@text"],["vault.cluster",false,"arrow-left","Back to main navigation"]],null],[1,"\\n\\n  "],[8,[30,1,["Title"]],null,null,[["default"],[[[[1,"Client Count"]],[]]]]],[1,"\\n\\n  "],[8,[30,1,["Link"]],null,[["@route","@current-when","@text"],["vault.cluster.clients.counts.overview","vault.cluster.clients.counts","Vault Usage Metrics"]],null],[1,"\\n"],[41,[30,2],[[[1,"    "],[8,[30,1,["Link"]],null,[["@route","@text","@current-when"],["vault.cluster.clients.config","Configuration","vault.cluster.clients.config vault.cluster.clients.edit"]],null],[1,"\\n"]],[]],null]],[1]]]]]],["Nav","@canReadConfig"],false,["hds/side-nav/portal","if"]]',moduleName:"vault/components/sidebar/nav/clients.hbs",isStrictMode:!1})
e.default=(0,t.setComponentTemplate)(i,(0,n.default)())})),define("vault/components/sidebar/nav/cluster",["exports","@ember/component","@glimmer/component","@ember/service","@ember/template-factory"],(function(e,t,n,l,i){var r,a,o,s,u,c
function d(e,t,n,l){n&&Object.defineProperty(e,t,{enumerable:n.enumerable,configurable:n.configurable,writable:n.writable,value:n.initializer?n.initializer.call(l):void 0})}function p(e,t,n,l,i){var r={}
return Object.keys(l).forEach((function(e){r[e]=l[e]})),r.enumerable=!!r.enumerable,r.configurable=!!r.configurable,("value"in r||r.initializer)&&(r.writable=!0),r=n.slice().reverse().reduce((function(n,l){return l(e,t,n)||n}),r),i&&void 0!==r.initializer&&(r.value=r.initializer?r.initializer.call(i):void 0,r.initializer=void 0),void 0===r.initializer?(Object.defineProperty(e,t,r),null):r}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
const f=(0,i.createTemplateFactory)({id:"nIrcds4E",block:'[[[8,[39,0],null,[["@ariaLabel"],["Cluster Navigation Links"]],[["default"],[[[[1,"\\n  "],[8,[30,1,["Title"]],null,null,[["default"],[[[[1,"Vault"]],[]]]]],[1,"\\n\\n  "],[8,[30,1,["Link"]],null,[["@route","@text"],["vault.cluster.dashboard","Dashboard"]],null],[1,"\\n  "],[8,[30,1,["Link"]],null,[["@route","@current-when","@text"],["vault.cluster.secrets","vault.cluster.secrets vault.cluster.settings.mount-secret-backend vault.cluster.secrets.backend.configuration.edit","Secrets Engines"]],null],[1,"\\n"],[41,[30,0,["flags","showSecretsSync"]],[[[1,"    "],[8,[30,1,["Link"]],null,[["@route","@text","@badge"],["vault.cluster.sync","Secrets Sync",[52,[30,0,["flags","isHvdManaged"]],"Plus",""]]],null],[1,"\\n"]],[]],null],[41,[28,[37,2],["access"],null],[[[1,"    "],[8,[30,1,["Link"]],null,[["@route","@models","@current-when","@text","@hasSubItems"],[[28,[37,3],[[28,[37,4],["access"],null],"route"],null],[28,[37,3],[[28,[37,4],["access"],null],"models"],null],"vault.cluster.access vault.cluster.settings.auth","Access",true]],null],[1,"\\n"]],[]],null],[41,[28,[37,2],["policies"],null],[[[1,"    "],[8,[30,1,["Link"]],null,[["@route","@models","@text","@hasSubItems"],["vault.cluster.policies",[28,[37,3],[[28,[37,4],["policies"],null],"models"],null],"Policies",true]],null],[1,"\\n"]],[]],null],[41,[28,[37,2],["tools"],null],[[[1,"    "],[8,[30,1,["Link"]],null,[["@route","@models","@text","@hasSubItems"],["vault.cluster.tools.tool",[28,[37,3],[[28,[37,4],["tools"],null],"models"],null],"Tools",true]],null],[1,"\\n"]],[]],null],[1,"\\n"],[41,[28,[37,5],[[28,[37,6],[[30,0,["isRootNamespace"]],[28,[37,2],["status"],[["routeParams"],[[28,[37,7],["replication","raft","license","seal"],null]]]]],null],[28,[37,6],[[28,[37,2],["clients"],[["routeParams"],["activity"]]],[28,[37,8],[[30,0,["hasChrootNamespace"]]],null]],null]],null],[[[1,"    "],[8,[30,1,["Title"]],null,null,[["default"],[[[[1,"Monitoring"]],[]]]]],[1,"\\n"]],[]],null],[41,[28,[37,6],[[30,0,["version","isEnterprise"]],[30,0,["isRootNamespace"]],[28,[37,8],[[30,0,["cluster","replicationRedacted"]]],null],[28,[37,2],["status"],[["routeParams"],["replication"]]]],null],[[[1,"    "],[8,[30,1,["Link"]],null,[["@route","@text","@hasSubItems"],["vault.cluster.replication.index","Replication",true]],null],[1,"\\n"]],[]],null],[41,[28,[37,6],[[30,0,["cluster","usingRaft"]],[30,0,["isRootNamespace"]],[28,[37,2],["status"],[["routeParams"],["raft"]]]],null],[[[1,"    "],[8,[30,1,["Link"]],null,[["@route","@model","@text"],["vault.cluster.storage",[30,0,["cluster","name"]],"Raft Storage"]],null],[1,"\\n"]],[]],null],[41,[28,[37,6],[[28,[37,2],["clients"],[["routeParams"],["activity"]]],[28,[37,8],[[30,0,["cluster","dr","isSecondary"]]],null],[28,[37,8],[[30,0,["hasChrootNamespace"]]],null]],null],[[[1,"    "],[8,[30,1,["Link"]],null,[["@route","@text","@hasSubItems"],["vault.cluster.clients","Client Count",true]],null],[1,"\\n"]],[]],null],[41,[28,[37,6],[[30,0,["version","features"]],[30,0,["isRootNamespace"]],[28,[37,2],["status"],[["routeParams"],["license"]]],[28,[37,8],[[30,0,["cluster","dr","isSecondary"]]],null]],null],[[[1,"    "],[8,[30,1,["Link"]],null,[["@route","@model","@text"],["vault.cluster.license",[30,0,["cluster","name"]],"License"]],null],[1,"\\n"]],[]],null],[41,[28,[37,6],[[30,0,["isRootNamespace"]],[28,[37,2],["status"],[["routeParams"],["seal"]]],[28,[37,8],[[30,0,["cluster","dr","isSecondary"]]],null]],null],[[[1,"    "],[8,[30,1,["Link"]],null,[["@route","@model","@text"],["vault.cluster.settings.seal",[30,0,["cluster","name"]],"Seal Vault"]],null],[1,"\\n"]],[]],null],[1,"\\n"],[41,[28,[37,6],[[30,0,["version","isEnterprise"]],[28,[37,2],["settings"],null]],null],[[[1,"    "],[8,[30,1,["Title"]],null,null,[["default"],[[[[1,"Settings"]],[]]]]],[1,"\\n    "],[8,[30,1,["Link"]],null,[["@route","@text"],["vault.cluster.config-ui.messages","Custom Messages"]],null],[1,"\\n"]],[]],null]],[1]]]]]],["Nav"],false,["hds/side-nav/portal","if","has-permission","get","route-params-for","or","and","array","not"]]',moduleName:"vault/components/sidebar/nav/cluster.hbs",isStrictMode:!1})
let m=e.default=(r=class extends n.default{constructor(...e){super(...e),d(this,"currentCluster",a,this),d(this,"flags",o,this),d(this,"version",s,this),d(this,"auth",u,this),d(this,"namespace",c,this)}get cluster(){return this.currentCluster.cluster}get hasChrootNamespace(){return this.cluster?.hasChrootNamespace}get isRootNamespace(){return this.namespace.inRootNamespace&&!this.hasChrootNamespace}},a=p(r.prototype,"currentCluster",[l.service],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),o=p(r.prototype,"flags",[l.service],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),s=p(r.prototype,"version",[l.service],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),u=p(r.prototype,"auth",[l.service],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),c=p(r.prototype,"namespace",[l.service],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),r);(0,t.setComponentTemplate)(f,m)})),define("vault/components/sidebar/nav/policies",["exports","@ember/component","@ember/component/template-only","@ember/template-factory"],(function(e,t,n,l){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
const i=(0,l.createTemplateFactory)({id:"d0Y4ZHuz",block:'[[[8,[39,0],null,[["@ariaLabel"],["Policies Navigation Links"]],[["default"],[[[[1,"\\n  "],[8,[30,1,["BackLink"]],null,[["@route","@current-when","@icon","@text"],["vault.cluster",false,"arrow-left","Back to main navigation"]],null],[1,"\\n\\n  "],[8,[30,1,["Title"]],null,null,[["default"],[[[[1,"Policies"]],[]]]]],[1,"\\n\\n"],[41,[28,[37,2],["policies"],[["routeParams"],["acl"]]],[[[1,"    "],[8,[30,1,["Link"]],null,[["@route","@model","@current-when","@text"],["vault.cluster.policies","acl","vault.cluster.policies vault.cluster.policy","ACL Policies"]],null],[1,"\\n"]],[]],null],[41,[28,[37,3],[[28,[37,4],["Sentinel"],null],[28,[37,2],["policies"],[["routeParams"],["rgp"]]]],null],[[[1,"    "],[8,[30,1,["Link"]],null,[["@route","@model","@current-when","@text"],["vault.cluster.policies","rgp","vault.cluster.policies vault.cluster.policy","Role-Governing Policies"]],null],[1,"\\n"]],[]],null],[41,[28,[37,3],[[28,[37,4],["Sentinel"],null],[28,[37,2],["policies"],[["routeParams"],["egp"]]]],null],[[[1,"    "],[8,[30,1,["Link"]],null,[["@route","@model","@current-when","@text"],["vault.cluster.policies","egp","vault.cluster.policies vault.cluster.policy","Endpoint Governing Policies"]],null],[1,"\\n"]],[]],null]],[1]]]]]],["Nav"],false,["hds/side-nav/portal","if","has-permission","and","has-feature"]]',moduleName:"vault/components/sidebar/nav/policies.hbs",isStrictMode:!1})
e.default=(0,t.setComponentTemplate)(i,(0,n.default)())})),define("vault/components/sidebar/nav/tools",["exports","@ember/component","@ember/component/template-only","@ember/template-factory"],(function(e,t,n,l){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
const i=(0,l.createTemplateFactory)({id:"/GY1/a+I",block:'[[[8,[39,0],null,[["@ariaLabel"],["Tools Navigation Links"]],[["default"],[[[[1,"\\n  "],[8,[30,1,["BackLink"]],null,[["@route","@current-when","@icon","@text"],["vault.cluster",false,"arrow-left","Back to main navigation"]],null],[1,"\\n\\n  "],[8,[30,1,["Title"]],null,null,[["default"],[[[[1,"Tools"]],[]]]]],[1,"\\n\\n"],[42,[28,[37,2],[[28,[37,2],[[28,[37,3],null,null]],null]],null],null,[[[41,[28,[37,5],["tools"],[["routeParams"],[[30,2]]]],[[[1,"      "],[8,[30,1,["Link"]],null,[["@route","@model","@text"],["vault.cluster.tools.tool",[30,2],[28,[37,6],[[30,2]],null]]],null],[1,"\\n"]],[]],null]],[2]],null],[1,"  "],[8,[30,1,["Link"]],null,[["@route","@text"],["vault.cluster.tools.open-api-explorer","API Explorer"]],null],[1,"\\n"]],[1]]]]]],["Nav","supportedAction"],false,["hds/side-nav/portal","each","-track-array","tools-actions","if","has-permission","capitalize"]]',moduleName:"vault/components/sidebar/nav/tools.hbs",isStrictMode:!1})
e.default=(0,t.setComponentTemplate)(i,(0,n.default)())})),define("vault/components/sidebar/user-menu",["exports","@ember/component","@glimmer/component","@ember/service","@ember/runloop","@ember/object","@glimmer/tracking","@ember/template-factory"],(function(e,t,n,l,i,r,a,o){var s,u,c,d,p
function f(e,t,n,l){n&&Object.defineProperty(e,t,{enumerable:n.enumerable,configurable:n.configurable,writable:n.writable,value:n.initializer?n.initializer.call(l):void 0})}function m(e,t,n,l,i){var r={}
return Object.keys(l).forEach((function(e){r[e]=l[e]})),r.enumerable=!!r.enumerable,r.configurable=!!r.configurable,("value"in r||r.initializer)&&(r.writable=!0),r=n.slice().reverse().reduce((function(n,l){return l(e,t,n)||n}),r),i&&void 0!==r.initializer&&(r.value=r.initializer?r.initializer.call(i):void 0,r.initializer=void 0),void 0===r.initializer?(Object.defineProperty(e,t,r),null):r}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
const h=(0,o.createTemplateFactory)({id:"MLQJXGAn",block:'[[[8,[39,0],[[24,0,"sidebar-user-menu"]],[["@horizontalPosition","@verticalPosition","@renderInPlace"],["right","below",true]],[["default"],[[[[1,"\\n  "],[8,[30,1,["Trigger"]],null,null,[["default"],[[[[1,"\\n    "],[8,[39,1],null,[["@icon","@ariaLabel"],["user","User menu"]],null],[1,"\\n  "]],[]]]]],[1,"\\n  "],[8,[30,1,["Content"]],null,null,[["default"],[[[[1,"\\n    "],[10,0],[14,0,"popup-menu-content"],[12],[1,"\\n      "],[10,0],[14,0,"box"],[12],[1,"\\n        "],[10,0],[14,0,"menu-label overflow-wrap"],[12],[1,"\\n          "],[1,[28,[35,2],[[30,0,["auth","authData","displayName"]]],null]],[1,"\\n        "],[13],[1,"\\n        "],[10,"nav"],[14,0,"menu"],[12],[1,"\\n          "],[10,"ul"],[14,0,"menu-list"],[12],[1,"\\n"],[41,[30,0,["auth","allowExpiration"]],[[[1,"              "],[10,"li"],[14,0,"token-alert is-flex"],[12],[1,"\\n                "],[10,1],[12],[8,[39,4],[[24,0,"has-text-highlight"]],[["@name"],["alert-triangle-fill"]],null],[13],[1,"\\n                "],[10,1],[14,0,"is-size-8 has-text-semibold"],[12],[1,"\\n                  We\'ve stopped auto-renewing your token due to inactivity. It will expire on\\n                  "],[1,[28,[35,5],[[30,0,["auth","tokenExpirationDate"]],"MMMM do yyyy, h:mm:ss a"],null]],[1,".\\n                "],[13],[1,"\\n              "],[13],[1,"\\n"]],[]],null],[41,[30,0,["hasEntityId"]],[[[1,"              "],[10,"li"],[12],[1,"\\n                "],[8,[39,6],null,[["@route"],["vault.cluster.mfa-setup"]],[["default"],[[[[1,"\\n                  Multi-factor authentication\\n                "]],[]]]]],[1,"\\n              "],[13],[1,"\\n"]],[]],null],[41,[30,0,["isUserpass"]],[[[1,"              "],[10,"li"],[12],[1,"\\n                "],[8,[39,6],null,[["@route"],["vault.cluster.access.reset-password"]],[["default"],[[[[1,"\\n                  Reset password\\n                "]],[]]]]],[1,"\\n              "],[13],[1,"\\n"]],[]],null],[1,"            "],[10,"li"],[14,1,"container"],[12],[1,"\\n"],[1,"              "],[8,[39,7],[[24,0,"in-dropdown link is-flex-start"]],[["@text","@textToCopy","@isFullWidth","@container","@onSuccess","@onError"],["Copy token",[30,0,["auth","currentToken"]],true,"#container",[28,[37,8],[[28,[37,9],["Token copied!"],null]],null],[28,[37,8],[[28,[37,9],["Clipboard copy failed. The Clipboard API requires a secure context.","danger"],null]],null]]],null],[1,"\\n            "],[13],[1,"\\n"],[41,[28,[37,10],[[28,[37,11],null,[["interval"],[1000]]],[30,0,["auth","tokenExpirationDate"]]],null],[[[41,[30,0,["auth","authData","renewable"]],[[[1,"                "],[10,"li"],[12],[1,"\\n"],[1,"                  "],[11,"button"],[16,0,[29,["link button ",[52,[30,0,["isRenewing"]],"is-loading"]]]],[24,4,"button"],[4,[38,12],["click",[30,0,["renewToken"]]],null],[12],[1,"\\n                    Renew token\\n                  "],[13],[1,"\\n                "],[13],[1,"\\n"]],[]],null],[1,"              "],[8,[39,13],null,[["@isInDropdown","@confirmTitle","@onConfirmAction","@buttonText","@confirmMessage"],[true,[29,["Revoke ",[28,[37,14],[[30,0,["auth"]],"authData.displayName"],null],"?"]],[28,[37,15],[[30,0],"revokeToken"],null],"Revoke token","You will not be able to log in again with this token."]],null],[1,"\\n"]],[]],null],[1,"            "],[10,"li"],[12],[1,"\\n              "],[8,[39,6],[[24,1,"logout"]],[["@route","@model"],["vault.cluster.logout",[30,0,["currentCluster","cluster","name"]]]],[["default"],[[[[1,"\\n                Log out\\n              "]],[]]]]],[1,"\\n            "],[13],[1,"\\n          "],[13],[1,"\\n        "],[13],[1,"\\n      "],[13],[1,"\\n    "],[13],[1,"\\n  "]],[]]]]],[1,"\\n"]],[1]]]]]],["Dropdown"],false,["basic-dropdown","hds/side-nav/header/icon-button","capitalize","if","icon","date-format","link-to","hds/copy/button","fn","set-flash-message","is-before","now","on","confirm-action","get","action"]]',moduleName:"vault/components/sidebar/user-menu.hbs",isStrictMode:!1})
let b=e.default=(s=class extends n.default{constructor(...e){super(...e),f(this,"auth",u,this),f(this,"currentCluster",c,this),f(this,"router",d,this),f(this,"fakeRenew",p,this)}get hasEntityId(){return!!this.auth.authData?.entity_id}get isUserpass(){return"userpass"===this.auth.authData?.backend?.type}get isRenewing(){return this.fakeRenew||this.auth.isRenewing}transitionToRoute(){this.router.transitionTo(...arguments)}renewToken(){this.fakeRenew=!0,(0,i.later)((()=>{this.auth.renew().then((()=>{this.fakeRenew=this.auth.isRenewing}))}),200)}revokeToken(){this.auth.revokeCurrentToken().then((()=>{this.transitionToRoute("vault.cluster.logout")}))}},u=m(s.prototype,"auth",[l.service],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),c=m(s.prototype,"currentCluster",[l.service],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),d=m(s.prototype,"router",[l.service],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),p=m(s.prototype,"fakeRenew",[a.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),m(s.prototype,"renewToken",[r.action],Object.getOwnPropertyDescriptor(s.prototype,"renewToken"),s.prototype),m(s.prototype,"revokeToken",[r.action],Object.getOwnPropertyDescriptor(s.prototype,"revokeToken"),s.prototype),s);(0,t.setComponentTemplate)(h,b)})),define("vault/components/splash-page",["exports","@ember/component","@ember/component/template-only","@ember/template-factory"],(function(e,t,n,l){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
const i=(0,l.createTemplateFactory)({id:"muidB9RC",block:'[[[10,0],[14,0,"splash-page-container section is-flex-v-centered-tablet is-flex-grow-1 is-fullwidth"],[12],[1,"\\n  "],[10,0],[14,0,"columns is-centered is-gapless is-fullwidth"],[12],[1,"\\n    "],[10,0],[14,0,"column is-4-desktop is-6-tablet"],[12],[1,"\\n      "],[10,0],[14,0,"splash-page-header"],[12],[1,"\\n        "],[18,1,null],[1,"\\n      "],[13],[1,"\\n      "],[10,0],[14,0,"splash-page-sub-header"],[12],[1,"\\n        "],[18,2,null],[1,"\\n      "],[13],[1,"\\n      "],[10,0],[14,0,"login-form box is-paddingless is-relative"],[12],[1,"\\n        "],[18,3,null],[1,"\\n      "],[13],[1,"\\n      "],[18,4,null],[1,"\\n    "],[13],[1,"\\n  "],[13],[1,"\\n"],[13]],["&header","&subHeader","&content","&footer"],false,["yield"]]',moduleName:"vault/components/splash-page.hbs",isStrictMode:!1})
e.default=(0,t.setComponentTemplate)(i,(0,n.default)())})),define("vault/components/stat-text",["exports","core/components/stat-text"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.default}})})),define("vault/components/string-list",["exports","core/components/string-list"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.default}})})),define("vault/components/sync-status-badge",["exports","core/components/sync-status-badge"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.default}})})),define("vault/components/text-file",["exports","core/components/text-file"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.default}})})),define("vault/components/toggle-button",["exports","core/components/toggle-button"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.default}})})),define("vault/components/toggle",["exports","core/components/toggle"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.default}})})),define("vault/components/token-expire-warning",["exports","@ember/component","@glimmer/component","@ember/service","@glimmer/tracking","@ember/runloop","ember-concurrency","@ember/template-factory"],(function(e,t,n,l,i,r,a,o){var s,u,c,d
function p(e,t,n,l){n&&Object.defineProperty(e,t,{enumerable:n.enumerable,configurable:n.configurable,writable:n.writable,value:n.initializer?n.initializer.call(l):void 0})}function f(e,t,n,l,i){var r={}
return Object.keys(l).forEach((function(e){r[e]=l[e]})),r.enumerable=!!r.enumerable,r.configurable=!!r.configurable,("value"in r||r.initializer)&&(r.writable=!0),r=n.slice().reverse().reduce((function(n,l){return l(e,t,n)||n}),r),i&&void 0!==r.initializer&&(r.value=r.initializer?r.initializer.call(i):void 0,r.initializer=void 0),void 0===r.initializer?(Object.defineProperty(e,t,r),null):r}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
const m=(0,o.createTemplateFactory)({id:"qMrzQHtW",block:'[[[41,[28,[37,1],[[30,0,["showWarning"]],[28,[37,2],[[28,[37,3],null,[["interval"],[1000]]],[30,1]],null]],null],[[[1,"  "],[8,[39,4],null,[["@type","@color"],["page","critical"]],[["default"],[[[[1,"\\n    "],[8,[30,2,["Title"]],null,null,[["default"],[[[[1,"Error"]],[]]]]],[1,"\\n    "],[8,[30,2,["Description"]],null,null,[["default"],[[[[1,"\\n      Your auth token expired on\\n      "],[1,[28,[35,5],[[30,1],"MMMM do yyyy, h:mm:ss a"],null]],[1,". You will need to re-authenticate.\\n    "]],[]]]]],[1,"\\n    "],[8,[30,2,["LinkStandalone"]],null,[["@icon","@iconPosition","@text","@route","@query"],["arrow-right","trailing","Reauthenticate","vault.cluster.logout",[30,0,["queryParams"]]]],null],[1,"\\n  "]],[2]]]]],[1,"\\n"]],[]],[[[1,"  "],[10,"section"],[14,0,"section"],[12],[1,"\\n    "],[10,0],[14,0,"container is-widescreen"],[12],[1,"\\n"],[41,[28,[37,1],[[30,0,["showWarning"]],[30,3],[30,0,["canDismiss"]]],null],[[[1,"        "],[8,[39,4],[[24,0,"has-top-margin-s"]],[["@type","@color","@onDismiss"],["inline","warning",[28,[37,6],[[28,[37,7],[[30,0,["canDismiss"]]],null],false],null]]],[["default"],[[[[1,"\\n          "],[8,[30,4,["Title"]],null,null,[["default"],[[[[1,"Session will expire"]],[]]]]],[1,"\\n          "],[8,[30,4,["Description"]],null,null,[["default"],[[[[1,"\\n            We\'ve stopped auto-renewing your token due to inactivity. It will expire in\\n            "],[1,[28,[35,8],[[30,1]],null]],[1,"\\n            on\\n            "],[1,[28,[35,5],[[30,1],"MMMM do yyyy, h:mm:ss a O"],null]],[1,".\\n          "]],[]]]]],[1,"\\n          "],[8,[30,4,["Button"]],[[16,"disabled",[30,0,["renewToken","isRunning"]]],[4,[38,9],["click",[28,[37,10],[[30,0,["renewToken"]]],null]],null]],[["@text","@color","@icon","@iconPosition"],["Renew token","secondary",[52,[30,0,["renewToken","isRunning"]],"loading","reload"],"trailing"]],null],[1,"\\n          "],[8,[30,4,["LinkStandalone"]],null,[["@icon","@iconPosition","@color","@text","@route"],["arrow-right","trailing","secondary","Log out","vault.cluster.logout"]],null],[1,"\\n        "]],[4]]]]],[1,"\\n"]],[]],null],[1,"      "],[18,5,null],[1,"\\n    "],[13],[1,"\\n  "],[13],[1,"\\n"]],[]]]],["@expirationDate","A","@allowingExpiration","A","&default"],false,["if","and","is-after","now","hds/alert","date-format","fn","mut","date-from-now","on","perform","yield"]]',moduleName:"vault/components/token-expire-warning.hbs",isStrictMode:!1})
let h=e.default=(s=class extends n.default{constructor(...e){super(...e),p(this,"auth",u,this),p(this,"router",c,this),p(this,"canDismiss",d,this)}handleRenew(){return new Promise((e=>{(0,r.later)((()=>{this.auth.renew().then((()=>{this.auth.setLastFetch(Date.now())})).finally((()=>{e()}))}),200)}))}*renewToken(){yield this.handleRenew()}get queryParams(){return{redirect_to:this.router.currentURL}}get showWarning(){return"vault.cluster.oidc-provider"!==this.router.currentRouteName&&!!this.args.expirationDate}},u=f(s.prototype,"auth",[l.service],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),c=f(s.prototype,"router",[l.service],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),d=f(s.prototype,"canDismiss",[i.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!0}}),f(s.prototype,"renewToken",[a.task],Object.getOwnPropertyDescriptor(s.prototype,"renewToken"),s.prototype),s);(0,t.setComponentTemplate)(m,h)})),define("vault/components/tool-tip",["exports","core/components/tool-tip"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.default}})})),define("vault/components/toolbar-actions",["exports","core/components/toolbar-actions"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.default}})})),define("vault/components/toolbar-filters",["exports","core/components/toolbar-filters"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.default}})})),define("vault/components/toolbar-link",["exports","core/components/toolbar-link"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.default}})})),define("vault/components/toolbar-secret-link",["exports","@glimmer/component"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
class n extends t.default{get glyph(){return"add"===this.args.type?"plus":"chevron-right"}}e.default=n}))
define("vault/components/toolbar",["exports","core/components/toolbar"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.default}})})),define("vault/components/tools/hash",["exports","@ember/component","@glimmer/component","@ember/object","@ember/service","@glimmer/tracking","vault/utils/error-message","@ember/template-factory"],(function(e,t,n,l,i,r,a,o){var s,u,c,d,p,f,m,h
function b(e,t,n,l){n&&Object.defineProperty(e,t,{enumerable:n.enumerable,configurable:n.configurable,writable:n.writable,value:n.initializer?n.initializer.call(l):void 0})}function y(e,t,n,l,i){var r={}
return Object.keys(l).forEach((function(e){r[e]=l[e]})),r.enumerable=!!r.enumerable,r.configurable=!!r.configurable,("value"in r||r.initializer)&&(r.writable=!0),r=n.slice().reverse().reduce((function(n,l){return l(e,t,n)||n}),r),i&&void 0!==r.initializer&&(r.value=r.initializer?r.initializer.call(i):void 0,r.initializer=void 0),void 0===r.initializer?(Object.defineProperty(e,t,r),null):r}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
const v=(0,o.createTemplateFactory)({id:"FHzf1gya",block:'[[[8,[39,0],null,null,[["default"],[[[[1,"\\n  "],[8,[30,1,["levelLeft"]],null,null,[["default"],[[[[1,"\\n    "],[10,"h1"],[14,0,"title is-3"],[12],[1,"\\n      Hash Data\\n    "],[13],[1,"\\n  "]],[]]]]],[1,"\\n"]],[1]]]]],[1,"\\n\\n"],[41,[30,0,["sum"]],[[[1,"  "],[10,0],[14,0,"box is-sideless is-fullwidth is-marginless"],[12],[1,"\\n    "],[10,0],[14,0,"field"],[12],[1,"\\n      "],[10,"label"],[14,"for","sum"],[14,0,"is-input"],[12],[1,"Sum"],[13],[1,"\\n      "],[8,[39,2],null,[["@textToCopy","@color","@onError"],[[30,0,["sum"]],"secondary",[28,[37,3],[[28,[37,4],["Clipboard copy failed. The Clipboard API requires a secure context.","danger"],null]],null]]],null],[1,"\\n    "],[13],[1,"\\n  "],[13],[1,"\\n  "],[10,0],[14,0,"field is-grouped box is-fullwidth is-bottomless"],[12],[1,"\\n    "],[8,[39,5],[[4,[38,6],["click",[30,0,["reset"]]],null]],[["@text","@color"],["Done","secondary"]],null],[1,"\\n  "],[13],[1,"\\n"]],[]],[[[1,"  "],[11,"form"],[4,[38,6],["submit",[30,0,["handleSubmit"]]],null],[12],[1,"\\n    "],[10,0],[14,0,"box is-sideless is-fullwidth is-marginless"],[12],[1,"\\n      "],[8,[39,7],null,[["@errorMessage"],[[30,0,["errorMessage"]]]],null],[1,"\\n      "],[10,0],[14,0,"field"],[12],[1,"\\n        "],[10,"label"],[14,"for","hash-input"],[14,0,"is-label"],[12],[1,"\\n          Input\\n        "],[13],[1,"\\n        "],[10,0],[14,0,"control"],[12],[1,"\\n          "],[11,"textarea"],[24,1,"hash-input"],[24,3,"hashData"],[16,2,[30,0,["hashData"]]],[24,0,"textarea"],[4,[38,6],["input",[30,0,["handleEvent"]]],null],[12],[13],[1,"\\n          "],[8,[39,8],null,[["@value","@isInput"],[[30,0,["hashData"]],false]],null],[1,"\\n        "],[13],[1,"\\n      "],[13],[1,"\\n      "],[10,0],[14,0,"field is-horizontal"],[12],[1,"\\n        "],[10,0],[14,0,"field-body"],[12],[1,"\\n          "],[10,0],[14,0,"field"],[12],[1,"\\n            "],[10,"label"],[14,"for","algorithm"],[14,0,"is-label"],[12],[1,"Algorithm"],[13],[1,"\\n            "],[10,0],[14,0,"control is-expanded"],[12],[1,"\\n              "],[10,0],[14,0,"select is-fullwidth"],[12],[1,"\\n                "],[11,"select"],[24,3,"algorithm"],[24,1,"algorithm"],[4,[38,6],["change",[30,0,["handleEvent"]]],null],[12],[1,"\\n"],[42,[28,[37,10],[[28,[37,10],[[28,[37,11],null,null]],null]],null],null,[[[1,"                    "],[10,"option"],[15,"selected",[28,[37,12],[[30,0,["algorithm"]],[30,2]],null]],[15,2,[30,2]],[12],[1,"\\n                      "],[1,[30,2]],[1,"\\n                    "],[13],[1,"\\n"]],[2]],null],[1,"                "],[13],[1,"\\n              "],[13],[1,"\\n            "],[13],[1,"\\n          "],[13],[1,"\\n          "],[10,0],[14,0,"field"],[12],[1,"\\n            "],[10,"label"],[14,"for","format"],[14,0,"is-label"],[12],[1," Output format "],[13],[1,"\\n            "],[10,0],[14,0,"control is-expanded"],[12],[1,"\\n              "],[10,0],[14,0,"select is-fullwidth"],[12],[1,"\\n                "],[11,"select"],[24,3,"format"],[24,1,"format"],[4,[38,6],["change",[30,0,["handleEvent"]]],null],[12],[1,"\\n"],[42,[28,[37,10],[[28,[37,10],[[28,[37,13],["base64","hex"],null]],null]],null],null,[[[1,"                    "],[10,"option"],[15,"selected",[28,[37,12],[[30,0,["format"]],[30,3]],null]],[15,2,[30,3]],[12],[1,"\\n                      "],[1,[30,3]],[1,"\\n                    "],[13],[1,"\\n"]],[3]],null],[1,"                "],[13],[1,"\\n              "],[13],[1,"\\n            "],[13],[1,"\\n          "],[13],[1,"\\n        "],[13],[1,"\\n      "],[13],[1,"\\n    "],[13],[1,"\\n    "],[10,0],[14,0,"field is-grouped box is-fullwidth is-bottomless"],[12],[1,"\\n      "],[8,[39,5],[[24,4,"submit"]],[["@text"],["Hash"]],null],[1,"\\n    "],[13],[1,"\\n  "],[13],[1,"\\n"]],[]]]],["p","algo","formatOption"],false,["page-header","if","hds/copy/snippet","fn","set-flash-message","hds/button","on","message-error","b64-toggle","each","-track-array","sha2-digest-sizes","eq","array"]]',moduleName:"vault/components/tools/hash.hbs",isStrictMode:!1})
let g=e.default=(s=class extends n.default{constructor(...e){super(...e),b(this,"store",u,this),b(this,"flashMessages",c,this),b(this,"algorithm",d,this),b(this,"format",p,this),b(this,"hashData",f,this),b(this,"sum",m,this),b(this,"errorMessage",h,this)}reset(){this.algorithm="sha2-256",this.format="base64",this.hashData="",this.sum=null,this.errorMessage=""}handleEvent(e){const{name:t,value:n}=e.target
this[t]=n}async handleSubmit(e){e.preventDefault()
const t={input:this.hashData,format:this.format,algorithm:this.algorithm}
try{const e=await this.store.adapterFor("tools").toolAction("hash",t)
this.sum=e.data.sum,this.flashMessages.success("Hash was successful.")}catch(n){this.errorMessage=(0,a.default)(n)}}},u=y(s.prototype,"store",[i.service],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),c=y(s.prototype,"flashMessages",[i.service],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),d=y(s.prototype,"algorithm",[r.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return"sha2-256"}}),p=y(s.prototype,"format",[r.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return"base64"}}),f=y(s.prototype,"hashData",[r.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return""}}),m=y(s.prototype,"sum",[r.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),h=y(s.prototype,"errorMessage",[r.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return""}}),y(s.prototype,"reset",[l.action],Object.getOwnPropertyDescriptor(s.prototype,"reset"),s.prototype),y(s.prototype,"handleEvent",[l.action],Object.getOwnPropertyDescriptor(s.prototype,"handleEvent"),s.prototype),y(s.prototype,"handleSubmit",[l.action],Object.getOwnPropertyDescriptor(s.prototype,"handleSubmit"),s.prototype),s);(0,t.setComponentTemplate)(v,g)})),define("vault/components/tools/lookup",["exports","@ember/component","@glimmer/component","@ember/service","@ember/object","@glimmer/tracking","vault/utils/error-message","date-fns","@ember/template-factory"],(function(e,t,n,l,i,r,a,o,s){var u,c,d,p,f,m
function h(e,t,n,l){n&&Object.defineProperty(e,t,{enumerable:n.enumerable,configurable:n.configurable,writable:n.writable,value:n.initializer?n.initializer.call(l):void 0})}function b(e,t,n,l,i){var r={}
return Object.keys(l).forEach((function(e){r[e]=l[e]})),r.enumerable=!!r.enumerable,r.configurable=!!r.configurable,("value"in r||r.initializer)&&(r.writable=!0),r=n.slice().reverse().reduce((function(n,l){return l(e,t,n)||n}),r),i&&void 0!==r.initializer&&(r.value=r.initializer?r.initializer.call(i):void 0,r.initializer=void 0),void 0===r.initializer?(Object.defineProperty(e,t,r),null):r}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
const y=(0,s.createTemplateFactory)({id:"kqr2UXGk",block:'[[[8,[39,0],null,null,[["default"],[[[[1,"\\n  "],[8,[30,1,["levelLeft"]],null,null,[["default"],[[[[1,"\\n    "],[10,"h1"],[14,0,"title is-3"],[12],[1,"\\n      Lookup Token\\n    "],[13],[1,"\\n  "]],[]]]]],[1,"\\n"]],[1]]]]],[1,"\\n\\n"],[41,[30,0,["lookupData"]],[[[1,"  "],[10,0],[14,0,"box is-fullwidth is-sideless is-paddingless is-marginless"],[12],[1,"\\n"],[42,[28,[37,3],[[30,0,["lookupData"]]],null],null,[[[44,[[52,[28,[37,5],[[30,3],"creation_ttl"],null],"Creation TTL",[28,[37,6],[[30,3]],null]]],[[[1,"        "],[8,[39,7],null,[["@label","@value"],[[30,4],[30,2]]],null],[1,"\\n"]],[4]]]],[2,3]],null],[41,[30,0,["expirationDate"]],[[[1,"      "],[8,[39,7],null,[["@label","@value"],["Expiration date",[30,0,["expirationDate"]]]],null],[1,"\\n      "],[8,[39,7],null,[["@label","@value"],["Expires in",[28,[37,8],[[30,0,["expirationDate"]]],null]]],null],[1,"\\n"]],[]],null],[1,"  "],[13],[1,"\\n  "],[10,0],[14,0,"field is-grouped box is-fullwidth is-bottomless"],[12],[1,"\\n    "],[8,[39,9],[[4,[38,10],["click",[30,0,["reset"]]],null]],[["@text","@color"],["Done","secondary"]],null],[1,"\\n  "],[13],[1,"\\n"]],[]],[[[1,"  "],[11,"form"],[4,[38,10],["submit",[30,0,["handleSubmit"]]],null],[12],[1,"\\n    "],[10,0],[14,0,"box is-sideless is-fullwidth is-marginless"],[12],[1,"\\n      "],[8,[39,11],null,[["@mode","@noun"],["perform","lookup"]],null],[1,"\\n      "],[8,[39,12],null,[["@errorMessage"],[[30,0,["errorMessage"]]]],null],[1,"\\n      "],[10,0],[14,0,"field"],[12],[1,"\\n        "],[10,"label"],[14,"for","token"],[14,0,"is-label"],[12],[1,"Wrapped token"],[13],[1,"\\n        "],[10,0],[14,0,"has-text-grey is-size-8 has-bottom-margin-xs"],[12],[1,"\\n          Enter your wrapped token here to display its information.\\n        "],[13],[1,"\\n        "],[10,0],[14,0,"control"],[12],[1,"\\n          "],[8,[39,13],[[24,0,"input"],[24,1,"token"],[24,3,"token"]],[["@value"],[[30,0,["token"]]]],null],[1,"\\n        "],[13],[1,"\\n      "],[13],[1,"\\n    "],[13],[1,"\\n    "],[10,0],[14,0,"field is-grouped box is-fullwidth is-bottomless"],[12],[1,"\\n      "],[10,0],[14,0,"control"],[12],[1,"\\n        "],[8,[39,9],[[24,4,"submit"]],[["@text"],["Lookup token"]],null],[1,"\\n      "],[13],[1,"\\n    "],[13],[1,"\\n  "],[13],[1,"\\n"]],[]]]],["p","value","key","label"],false,["page-header","if","each","-each-in","let","eq","to-label","info-table-row","date-from-now","hds/button","on","namespace-reminder","message-error","input"]]',moduleName:"vault/components/tools/lookup.hbs",isStrictMode:!1})
let v=e.default=(u=class extends n.default{constructor(...e){super(...e),h(this,"store",c,this),h(this,"flashMessages",d,this),h(this,"token",p,this),h(this,"lookupData",f,this),h(this,"errorMessage",m,this)}reset(){this.token="",this.lookupData=null,this.errorMessage=""}get expirationDate(){const{creation_time:e,creation_ttl:t}=this.lookupData
return e&&t?(0,o.addSeconds)((0,o.parseISO)(e),t):null}async handleSubmit(e){e.preventDefault()
const t={token:this.token.trim()}
try{const e=await this.store.adapterFor("tools").toolAction("lookup",t)
this.lookupData=e.data,this.flashMessages.success("Lookup was successful.")}catch(n){this.errorMessage=(0,a.default)(n)}}},c=b(u.prototype,"store",[l.service],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),d=b(u.prototype,"flashMessages",[l.service],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),p=b(u.prototype,"token",[r.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return""}}),f=b(u.prototype,"lookupData",[r.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),m=b(u.prototype,"errorMessage",[r.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return""}}),b(u.prototype,"reset",[i.action],Object.getOwnPropertyDescriptor(u.prototype,"reset"),u.prototype),b(u.prototype,"handleSubmit",[i.action],Object.getOwnPropertyDescriptor(u.prototype,"handleSubmit"),u.prototype),u);(0,t.setComponentTemplate)(y,v)})),define("vault/components/tools/random",["exports","@ember/component","@glimmer/component","@ember/service","@ember/object","@glimmer/tracking","vault/utils/error-message","@ember/template-factory"],(function(e,t,n,l,i,r,a,o){var s,u,c,d,p,f,m
function h(e,t,n,l){n&&Object.defineProperty(e,t,{enumerable:n.enumerable,configurable:n.configurable,writable:n.writable,value:n.initializer?n.initializer.call(l):void 0})}function b(e,t,n,l,i){var r={}
return Object.keys(l).forEach((function(e){r[e]=l[e]})),r.enumerable=!!r.enumerable,r.configurable=!!r.configurable,("value"in r||r.initializer)&&(r.writable=!0),r=n.slice().reverse().reduce((function(n,l){return l(e,t,n)||n}),r),i&&void 0!==r.initializer&&(r.value=r.initializer?r.initializer.call(i):void 0,r.initializer=void 0),void 0===r.initializer?(Object.defineProperty(e,t,r),null):r}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
const y=(0,o.createTemplateFactory)({id:"CtxBUzTq",block:'[[[8,[39,0],null,null,[["default"],[[[[1,"\\n  "],[8,[30,1,["levelLeft"]],null,null,[["default"],[[[[1,"\\n    "],[10,"h1"],[14,0,"title is-3"],[12],[1,"\\n      Random Bytes\\n    "],[13],[1,"\\n  "]],[]]]]],[1,"\\n"]],[1]]]]],[1,"\\n\\n"],[41,[30,0,["randomBytes"]],[[[1,"  "],[10,0],[14,0,"box is-sideless is-fullwidth is-marginless"],[12],[1,"\\n    "],[10,"label"],[14,"for","rand"],[14,0,"is-label"],[12],[1,"Random bytes"],[13],[1,"\\n    "],[8,[39,2],null,[["@textToCopy","@color","@onError"],[[30,0,["randomBytes"]],"secondary",[28,[37,3],[[28,[37,4],["Clipboard copy failed. The Clipboard API requires a secure context.","danger"],null]],null]]],null],[1,"\\n  "],[13],[1,"\\n  "],[10,0],[14,0,"field is-grouped box is-fullwidth is-bottomless"],[12],[1,"\\n    "],[8,[39,5],[[4,[38,6],["click",[30,0,["reset"]]],null]],[["@text","@color"],["Done","secondary"]],null],[1,"\\n  "],[13],[1,"\\n"]],[]],[[[1,"  "],[11,"form"],[4,[38,6],["submit",[30,0,["handleSubmit"]]],null],[12],[1,"\\n    "],[10,0],[14,0,"box is-sideless is-fullwidth is-marginless"],[12],[1,"\\n      "],[8,[39,7],null,[["@errorMessage"],[[30,0,["errorMessage"]]]],null],[1,"\\n      "],[10,0],[14,0,"field is-horizontal"],[12],[1,"\\n        "],[10,0],[14,0,"field-body"],[12],[1,"\\n          "],[10,0],[14,0,"field"],[12],[1,"\\n            "],[10,"label"],[14,"for","bytes"],[14,0,"is-label"],[12],[1,"\\n              Number of bytes\\n            "],[13],[1,"\\n            "],[10,0],[14,0,"control"],[12],[1,"\\n              "],[8,[39,8],[[24,1,"bytes"],[24,0,"input"]],[["@value","@type"],[[30,0,["bytes"]],"number"]],null],[1,"\\n            "],[13],[1,"\\n          "],[13],[1,"\\n          "],[10,0],[14,0,"field"],[12],[1,"\\n            "],[10,"label"],[14,"for","format"],[14,0,"is-label"],[12],[1,"\\n              Output format\\n            "],[13],[1,"\\n            "],[10,0],[14,0,"control is-expanded"],[12],[1,"\\n              "],[10,0],[14,0,"select is-fullwidth"],[12],[1,"\\n                "],[11,"select"],[24,3,"format"],[24,1,"format"],[4,[38,6],["input",[30,0,["handleSelect"]]],null],[12],[1,"\\n"],[42,[28,[37,10],[[28,[37,10],[[28,[37,11],["base64","hex"],null]],null]],null],null,[[[1,"                    "],[10,"option"],[15,"selected",[28,[37,12],[[30,0,["format"]],[30,2]],null]],[15,2,[30,2]],[12],[1,"\\n                      "],[1,[30,2]],[1,"\\n                    "],[13],[1,"\\n"]],[2]],null],[1,"                "],[13],[1,"\\n              "],[13],[1,"\\n            "],[13],[1,"\\n          "],[13],[1,"\\n        "],[13],[1,"\\n      "],[13],[1,"\\n    "],[13],[1,"\\n    "],[10,0],[14,0,"field is-grouped box is-fullwidth is-bottomless"],[12],[1,"\\n      "],[10,0],[14,0,"control"],[12],[1,"\\n        "],[8,[39,5],[[24,4,"submit"]],[["@text"],["Generate"]],null],[1,"\\n      "],[13],[1,"\\n    "],[13],[1,"\\n  "],[13],[1,"\\n"]],[]]]],["p","formatOption"],false,["page-header","if","hds/copy/snippet","fn","set-flash-message","hds/button","on","message-error","input","each","-track-array","array","eq"]]',moduleName:"vault/components/tools/random.hbs",isStrictMode:!1})
let v=e.default=(s=class extends n.default{constructor(...e){super(...e),h(this,"store",u,this),h(this,"flashMessages",c,this),h(this,"bytes",d,this),h(this,"format",p,this),h(this,"randomBytes",f,this),h(this,"errorMessage",m,this)}reset(){this.bytes=32,this.format="base64",this.randomBytes=null,this.errorMessage=""}handleSelect(e){const{value:t}=e.target
this.format=t}async handleSubmit(e){e.preventDefault()
const t={bytes:Number(this.bytes),format:this.format}
try{const e=await this.store.adapterFor("tools").toolAction("random",t)
this.randomBytes=e.data.random_bytes,this.flashMessages.success("Generated random bytes successfully.")}catch(n){this.errorMessage=(0,a.default)(n)}}},u=b(s.prototype,"store",[l.service],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),c=b(s.prototype,"flashMessages",[l.service],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),d=b(s.prototype,"bytes",[r.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return 32}}),p=b(s.prototype,"format",[r.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return"base64"}}),f=b(s.prototype,"randomBytes",[r.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),m=b(s.prototype,"errorMessage",[r.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return""}}),b(s.prototype,"reset",[i.action],Object.getOwnPropertyDescriptor(s.prototype,"reset"),s.prototype),b(s.prototype,"handleSelect",[i.action],Object.getOwnPropertyDescriptor(s.prototype,"handleSelect"),s.prototype),b(s.prototype,"handleSubmit",[i.action],Object.getOwnPropertyDescriptor(s.prototype,"handleSubmit"),s.prototype),s);(0,t.setComponentTemplate)(y,v)})),define("vault/components/tools/rewrap",["exports","@ember/component","@glimmer/component","@ember/service","@ember/object","@glimmer/tracking","vault/utils/error-message","@ember/template-factory"],(function(e,t,n,l,i,r,a,o){var s,u,c,d,p,f
function m(e,t,n,l){n&&Object.defineProperty(e,t,{enumerable:n.enumerable,configurable:n.configurable,writable:n.writable,value:n.initializer?n.initializer.call(l):void 0})}function h(e,t,n,l,i){var r={}
return Object.keys(l).forEach((function(e){r[e]=l[e]})),r.enumerable=!!r.enumerable,r.configurable=!!r.configurable,("value"in r||r.initializer)&&(r.writable=!0),r=n.slice().reverse().reduce((function(n,l){return l(e,t,n)||n}),r),i&&void 0!==r.initializer&&(r.value=r.initializer?r.initializer.call(i):void 0,r.initializer=void 0),void 0===r.initializer?(Object.defineProperty(e,t,r),null):r}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
const b=(0,o.createTemplateFactory)({id:"6o9I1/6U",block:'[[[8,[39,0],null,null,[["default"],[[[[1,"\\n  "],[8,[30,1,["levelLeft"]],null,null,[["default"],[[[[1,"\\n    "],[10,"h1"],[14,0,"title is-3"],[12],[1,"\\n      Rewrap Token\\n    "],[13],[1,"\\n  "]],[]]]]],[1,"\\n"]],[1]]]]],[1,"\\n\\n"],[41,[30,0,["rewrappedToken"]],[[[1,"  "],[10,0],[14,0,"box is-sideless is-fullwidth is-marginless"],[12],[1,"\\n    "],[10,0],[14,0,"field"],[12],[1,"\\n      "],[10,"label"],[14,0,"is-label"],[12],[1,"Rewrapped token"],[13],[1,"\\n      "],[8,[39,2],null,[["@textToCopy","@color","@onError"],[[30,0,["rewrappedToken"]],"secondary",[28,[37,3],[[28,[37,4],["Clipboard copy failed. The Clipboard API requires a secure context.","danger"],null]],null]]],null],[1,"\\n    "],[13],[1,"\\n  "],[13],[1,"\\n  "],[10,0],[14,0,"field is-grouped box is-fullwidth is-bottomless"],[12],[1,"\\n    "],[8,[39,5],[[4,[38,6],["click",[30,0,["reset"]]],null]],[["@text","@color"],["Done","secondary"]],null],[1,"\\n  "],[13],[1,"\\n"]],[]],[[[1,"  "],[11,"form"],[4,[38,6],["submit",[30,0,["handleSubmit"]]],null],[12],[1,"\\n    "],[10,0],[14,0,"box is-sideless is-fullwidth is-marginless"],[12],[1,"\\n      "],[8,[39,7],null,[["@mode","@noun"],["perform","rewrap"]],null],[1,"\\n      "],[8,[39,8],null,[["@errorMessage"],[[30,0,["errorMessage"]]]],null],[1,"\\n      "],[10,0],[14,0,"field"],[12],[1,"\\n        "],[10,"label"],[14,"for","token"],[14,0,"is-label"],[12],[1,"Wrapped token"],[13],[1,"\\n        "],[10,0],[14,0,"has-text-grey is-size-8 has-bottom-margin-xs"],[12],[1,"\\n          Enter your wrapped token here to rewrap it and refresh its TTL.\\n        "],[13],[1,"\\n        "],[10,0],[14,0,"control"],[12],[1,"\\n          "],[8,[39,9],[[24,0,"input"],[24,1,"token"],[24,3,"token"]],[["@value"],[[30,0,["originalToken"]]]],null],[1,"\\n        "],[13],[1,"\\n      "],[13],[1,"\\n    "],[13],[1,"\\n    "],[10,0],[14,0,"field is-grouped box is-fullwidth is-bottomless"],[12],[1,"\\n      "],[10,0],[14,0,"control"],[12],[1,"\\n        "],[8,[39,5],[[24,4,"submit"]],[["@text"],["Rewrap token"]],null],[1,"\\n      "],[13],[1,"\\n    "],[13],[1,"\\n  "],[13],[1,"\\n"]],[]]]],["p"],false,["page-header","if","hds/copy/snippet","fn","set-flash-message","hds/button","on","namespace-reminder","message-error","input"]]',moduleName:"vault/components/tools/rewrap.hbs",isStrictMode:!1})
let y=e.default=(s=class extends n.default{constructor(...e){super(...e),m(this,"store",u,this),m(this,"flashMessages",c,this),m(this,"originalToken",d,this),m(this,"rewrappedToken",p,this),m(this,"errorMessage",f,this)}reset(){this.originalToken="",this.rewrappedToken="",this.errorMessage=""}async handleSubmit(e){e.preventDefault()
const t={token:this.originalToken.trim()}
try{const e=await this.store.adapterFor("tools").toolAction("rewrap",t)
this.rewrappedToken=e.wrap_info.token,this.flashMessages.success("Rewrap was successful.")}catch(n){this.errorMessage=(0,a.default)(n)}}},u=h(s.prototype,"store",[l.service],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),c=h(s.prototype,"flashMessages",[l.service],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),d=h(s.prototype,"originalToken",[r.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return""}}),p=h(s.prototype,"rewrappedToken",[r.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return""}}),f=h(s.prototype,"errorMessage",[r.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return""}}),h(s.prototype,"reset",[i.action],Object.getOwnPropertyDescriptor(s.prototype,"reset"),s.prototype),h(s.prototype,"handleSubmit",[i.action],Object.getOwnPropertyDescriptor(s.prototype,"handleSubmit"),s.prototype),s);(0,t.setComponentTemplate)(b,y)})),define("vault/components/tools/unwrap",["exports","@ember/component","@glimmer/component","@ember/service","@ember/object","@glimmer/tracking","vault/utils/error-message","@ember/template-factory"],(function(e,t,n,l,i,r,a,o){var s,u,c,d,p,f,m
function h(e,t,n,l){n&&Object.defineProperty(e,t,{enumerable:n.enumerable,configurable:n.configurable,writable:n.writable,value:n.initializer?n.initializer.call(l):void 0})}function b(e,t,n,l,i){var r={}
return Object.keys(l).forEach((function(e){r[e]=l[e]})),r.enumerable=!!r.enumerable,r.configurable=!!r.configurable,("value"in r||r.initializer)&&(r.writable=!0),r=n.slice().reverse().reduce((function(n,l){return l(e,t,n)||n}),r),i&&void 0!==r.initializer&&(r.value=r.initializer?r.initializer.call(i):void 0,r.initializer=void 0),void 0===r.initializer?(Object.defineProperty(e,t,r),null):r}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
const y=(0,o.createTemplateFactory)({id:"HG96NQtO",block:'[[[8,[39,0],null,null,[["default"],[[[[1,"\\n  "],[8,[30,1,["levelLeft"]],null,null,[["default"],[[[[1,"\\n    "],[10,"h1"],[14,0,"title is-3"],[12],[1,"\\n      Unwrap Data\\n    "],[13],[1,"\\n  "]],[]]]]],[1,"\\n"]],[1]]]]],[1,"\\n\\n"],[41,[30,0,["unwrapData"]],[[[1,"  "],[8,[39,2],null,null,[["default"],[[[[1,"\\n    "],[8,[30,2,["Tab"]],null,null,[["default"],[[[[1,"Data"]],[]]]]],[1,"\\n    "],[8,[30,2,["Tab"]],null,null,[["default"],[[[[1,"Wrap Details"]],[]]]]],[1,"\\n    "],[8,[30,2,["Panel"]],null,null,[["default"],[[[[1,"\\n      "],[8,[39,3],[[24,0,"has-top-padding-m"]],[["@title","@value","@readOnly","@container"],["Unwrapped Data",[28,[37,4],[[30,0,["unwrapData"]]],null],true,".toolbar-actions"]],null],[1,"\\n    "]],[]]]]],[1,"\\n    "],[8,[30,2,["Panel"]],null,null,[["default"],[[[[1,"\\n      "],[10,0],[14,0,"has-top-padding-m"],[12],[1,"\\n"],[42,[28,[37,6],[[30,0,["unwrapDetails"]]],null],null,[[[1,"          "],[8,[39,7],null,[["@label","@value"],[[30,4],[30,3]]],null],[1,"\\n"]],[3,4]],null],[1,"      "],[13],[1,"\\n    "]],[]]]]],[1,"\\n  "]],[2]]]]],[1,"\\n  "],[8,[39,8],[[24,0,"has-top-padding-m"]],null,[["default"],[[[[1,"\\n    "],[8,[39,9],[[24,0,"primary"]],[["@text","@textToCopy","@onError"],["Copy unwrapped data",[28,[37,4],[[30,0,["unwrapData"]]],null],[28,[37,10],[[28,[37,11],["Clipboard copy failed. The Clipboard API requires a secure context.","danger"],null]],null]]],null],[1,"\\n    "],[8,[39,12],[[4,[38,13],["click",[30,0,["reset"]]],null]],[["@color","@text"],["secondary","Done"]],null],[1,"\\n  "]],[]]]]],[1,"\\n"]],[]],[[[1,"  "],[11,"form"],[4,[38,13],["submit",[30,0,["handleSubmit"]]],null],[12],[1,"\\n    "],[10,0],[14,0,"box is-sideless is-fullwidth is-marginless"],[12],[1,"\\n      "],[8,[39,14],null,[["@mode","@noun"],["perform","unwrap"]],null],[1,"\\n      "],[8,[39,15],null,[["@errorMessage"],[[30,0,["errorMessage"]]]],null],[1,"\\n      "],[10,0],[14,0,"field"],[12],[1,"\\n        "],[10,"label"],[14,"for","token"],[14,0,"is-label"],[12],[1,"Wrapped token"],[13],[1,"\\n        "],[10,0],[14,0,"has-text-grey is-size-8 has-bottom-margin-xs"],[12],[1,"\\n          Enter your wrapped token here to unwrap it and return its original value.\\n        "],[13],[1,"\\n        "],[10,0],[14,0,"control"],[12],[1,"\\n          "],[8,[39,16],[[24,0,"input"],[24,1,"token"],[24,3,"token"],[24,"autocomplete","off"],[24,"spellcheck","false"]],[["@value"],[[30,0,["token"]]]],null],[1,"\\n        "],[13],[1,"\\n      "],[13],[1,"\\n    "],[13],[1,"\\n    "],[10,0],[14,0,"field is-grouped box is-fullwidth is-bottomless"],[12],[1,"\\n      "],[10,0],[14,0,"control"],[12],[1,"\\n        "],[8,[39,12],[[24,4,"submit"]],[["@text"],["Unwrap data"]],null],[1,"\\n      "],[13],[1,"\\n    "],[13],[1,"\\n  "],[13],[1,"\\n"]],[]]]],["p","T","detail","key"],false,["page-header","if","hds/tabs","json-editor","stringify","each","-each-in","info-table-row","hds/button-set","hds/copy/button","fn","set-flash-message","hds/button","on","namespace-reminder","message-error","input"]]',moduleName:"vault/components/tools/unwrap.hbs",isStrictMode:!1})
let v=e.default=(s=class extends n.default{constructor(...e){super(...e),h(this,"store",u,this),h(this,"flashMessages",c,this),h(this,"token",d,this),h(this,"unwrapData",p,this),h(this,"unwrapDetails",f,this),h(this,"errorMessage",m,this)}reset(){this.token="",this.unwrapData="",this.unwrapDetails={},this.errorMessage=""}async handleSubmit(e){e.preventDefault()
const t={token:this.token.trim()}
try{const e=await this.store.adapterFor("tools").toolAction("unwrap",t)
this.unwrapData=e&&e.data||e.auth,this.unwrapDetails={"Request ID":e.request_id,"Lease ID":e.lease_id||"None",Renewable:e.renewable,"Lease Duration":e.lease_duration||"None"},this.flashMessages.success("Unwrap was successful.")}catch(n){this.errorMessage=(0,a.default)(n)}}},u=b(s.prototype,"store",[l.service],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),c=b(s.prototype,"flashMessages",[l.service],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),d=b(s.prototype,"token",[r.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return""}}),p=b(s.prototype,"unwrapData",[r.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return""}}),f=b(s.prototype,"unwrapDetails",[r.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return{}}}),m=b(s.prototype,"errorMessage",[r.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return""}}),b(s.prototype,"reset",[i.action],Object.getOwnPropertyDescriptor(s.prototype,"reset"),s.prototype),b(s.prototype,"handleSubmit",[i.action],Object.getOwnPropertyDescriptor(s.prototype,"handleSubmit"),s.prototype),s);(0,t.setComponentTemplate)(y,v)})),define("vault/components/tools/wrap",["exports","@ember/component","@glimmer/component","@ember/service","@ember/object","@glimmer/tracking","vault/utils/error-message","@ember/template-factory"],(function(e,t,n,l,i,r,a,o){var s,u,c,d,p,f,m,h
function b(e,t,n,l){n&&Object.defineProperty(e,t,{enumerable:n.enumerable,configurable:n.configurable,writable:n.writable,value:n.initializer?n.initializer.call(l):void 0})}function y(e,t,n,l,i){var r={}
return Object.keys(l).forEach((function(e){r[e]=l[e]})),r.enumerable=!!r.enumerable,r.configurable=!!r.configurable,("value"in r||r.initializer)&&(r.writable=!0),r=n.slice().reverse().reduce((function(n,l){return l(e,t,n)||n}),r),i&&void 0!==r.initializer&&(r.value=r.initializer?r.initializer.call(i):void 0,r.initializer=void 0),void 0===r.initializer?(Object.defineProperty(e,t,r),null):r}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
const v=(0,o.createTemplateFactory)({id:"IZYzMFug",block:'[[[8,[39,0],null,null,[["default"],[[[[1,"\\n  "],[8,[30,1,["levelLeft"]],null,null,[["default"],[[[[1,"\\n    "],[10,"h1"],[14,0,"title is-3"],[12],[1,"\\n      Wrap Data\\n    "],[13],[1,"\\n  "]],[]]]]],[1,"\\n"]],[1]]]]],[1,"\\n\\n"],[41,[30,0,["token"]],[[[1,"  "],[10,0],[14,0,"box is-sideless is-fullwidth is-marginless"],[12],[1,"\\n    "],[10,0],[14,0,"field"],[12],[1,"\\n      "],[10,"label"],[14,"for","wrap-info"],[14,0,"is-label"],[12],[1,"Wrapped token"],[13],[1,"\\n      "],[8,[39,2],null,[["@textToCopy","@color","@onError"],[[30,0,["token"]],"secondary",[28,[37,3],[[28,[37,4],["Clipboard copy failed. The Clipboard API requires a secure context.","danger"],null]],null]]],null],[1,"\\n    "],[13],[1,"\\n  "],[13],[1,"\\n  "],[10,0],[14,0,"field is-grouped box is-fullwidth is-bottomless"],[12],[1,"\\n    "],[8,[39,5],null,null,[["default"],[[[[1,"\\n      "],[8,[39,6],[[4,[38,7],["click",[28,[37,3],[[30,0,["reset"]],false],null]],null]],[["@icon","@text","@color"],["arrow-left","Back","tertiary"]],null],[1,"\\n      "],[8,[39,6],[[4,[38,7],["click",[30,0,["reset"]]],null]],[["@text","@color"],["Done","secondary"]],null],[1,"\\n    "]],[]]]]],[1,"\\n  "],[13],[1,"\\n"]],[]],[[[1,"  "],[11,"form"],[4,[38,7],["submit",[30,0,["handleSubmit"]]],null],[12],[1,"\\n    "],[10,0],[14,0,"box is-sideless is-fullwidth is-marginless"],[12],[1,"\\n      "],[8,[39,8],null,[["@mode","@noun"],["perform","wrap"]],null],[1,"\\n      "],[8,[39,9],null,[["@errorMessage"],[[30,0,["errorMessage"]]]],null],[1,"\\n      "],[10,0],[14,0,"field"],[12],[1,"\\n        "],[10,0],[14,0,"control"],[12],[1,"\\n          "],[8,[39,10],null,[["@title","@subTitle","@value","@valueUpdated"],["Data to wrap","json-formatted",[30,0,["wrapData"]],[30,0,["codemirrorUpdated"]]]],null],[1,"\\n        "],[13],[1,"\\n      "],[13],[1,"\\n      "],[8,[39,11],null,[["@label","@initialValue","@onChange","@helperTextDisabled","@helperTextEnabled","@changeOnInit"],["Wrap TTL","30m",[30,0,["updateTtl"]],"Vault will use the default (30m)","Wrap will expire after",true]],null],[1,"\\n    "],[13],[1,"\\n    "],[10,0],[14,0,"field is-grouped box is-fullwidth is-bottomless"],[12],[1,"\\n      "],[10,0],[14,0,"control"],[12],[1,"\\n        "],[8,[39,6],[[16,"disabled",[30,0,["buttonDisabled"]]],[24,4,"submit"]],[["@text"],["Wrap data"]],null],[1,"\\n      "],[13],[1,"\\n    "],[13],[1,"\\n  "],[13],[1,"\\n"]],[]]]],["p"],false,["page-header","if","hds/copy/snippet","fn","set-flash-message","hds/button-set","hds/button","on","namespace-reminder","message-error","json-editor","ttl-picker"]]',moduleName:"vault/components/tools/wrap.hbs",isStrictMode:!1})
let g=e.default=(s=class extends n.default{constructor(...e){super(...e),b(this,"store",u,this),b(this,"flashMessages",c,this),b(this,"buttonDisabled",d,this),b(this,"token",p,this),b(this,"wrapTTL",f,this),b(this,"wrapData",m,this),b(this,"errorMessage",h,this)}reset(e=!0){this.token="",this.errorMessage="",this.wrapTTL=null,e&&(this.wrapData="{\n}")}updateTtl(e){e&&(this.wrapTTL=e.enabled?`${e.seconds}s`:"30m")}codemirrorUpdated(e,t){t.performLint()
const n=t?.state.lint.marked?.length>0
this.buttonDisabled=n,n||(this.wrapData=e)}async handleSubmit(e){e.preventDefault()
const t=JSON.parse(this.wrapData),n=this.wrapTTL||null
try{const e=await this.store.adapterFor("tools").toolAction("wrap",t,{wrapTTL:n})
this.token=e.wrap_info.token,this.flashMessages.success("Wrap was successful.")}catch(l){this.errorMessage=(0,a.default)(l)}}},u=y(s.prototype,"store",[l.service],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),c=y(s.prototype,"flashMessages",[l.service],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),d=y(s.prototype,"buttonDisabled",[r.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),p=y(s.prototype,"token",[r.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return""}}),f=y(s.prototype,"wrapTTL",[r.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),m=y(s.prototype,"wrapData",[r.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return"{\n}"}}),h=y(s.prototype,"errorMessage",[r.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return""}}),y(s.prototype,"reset",[i.action],Object.getOwnPropertyDescriptor(s.prototype,"reset"),s.prototype),y(s.prototype,"updateTtl",[i.action],Object.getOwnPropertyDescriptor(s.prototype,"updateTtl"),s.prototype),y(s.prototype,"codemirrorUpdated",[i.action],Object.getOwnPropertyDescriptor(s.prototype,"codemirrorUpdated"),s.prototype),y(s.prototype,"handleSubmit",[i.action],Object.getOwnPropertyDescriptor(s.prototype,"handleSubmit"),s.prototype),s);(0,t.setComponentTemplate)(v,g)})),define("vault/components/transform-advanced-templating",["exports","@glimmer/component","@glimmer/tracking","@ember/object"],(function(e,t,n,l){var i,r
function a(e,t,n,l,i){var r={}
return Object.keys(l).forEach((function(e){r[e]=l[e]})),r.enumerable=!!r.enumerable,r.configurable=!!r.configurable,("value"in r||r.initializer)&&(r.writable=!0),r=n.slice().reverse().reduce((function(n,l){return l(e,t,n)||n}),r),i&&void 0!==r.initializer&&(r.value=r.initializer?r.initializer.call(i):void 0,r.initializer=void 0),void 0===r.initializer?(Object.defineProperty(e,t,r),null):r}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default=(i=class extends t.default{constructor(...e){var t,n,l,i
super(...e),t=this,n="inputOptions",i=this,(l=r)&&Object.defineProperty(t,n,{enumerable:l.enumerable,configurable:l.configurable,writable:l.writable,value:l.initializer?l.initializer.call(i):void 0})}setInputOptions(e,t){t&&t.length?this.inputOptions=t.map((({position:e,value:t})=>({label:`${e}: ${t}`,value:e}))):this.inputOptions=[]}decodeFormatValueChange(e,t,n){(0,l.set)(e,"value",n),this.args.model.decodeFormats=t.toJSON()}},r=a(i.prototype,"inputOptions",[n.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return[]}}),a(i.prototype,"setInputOptions",[l.action],Object.getOwnPropertyDescriptor(i.prototype,"setInputOptions"),i.prototype),a(i.prototype,"decodeFormatValueChange",[l.action],Object.getOwnPropertyDescriptor(i.prototype,"decodeFormatValueChange"),i.prototype),i)})),define("vault/components/transform-create-form",["exports","vault/components/transformation-edit"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default=t.default.extend({})})),define("vault/components/transform-edit-base",["exports","@ember/service","@ember/object/computed","@ember/utils","@ember/component","@ember/object","vault/mixins/focus-on-insert"],(function(e,t,n,l,i,r,a){Object.defineProperty(e,"__esModule",{value:!0}),e.removeFromList=e.default=e.addToList=void 0
e.addToList=(e,t)=>e&&Array.isArray(e)?(e.push(t),e.uniq()):e
e.removeFromList=(e,t)=>{if(!e)return e
const n=e.indexOf(t)
if(n<0)return e
return e.removeAt(n,1).uniq()}
e.default=i.default.extend(a.default,{store:(0,t.service)(),flashMessages:(0,t.service)(),router:(0,t.service)(),mode:null,onDataChange(){},onRefresh(){},model:null,requestInFlight:(0,n.or)("model.isLoading","model.isReloading","model.isSaving"),init(){this._super(...arguments),this.set("backendType","transform")},willDestroyElement(){this.model&&this.model.isError&&!this.model.isDestroyed&&!this.model.isDestroying&&this.model.rollbackAttributes(),this._super(...arguments)},transitionToRoute(){this.router.transitionTo(...arguments)},modelPrefixFromType(e){let t=""
return e&&e.startsWith("transform/")&&(t=`${e.replace("transform/","")}/`),t},listTabFromType(e){let t
return e&&e.startsWith("transform/")&&(t=`${e.replace("transform/","")}`),t},persist(e,t){const n=this.model
return n[e]().then((()=>{t(n)})).catch((e=>{throw n.set("displayErrors",e.errors),e}))},applyDelete(e=()=>{}){const t=this.listTabFromType(this.model.constructor.modelName)
this.persist("destroyRecord",(()=>{this.hasDataChanges(),e(),this.transitionToRoute("vault.cluster.secrets.backend.list-root",{queryParams:{tab:t}})}))},applyChanges(e,t=()=>{}){const n=this.model.id||this.model.name,i=this.modelPrefixFromType(this.model.constructor.modelName)
"create"===e&&(0,l.isBlank)(n)||this.persist("save",(()=>{this.hasDataChanges(),t(),this.transitionToRoute("vault.cluster.secrets.backend.show",`${i}${n}`)}))},hasDataChanges(){this.onDataChange(this.model?.hasDirtyAttributes)},actions:{createOrUpdate(e,t){t.preventDefault(),this.applyChanges(e)},setValue(e,t){(0,r.set)(this.model,e,t.target.checked)},refresh(){this.onRefresh()},delete(){this.applyDelete()}}})})),define("vault/components/transform-edit-form",["exports","vault/components/transformation-edit"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default=t.default.extend({})})),define("vault/components/transform-role-edit",["exports","vault/components/transform-edit-base","@ember/service"],(function(e,t,n){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default=t.default.extend({flashMessages:(0,n.service)(),store:(0,n.service)(),initialTransformations:null,init(){this._super(...arguments),this.set("initialTransformations",this.model.transformations)},handleUpdateTransformations(e,n,l="update"){if(!e)return
const i=this.model.backend,r=e.map((e=>this.store.queryRecord("transform",{backend:i,id:e.id}).then((function(l){let r=l.allowed_roles
return"ADD"===e.action?r=(0,t.addToList)(r,n):"REMOVE"===e.action&&(r=(0,t.removeFromList)(r,n)),l.setProperties({backend:i,allowed_roles:r}),l.save().catch((t=>({errorStatus:t.httpStatus,...e})))}))))
Promise.all(r).then((e=>{if(e.find((e=>!!e.errorStatus))){const t=e.find((e=>403===e.errorStatus&&"ADD"===e.action)),n=e.find((e=>403===e.errorStatus&&"REMOVE"===e.action))
let i="The edits to this role were successful, but allowed_roles for its transformations was not edited due to a lack of permissions."
"create"===l?i="Transformations have been attached to this role, but the role was not added to those transformations’ allowed_roles due to a lack of permissions.":t&&n?i="This role was edited to both add and remove transformations; however, this role was not added or removed from those transformations’ allowed_roles due to a lack of permissions.":t?i="This role was edited to include new transformations, but this role was not added to those transformations’ allowed_roles due to a lack of permissions.":n&&(i="This role was edited to remove transformations, but this role was not removed from those transformations’ allowed_roles due to a lack of permissions."),this.flashMessages.info(i,{sticky:!0,priority:300})}}))},actions:{createOrUpdate(e,t){t.preventDefault(),this.applyChanges("save",(()=>{const t=this.model.id,n=this.model.transformations
if(!this.initialTransformations)return void this.handleUpdateTransformations(n.map((e=>({id:e,action:"ADD"}))),t,e)
const l=[...n,...this.initialTransformations].map((e=>this.initialTransformations.indexOf(e)<0?{id:e,action:"ADD"}:n.indexOf(e)<0?{id:e,action:"REMOVE"}:null)).filter((e=>!!e))
this.handleUpdateTransformations(l,t)}))},delete(){const e=this.model?.id,t=(this.model?.transformations||[]).map((e=>({id:e,action:"REMOVE"})))
this.handleUpdateTransformations(t,e),this.applyDelete()}}})})),define("vault/components/transform-show-transformation",["exports","vault/components/transform-edit-base","@ember/object"],(function(e,t,n){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default=t.default.extend({cliCommand:(0,n.computed)("model.{allowed_roles,type,tweak_source}",(function(){if(!this.model)return
const{type:e,allowed_roles:t,tweak_source:n,name:l}=this.model,i=t.find((e=>e.includes("*")))
let r="<choose a role>"
let a=""
return 1!==t.length||i||(r=t[0]),"fpe"===e&&"supplied"===n&&(a="tweak=<enter your tweak>"),`${r} value=<enter your value here> ${a} transformation=${l}`}))})})),define("vault/components/transform-template-edit",["exports","vault/components/transform-edit-base"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default=t.default.extend({})})),define("vault/components/transformation-edit",["exports","vault/components/transform-edit-base","@ember/service"],(function(e,t,n){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default=t.default.extend({flashMessages:(0,n.service)(),store:(0,n.service)(),initialRoles:null,init(){this._super(...arguments),this.model&&this.set("initialRoles",this.model.allowed_roles)},updateOrCreateRole(e,n,l){return this.store.queryRecord("transform/role",{backend:l,id:e.id}).then((i=>{let r=i.transformations
return"ADD"===e.action?r=(0,t.addToList)(r,n):"REMOVE"===e.action&&(r=(0,t.removeFromList)(r,n)),i.setProperties({backend:l,transformations:r}),i.save().catch((t=>({errorStatus:t.httpStatus,...e})))})).catch((t=>403!==t.httpStatus&&"ADD"===e.action?this.store.createRecord("transform/role",{id:e.id,name:e.id,transformations:[n],backend:l}).save().catch((t=>({errorStatus:t.httpStatus,...e,action:"CREATE"}))):{...e,errorStatus:t.httpStatus}))},handleUpdateRoles(e,t){if(!e)return
const n=this.model.backend,l=e.map((e=>this.updateOrCreateRole(e,t,n)))
Promise.all(l).then((e=>{if(e.find((e=>!!e.errorStatus))){let t="The edits to this transformation were successful, but transformations for its roles was not edited due to a lack of permissions."
e.find((e=>!!e.errorStatus&&403!==e.errorStatus))&&(t="You've edited the allowed_roles for this transformation. However, the corresponding edits to some roles' transformations were not made"),this.flashMessages.info(t,{sticky:!0,priority:300})}}))},isWildcard:e=>"string"==typeof e?e.indexOf("*")>=0:!(!e||!e.id)&&e.id.indexOf("*")>=0,actions:{createOrUpdate(e,t){t.preventDefault(),this.applyChanges("save",(()=>{const e=this.model.id||this.model.name,t=this.model.allowed_roles||[],n=this.initialRoles||[],l=[...t,...n].filter((e=>!this.isWildcard(e))).map((e=>n.indexOf(e)<0?{id:e,action:"ADD"}:t.indexOf(e)<0?{id:e,action:"REMOVE"}:null)).filter((e=>!!e))
this.handleUpdateRoles(l,e)}))}}})})),define("vault/components/transit-edit",["exports","@ember/service","@ember/object/computed","@ember/utils","@ember/component","ember-concurrency","@ember/object","vault/mixins/focus-on-insert","core/utils/key-codes"],(function(e,t,n,l,i,r,a,o,s){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
const u="vault.cluster.secrets.backend.list-root"
e.default=i.default.extend(o.default,{router:(0,t.service)(),mode:null,onDataChange(){},onRefresh(){},key:null,errorMessage:"",autoRotateInvalid:!1,requestInFlight:(0,n.or)("key.isLoading","key.isReloading","key.isSaving"),willDestroyElement(){this.key&&this.key.isError&&!this.key.isDestroyed&&!this.key.isDestroying&&this.key.rollbackAttributes(),this._super(...arguments)},get breadcrumbs(){const e=[{label:"Secrets",route:"vault.cluster.secrets"},{label:this.key.backend,route:"vault.cluster.secrets.backend.list-root",model:this.key.backend}]
return"show"===this.mode?[...e,{label:this.key.id}]:"edit"===this.mode?[...e,{label:this.key.id,route:"vault.cluster.secrets.backend.show",models:[this.key.backend,this.key.id],query:{tab:"details"}},{label:"Edit"}]:"create"===this.mode?[...e,{label:"Create"}]:e},waitForKeyUp:(0,r.task)((function*(){for(;;){const e=yield(0,r.waitForEvent)(document.body,"keyup")
this.onEscape(e)}})).on("didInsertElement").cancelOn("willDestroyElement"),transitionToRoute(){this.router.transitionTo(...arguments)},onEscape(e){e.keyCode===s.default.ESC&&"show"===this.mode&&this.transitionToRoute(u)},hasDataChanges(){this.onDataChange(this.key.hasDirtyAttributes)},persistKey(e,t){const n=this.key
return n[e]().then((()=>{n.isError||t(n)}))},actions:{createOrUpdateKey(e,t){t.preventDefault(),(0,a.set)(this,"errorMessage","")
const n=this.key.id||this.key.name
"create"===e&&(0,l.isBlank)(n)?(0,a.set)(this,"errorMessage","Name is required."):this.persistKey("save",(()=>{this.hasDataChanges(),this.transitionToRoute("vault.cluster.secrets.backend.show",n,{queryParams:{tab:"details"}})}),"create"===e)},setValueOnKey(e,t){(0,a.set)(this.key,e,t.target.checked)},handleAutoRotateChange(e){e.enabled?((0,a.set)(this.key,"autoRotatePeriod",e.goSafeTimeString),this.set("autoRotateInvalid",e.seconds<3600)):(0,a.set)(this.key,"autoRotatePeriod",0)},derivedChange(e){this.key.setDerived(e)},convergentEncryptionChange(e){this.key.setConvergentEncryption(e)},refresh(){this.onRefresh()},deleteKey(){this.persistKey("destroyRecord",(()=>{this.hasDataChanges(),this.transitionToRoute(u)}))}}})})),define("vault/components/transit-form-show",["exports","@glimmer/component","@ember/service","@ember/object","@ember/test-waiters","vault/utils/error-message"],(function(e,t,n,l,i,r){var a,o,s,u
function c(e,t,n,l){n&&Object.defineProperty(e,t,{enumerable:n.enumerable,configurable:n.configurable,writable:n.writable,value:n.initializer?n.initializer.call(l):void 0})}function d(e,t,n,l,i){var r={}
return Object.keys(l).forEach((function(e){r[e]=l[e]})),r.enumerable=!!r.enumerable,r.configurable=!!r.configurable,("value"in r||r.initializer)&&(r.writable=!0),r=n.slice().reverse().reduce((function(n,l){return l(e,t,n)||n}),r),i&&void 0!==r.initializer&&(r.value=r.initializer?r.initializer.call(i):void 0,r.initializer=void 0),void 0===r.initializer?(Object.defineProperty(e,t,r),null):r}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
const p=(0,i.buildWaiter)("transit-form-show")
e.default=(a=class extends t.default{constructor(...e){super(...e),c(this,"store",o,this),c(this,"router",s,this),c(this,"flashMessages",u,this)}async rotateKey(){const e=p.beginAsync(),{backend:t,id:n}=this.args.key
try{await this.store.adapterFor("transit-key").keyAction("rotate",{backend:t,id:n}),this.flashMessages.success("Key rotated."),await this.router.refresh()}catch(l){this.flashMessages.danger((0,r.default)(l))}finally{p.endAsync(e)}}},o=d(a.prototype,"store",[n.service],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),s=d(a.prototype,"router",[n.service],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),u=d(a.prototype,"flashMessages",[n.service],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),d(a.prototype,"rotateKey",[l.action],Object.getOwnPropertyDescriptor(a.prototype,"rotateKey"),a.prototype),a)})),define("vault/components/transit-key-action/export",["exports","@glimmer/component","@glimmer/tracking"],(function(e,t,n){var l,i
Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default=(l=class extends t.default{constructor(...e){var t,n,l,r
super(...e),t=this,n="exportVersion",r=this,(l=i)&&Object.defineProperty(t,n,{enumerable:l.enumerable,configurable:l.configurable,writable:l.writable,value:l.initializer?l.initializer.call(r):void 0})}},r=l.prototype,a="exportVersion",o=[n.tracked],s={configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}},c={},Object.keys(s).forEach((function(e){c[e]=s[e]})),c.enumerable=!!c.enumerable,c.configurable=!!c.configurable,("value"in c||c.initializer)&&(c.writable=!0),c=o.slice().reverse().reduce((function(e,t){return t(r,a,e)||e}),c),u&&void 0!==c.initializer&&(c.value=c.initializer?c.initializer.call(u):void 0,c.initializer=void 0),i=void 0===c.initializer?(Object.defineProperty(r,a,c),null):c,l)
var r,a,o,s,u,c})),define("vault/components/transit-key-actions",["exports","@ember/component","@glimmer/component","@ember/service","@ember/object","@ember/debug","@glimmer/tracking","ember-concurrency","@ember/test-waiters","vault/utils/b64","vault/utils/error-message","@ember/template-factory"],(function(e,t,n,l,i,r,a,o,s,u,c,d){var p,f,m,h,b,y,v
function g(e,t,n,l){n&&Object.defineProperty(e,t,{enumerable:n.enumerable,configurable:n.configurable,writable:n.writable,value:n.initializer?n.initializer.call(l):void 0})}function w(e,t,n,l,i){var r={}
return Object.keys(l).forEach((function(e){r[e]=l[e]})),r.enumerable=!!r.enumerable,r.configurable=!!r.configurable,("value"in r||r.initializer)&&(r.writable=!0),r=n.slice().reverse().reduce((function(n,l){return l(e,t,n)||n}),r),i&&void 0!==r.initializer&&(r.value=r.initializer?r.initializer.call(i):void 0,r.initializer=void 0),void 0===r.initializer?(Object.defineProperty(e,t,r),null):r}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
const k=(0,d.createTemplateFactory)({id:"JjA0u1kO",block:'[[[11,0],[4,[38,0],[[30,0,["updateProps"]],[30,1]],null],[12],[1,"\\n  "],[8,[39,1],null,[["@errorMessage"],[[30,0,["errors"]]]],null],[1,"\\n\\n"],[41,[28,[37,3],[[30,1],"encrypt"],null],[[[1,"    "],[8,[39,4],null,[["@key","@param","@context","@nonce","@bits","@key_version","@encodedBase64","@toggleEncodeBase64","@plaintext","@ciphertext","@doSubmit","@isModalActive"],[[30,2],[30,0,["props","param"]],[30,0,["props","context"]],[30,0,["props","nonce"]],[30,0,["props","bits"]],[30,0,["props","key_version"]],[30,0,["props","encodedBase64"]],[30,0,["toggleEncodeBase64"]],[30,0,["props","plaintext"]],[30,0,["props","ciphertext"]],[28,[37,5],[[30,0,["doSubmit"]]],null],[30,0,["isModalActive"]]]],null],[1,"\\n"]],[]],[[[41,[28,[37,3],[[30,1],"decrypt"],null],[[[1,"    "],[8,[39,6],null,[["@key","@ciphertext","@context","@nonce","@isModalActive","@plaintext","@doSubmit"],[[30,2],[30,0,["props","ciphertext"]],[30,0,["props","context"]],[30,0,["props","nonce"]],[30,0,["isModalActive"]],[30,0,["props","plaintext"]],[28,[37,5],[[30,0,["doSubmit"]]],null]]],null],[1,"\\n"]],[]],[[[41,[28,[37,3],[[30,1],"datakey"],null],[[[1,"    "],[8,[39,7],null,[["@key","@param","@context","@nonce","@bits","@plaintext","@ciphertext","@doSubmit","@isModalActive"],[[30,2],[30,0,["props","param"]],[30,0,["props","context"]],[30,0,["props","nonce"]],[30,0,["props","bits"]],[30,0,["props","plaintext"]],[30,0,["props","ciphertext"]],[28,[37,5],[[30,0,["doSubmit"]]],null],[30,0,["isModalActive"]]]],null],[1,"\\n"]],[]],[[[41,[28,[37,3],[[30,1],"rewrap"],null],[[[1,"    "],[8,[39,8],null,[["@key","@param","@context","@nonce","@key_version","@ciphertext","@isModalActive","@doSubmit"],[[30,2],[30,0,["props","param"]],[30,0,["props","context"]],[30,0,["props","nonce"]],[30,0,["props","key_version"]],[30,0,["props","ciphertext"]],[30,0,["isModalActive"]],[28,[37,5],[[30,0,["doSubmit"]]],null]]],null],[1,"\\n"]],[]],[[[41,[28,[37,3],[[30,1],"hmac"],null],[[[1,"    "],[8,[39,9],null,[["@key","@trackedInput","@algorithm","@key_version","@encodedBase64","@toggleEncodeBase64","@hmac","@isModalActive","@doSubmit"],[[30,2],[30,0,["props","input"]],[30,0,["props","algorithm"]],[30,0,["props","key_version"]],[30,0,["props","encodedBase64"]],[30,0,["toggleEncodeBase64"]],[30,0,["props","hmac"]],[30,0,["isModalActive"]],[28,[37,5],[[30,0,["doSubmit"]]],null]]],null],[1,"\\n"]],[]],[[[41,[28,[37,3],[[30,1],"verify"],null],[[[1,"    "],[8,[39,10],null,[["@key","@trackedInput","@signature","@signature_algorithm","@hmac","@hash_algorithm","@context","@prehashed","@encodedBase64","@verification","@valid","@toggleEncodeBase64","@keyIsRSA","@isModalActive","@doSubmit","@submitIsRunning","@clearSpecificProps"],[[30,2],[30,0,["props","input"]],[30,0,["props","signature"]],[30,0,["props","signature_algorithm"]],[30,0,["props","hmac"]],[30,0,["props","hash_algorithm"]],[30,0,["props","context"]],[30,0,["props","prehashed"]],[30,0,["props","encodedBase64"]],[30,0,["props","verification"]],[30,0,["props","valid"]],[30,0,["toggleEncodeBase64"]],[30,0,["keyIsRSA"]],[30,0,["isModalActive"]],[28,[37,5],[[30,0,["doSubmit"]]],null],[30,0,["doSubmit","isRunning"]],[30,0,["clearSpecificProps"]]]],null],[1,"\\n"]],[]],[[[41,[28,[37,3],[[30,1],"sign"],null],[[[1,"    "],[8,[39,11],null,[["@key","@trackedInput","@hash_algorithm","@signature","@signature_algorithm","@key_version","@context","@prehashed","@encodedBase64","@toggleEncodeBase64","@isModalActive","@doSubmit","@submitIsRunning"],[[30,2],[30,0,["props","input"]],[30,0,["props","hash_algorithm"]],[30,0,["props","signature"]],[30,0,["props","signature_algorithm"]],[30,0,["props","key_version"]],[30,0,["props","context"]],[30,0,["props","prehashed"]],[30,0,["props","encodedBase64"]],[30,0,["toggleEncodeBase64"]],[30,0,["isModalActive"]],[28,[37,5],[[30,0,["doSubmit"]]],null],[30,0,["doSubmit","isRunning"]]]],null],[1,"\\n"]],[]],[[[41,[28,[37,12],[[28,[37,3],[[30,1],"export"],null],[28,[37,3],[[28,[37,13],[[30,2,["supportedActions"]],0],null],"export"],null]],null],[[[1,"    "],[8,[39,14],null,[["@key","@keys","@trackedInput","@hash_algorithm","@signature","@signature_algorithm","@key_version","@context","@prehashed","@encodedBase64","@exportKeyType","@exportKeyVersion","@wrappedToken","@wrappedTTL","@toggleEncodeBase64","@isModalActive","@doSubmit"],[[30,2],[30,0,["props","keys"]],[30,0,["props","input"]],[30,0,["props","hash_algorithm"]],[30,0,["props","signature"]],[30,0,["props","signature_algorithm"]],[30,0,["props","key_version"]],[30,0,["props","context"]],[30,0,["props","prehashed"]],[30,0,["props","encodedBase64"]],[30,0,["props","exportKeyType"]],[30,0,["props","exportKeyVersion"]],[30,0,["props","wrappedToken"]],[30,0,["props","wrappedTTL"]],[30,0,["toggleEncodeBase64"]],[30,0,["isModalActive"]],[28,[37,5],[[30,0,["doSubmit"]]],null]]],null],[1,"\\n  "]],[]],null]],[]]]],[]]]],[]]]],[]]]],[]]]],[]]]],[]]],[13]],["@selectedAction","@key"],false,["did-update","message-error","if","eq","transit-key-action/encrypt","perform","transit-key-action/decrypt","transit-key-action/datakey","transit-key-action/rewrap","transit-key-action/hmac","transit-key-action/verify","transit-key-action/sign","or","get","transit-key-action/export"]]',moduleName:"vault/components/transit-key-actions.hbs",isStrictMode:!1}),x={hash_algorithm:"sha2-256",algorithm:"sha2-256",signature_algorithm:"pss",bits:256,bytes:32,ciphertext:null,context:null,format:"base64",hmac:null,input:null,key_version:0,keys:null,nonce:null,param:"wrapped",prehashed:!1,plaintext:null,random_bytes:null,signature:null,sum:null,encodedBase64:!1,exportKeyType:null,exportKeyVersion:null,wrappedToken:null,wrappedTTL:"30m",valid:null,plaintextOriginal:null,didDecode:!1,verification:"Signature"},P={encrypt:["plaintext","context","nonce","key_version"],decrypt:["ciphertext","context","nonce"],sign:["input","hash_algorithm","key_version","prehashed","signature_algorithm"],verify:["input","hmac","signature","hash_algorithm","prehashed"],hmac:["input","algorithm","key_version"],rewrap:["ciphertext","context","nonce","key_version"],datakey:[]},_={sign:"Signed your data.",hmac:"Created your hash output.",encrypt:"Created a wrapped token for your data.",decrypt:"Decrypted the data from your token.",rewrap:"Created a new token for your data.",datakey:"Generated your key.",export:"Exported your key."}
let T=e.default=(p=class extends n.default{constructor(){super(...arguments),g(this,"store",f,this),g(this,"flashMessages",m,this),g(this,"router",h,this),g(this,"isModalActive",b,this),g(this,"errors",y,this),g(this,"props",v,this),"export"!==this.firstSupportedAction&&"export"!==this.args.selectedAction||(this.props.exportKeyType=this.args.key.exportKeyTypes[0],this.props.exportKeyVersion=this.args.key.validKeyVersions.lastObject)}get keyIsRSA(){const{type:e}=this.args.key
return"rsa-2048"===e||"rsa-3072"===e||"rsa-4096"===e}get firstSupportedAction(){return this.args.key.supportedActions[0]}handleSuccess(e,t,n){if(e&&e.data){if("export"===n&&e.data.keys){const{keys:t,type:n,name:l}=e.data
e.data.keys={keys:t,type:n,name:l}}this.props={...this.props,...e.data},"rewrap"!==n||this.args.key.supportsEncryption||(this.props.ciphertext=null)}t.wrapTTL&&(this.props={...this.props,wrappedToken:e.wrap_info.token}),this.isModalActive=!0,"verify"!==this.args.selectedAction&&this.flashMessages.success(_[n])}updateProps(){this.errors=null
const e=P[this.args.selectedAction]?.reduce(((e,t)=>({...e,[t]:this.props[t]})),{})
this.props={...x,...e}}compactData(e){return Object.keys(e).reduce(((t,n)=>"signature_algorithm"!==n||this.keyIsRSA?(e[n]&&(t[n]=e[n]),t):t),{})}toggleEncodeBase64(){this.props.encodedBase64=!this.props.encodedBase64}clearSpecificProps(e){e.forEach((e=>this.props[e]=null))}*doSubmit(e,t={},n){this.errors=null
const l="submit"===t.type?t:n
l&&l.preventDefault()
const{backend:i,id:r}=this.args.key,a=this.args.selectedAction||this.firstSupportedAction,{...o}=e||{}
this.props.encodedBase64||("encrypt"===a&&o.plaintext&&(o.plaintext=(0,u.encodeString)(o.plaintext)),"hmac"!==a&&"verify"!==a&&"sign"!==a||!o.input||(o.input=(0,u.encodeString)(o.input)))
const s=o?this.compactData(o):null
try{const e=yield this.store.adapterFor("transit-key").keyAction(a,{backend:i,id:r,payload:s},t)
this.handleSuccess(e,t,a)}catch(d){this.errors=(0,c.default)(d)}}},f=w(p.prototype,"store",[l.service],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),m=w(p.prototype,"flashMessages",[l.service],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),h=w(p.prototype,"router",[l.service],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),b=w(p.prototype,"isModalActive",[a.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),y=w(p.prototype,"errors",[a.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),v=w(p.prototype,"props",[a.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return{...x}}}),w(p.prototype,"updateProps",[i.action],Object.getOwnPropertyDescriptor(p.prototype,"updateProps"),p.prototype),w(p.prototype,"toggleEncodeBase64",[i.action],Object.getOwnPropertyDescriptor(p.prototype,"toggleEncodeBase64"),p.prototype),w(p.prototype,"clearSpecificProps",[i.action],Object.getOwnPropertyDescriptor(p.prototype,"clearSpecificProps"),p.prototype),w(p.prototype,"doSubmit",[o.task,s.waitFor],Object.getOwnPropertyDescriptor(p.prototype,"doSubmit"),p.prototype),p);(0,t.setComponentTemplate)(k,T)})),define("vault/components/ttl-picker",["exports","core/components/ttl-picker"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.default}})})),define("vault/components/upgrade-page",["exports","core/components/upgrade-page"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.default}})})),define("vault/components/vault-logo-spinner",["exports","core/components/vault-logo-spinner"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.default}})})),define("vault/components/wrap-ttl",["exports","@ember/component","@ember/debug","@glimmer/component","@ember/object","@glimmer/tracking","@ember/template-factory"],(function(e,t,n,l,i,r,a){var o,s
function u(e,t,n,l,i){var r={}
return Object.keys(l).forEach((function(e){r[e]=l[e]})),r.enumerable=!!r.enumerable,r.configurable=!!r.configurable,("value"in r||r.initializer)&&(r.writable=!0),r=n.slice().reverse().reduce((function(n,l){return l(e,t,n)||n}),r),i&&void 0!==r.initializer&&(r.value=r.initializer?r.initializer.call(i):void 0,r.initializer=void 0),void 0===r.initializer?(Object.defineProperty(e,t,r),null):r}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
const c=(0,a.createTemplateFactory)({id:"IsdqWI96",block:'[[[10,0],[14,0,"field"],[12],[1,"\\n  "],[8,[39,0],null,[["@label","@helperTextDisabled","@helperTextEnabled","@initialEnabled","@initialValue","@onChange","@changeOnInit"],["Wrap response","Will not wrap response","Will wrap response with a lease of",true,"30m",[30,0,["changedValue"]],true]],null],[1,"\\n"],[13]],[],false,["ttl-picker"]]',moduleName:"vault/components/wrap-ttl.hbs",isStrictMode:!1})
let d=e.default=(o=class extends l.default{constructor(){var e,t,n,l
super(...arguments),e=this,t="wrapResponse",l=this,(n=s)&&Object.defineProperty(e,t,{enumerable:n.enumerable,configurable:n.configurable,writable:n.writable,value:n.initializer?n.initializer.call(l):void 0})}get wrapTTL(){const{wrapResponse:e,ttl:t}=this
return e?t:null}changedValue(e){this.wrapResponse=e.enabled,this.ttl=e.goSafeTimeString,this.args.onChange(this.wrapTTL)}},s=u(o.prototype,"wrapResponse",[r.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!0}}),u(o.prototype,"changedValue",[i.action],Object.getOwnPropertyDescriptor(o.prototype,"changedValue"),o.prototype),o);(0,t.setComponentTemplate)(c,d)})),define("vault/components/z-docfy-filter",["exports","@ember/component","@glimmer/component","@ember/object","@glimmer/tracking","@ember/template-factory"],(function(e,t,n,l,i,r){var a,o
function s(e,t,n,l,i){var r={}
return Object.keys(l).forEach((function(e){r[e]=l[e]})),r.enumerable=!!r.enumerable,r.configurable=!!r.configurable,("value"in r||r.initializer)&&(r.writable=!0),r=n.slice().reverse().reduce((function(n,l){return l(e,t,n)||n}),r),i&&void 0!==r.initializer&&(r.value=r.initializer?r.initializer.call(i):void 0,r.initializer=void 0),void 0===r.initializer?(Object.defineProperty(e,t,r),null):r}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
const u=(0,r.createTemplateFactory)({id:"Iq7NOj+O",block:'[[[8,[39,0],[[24,"placeholder","Filter components"],[4,[38,1],["input",[30,0,["filterComponents"]]],null]],[["@type"],["search"]],null],[1,"\\n\\n"],[8,[39,2],[[24,0,"docs-collapse-toggle has-top-padding-s"]],[["@text","@textWhenOpen","@isOpen"],["Expand component list","Collapse component list",true]],[["default"],[[[[1,"\\n"],[42,[28,[37,4],[[28,[37,4],[[30,0,["componentList"]]],null]],null],null,[[[1,"    "],[8,[39,5],[[24,0,"hds-side-nav__list-item-link docs-hover"]],[["@to"],[[30,1,["url"]]]],[["default"],[[[[1,"\\n      "],[1,[30,1,["title"]]],[1,"\\n    "]],[]]]]],[1,"\\n"]],[1]],null]],[]]]]]],["component"],false,["hds/form/text-input/field","on","hds/reveal","each","-track-array","docfy-link"]]',moduleName:"vault/components/z-docfy-filter.hbs",isStrictMode:!1})
let c=e.default=(a=class extends n.default{constructor(...e){var t,n,l,i
super(...e),t=this,n="filterValue",i=this,(l=o)&&Object.defineProperty(t,n,{enumerable:l.enumerable,configurable:l.configurable,writable:l.writable,value:l.initializer?l.initializer.call(i):void 0})}filterComponents({target:e}){this.filterValue=e.value}get componentList(){return this.filterValue?this.args.components.filter((e=>e.title.toLowerCase().includes(this.filterValue.toLowerCase()))):this.args.components}},o=s(a.prototype,"filterValue",[i.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),s(a.prototype,"filterComponents",[l.action],Object.getOwnPropertyDescriptor(a.prototype,"filterComponents"),a.prototype),a);(0,t.setComponentTemplate)(u,c)})),define("vault/config/asset-manifest",["exports","require","vault/config/environment"],(function(e,t,n){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
const l=n.default.modulePrefix,i=`${l}/config/asset-manifest`,r=`${l}/config/node-asset-manifest`
let a={}
try{if(t.default.has(r))a=(0,t.default)(r).default
else{const e=document.querySelector('meta[name="'+i+'"]').getAttribute("content")
a=JSON.parse(unescape(e))}}catch(o){throw new Error('Failed to load asset manifest. For browser environments, verify the meta tag with name "'+i+'" is present. For non-browser environments, verify that you included the node-asset-manifest module.')}e.default=a})),define("vault/container-debug-adapter",["exports","ember-resolver/container-debug-adapter"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.default}})})),define("vault/controllers/application",["exports","@ember/service","@ember/controller","vault/config/environment"],(function(e,t,n,l){var i,r,a
function o(e,t,n,l){n&&Object.defineProperty(e,t,{enumerable:n.enumerable,configurable:n.configurable,writable:n.writable,value:n.initializer?n.initializer.call(l):void 0})}function s(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e
var n=e[Symbol.toPrimitive]
if(void 0!==n){var l=n.call(e,t||"default")
if("object"!=typeof l)return l
throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string")
return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function u(e,t,n,l,i){var r={}
return Object.keys(l).forEach((function(e){r[e]=l[e]})),r.enumerable=!!r.enumerable,r.configurable=!!r.configurable,("value"in r||r.initializer)&&(r.writable=!0),r=n.slice().reverse().reduce((function(n,l){return l(e,t,n)||n}),r),i&&void 0!==r.initializer&&(r.value=r.initializer?r.initializer.call(i):void 0,r.initializer=void 0),void 0===r.initializer?(Object.defineProperty(e,t,r),null):r}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default=(i=class extends n.default{constructor(...e){super(...e),o(this,"auth",r,this),o(this,"store",a,this),s(this,"env",l.default.environment)}},r=u(i.prototype,"auth",[t.service],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),a=u(i.prototype,"store",[t.service],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),i)})),define("vault/controllers/vault",["exports","@ember/controller"],(function(e,t){function n(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e
var n=e[Symbol.toPrimitive]
if(void 0!==n){var l=n.call(e,t||"default")
if("object"!=typeof l)return l
throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string")
return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
class l extends t.default{constructor(...e){super(...e),n(this,"queryParams",[{wrappedToken:"wrapped_token",redirectTo:"redirect_to"}]),n(this,"wrappedToken",""),n(this,"redirectTo","")}}e.default=l})),define("vault/controllers/vault/cluster",["exports","@ember/service","@ember/object/computed","@ember/controller","@ember/object"],(function(e,t,n,l,i){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default=l.default.extend({auth:(0,t.service)(),store:(0,t.service)(),media:(0,t.service)(),router:(0,t.service)(),permissions:(0,t.service)(),namespaceService:(0,t.service)("namespace"),flashMessages:(0,t.service)(),customMessages:(0,t.service)(),vaultVersion:(0,t.service)("version"),console:(0,t.service)(),queryParams:[{namespaceQueryParam:{scope:"controller",as:"namespace"}}],namespaceQueryParam:"",onQPChange:(0,i.observer)("namespaceQueryParam",(function(){this.namespaceService.setNamespace(this.namespaceQueryParam)})),consoleOpen:(0,n.alias)("console.isOpen"),activeCluster:(0,n.alias)("auth.activeCluster"),permissionBanner:(0,n.alias)("permissions.permissionsBanner"),actions:{toggleConsole(){this.toggleProperty("consoleOpen")}}})})),define("vault/controllers/vault/cluster/access/control-groups-configure",["exports","@ember/controller"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default=t.default.extend({actions:{onSave({saveType:e}){"destroyRecord"===e&&this.send("reload")}}})}))
define("vault/controllers/vault/cluster/access/identity/aliases/add",["exports","vault/controllers/vault/cluster/access/identity/create"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default=t.default.extend({showRoute:"vault.cluster.access.identity.aliases.show"})})),define("vault/controllers/vault/cluster/access/identity/aliases/edit",["exports","vault/controllers/vault/cluster/access/identity/aliases/add"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default=t.default.extend()})),define("vault/controllers/vault/cluster/access/identity/aliases/index",["exports","@ember/controller","core/mixins/list-controller"],(function(e,t,n){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default=t.default.extend(n.default,{get paginationQueryParams(){return e=>({page:e})},actions:{onDelete(){this.send("reload")}}})})),define("vault/controllers/vault/cluster/access/identity/create",["exports","@ember/controller","@ember/service"],(function(e,t,n){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default=t.default.extend({router:(0,n.service)(),showRoute:"vault.cluster.access.identity.show",showTab:"details",actions:{navAfterSave({saveType:e,model:t}){const n="delete"===e,l=t.identityType
if(n){const e={"entity-alias":"vault.cluster.access.identity.aliases.index","group-alias":"vault.cluster.access.identity.aliases.index",group:"vault.cluster.access.identity.index",entity:"vault.cluster.access.identity.index"}[l]
this.router.transitionTo(e)}else this.router.transitionTo(this.showRoute,t.id,this.showTab)}}})})),define("vault/controllers/vault/cluster/access/identity/edit",["exports","vault/controllers/vault/cluster/access/identity/create"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default=t.default.extend()})),define("vault/controllers/vault/cluster/access/identity/index",["exports","@ember/service","@ember/controller","core/mixins/list-controller"],(function(e,t,n,l){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default=n.default.extend(l.default,{flashMessages:(0,t.service)(),entityToDisable:null,itemToDelete:null,get paginationQueryParams(){return e=>({page:e})},actions:{delete(e){const t=e.identityType,n=e.id
return e.destroyRecord().then((()=>{this.send("reload"),this.flashMessages.success(`Successfully deleted ${t}: ${n}`)})).catch((e=>{this.flashMessages.success(`There was a problem deleting ${t}: ${n} - ${e.errors.join(" ")||e.message}`)})).finally((()=>this.set("itemToDelete",null)))},toggleDisabled(e){const t=e.disabled?["enabled","enabling"]:["disabled","disabling"],n=e.identityType,l=e.id
e.toggleProperty("disabled"),e.save().then((()=>{this.flashMessages.success(`Successfully ${t[0]} ${n}: ${l}`)})).catch((e=>{this.flashMessages.success(`There was a problem ${t[1]} ${n}: ${l} - ${e.errors.join(" ")||e.message}`)})).finally((()=>this.set("entityToDisable",null)))},reloadRecord(e){e.reload()}}})})),define("vault/controllers/vault/cluster/access/identity/merge",["exports","vault/controllers/vault/cluster/access/identity/create"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default=t.default.extend()})),define("vault/controllers/vault/cluster/access/leases/index",["exports","@ember/controller","@ember/service"],(function(e,t,n){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default=t.default.extend({router:(0,n.service)(),actions:{lookupLease(e){this.router.transitionTo("vault.cluster.access.leases.show",e)}}})})),define("vault/controllers/vault/cluster/access/leases/list-root",["exports","vault/controllers/vault/cluster/access/leases/list"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.default}})})),define("vault/controllers/vault/cluster/access/leases/list",["exports","@ember/service","@ember/object","@ember/controller","core/mixins/list-controller","core/utils/key-utils"],(function(e,t,n,l,i,r){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default=l.default.extend(i.default,{flashMessages:(0,t.service)(),router:(0,t.service)(),store:(0,t.service)(),clusterController:(0,l.inject)("vault.cluster"),get paginationQueryParams(){return e=>({page:e})},backendCrumb:(0,n.computed)("clusterController.model.name",(function(){return{label:"Leases",text:"Leases",path:"vault.cluster.access.leases.list-root",model:this.clusterController.model.name}})),isLoading:!1,filterIsFolder:(0,n.computed)("filter",(function(){return!!(0,r.keyIsFolder)(this.filter)})),emptyTitle:(0,n.computed)("baseKey.id","filter","filterIsFolder",(function(){const e=this.baseKey.id,t=this.filter
return""===e?"There are currently no leases.":this.filterIsFolder?t===e?`There are no leases under &quot;${t}&quot;.`:`We couldn't find a prefix matching &quot;${t}&quot;.`:""})),actions:{revokePrefix(e,t){const n=this.store.adapterFor("lease")
n[t?"forceRevokePrefix":"revokePrefix"].call(n,e).then((()=>this.router.transitionTo("vault.cluster.access.leases.list-root").then((()=>{this.flashMessages.success(`All of the leases under ${e} will be revoked.`)})))).catch((t=>{const n=t.errors.join(".")
this.flashMessages.danger(`There was an error attempting to revoke the prefix: ${e}. ${n}.`)}))}}})})),define("vault/controllers/vault/cluster/access/leases/show",["exports","@ember/runloop","@ember/service","@ember/object","@ember/controller"],(function(e,t,n,l,i){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default=i.default.extend({clusterController:(0,i.inject)("vault.cluster"),backendCrumb:(0,l.computed)("clusterController.model.name",(function(){return{label:"Leases",text:"Leases",path:"vault.cluster.access.leases.list-root",model:this.clusterController.model.name}})),flashMessages:(0,n.service)(),router:(0,n.service)(),actions:{revokeLease(e){return e.destroyRecord().then((()=>this.router.transitionTo("vault.cluster.access.leases.list-root")))},renewLease(e,n){const l=e.store.adapterFor("lease"),i=this.flashMessages
l.renew(e.id,n?.seconds).then((()=>{this.send("refreshModel"),(0,t.next)((()=>{i.success(`The lease ${e.id} was successfully renewed.`)}))})).catch((e=>{const t=e.errors.join(".")
i.danger(`There was an error renewing the lease: ${t}`)}))}}})})),define("vault/controllers/vault/cluster/access/method/item/list",["exports","@ember/controller","vault/mixins/list-controller"],(function(e,t,n){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default=t.default.extend(n.default,{})})),define("vault/controllers/vault/cluster/access/methods",["exports","@ember/controller","ember-concurrency","@ember/service","@ember/object","@glimmer/tracking","vault/utils/sort-objects"],(function(e,t,n,l,i,r,a){var o,s,u,c,d,p
function f(e,t,n,l){n&&Object.defineProperty(e,t,{enumerable:n.enumerable,configurable:n.configurable,writable:n.writable,value:n.initializer?n.initializer.call(l):void 0})}function m(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e
var n=e[Symbol.toPrimitive]
if(void 0!==n){var l=n.call(e,t||"default")
if("object"!=typeof l)return l
throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string")
return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function h(e,t,n,l,i){var r={}
return Object.keys(l).forEach((function(e){r[e]=l[e]})),r.enumerable=!!r.enumerable,r.configurable=!!r.configurable,("value"in r||r.initializer)&&(r.writable=!0),r=n.slice().reverse().reduce((function(n,l){return l(e,t,n)||n}),r),i&&void 0!==r.initializer&&(r.value=r.initializer?r.initializer.call(i):void 0,r.initializer=void 0),void 0===r.initializer?(Object.defineProperty(e,t,r),null):r}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default=(o=class extends t.default{constructor(...e){super(...e),f(this,"flashMessages",s,this),f(this,"authMethodOptions",u,this),f(this,"selectedAuthType",c,this),f(this,"selectedAuthName",d,this),f(this,"methodToDisable",p,this),m(this,"queryParams",["page, pageFilter"]),m(this,"page",1),m(this,"pageFilter",null),m(this,"filter",null),m(this,"sortMethods",(e=>(0,a.default)(e.slice(),"path")))}get authMethodList(){return this.selectedAuthType?this.selectedAuthName?this.model.filter((e=>this.selectedAuthName===e.id)):this.model.filter((e=>this.selectedAuthType===e.type)):this.selectedAuthName?this.model.filter((e=>this.selectedAuthName===e.id)):this.model}get authMethodArrayByType(){const e=this.authMethodList.map((e=>e.type))
return[...new Set(e)].map((e=>({name:e,id:e})))}get authMethodArrayByName(){return this.authMethodList.map((e=>({name:e.id,id:e.id})))}filterAuthType([e]){this.selectedAuthType=e}filterAuthName([e]){this.selectedAuthName=e}*disableMethod(e){const{type:t,path:n}=e
try{yield e.destroyRecord(),this.flashMessages.success(`The ${t} Auth Method at ${n} has been disabled.`)}catch(l){this.flashMessages.danger(`There was an error disabling Auth Method at ${n}: ${l.errors.join(" ")}.`)}finally{this.methodToDisable=null}}},s=h(o.prototype,"flashMessages",[l.service],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),u=h(o.prototype,"authMethodOptions",[r.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return[]}}),c=h(o.prototype,"selectedAuthType",[r.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),d=h(o.prototype,"selectedAuthName",[r.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),p=h(o.prototype,"methodToDisable",[r.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),h(o.prototype,"filterAuthType",[i.action],Object.getOwnPropertyDescriptor(o.prototype,"filterAuthType"),o.prototype),h(o.prototype,"filterAuthName",[i.action],Object.getOwnPropertyDescriptor(o.prototype,"filterAuthName"),o.prototype),h(o.prototype,"disableMethod",[n.dropTask],Object.getOwnPropertyDescriptor(o.prototype,"disableMethod"),o.prototype),o)})),define("vault/controllers/vault/cluster/access/mfa/enforcements/enforcement/index",["exports","@ember/controller","@glimmer/tracking","@ember/object","@ember/service"],(function(e,t,n,l,i){var r,a,o,s,u
function c(e,t,n,l){n&&Object.defineProperty(e,t,{enumerable:n.enumerable,configurable:n.configurable,writable:n.writable,value:n.initializer?n.initializer.call(l):void 0})}function d(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e
var n=e[Symbol.toPrimitive]
if(void 0!==n){var l=n.call(e,t||"default")
if("object"!=typeof l)return l
throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string")
return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function p(e,t,n,l,i){var r={}
return Object.keys(l).forEach((function(e){r[e]=l[e]})),r.enumerable=!!r.enumerable,r.configurable=!!r.configurable,("value"in r||r.initializer)&&(r.writable=!0),r=n.slice().reverse().reduce((function(n,l){return l(e,t,n)||n}),r),i&&void 0!==r.initializer&&(r.value=r.initializer?r.initializer.call(i):void 0,r.initializer=void 0),void 0===r.initializer?(Object.defineProperty(e,t,r),null):r}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default=(r=class extends t.default{constructor(...e){super(...e),c(this,"router",a,this),c(this,"flashMessages",o,this),d(this,"queryParams",["tab"]),d(this,"tab","targets"),c(this,"showDeleteConfirmation",s,this),c(this,"deleteError",u,this)}async delete(){try{await this.model.destroyRecord(),this.showDeleteConfirmation=!1,this.flashMessages.success("MFA login enforcement deleted successfully"),this.router.transitionTo("vault.cluster.access.mfa.enforcements")}catch(e){this.deleteError=e}}},a=p(r.prototype,"router",[i.service],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),o=p(r.prototype,"flashMessages",[i.service],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),s=p(r.prototype,"showDeleteConfirmation",[n.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),u=p(r.prototype,"deleteError",[n.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),p(r.prototype,"delete",[l.action],Object.getOwnPropertyDescriptor(r.prototype,"delete"),r.prototype),r)})),define("vault/controllers/vault/cluster/access/mfa/enforcements/index",["exports","@ember/controller"],(function(e,t){function n(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e
var n=e[Symbol.toPrimitive]
if(void 0!==n){var l=n.call(e,t||"default")
if("object"!=typeof l)return l
throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string")
return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
class l extends t.default{constructor(...e){super(...e),n(this,"queryParams",["page"]),n(this,"page",1)}}e.default=l})),define("vault/controllers/vault/cluster/access/mfa/methods",["exports","@ember/controller"],(function(e,t){function n(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e
var n=e[Symbol.toPrimitive]
if(void 0!==n){var l=n.call(e,t||"default")
if("object"!=typeof l)return l
throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string")
return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
class l extends t.default{constructor(...e){super(...e),n(this,"queryParams",["page"]),n(this,"page",1)}}e.default=l})),define("vault/controllers/vault/cluster/access/mfa/methods/create",["exports","@ember/controller","@ember/service","@glimmer/tracking","@ember/object","@ember/string","ember-concurrency","vault/helpers/add-to-array"],(function(e,t,n,l,i,r,a,o){var s,u,c,d,p,f,m,h,b,y
function v(e,t,n,l){n&&Object.defineProperty(e,t,{enumerable:n.enumerable,configurable:n.configurable,writable:n.writable,value:n.initializer?n.initializer.call(l):void 0})}function g(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e
var n=e[Symbol.toPrimitive]
if(void 0!==n){var l=n.call(e,t||"default")
if("object"!=typeof l)return l
throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string")
return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function w(e,t,n,l,i){var r={}
return Object.keys(l).forEach((function(e){r[e]=l[e]})),r.enumerable=!!r.enumerable,r.configurable=!!r.configurable,("value"in r||r.initializer)&&(r.writable=!0),r=n.slice().reverse().reduce((function(n,l){return l(e,t,n)||n}),r),i&&void 0!==r.initializer&&(r.value=r.initializer?r.initializer.call(i):void 0,r.initializer=void 0),void 0===r.initializer?(Object.defineProperty(e,t,r),null):r}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default=(s=class extends t.default{constructor(...e){super(...e),v(this,"store",u,this),v(this,"flashMessages",c,this),v(this,"router",d,this),g(this,"queryParams",["type"]),g(this,"methods",[{name:"TOTP",icon:"history"},{name:"Duo",icon:"duo"},{name:"Okta",icon:"okta-color"},{name:"PingID",icon:"pingid"}]),v(this,"type",p,this),v(this,"method",f,this),v(this,"enforcement",m,this),v(this,"enforcementPreference",h,this),v(this,"methodErrors",b,this),v(this,"enforcementErrors",y,this)}get description(){return"totp"===this.type?"Once set up, TOTP requires a passcode to be presented alongside a Vault token when invoking an API request.\n        The passcode will be validated against the TOTP key present in the identity of the caller in Vault.":`Once set up, the ${this.formattedType} MFA method will require a push confirmation on mobile before login.`}get formattedType(){return this.type?"totp"===this.type?this.type.toUpperCase():(0,r.capitalize)(this.type):""}get isTotp(){return"totp"===this.type}get showForms(){return this.type&&this.method}onTypeSelect(e){this.method=null,this.enforcement=null,this.methodErrors=null,this.enforcementErrors=null,this.enforcementPreference="new",this.type=e}createModels(){this.method&&this.method.unloadRecord(),this.enforcement&&this.enforcement.unloadRecord(),this.method=this.store.createRecord("mfa-method",{type:this.type}),this.enforcement=this.store.createRecord("mfa-login-enforcement")}onEnforcementPreferenceChange(e){"new"===e?this.enforcement=this.store.createRecord("mfa-login-enforcement"):this.enforcement&&(this.enforcement.unloadRecord(),this.enforcement=null),this.enforcementPreference=e}cancel(){this.method=null,this.enforcement=null,this.enforcementPreference=null,this.router.transitionTo("vault.cluster.access.mfa.methods")}*save(){if(this.checkValidityState())try{if(yield this.method.save(),this.enforcement){this.enforcement.mfa_methods=(0,o.addToArray)(this.enforcement.mfa_methods.slice(),this.method)
try{yield this.enforcement.save()}catch(e){this.handleError(e,"Error saving enforcement. You can still create an enforcement separately and add this method to it.")}}this.router.transitionTo("vault.cluster.access.mfa.methods.method",this.method.id)}catch(e){this.handleError(e,"Error saving method")}}checkValidityState(){let e=!0
const t=this.method.validate()
if(t.isValid||(this.methodErrors=t.state),"new"===this.enforcementPreference){const t=this.enforcement.validate(),{name:n,targets:l}=t.state
e=n.isValid&&l.isValid,t.isValid||(this.enforcementErrors=t.state)}return t.isValid&&e}handleError(e,t){const n=e?.errors?`${t}: ${e.errors.join(", ")}`:t
this.flashMessages.danger(n)}},u=w(s.prototype,"store",[n.service],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),c=w(s.prototype,"flashMessages",[n.service],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),d=w(s.prototype,"router",[n.service],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),p=w(s.prototype,"type",[l.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),f=w(s.prototype,"method",[l.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),m=w(s.prototype,"enforcement",[l.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),h=w(s.prototype,"enforcementPreference",[l.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return"new"}}),b=w(s.prototype,"methodErrors",[l.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),y=w(s.prototype,"enforcementErrors",[l.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),w(s.prototype,"onTypeSelect",[i.action],Object.getOwnPropertyDescriptor(s.prototype,"onTypeSelect"),s.prototype),w(s.prototype,"createModels",[i.action],Object.getOwnPropertyDescriptor(s.prototype,"createModels"),s.prototype),w(s.prototype,"onEnforcementPreferenceChange",[i.action],Object.getOwnPropertyDescriptor(s.prototype,"onEnforcementPreferenceChange"),s.prototype),w(s.prototype,"cancel",[i.action],Object.getOwnPropertyDescriptor(s.prototype,"cancel"),s.prototype),w(s.prototype,"save",[a.task],Object.getOwnPropertyDescriptor(s.prototype,"save"),s.prototype),s)})),define("vault/controllers/vault/cluster/access/mfa/methods/method/index",["exports","@ember/controller","@ember/service","@ember/object"],(function(e,t,n,l){var i,r,a
function o(e,t,n,l){n&&Object.defineProperty(e,t,{enumerable:n.enumerable,configurable:n.configurable,writable:n.writable,value:n.initializer?n.initializer.call(l):void 0})}function s(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e
var n=e[Symbol.toPrimitive]
if(void 0!==n){var l=n.call(e,t||"default")
if("object"!=typeof l)return l
throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string")
return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function u(e,t,n,l,i){var r={}
return Object.keys(l).forEach((function(e){r[e]=l[e]})),r.enumerable=!!r.enumerable,r.configurable=!!r.configurable,("value"in r||r.initializer)&&(r.writable=!0),r=n.slice().reverse().reduce((function(n,l){return l(e,t,n)||n}),r),i&&void 0!==r.initializer&&(r.value=r.initializer?r.initializer.call(i):void 0,r.initializer=void 0),void 0===r.initializer?(Object.defineProperty(e,t,r),null):r}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default=(i=class extends t.default{constructor(...e){super(...e),o(this,"router",r,this),o(this,"flashMessages",a,this),s(this,"queryParams",["tab"]),s(this,"tab","config")}async deleteMethod(){try{await this.model.method.destroyRecord(),this.flashMessages.success("MFA method deleted successfully."),this.router.transitionTo("vault.cluster.access.mfa.methods")}catch(e){this.flashMessages.danger("There was an error deleting this MFA method.")}}},r=u(i.prototype,"router",[n.service],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),a=u(i.prototype,"flashMessages",[n.service],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),u(i.prototype,"deleteMethod",[l.action],Object.getOwnPropertyDescriptor(i.prototype,"deleteMethod"),i.prototype),i)})),define("vault/controllers/vault/cluster/access/namespaces/create",["exports","@ember/service","@ember/controller"],(function(e,t,n){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default=n.default.extend({namespaceService:(0,t.service)("namespace"),router:(0,t.service)(),actions:{onSave({saveType:e}){if("save"===e)return this.namespaceService.findNamespacesForUser.perform(),this.router.transitionTo("vault.cluster.access.namespaces.index")}}})})),define("vault/controllers/vault/cluster/access/namespaces/index",["exports","@ember/service","@ember/object/computed","@ember/controller"],(function(e,t,n,l){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default=l.default.extend({namespaceService:(0,t.service)("namespace"),accessibleNamespaces:(0,n.alias)("namespaceService.accessibleNamespaces"),currentNamespace:(0,n.alias)("namespaceService.path"),actions:{refreshNamespaceList(){this.namespaceService.findNamespacesForUser.perform(),this.send("reload")}}})})),define("vault/controllers/vault/cluster/access/oidc",["exports","@ember/controller","@ember/service","@glimmer/tracking"],(function(e,t,n,l){var i,r,a
function o(e,t,n,l){n&&Object.defineProperty(e,t,{enumerable:n.enumerable,configurable:n.configurable,writable:n.writable,value:n.initializer?n.initializer.call(l):void 0})}function s(e,t,n,l,i){var r={}
return Object.keys(l).forEach((function(e){r[e]=l[e]})),r.enumerable=!!r.enumerable,r.configurable=!!r.configurable,("value"in r||r.initializer)&&(r.writable=!0),r=n.slice().reverse().reduce((function(n,l){return l(e,t,n)||n}),r),i&&void 0!==r.initializer&&(r.value=r.initializer?r.initializer.call(i):void 0,r.initializer=void 0),void 0===r.initializer?(Object.defineProperty(e,t,r),null):r}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default=(i=class extends t.default{constructor(){super(...arguments),o(this,"router",r,this),o(this,"header",a,this),this.router.on("routeDidChange",(e=>this.setHeader(e)))}setHeader(e){const t=e.to.name
if(t.includes("oidc.index"))this.header="cta"
else{const e=["clients","assignments","keys","scopes","providers"].find((e=>t.includes(`${e}.index`)))
this.header=e?"list":null}}get isCta(){return"cta"===this.header}},r=s(i.prototype,"router",[n.service],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),a=s(i.prototype,"header",[l.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),i)})),define("vault/controllers/vault/cluster/access/oidc/assignments/assignment/details",["exports","@ember/controller","@ember/object","@ember/service"],(function(e,t,n,l){var i,r,a
function o(e,t,n,l){n&&Object.defineProperty(e,t,{enumerable:n.enumerable,configurable:n.configurable,writable:n.writable,value:n.initializer?n.initializer.call(l):void 0})}function s(e,t,n,l,i){var r={}
return Object.keys(l).forEach((function(e){r[e]=l[e]})),r.enumerable=!!r.enumerable,r.configurable=!!r.configurable,("value"in r||r.initializer)&&(r.writable=!0),r=n.slice().reverse().reduce((function(n,l){return l(e,t,n)||n}),r),i&&void 0!==r.initializer&&(r.value=r.initializer?r.initializer.call(i):void 0,r.initializer=void 0),void 0===r.initializer?(Object.defineProperty(e,t,r),null):r}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default=(i=class extends t.default{constructor(...e){super(...e),o(this,"router",r,this),o(this,"flashMessages",a,this)}async delete(){try{await this.model.destroyRecord(),this.flashMessages.success("Assignment deleted successfully"),this.router.transitionTo("vault.cluster.access.oidc.assignments")}catch(e){this.model.rollbackAttributes()
const t=e.errors?e.errors.join(". "):e.message
this.flashMessages.danger(t)}}},r=s(i.prototype,"router",[l.service],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),a=s(i.prototype,"flashMessages",[l.service],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),s(i.prototype,"delete",[n.action],Object.getOwnPropertyDescriptor(i.prototype,"delete"),i.prototype),i)})),define("vault/controllers/vault/cluster/access/oidc/clients/client",["exports","@ember/controller","@ember/service","@glimmer/tracking"],(function(e,t,n,l){var i,r,a
function o(e,t,n,l){n&&Object.defineProperty(e,t,{enumerable:n.enumerable,configurable:n.configurable,writable:n.writable,value:n.initializer?n.initializer.call(l):void 0})}function s(e,t,n,l,i){var r={}
return Object.keys(l).forEach((function(e){r[e]=l[e]})),r.enumerable=!!r.enumerable,r.configurable=!!r.configurable,("value"in r||r.initializer)&&(r.writable=!0),r=n.slice().reverse().reduce((function(n,l){return l(e,t,n)||n}),r),i&&void 0!==r.initializer&&(r.value=r.initializer?r.initializer.call(i):void 0,r.initializer=void 0),void 0===r.initializer?(Object.defineProperty(e,t,r),null):r}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default=(i=class extends t.default{constructor(){super(...arguments),o(this,"router",r,this),o(this,"isEditRoute",a,this),this.router.on("routeDidChange",(({targetName:e})=>this.isEditRoute=!!e.includes("edit")))}get showHeader(){return!this.isEditRoute}},r=s(i.prototype,"router",[n.service],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),a=s(i.prototype,"isEditRoute",[l.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),i)})),define("vault/controllers/vault/cluster/access/oidc/clients/client/details",["exports","@ember/controller","@ember/object","@ember/service"],(function(e,t,n,l){var i,r,a
function o(e,t,n,l){n&&Object.defineProperty(e,t,{enumerable:n.enumerable,configurable:n.configurable,writable:n.writable,value:n.initializer?n.initializer.call(l):void 0})}function s(e,t,n,l,i){var r={}
return Object.keys(l).forEach((function(e){r[e]=l[e]})),r.enumerable=!!r.enumerable,r.configurable=!!r.configurable,("value"in r||r.initializer)&&(r.writable=!0),r=n.slice().reverse().reduce((function(n,l){return l(e,t,n)||n}),r),i&&void 0!==r.initializer&&(r.value=r.initializer?r.initializer.call(i):void 0,r.initializer=void 0),void 0===r.initializer?(Object.defineProperty(e,t,r),null):r}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default=(i=class extends t.default{constructor(...e){super(...e),o(this,"router",r,this),o(this,"flashMessages",a,this)}async delete(){try{await this.model.destroyRecord(),this.flashMessages.success("Application deleted successfully"),this.router.transitionTo("vault.cluster.access.oidc.clients")}catch(e){this.model.rollbackAttributes()
const t=e.errors?e.errors.join(". "):e.message
this.flashMessages.danger(t)}}},r=s(i.prototype,"router",[l.service],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),a=s(i.prototype,"flashMessages",[l.service],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),s(i.prototype,"delete",[n.action],Object.getOwnPropertyDescriptor(i.prototype,"delete"),i.prototype),i)})),define("vault/controllers/vault/cluster/access/oidc/keys/key",["exports","@ember/controller","@ember/service","@glimmer/tracking"],(function(e,t,n,l){var i,r,a
function o(e,t,n,l){n&&Object.defineProperty(e,t,{enumerable:n.enumerable,configurable:n.configurable,writable:n.writable,value:n.initializer?n.initializer.call(l):void 0})}function s(e,t,n,l,i){var r={}
return Object.keys(l).forEach((function(e){r[e]=l[e]})),r.enumerable=!!r.enumerable,r.configurable=!!r.configurable,("value"in r||r.initializer)&&(r.writable=!0),r=n.slice().reverse().reduce((function(n,l){return l(e,t,n)||n}),r),i&&void 0!==r.initializer&&(r.value=r.initializer?r.initializer.call(i):void 0,r.initializer=void 0),void 0===r.initializer?(Object.defineProperty(e,t,r),null):r}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default=(i=class extends t.default{constructor(){super(...arguments),o(this,"router",r,this),o(this,"isEditRoute",a,this),this.router.on("routeDidChange",(({targetName:e})=>this.isEditRoute=!!e.includes("edit")))}get showHeader(){return!this.isEditRoute}},r=s(i.prototype,"router",[n.service],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),a=s(i.prototype,"isEditRoute",[l.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),i)})),define("vault/controllers/vault/cluster/access/oidc/keys/key/details",["exports","@ember/controller","@ember/object","@ember/service","ember-concurrency","@ember/test-waiters"],(function(e,t,n,l,i,r){var a,o,s,u
function c(e,t,n,l){n&&Object.defineProperty(e,t,{enumerable:n.enumerable,configurable:n.configurable,writable:n.writable,value:n.initializer?n.initializer.call(l):void 0})}function d(e,t,n,l,i){var r={}
return Object.keys(l).forEach((function(e){r[e]=l[e]})),r.enumerable=!!r.enumerable,r.configurable=!!r.configurable,("value"in r||r.initializer)&&(r.writable=!0),r=n.slice().reverse().reduce((function(n,l){return l(e,t,n)||n}),r),i&&void 0!==r.initializer&&(r.value=r.initializer?r.initializer.call(i):void 0,r.initializer=void 0),void 0===r.initializer?(Object.defineProperty(e,t,r),null):r}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default=(a=class extends t.default{constructor(...e){super(...e),c(this,"store",o,this),c(this,"router",s,this),c(this,"flashMessages",u,this)}*rotateKey(){const e=this.store.adapterFor("oidc/key")
yield e.rotate(this.model.name,this.model.verificationTtl).then((()=>{this.flashMessages.success(`Success: ${this.model.name} connection was rotated.`)})).catch((e=>{this.flashMessages.danger(e.errors)}))}async delete(){try{await this.model.destroyRecord(),this.flashMessages.success("Key deleted successfully"),this.router.transitionTo("vault.cluster.access.oidc.keys")}catch(e){this.model.rollbackAttributes()
const t=e.errors?e.errors.join(". "):e.message
this.flashMessages.danger(t)}}},o=d(a.prototype,"store",[l.service],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),s=d(a.prototype,"router",[l.service],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),u=d(a.prototype,"flashMessages",[l.service],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),d(a.prototype,"rotateKey",[i.task,r.waitFor],Object.getOwnPropertyDescriptor(a.prototype,"rotateKey"),a.prototype),d(a.prototype,"delete",[n.action],Object.getOwnPropertyDescriptor(a.prototype,"delete"),a.prototype),a)})),define("vault/controllers/vault/cluster/access/oidc/providers/provider",["exports","@ember/controller","@ember/service","@glimmer/tracking"],(function(e,t,n,l){var i,r,a
function o(e,t,n,l){n&&Object.defineProperty(e,t,{enumerable:n.enumerable,configurable:n.configurable,writable:n.writable,value:n.initializer?n.initializer.call(l):void 0})}function s(e,t,n,l,i){var r={}
return Object.keys(l).forEach((function(e){r[e]=l[e]})),r.enumerable=!!r.enumerable,r.configurable=!!r.configurable,("value"in r||r.initializer)&&(r.writable=!0),r=n.slice().reverse().reduce((function(n,l){return l(e,t,n)||n}),r),i&&void 0!==r.initializer&&(r.value=r.initializer?r.initializer.call(i):void 0,r.initializer=void 0),void 0===r.initializer?(Object.defineProperty(e,t,r),null):r}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default=(i=class extends t.default{constructor(){super(...arguments),o(this,"router",r,this),o(this,"isEditRoute",a,this),this.router.on("routeDidChange",(({targetName:e})=>this.isEditRoute=!!e.includes("edit")))}get showHeader(){return!this.isEditRoute}},r=s(i.prototype,"router",[n.service],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),a=s(i.prototype,"isEditRoute",[l.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),i)})),define("vault/controllers/vault/cluster/access/oidc/providers/provider/details",["exports","@ember/controller","@ember/object","@ember/service"],(function(e,t,n,l){var i,r,a
function o(e,t,n,l){n&&Object.defineProperty(e,t,{enumerable:n.enumerable,configurable:n.configurable,writable:n.writable,value:n.initializer?n.initializer.call(l):void 0})}function s(e,t,n,l,i){var r={}
return Object.keys(l).forEach((function(e){r[e]=l[e]})),r.enumerable=!!r.enumerable,r.configurable=!!r.configurable,("value"in r||r.initializer)&&(r.writable=!0),r=n.slice().reverse().reduce((function(n,l){return l(e,t,n)||n}),r),i&&void 0!==r.initializer&&(r.value=r.initializer?r.initializer.call(i):void 0,r.initializer=void 0),void 0===r.initializer?(Object.defineProperty(e,t,r),null):r}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default=(i=class extends t.default{constructor(...e){super(...e),o(this,"router",r,this),o(this,"flashMessages",a,this)}async delete(){try{await this.model.destroyRecord(),this.flashMessages.success("Provider deleted successfully"),this.router.transitionTo("vault.cluster.access.oidc.providers")}catch(e){this.model.rollbackAttributes()
const t=e.errors?e.errors.join(". "):e.message
this.flashMessages.danger(t)}}},r=s(i.prototype,"router",[l.service],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),a=s(i.prototype,"flashMessages",[l.service],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),s(i.prototype,"delete",[n.action],Object.getOwnPropertyDescriptor(i.prototype,"delete"),i.prototype),i)})),define("vault/controllers/vault/cluster/access/oidc/scopes/scope/details",["exports","@ember/controller","@ember/object","@ember/service"],(function(e,t,n,l){var i,r,a
function o(e,t,n,l){n&&Object.defineProperty(e,t,{enumerable:n.enumerable,configurable:n.configurable,writable:n.writable,value:n.initializer?n.initializer.call(l):void 0})}function s(e,t,n,l,i){var r={}
return Object.keys(l).forEach((function(e){r[e]=l[e]})),r.enumerable=!!r.enumerable,r.configurable=!!r.configurable,("value"in r||r.initializer)&&(r.writable=!0),r=n.slice().reverse().reduce((function(n,l){return l(e,t,n)||n}),r),i&&void 0!==r.initializer&&(r.value=r.initializer?r.initializer.call(i):void 0,r.initializer=void 0),void 0===r.initializer?(Object.defineProperty(e,t,r),null):r}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default=(i=class extends t.default{constructor(...e){super(...e),o(this,"router",r,this),o(this,"flashMessages",a,this)}async delete(){try{await this.model.destroyRecord(),this.flashMessages.success("Scope deleted successfully"),this.router.transitionTo("vault.cluster.access.oidc.scopes")}catch(e){this.model.rollbackAttributes()
const t=e.errors?e.errors.join(". "):e.message
this.flashMessages.danger(t)}}},r=s(i.prototype,"router",[l.service],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),a=s(i.prototype,"flashMessages",[l.service],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),s(i.prototype,"delete",[n.action],Object.getOwnPropertyDescriptor(i.prototype,"delete"),i.prototype),i)})),define("vault/controllers/vault/cluster/auth",["exports","@ember/service","@ember/object/computed","@ember/controller","ember-concurrency","core/utils/sanitize-path"],(function(e,t,n,l,i,r){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default=l.default.extend({vaultController:(0,l.inject)("vault"),clusterController:(0,l.inject)("vault.cluster"),flashMessages:(0,t.service)(),namespaceService:(0,t.service)("namespace"),flagsService:(0,t.service)("flags"),version:(0,t.service)(),auth:(0,t.service)(),router:(0,t.service)(),customMessages:(0,t.service)(),queryParams:[{authMethod:"with",oidcProvider:"o"}],namespaceQueryParam:(0,n.alias)("clusterController.namespaceQueryParam"),wrappedToken:(0,n.alias)("vaultController.wrappedToken"),redirectTo:(0,n.alias)("vaultController.redirectTo"),hvdManagedNamespaceRoot:(0,n.alias)("flagsService.hvdManagedNamespaceRoot"),authMethod:"",oidcProvider:"",fullNamespaceFromInput(e){const t=(0,r.sanitizePath)(e)
return this.hvdManagedNamespaceRoot?`${this.hvdManagedNamespaceRoot}/${t}`:t},updateNamespace:(0,i.task)((function*(e){yield(0,i.timeout)(500)
const t=this.fullNamespaceFromInput(e)
this.namespaceService.setNamespace(t,!0),this.customMessages.fetchMessages(t),this.set("namespaceQueryParam",t)})).restartable(),actions:{authSuccess({isRoot:e,namespace:t}){let n
this.version.fetchVersion(),this.redirectTo?(n=this.router.transitionTo(this.redirectTo),this.set("redirectTo","")):n=this.router.transitionTo("vault.cluster",{queryParams:{namespace:t}}),n.followRedirects().then((()=>{this.version.isEnterprise&&this.customMessages.fetchMessages(t),e&&(this.auth.set("isRootToken",!0),this.flashMessages.warning("You have logged in with a root token. As a security precaution, this root token will not be stored by your browser and you will need to re-authenticate after the window is closed or refreshed."))}))}}})}))
define("vault/controllers/vault/cluster/clients/counts",["exports","@ember/controller","@ember/object"],(function(e,t,n){var l
function i(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e
var n=e[Symbol.toPrimitive]
if(void 0!==n){var l=n.call(e,t||"default")
if("object"!=typeof l)return l
throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string")
return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
const r=["start_time","end_time","ns","mountPath"]
e.default=(l=class extends t.default{constructor(...e){super(...e),i(this,"queryParams",r),i(this,"start_time",void 0),i(this,"end_time",void 0),i(this,"ns",void 0),i(this,"mountPath",void 0)}updateQueryParams(e){e?Object.keys(e).forEach((t=>{if(r.includes(t)){const l=e[t];(0,n.set)(this,t,l)}})):this.queryParams.forEach((e=>this[e]=void 0))}},a=l.prototype,o="updateQueryParams",s=[n.action],u=Object.getOwnPropertyDescriptor(l.prototype,"updateQueryParams"),c=l.prototype,d={},Object.keys(u).forEach((function(e){d[e]=u[e]})),d.enumerable=!!d.enumerable,d.configurable=!!d.configurable,("value"in d||d.initializer)&&(d.writable=!0),d=s.slice().reverse().reduce((function(e,t){return t(a,o,e)||e}),d),c&&void 0!==d.initializer&&(d.value=d.initializer?d.initializer.call(c):void 0,d.initializer=void 0),void 0===d.initializer&&Object.defineProperty(a,o,d),l)
var a,o,s,u,c,d})),define("vault/controllers/vault/cluster/clients/counts/acme",["exports","@ember/controller"],(function(e,t){var n,l,i
Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default=(n=(0,t.inject)("vault.cluster.clients.counts"),l=class extends t.default{constructor(...e){var t,n,l,r
super(...e),t=this,n="countsController",r=this,(l=i)&&Object.defineProperty(t,n,{enumerable:l.enumerable,configurable:l.configurable,writable:l.writable,value:l.initializer?l.initializer.call(r):void 0})}},r=l.prototype,a="countsController",o=[n],s={configurable:!0,enumerable:!0,writable:!0,initializer:null},c={},Object.keys(s).forEach((function(e){c[e]=s[e]})),c.enumerable=!!c.enumerable,c.configurable=!!c.configurable,("value"in c||c.initializer)&&(c.writable=!0),c=o.slice().reverse().reduce((function(e,t){return t(r,a,e)||e}),c),u&&void 0!==c.initializer&&(c.value=c.initializer?c.initializer.call(u):void 0,c.initializer=void 0),i=void 0===c.initializer?(Object.defineProperty(r,a,c),null):c,l)
var r,a,o,s,u,c})),define("vault/controllers/vault/cluster/clients/counts/overview",["exports","@ember/controller"],(function(e,t){var n,l,i
Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default=(n=(0,t.inject)("vault.cluster.clients.counts"),l=class extends t.default{constructor(...e){var t,n,l,r
super(...e),t=this,n="countsController",r=this,(l=i)&&Object.defineProperty(t,n,{enumerable:l.enumerable,configurable:l.configurable,writable:l.writable,value:l.initializer?l.initializer.call(r):void 0})}},r=l.prototype,a="countsController",o=[n],s={configurable:!0,enumerable:!0,writable:!0,initializer:null},c={},Object.keys(s).forEach((function(e){c[e]=s[e]})),c.enumerable=!!c.enumerable,c.configurable=!!c.configurable,("value"in c||c.initializer)&&(c.writable=!0),c=o.slice().reverse().reduce((function(e,t){return t(r,a,e)||e}),c),u&&void 0!==c.initializer&&(c.value=c.initializer?c.initializer.call(u):void 0,c.initializer=void 0),i=void 0===c.initializer?(Object.defineProperty(r,a,c),null):c,l)
var r,a,o,s,u,c})),define("vault/controllers/vault/cluster/clients/counts/sync",["exports","@ember/controller"],(function(e,t){var n,l,i
Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default=(n=(0,t.inject)("vault.cluster.clients.counts"),l=class extends t.default{constructor(...e){var t,n,l,r
super(...e),t=this,n="countsController",r=this,(l=i)&&Object.defineProperty(t,n,{enumerable:l.enumerable,configurable:l.configurable,writable:l.writable,value:l.initializer?l.initializer.call(r):void 0})}},r=l.prototype,a="countsController",o=[n],s={configurable:!0,enumerable:!0,writable:!0,initializer:null},c={},Object.keys(s).forEach((function(e){c[e]=s[e]})),c.enumerable=!!c.enumerable,c.configurable=!!c.configurable,("value"in c||c.initializer)&&(c.writable=!0),c=o.slice().reverse().reduce((function(e,t){return t(r,a,e)||e}),c),u&&void 0!==c.initializer&&(c.value=c.initializer?c.initializer.call(u):void 0,c.initializer=void 0),i=void 0===c.initializer?(Object.defineProperty(r,a,c),null):c,l)
var r,a,o,s,u,c})),define("vault/controllers/vault/cluster/clients/counts/token",["exports","@ember/controller"],(function(e,t){var n,l,i
Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default=(n=(0,t.inject)("vault.cluster.clients.counts"),l=class extends t.default{constructor(...e){var t,n,l,r
super(...e),t=this,n="countsController",r=this,(l=i)&&Object.defineProperty(t,n,{enumerable:l.enumerable,configurable:l.configurable,writable:l.writable,value:l.initializer?l.initializer.call(r):void 0})}},r=l.prototype,a="countsController",o=[n],s={configurable:!0,enumerable:!0,writable:!0,initializer:null},c={},Object.keys(s).forEach((function(e){c[e]=s[e]})),c.enumerable=!!c.enumerable,c.configurable=!!c.configurable,("value"in c||c.initializer)&&(c.writable=!0),c=o.slice().reverse().reduce((function(e,t){return t(r,a,e)||e}),c),u&&void 0!==c.initializer&&(c.value=c.initializer?c.initializer.call(u):void 0,c.initializer=void 0),i=void 0===c.initializer?(Object.defineProperty(r,a,c),null):c,l)
var r,a,o,s,u,c})),define("vault/controllers/vault/cluster/dashboard",["exports","@ember/controller","@ember/object","@glimmer/tracking","core/utils/timestamp"],(function(e,t,n,l,i){var r,a
function o(e,t,n,l,i){var r={}
return Object.keys(l).forEach((function(e){r[e]=l[e]})),r.enumerable=!!r.enumerable,r.configurable=!!r.configurable,("value"in r||r.initializer)&&(r.writable=!0),r=n.slice().reverse().reduce((function(n,l){return l(e,t,n)||n}),r),i&&void 0!==r.initializer&&(r.value=r.initializer?r.initializer.call(i):void 0,r.initializer=void 0),void 0===r.initializer?(Object.defineProperty(e,t,r),null):r}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default=(r=class extends t.default{constructor(...e){var t,n,l,i
super(...e),t=this,n="replicationUpdatedAt",i=this,(l=a)&&Object.defineProperty(t,n,{enumerable:l.enumerable,configurable:l.configurable,writable:l.writable,value:l.initializer?l.initializer.call(i):void 0})}refreshModel(e){e&&e.preventDefault(),this.replicationUpdatedAt=i.default.now().toISOString(),this.send("refreshRoute")}},a=o(r.prototype,"replicationUpdatedAt",[l.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return i.default.now().toISOString()}}),o(r.prototype,"refreshModel",[n.action],Object.getOwnPropertyDescriptor(r.prototype,"refreshModel"),r.prototype),r)})),define("vault/controllers/vault/cluster/init",["exports","@ember/object","@ember/controller"],(function(e,t,n){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
const l={keyData:null,secret_shares:null,secret_threshold:null,pgp_keys:null,use_pgp:!1,loading:!1}
e.default=n.default.extend(l,{reset(){this.setProperties(l)},initSuccess(e){this.set("loading",!1),this.set("keyData",e),this.model.reload()},initError(e){if(this.set("loading",!1),400!==e.httpStatus)throw e
this.set("errors",e.errors)},keyFilename:(0,t.computed)("model.name",(function(){return`vault-cluster-${this.model.name}`})),actions:{initCluster(e){const t=!!this.model.sealType&&"shamir"!==this.model.sealType
if(e.secret_shares){const n=parseInt(e.secret_shares,10)
e.secret_shares=n,t&&(e.stored_shares=1,e.recovery_shares=n,delete e.secret_shares)}if(e.secret_threshold){const n=parseInt(e.secret_threshold,10)
e.secret_threshold=n,t&&(e.recovery_threshold=n,delete e.secret_threshold)}e.use_pgp||delete e.pgp_keys,e.use_pgp&&t&&(e.recovery_pgp_keys=e.pgp_keys),e.use_pgp_for_root||delete e.root_token_pgp_key,delete e.use_pgp,delete e.use_pgp_for_root
const n=this.model.store
this.setProperties({loading:!0,errors:null}),n.adapterFor("cluster").initCluster(e).then((e=>this.initSuccess(e)),((...e)=>this.initError(...e)))},setKeys(e){this.set("pgp_keys",e)},setRootKey([e]){this.set("root_token_pgp_key",e)}}})})),define("vault/controllers/vault/cluster/mfa-setup",["exports","@ember/controller","@ember/service","@ember/object","@glimmer/tracking"],(function(e,t,n,l,i){var r,a,o,s,u,c
function d(e,t,n,l){n&&Object.defineProperty(e,t,{enumerable:n.enumerable,configurable:n.configurable,writable:n.writable,value:n.initializer?n.initializer.call(l):void 0})}function p(e,t,n,l,i){var r={}
return Object.keys(l).forEach((function(e){r[e]=l[e]})),r.enumerable=!!r.enumerable,r.configurable=!!r.configurable,("value"in r||r.initializer)&&(r.writable=!0),r=n.slice().reverse().reduce((function(n,l){return l(e,t,n)||n}),r),i&&void 0!==r.initializer&&(r.value=r.initializer?r.initializer.call(i):void 0,r.initializer=void 0),void 0===r.initializer?(Object.defineProperty(e,t,r),null):r}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default=(r=class extends t.default{constructor(...e){super(...e),d(this,"auth",a,this),d(this,"onStep",o,this),d(this,"warning",s,this),d(this,"uuid",u,this),d(this,"qrCode",c,this)}get entityId(){return this.auth.authData.entity_id}isUUIDVerified(e){this.warning="",e?this.onStep=2:this.restartFlow()}restartFlow(){this.onStep=1}saveUUIDandQrCode(e,t){this.uuid=e,this.qrCode=t}showWarning(e){this.warning=e,this.onStep=2}},a=p(r.prototype,"auth",[n.service],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),o=p(r.prototype,"onStep",[i.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return 1}}),s=p(r.prototype,"warning",[i.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return""}}),u=p(r.prototype,"uuid",[i.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return""}}),c=p(r.prototype,"qrCode",[i.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return""}}),p(r.prototype,"isUUIDVerified",[l.action],Object.getOwnPropertyDescriptor(r.prototype,"isUUIDVerified"),r.prototype),p(r.prototype,"restartFlow",[l.action],Object.getOwnPropertyDescriptor(r.prototype,"restartFlow"),r.prototype),p(r.prototype,"saveUUIDandQrCode",[l.action],Object.getOwnPropertyDescriptor(r.prototype,"saveUUIDandQrCode"),r.prototype),p(r.prototype,"showWarning",[l.action],Object.getOwnPropertyDescriptor(r.prototype,"showWarning"),r.prototype),r)})),define("vault/controllers/vault/cluster/oidc-callback",["exports","@ember/controller"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default=t.default.extend({queryParams:["state","code"],code:null,state:null})})),define("vault/controllers/vault/cluster/oidc-provider-ns",["exports","vault/controllers/vault/cluster/oidc-provider"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
class n extends t.default{}e.default=n})),define("vault/controllers/vault/cluster/oidc-provider",["exports","@ember/controller"],(function(e,t){function n(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e
var n=e[Symbol.toPrimitive]
if(void 0!==n){var l=n.call(e,t||"default")
if("object"!=typeof l)return l
throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string")
return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
class l extends t.default{constructor(...e){super(...e),n(this,"queryParams",["scope","response_type","client_id","redirect_uri","state","nonce","display","prompt","max_age","code_challenge","code_challenge_method","request","request_uri"]),n(this,"scope",null),n(this,"response_type",null),n(this,"client_id",null),n(this,"redirect_uri",null),n(this,"state",null),n(this,"nonce",null),n(this,"display",null),n(this,"prompt",null),n(this,"max_age",null),n(this,"code_challenge",null),n(this,"code_challenge_method",null),n(this,"request",null),n(this,"request_uri",null)}}e.default=l})),define("vault/controllers/vault/cluster/policies/index",["exports","@ember/service","@ember/object","@ember/controller"],(function(e,t,n,l){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default=l.default.extend({flashMessages:(0,t.service)(),queryParams:{page:"page",pageFilter:"pageFilter"},filter:null,page:1,pageFilter:null,filterFocused:!1,isLoading:!1,policyToDelete:null,get paginationQueryParams(){return e=>({page:e})},filterMatchesKey:(0,n.computed)("filter","model","model.[]",(function(){var e=this.filter,t=this.model
return!!(t&&t.length&&t.find((t=>t.id===e)))})),firstPartialMatch:(0,n.computed)("filter","model","model.[]","filterMatchesKey",(function(){var e=this.filter,t=this.model
if(t){var n=this.filterMatchesKey,l=new RegExp("^"+e)
return n?null:t.find((function(e){return l.test(e.id)}))}})),actions:{setFilter:function(e){this.set("filter",e)},setFilterFocus:function(e){this.set("filterFocused",e)},deletePolicy(e){const{policyType:t}=e,n=e.id,l=this.flashMessages
e.destroyRecord().then((()=>{this.send("reload"),l.success(`${t.toUpperCase()} policy "${n}" was successfully deleted.`)})).catch((e=>{const i=e.errors?e.errors.join(""):e.message
l.danger(`There was an error deleting the ${t.toUpperCase()} policy "${n}": ${i}.`)})).finally((()=>this.set("policyToDelete",null)))}}})})),define("vault/controllers/vault/cluster/policy/edit",["exports","@ember/controller","@ember/object","@ember/service"],(function(e,t,n,l){var i,r,a
function o(e,t,n,l){n&&Object.defineProperty(e,t,{enumerable:n.enumerable,configurable:n.configurable,writable:n.writable,value:n.initializer?n.initializer.call(l):void 0})}function s(e,t,n,l,i){var r={}
return Object.keys(l).forEach((function(e){r[e]=l[e]})),r.enumerable=!!r.enumerable,r.configurable=!!r.configurable,("value"in r||r.initializer)&&(r.writable=!0),r=n.slice().reverse().reduce((function(n,l){return l(e,t,n)||n}),r),i&&void 0!==r.initializer&&(r.value=r.initializer?r.initializer.call(i):void 0,r.initializer=void 0),void 0===r.initializer?(Object.defineProperty(e,t,r),null):r}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default=(i=class extends t.default{constructor(...e){super(...e),o(this,"router",r,this),o(this,"flashMessages",a,this)}async deletePolicy(){const{policyType:e,name:t}=this.model
try{await this.model.destroyRecord(),this.flashMessages.success(`${e.toUpperCase()} policy "${t}" was successfully deleted.`),this.router.transitionTo("vault.cluster.policies",e)}catch(n){this.model.rollbackAttributes()
const l=n.errors?n.errors.join(". "):n.message,i=`There was an error deleting the ${e.toUpperCase()} policy "${t}": ${l}.`
this.flashMessages.danger(i)}}},r=s(i.prototype,"router",[l.service],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),a=s(i.prototype,"flashMessages",[l.service],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),s(i.prototype,"deletePolicy",[n.action],Object.getOwnPropertyDescriptor(i.prototype,"deletePolicy"),i.prototype),i)})),define("vault/controllers/vault/cluster/replication-dr-promote/index",["exports","@ember/controller","@ember/service"],(function(e,t,n){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default=t.default.extend({router:(0,n.service)(),queryParams:["action"],action:"",actions:{onPromote(){this.router.transitionTo("vault.cluster.replication.mode.index","dr")}}})})),define("vault/controllers/vault/cluster/secrets/backend",["exports","@ember/controller"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default=t.default.extend({preferAdvancedEdit:!1})})),define("vault/controllers/vault/cluster/secrets/backend/actions-root",["exports","vault/controllers/vault/cluster/secrets/backend/actions"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.default}})})),define("vault/controllers/vault/cluster/secrets/backend/actions",["exports","@ember/controller","vault/mixins/backend-crumb"],(function(e,t,n){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default=t.default.extend(n.default,{queryParams:{selectedAction:"action"},actions:{refresh:function(){this.send("refreshModel")}}})})),define("vault/controllers/vault/cluster/secrets/backend/configuration/edit",["exports","@ember/utils","@ember/service","@ember/controller"],(function(e,t,n,l){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
const i={configured:!1,iamEndpoint:null,stsEndpoint:null,accessKey:null,secretKey:null,region:""}
e.default=l.default.extend(i,{queryParams:["tab"],tab:"",flashMessages:(0,n.service)(),loading:!1,reset(){this.model.rollbackAttributes(),this.setProperties(i)},actions:{save(e,n){this.set("loading",!0)
Object.keys(n).some((e=>(0,t.isPresent)(n[e])))&&this.model.save({adapterOptions:{adapterMethod:e,data:n}}).then((()=>{this.reset(),this.flashMessages.success("The backend configuration saved successfully!")})).finally((()=>{this.set("loading",!1)}))}}})})),define("vault/controllers/vault/cluster/secrets/backend/create-root",["exports","vault/controllers/vault/cluster/secrets/backend/create"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.default}})})),define("vault/controllers/vault/cluster/secrets/backend/create",["exports","@ember/controller","vault/mixins/backend-crumb"],(function(e,t,n){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default=t.default.extend(n.default,{backendController:(0,t.inject)("vault.cluster.secrets.backend"),queryParams:["initialKey","itemType"],initialKey:"",itemType:"",actions:{refresh:function(){this.send("refreshModel")},toggleAdvancedEdit(e){this.set("preferAdvancedEdit",e),this.backendController.set("preferAdvancedEdit",e)}}})})),define("vault/controllers/vault/cluster/secrets/backend/credentials-root",["exports","vault/controllers/vault/cluster/secrets/backend/credentials"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.default}})})),define("vault/controllers/vault/cluster/secrets/backend/credentials",["exports","@ember/controller"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default=t.default.extend({queryParams:["roleType"],roleType:"",reset(){this.set("roleType","")}})})),define("vault/controllers/vault/cluster/secrets/backend/edit-root",["exports","vault/controllers/vault/cluster/secrets/backend/edit"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.default}})})),define("vault/controllers/vault/cluster/secrets/backend/edit",["exports","@ember/controller","vault/mixins/backend-crumb"],(function(e,t,n){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default=t.default.extend(n.default,{backendController:(0,t.inject)("vault.cluster.secrets.backend"),queryParams:["version","itemType"],version:"",itemType:"",reset(){this.set("version",""),this.set("itemType","")},actions:{refresh:function(){this.send("refreshModel")},toggleAdvancedEdit(e){this.set("preferAdvancedEdit",e),this.backendController.set("preferAdvancedEdit",e)}}})})),define("vault/controllers/vault/cluster/secrets/backend/list-root",["exports","vault/controllers/vault/cluster/secrets/backend/list"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.default}})})),define("vault/controllers/vault/cluster/secrets/backend/list",["exports","@ember/object/computed","@ember/object","@ember/service","@ember/controller","vault/mixins/backend-crumb","core/mixins/list-controller","core/utils/key-utils"],(function(e,t,n,l,i,r,a,o){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default=i.default.extend(a.default,r.default,{flashMessages:(0,l.service)(),queryParams:["page","pageFilter","tab"],tab:"",get paginationQueryParams(){return e=>({page:e})},filterIsFolder:(0,n.computed)("filter",(function(){return!!(0,o.keyIsFolder)(this.filter)})),isConfigurableTab:(0,t.or)("isCertTab","isConfigure"),actions:{chooseAction(e){this.set("selectedAction",e)},toggleZeroAddress(e,t){e.toggleProperty("zeroAddress"),this.set("loading-"+e.id,!0),t.saveZeroAddressConfig().catch((t=>{e.set("zeroAddress",!1),this.flashMessages.danger(t.message)})).finally((()=>{this.set("loading-"+e.id,!1)}))},delete(e){const t=e.id
e.destroyRecord().then((()=>{this.flashMessages.success(`${t} was successfully deleted.`),this.send("reload")})).catch((e=>{const t=e.errors?e.errors.join(". "):e.message
this.flashMessages.danger(t)}))}}})})),define("vault/controllers/vault/cluster/secrets/backend/show-root",["exports","vault/controllers/vault/cluster/secrets/backend/show"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.default}})})),define("vault/controllers/vault/cluster/secrets/backend/show",["exports","@ember/controller","vault/mixins/backend-crumb"],(function(e,t,n){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default=t.default.extend(n.default,{backendController:(0,t.inject)("vault.cluster.secrets.backend"),queryParams:["tab","version","type","itemType","page"],version:"",tab:"",type:"",itemType:"",reset(){this.set("tab",""),this.set("version",""),this.set("type",""),this.set("itemType","")},actions:{refresh:function(){this.send("refreshModel")},toggleAdvancedEdit(e){this.set("preferAdvancedEdit",e),this.backendController.set("preferAdvancedEdit",e)}}})})),define("vault/controllers/vault/cluster/secrets/backend/sign-root",["exports","vault/controllers/vault/cluster/secrets/backend/sign"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.default}})})),define("vault/controllers/vault/cluster/secrets/backend/sign",["exports","@ember/service","@ember/controller","@ember/object"],(function(e,t,n,l){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default=n.default.extend({store:(0,t.service)(),loading:!1,emptyData:"{\n}",actions:{sign(){this.set("loading",!0),this.model.save().finally((()=>{this.set("loading",!1)}))},codemirrorUpdated(e,t,n){n.performLint()
n.state.lint.marked.length>0||(0,l.set)(this.model,e,JSON.parse(t))},updateTtl(e,t){const n=this.model,i=!0===t.enabled?`${t.seconds}s`:void 0;(0,l.set)(n,e,i)},newModel(){const e=this.model,t=e.role
e.unloadRecord()
const n=this.store.createRecord("ssh-sign",{role:t,id:`${t.backend}-${t.name}`})
this.set("model",n)}}})}))
define("vault/controllers/vault/cluster/secrets/backends",["exports","@ember/controller","@ember/service","@ember/object","@glimmer/tracking","ember-concurrency"],(function(e,t,n,l,i,r){var a,o,s,u,c,d
function p(e,t,n,l){n&&Object.defineProperty(e,t,{enumerable:n.enumerable,configurable:n.configurable,writable:n.writable,value:n.initializer?n.initializer.call(l):void 0})}function f(e,t,n,l,i){var r={}
return Object.keys(l).forEach((function(e){r[e]=l[e]})),r.enumerable=!!r.enumerable,r.configurable=!!r.configurable,("value"in r||r.initializer)&&(r.writable=!0),r=n.slice().reverse().reduce((function(n,l){return l(e,t,n)||n}),r),i&&void 0!==r.initializer&&(r.value=r.initializer?r.initializer.call(i):void 0,r.initializer=void 0),void 0===r.initializer?(Object.defineProperty(e,t,r),null):r}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default=(a=class extends t.default{constructor(...e){super(...e),p(this,"flashMessages",o,this),p(this,"secretEngineOptions",s,this),p(this,"selectedEngineType",u,this),p(this,"selectedEngineName",c,this),p(this,"engineToDisable",d,this)}get displayableBackends(){return this.model.filter((e=>e.shouldIncludeInList))}get sortedDisplayableBackends(){const e=this.displayableBackends.sort(((e,t)=>t.isSupportedBackend-e.isSupportedBackend||e.id-t.id))
return this.selectedEngineType?this.selectedEngineName?e.filter((e=>this.selectedEngineName===e.id)):e.filter((e=>this.selectedEngineType===e.engineType)):this.selectedEngineName?e.filter((e=>this.selectedEngineName===e.id)):e}get secretEngineArrayByType(){const e=this.sortedDisplayableBackends.map((e=>e.engineType))
return[...new Set(e)].map((e=>({name:e,id:e})))}get secretEngineArrayByName(){return this.sortedDisplayableBackends.map((e=>({name:e.id,id:e.id})))}filterEngineType([e]){this.selectedEngineType=e}filterEngineName([e]){this.selectedEngineName=e}*disableEngine(e){const{engineType:t,path:n}=e
try{yield e.destroyRecord(),this.flashMessages.success(`The ${t} Secrets Engine at ${n} has been disabled.`)}catch(l){this.flashMessages.danger(`There was an error disabling the ${t} Secrets Engine at ${n}: ${l.errors.join(" ")}.`)}finally{this.engineToDisable=null}}},o=f(a.prototype,"flashMessages",[n.service],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),s=f(a.prototype,"secretEngineOptions",[i.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return[]}}),u=f(a.prototype,"selectedEngineType",[i.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),c=f(a.prototype,"selectedEngineName",[i.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),d=f(a.prototype,"engineToDisable",[i.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),f(a.prototype,"filterEngineType",[l.action],Object.getOwnPropertyDescriptor(a.prototype,"filterEngineType"),a.prototype),f(a.prototype,"filterEngineName",[l.action],Object.getOwnPropertyDescriptor(a.prototype,"filterEngineName"),a.prototype),f(a.prototype,"disableEngine",[r.dropTask],Object.getOwnPropertyDescriptor(a.prototype,"disableEngine"),a.prototype),a)})),define("vault/controllers/vault/cluster/settings",["exports","@ember/service","@ember/controller"],(function(e,t,n){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default=n.default.extend({namespaceService:(0,t.service)("namespace")})})),define("vault/controllers/vault/cluster/settings/auth/enable",["exports","@ember/controller","@ember/service"],(function(e,t,n){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default=t.default.extend({router:(0,n.service)(),actions:{onMountSuccess:function(e,t){return this.router.transitionTo("vault.cluster.settings.auth.configure",t).followRedirects()}}})})),define("vault/controllers/vault/cluster/settings/mount-secret-backend",["exports","@ember/service","@ember/controller","vault/helpers/supported-secret-backends","vault/helpers/mountable-secret-engines","@ember/object"],(function(e,t,n,l,i,r){var a,o
function s(e,t,n,l,i){var r={}
return Object.keys(l).forEach((function(e){r[e]=l[e]})),r.enumerable=!!r.enumerable,r.configurable=!!r.configurable,("value"in r||r.initializer)&&(r.writable=!0),r=n.slice().reverse().reduce((function(n,l){return l(e,t,n)||n}),r),i&&void 0!==r.initializer&&(r.value=r.initializer?r.initializer.call(i):void 0,r.initializer=void 0),void 0===r.initializer?(Object.defineProperty(e,t,r),null):r}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
const u=(0,l.supportedSecretBackends)()
e.default=(a=class extends n.default{constructor(...e){var t,n,l,i
super(...e),t=this,n="router",i=this,(l=o)&&Object.defineProperty(t,n,{enumerable:l.enumerable,configurable:l.configurable,writable:l.writable,value:l.initializer?l.initializer.call(i):void 0})}onMountSuccess(e,t,n=!1){let l
if(u.includes(e)){const r=(0,i.allEngines)().find((t=>t.type===e))
if(n)l=this.router.transitionTo(`vault.cluster.secrets.backend.${r.engineRoute}`,t)
else{const e=r?.routeQueryParams||{}
l=this.router.transitionTo("vault.cluster.secrets.backend.index",t,{queryParams:e})}}else l=this.router.transitionTo("vault.cluster.secrets.backends")
return l.followRedirects()}},o=s(a.prototype,"router",[t.service],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),s(a.prototype,"onMountSuccess",[r.action],Object.getOwnPropertyDescriptor(a.prototype,"onMountSuccess"),a.prototype),a)})),define("vault/controllers/vault/cluster/settings/seal",["exports","@ember/service","@ember/controller"],(function(e,t,n){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default=n.default.extend({auth:(0,t.service)(),router:(0,t.service)(),version:(0,t.service)(),store:(0,t.service)(),actions:{seal(){return this.model.cluster.store.adapterFor("cluster").seal().then((()=>(this.store.peekAll("cluster")[0].reload(),this.auth.deleteCurrentToken(),this.version.version=null,this.router.transitionTo("vault.cluster.unseal"))))}}})})),define("vault/controllers/vault/cluster/unseal",["exports","@ember/controller","@ember/service"],(function(e,t,n){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default=t.default.extend({router:(0,n.service)(),showLicenseError:!1,actions:{reloadCluster(){return this.model.reload()},isUnsealed:e=>!1===e.sealed,handleLicenseError(){this.set("showLicenseError",!0)}}})})),define("vault/data-adapter",["exports","@ember-data/debug"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.default}})})),define("vault/decorators/confirm-leave",["exports","core/decorators/confirm-leave"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"withConfirmLeave",{enumerable:!0,get:function(){return t.withConfirmLeave}})})),define("vault/decorators/model-expanded-attributes",["exports","vault/utils/field-to-attrs","@ember-data/model","@ember/debug"],(function(e,t,n,l){Object.defineProperty(e,"__esModule",{value:!0}),e.withExpandedAttributes=function(){return function(e){return Object.prototype.isPrototypeOf.call(n.default,e)?class extends e{constructor(...e){var t,n,l
super(...e),t=this,l=null,(n=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e
var n=e[Symbol.toPrimitive]
if(void 0!==n){var l=n.call(e,t||"default")
if("object"!=typeof l)return l
throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string")
return"symbol"==typeof t?t:t+""}(n="_allByKey"))in t?Object.defineProperty(t,n,{value:l,enumerable:!0,configurable:!0,writable:!0}):t[n]=l}_expandGroups(e){if(!Array.isArray(e))throw new Error("_expandGroups expects an array of objects")
return e.map((e=>{const[t,n]=Object.entries(e)[0],i=n.map((e=>this.allByKey[e])).filter((e=>!!e))
return i.length!==n.length&&(0,l.debug)(`not all model fields found in allByKey for group "${t}"`),{[t]:i}}))}get allByKey(){if(!this._allByKey){const e={},n=[]
this.eachAttribute((function(e){n.push(e)}));(0,t.expandAttributeMeta)(this,n).forEach((t=>{e[t.name]=t})),this.eachRelationship((function(n,l){if("belongsTo"!==l.kind)return
const i=this[n],r=[]
i.eachAttribute((function(e){r.push(e)}));(0,t.expandAttributeMeta)(i,r).forEach((t=>{e[`${n}.${t.name}`]={...t,options:{...t.options,fieldValue:`${n}.${t.fieldValue||t.name}`}}}))}),this),this._allByKey=e}return this._allByKey}}:(console.error("withExpandedAttributes decorator must be used on instance of ember-data Model class. Decorator not applied to returned class"),e)}}})),define("vault/decorators/model-form-fields",["exports","vault/utils/field-to-attrs","@ember-data/model"],(function(e,t,n){Object.defineProperty(e,"__esModule",{value:!0}),e.withFormFields=function(e,l){return function(i){return Object.prototype.isPrototypeOf.call(n.default,i)?class extends i{constructor(){super(...arguments),e&&(this.formFields=(0,t.expandAttributeMeta)(this,e)),l&&(this.formFieldGroups=(0,t.default)(this,l))
const n=[]
this.eachAttribute((function(e){n.push(e)})),this.allFields=(0,t.expandAttributeMeta)(this,n)}}:(console.error("withFormFields decorator must be used on instance of ember-data Model class. Decorator not applied to returned class"),i)}}})),define("vault/decorators/model-validations",["exports","vault/utils/validators","@ember/object"],(function(e,t,n){Object.defineProperty(e,"__esModule",{value:!0}),e.withModelValidations=function(e){return function(l){var i,r,a,o
return i=class extends l{constructor(){if(super(...arguments),!e||"object"!=typeof e)throw new Error("Validations object must be provided to constructor for setup")
this._validations=e}validate(){let e=!0
const l={}
let i=0
for(const r in this._validations){const a=this._validations[r]
if(Array.isArray(a)){l[r]={errors:[],warnings:[]}
for(const i of a){const{type:a,options:o,level:s,message:u,validator:c}=i,d="function"==typeof c,p=d?c:t.default[a]
if(!p){console.error(a?`Validator type: "${a}" not found. Available validators: ${Object.keys(t.default).join(", ")}`:'Validator not found. Define either type or pass custom validator function under "validator" key in validations object')
continue}if(!(d?p(this):p((0,n.get)(this,r),o))){const t="function"==typeof u?u(this):u
"warn"===s?l[r].warnings.push(t):(l[r].errors.push(t),e&&(e=!1))}}i+=l[r].errors.length,l[r].isValid=!l[r].errors.length}else console.error(`Must provide validations as an array for property "${r}" on ${this.modelName} model`)}return{isValid:e,state:l,invalidFormMessage:this.generateErrorCountMessage(i)}}generateErrorCountMessage(e){if(e<1)return null
const t=e>1&&`are ${e} errors`
return`There ${t||"is an error"} with this form.`}},r=i,o=void 0,(a=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e
var n=e[Symbol.toPrimitive]
if(void 0!==n){var l=n.call(e,t||"default")
if("object"!=typeof l)return l
throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string")
return"symbol"==typeof t?t:t+""}(a="_validations"))in r?Object.defineProperty(r,a,{value:o,enumerable:!0,configurable:!0,writable:!0}):r[a]=o,i}}})),define("vault/docfy-output",["exports"],(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default={nested:{name:"/",label:"/",pages:[],children:[{name:"docs",label:"docs",pages:[{url:"/docs/",title:"Index",editUrl:"",relativeUrl:"",relativePath:"index.md",headings:[],frontmatter:{title:"Index",order:-1},pluginData:{},parentLabel:"docs"},{url:"/docs/how-to-docfy",title:"How to docfy",editUrl:"",relativeUrl:"how-to-docfy",relativePath:"how-to-docfy.md",headings:[{title:"docs/ markdown files",id:"docs-markdown-files",depth:2},{title:"generating component docs",id:"generating-component-docs",depth:2},{title:"Writing documentation for a component",id:"writing-documentation-for-a-component",depth:2,headings:[{title:"Syntax tips",id:"syntax-tips",depth:3},{title:"Config",id:"config",depth:3},{title:"More info",id:"more-info",depth:3}]}],frontmatter:{title:"How to docfy",order:1},pluginData:{},parentLabel:"docs"},{url:"/docs/building-components",title:"Building and consuming components",editUrl:"",relativeUrl:"building-components",relativePath:"building-components.md",headings:[{title:"Page components for every route",id:"page-components-for-every-route",depth:2},{title:"Conditional rendering",id:"conditional-rendering",depth:2},{title:"Reusable components",id:"reusable-components",depth:2}],frontmatter:{},pluginData:{},parentLabel:"docs"},{url:"/docs/client-pagination",title:"Client-side pagination",editUrl:"",relativeUrl:"client-pagination",relativePath:"client-pagination.md",headings:[{title:"Using pagination",id:"using-pagination",depth:2,headings:[{title:"Before",id:"before",depth:3},{title:"After",id:"after",depth:3},{title:"Serializing",id:"serializing",depth:3}]},{title:"Gotchas",id:"gotchas",depth:2},{title:"How it works",id:"how-it-works",depth:2}],frontmatter:{},pluginData:{},parentLabel:"docs"},{url:"/docs/css",title:"CSS/SCSS",editUrl:"",relativeUrl:"css",relativePath:"css.md",headings:[{title:"Guidelines",id:"guidelines",depth:2,headings:[{title:"Known issues",id:"known-issues",depth:3},{title:"Helper classes",id:"helper-classes",depth:3},{title:"Core class styles",id:"core-class-styles",depth:3}]}],frontmatter:{},pluginData:{},parentLabel:"docs"},{url:"/docs/ember-engines",title:"Ember Engines",editUrl:"",relativeUrl:"ember-engines",relativePath:"ember-engines.md",headings:[{title:"Create a new in-repo engine:",id:"create-a-new-in-repo-engine",depth:2},{title:"Engine’s package.json:",id:"engines-packagejson",depth:2},{title:"Configure your Engine",id:"configure-your-engine",depth:2,headings:[{title:"Service Dependencies:",id:"service-dependencies",depth:3,headings:[{title:"Notes:",id:"notes",depth:4}]},{title:"External Route Dependencies:",id:"external-route-dependencies",depth:3,headings:[{title:"Notes:",id:"notes-1",depth:4}]}]},{title:"Additional info about your engine's application.hbs:",id:"additional-info-about-your-engines-applicationhbs",depth:2},{title:"Register your engine with our main application:",id:"register-your-engine-with-our-main-application",depth:2},{title:"Add engine path to ember-addon section of main app package.json",id:"add-engine-path-to-ember-addon-section-of-main-app-packagejson",depth:2,headings:[{title:"Important Notes:",id:"important-notes",depth:3},{title:"Common blueprint commands:",id:"common-blueprint-commands",depth:3}]}],frontmatter:{},pluginData:{},parentLabel:"docs"},{url:"/docs/fetch-secrets-engine-config",title:"Fetch Secrets Engine Configuration Decorator",editUrl:"",relativeUrl:"fetch-secrets-engine-config",relativePath:"fetch-secrets-engine-config.md",headings:[{title:"API",id:"api",depth:2},{title:"Usage",id:"usage",depth:2,headings:[{title:"Configure route",id:"configure-route",depth:3},{title:"Configuration route",id:"configuration-route",depth:3},{title:"Other routes (overview etc.)",id:"other-routes-overview-etc",depth:3}]}],frontmatter:{},pluginData:{},parentLabel:"docs"},{url:"/docs/forms",title:"Forms",editUrl:"",relativeUrl:"forms",relativePath:"forms.md",headings:[{title:"Guidelines",id:"guidelines",depth:2}],frontmatter:{},pluginData:{},parentLabel:"docs"},{url:"/docs/model-validations",title:"Model Validations Decorator",editUrl:"",relativeUrl:"model-validations",relativePath:"model-validations.md",headings:[{title:"API",id:"api",depth:2},{title:"Usage",id:"usage",depth:2},{title:"Examples",id:"examples",depth:2,headings:[{title:"Basic",id:"basic",depth:3},{title:"Custom validator",id:"custom-validator",depth:3},{title:"Adding class in template based on validation state",id:"adding-class-in-template-based-on-validation-state",depth:3}]}],frontmatter:{},pluginData:{},parentLabel:"docs"},{url:"/docs/models",title:"Models",editUrl:"",relativeUrl:"models",relativePath:"models.md",headings:[{title:"Capabilities",id:"capabilities",depth:2},{title:"Decorators",id:"decorators",depth:2,headings:[{title:"@withFormFields()",id:"withformfields",depth:3},{title:"@withModelValidations()",id:"withmodelvalidations",depth:3}]}],frontmatter:{},pluginData:{},parentLabel:"docs"},{url:"/docs/routing",title:"Routing",editUrl:"",relativeUrl:"routing",relativePath:"routing.md",headings:[{title:"Guidelines",id:"guidelines",depth:2},{title:"File structure",id:"file-structure",depth:2},{title:"Shared functionality",id:"shared-functionality",depth:2},{title:"Decorators",id:"decorators",depth:2,headings:[{title:"@withConfirmLeave()",id:"withconfirmleave",depth:3}]}],frontmatter:{},pluginData:{},parentLabel:"docs"},{url:"/docs/serializers-adapters",title:"Serializers & Adapters",editUrl:"",relativeUrl:"serializers-adapters",relativePath:"serializers-adapters.md",headings:[{title:"Guidelines",id:"guidelines",depth:2},{title:"Gotchas",id:"gotchas",depth:2}],frontmatter:{},pluginData:{},parentLabel:"docs"},{url:"/docs/tests",title:"Test Helpers Organization",editUrl:"",relativeUrl:"tests",relativePath:"tests.md",headings:[{title:"Folder organization",id:"folder-organization",depth:2,headings:[{title:"/acceptance",id:"acceptance",depth:3},{title:"/helpers",id:"helpers",depth:3},{title:"integration",id:"integration",depth:3},{title:"pages",id:"pages",depth:3},{title:"unit",id:"unit",depth:3}]}],frontmatter:{},pluginData:{},parentLabel:"docs"}],children:[]}]}}})),define("vault/flash/object",["exports","ember-cli-flash/flash/object"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.default}})})),define("vault/helpers/-date-base",["exports","@ember/runloop","@ember/component/helper","ember"],(function(e,t,n,l){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default=n.default.extend({disableInterval:!1,compute(e,{interval:n}){l.default.testing||this.disableInterval||(this.clearTimer(),n&&(this.intervalTimer=setTimeout((()=>{(0,t.run)((()=>this.recompute()))}),parseInt(n,10))))},clearTimer(){clearTimeout(this.intervalTimer)},destroy(){this.clearTimer(),this._super(...arguments)}})})),define("vault/helpers/add-to-array",["exports","@ember/component/helper","@ember/debug"],(function(e,t,n){function l(e){return e.filter(((t,n)=>e.indexOf(t)===n))}function i(e,t){return l([...e].concat(t))}function r(e,t){Array.isArray(e)
const n=[...e]
return n.push(t),l(n)}Object.defineProperty(e,"__esModule",{value:!0}),e.addManyToArray=i,e.addToArray=r,e.default=void 0
e.default=(0,t.helper)((function([e,t]){return Array.isArray(t)?i(e,t):r(e,t)}))})),define("vault/helpers/add",["exports","@ember/component/helper"],(function(e,t){function n(e){return e.reduce(((e,t)=>parseInt(t,0)+e),0)}Object.defineProperty(e,"__esModule",{value:!0}),e.add=n,e.default=void 0
e.default=(0,t.helper)(n)})),define("vault/helpers/all-features",["exports","@ember/component/helper"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),e.allFeatures=l,e.default=void 0
const n=["HSM","Performance Replication","DR Replication","MFA","Sentinel","Seal Wrapping","Control Groups","Performance Standby","Namespaces","KMIP","Entropy Augmentation","Transform Secrets Engine","Secrets Sync"]
function l(){return n}e.default=(0,t.helper)(l)})),define("vault/helpers/and",["exports","ember-truth-helpers/helpers/and"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"and",{enumerable:!0,get:function(){return t.and}}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.default}})})),define("vault/helpers/append",["exports","ember-composable-helpers/helpers/append"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"append",{enumerable:!0,get:function(){return t.append}}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.default}})})),define("vault/helpers/assign",["exports","ember-assign-helper/helpers/assign"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.default}})})),define("vault/helpers/await",["exports","core/helpers/await"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.default}})})),define("vault/helpers/aws-regions",["exports","@ember/component/helper"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,e.regions=l
const n=["","us-east-1","us-east-2","us-west-1","us-west-2","ca-central-1","ap-south-1","ap-northeast-1","ap-northeast-2","ap-southeast-1","ap-southeast-2","eu-central-1","eu-west-1","eu-west-2","sa-east-1"]
function l(){return n.slice(0)}e.default=(0,t.helper)(l)})),define("vault/helpers/call",["exports","ember-composable-helpers/helpers/call"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"call",{enumerable:!0,get:function(){return t.call}}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.default}})})),define("vault/helpers/camelize",["exports","ember-cli-string-helpers/helpers/camelize"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"camelize",{enumerable:!0,get:function(){return t.camelize}}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.default}})})),define("vault/helpers/cancel-all",["exports","ember-concurrency/helpers/cancel-all"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.default}})})),define("vault/helpers/capitalize",["exports","ember-cli-string-helpers/helpers/capitalize"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"capitalize",{enumerable:!0,get:function(){return t.capitalize}}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.default}})})),define("vault/helpers/changelog-url-for",["exports","core/helpers/changelog-url-for"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"changelogUrlFor",{enumerable:!0,get:function(){return t.changelogUrlFor}}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.default}})})),define("vault/helpers/chunk",["exports","ember-composable-helpers/helpers/chunk"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"chunk",{enumerable:!0,get:function(){return t.chunk}}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.default}})})),define("vault/helpers/classify",["exports","ember-cli-string-helpers/helpers/classify"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"classify",{enumerable:!0,get:function(){return t.classify}}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.default}})})),define("vault/helpers/cluster-states",["exports","core/helpers/cluster-states"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"CLUSTER_STATES",{enumerable:!0,get:function(){return t.CLUSTER_STATES}}),Object.defineProperty(e,"clusterStates",{enumerable:!0,get:function(){return t.clusterStates}}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.default}})}))
define("vault/helpers/coerce-eq",["exports","@ember/component/helper"],(function(e,t){function n(e){return e[0]==e[1]}Object.defineProperty(e,"__esModule",{value:!0}),e.coerceEq=n,e.default=void 0
e.default=(0,t.helper)(n)})),define("vault/helpers/compact",["exports","ember-composable-helpers/helpers/compact"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.default}})})),define("vault/helpers/compute",["exports","ember-composable-helpers/helpers/compute"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"compute",{enumerable:!0,get:function(){return t.compute}}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.default}})})),define("vault/helpers/css-range",["exports","@lineal-viz/lineal/helpers/css-range"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.default}})})),define("vault/helpers/dasherize",["exports","ember-cli-string-helpers/helpers/dasherize"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"dasherize",{enumerable:!0,get:function(){return t.dasherize}}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.default}})})),define("vault/helpers/date-format",["exports","core/helpers/date-format"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.default}})})),define("vault/helpers/date-from-now",["exports","core/helpers/date-from-now"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.default}})})),define("vault/helpers/dec",["exports","ember-composable-helpers/helpers/dec"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"dec",{enumerable:!0,get:function(){return t.dec}}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.default}})})),define("vault/helpers/decode-uri",["exports","@ember/component/helper"],(function(e,t){function n(e){return decodeURI(e)}Object.defineProperty(e,"__esModule",{value:!0}),e.decodeUri=n,e.default=void 0
e.default=(0,t.helper)(n)})),define("vault/helpers/doc-link",["exports","core/helpers/doc-link"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.default}})})),define("vault/helpers/docfy-eq",["exports","@docfy/ember/helpers/docfy-eq"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.default}}),Object.defineProperty(e,"docfyEq",{enumerable:!0,get:function(){return t.docfyEq}})})),define("vault/helpers/drop",["exports","ember-composable-helpers/helpers/drop"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.default}})})),define("vault/helpers/element",["exports","ember-element-helper/helpers/element"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.default}})})),define("vault/helpers/ember-power-select-is-equal",["exports","ember-power-select/helpers/ember-power-select-is-equal"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.default}})})),define("vault/helpers/ember-power-select-is-group",["exports","ember-power-select/helpers/ember-power-select-is-group"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.default}})})),define("vault/helpers/ember-power-select-is-selected-present",["exports","ember-power-select/helpers/ember-power-select-is-selected-present"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.default}})})),define("vault/helpers/ensure-safe-component",["exports","@embroider/util"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.EnsureSafeComponentHelper}})})),define("vault/helpers/entries",["exports","ember-composable-helpers/helpers/entries"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.default}}),Object.defineProperty(e,"entries",{enumerable:!0,get:function(){return t.entries}})})),define("vault/helpers/eq",["exports","ember-truth-helpers/helpers/equal"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.default}}),Object.defineProperty(e,"equal",{enumerable:!0,get:function(){return t.equal}})})),define("vault/helpers/filter-by",["exports","ember-composable-helpers/helpers/filter-by"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.default}})})),define("vault/helpers/filter-wildcard",["exports","@ember/component/helper"],(function(e,t){function n([e,t]){if(!e||!t)return
!e.id&&e&&(e={id:e})
return(e=>t.filter((t=>new RegExp("^"+e.replace(/\*/g,".*")+"$").test(t))))(e.id).length}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,e.filterWildcard=n
e.default=(0,t.helper)(n)})),define("vault/helpers/filter",["exports","ember-composable-helpers/helpers/filter"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.default}})})),define("vault/helpers/find-by",["exports","ember-composable-helpers/helpers/find-by"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.default}})})),define("vault/helpers/flatten",["exports","ember-composable-helpers/helpers/flatten"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.default}}),Object.defineProperty(e,"flatten",{enumerable:!0,get:function(){return t.flatten}})})),define("vault/helpers/format-duration",["exports","core/helpers/format-duration"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.default}}),Object.defineProperty(e,"duration",{enumerable:!0,get:function(){return t.duration}})})),define("vault/helpers/format-number",["exports","core/helpers/format-number"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.default}}),Object.defineProperty(e,"formatNumber",{enumerable:!0,get:function(){return t.formatNumber}})})),define("vault/helpers/from-entries",["exports","ember-composable-helpers/helpers/from-entries"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.default}}),Object.defineProperty(e,"fromEntries",{enumerable:!0,get:function(){return t.fromEntries}})})),define("vault/helpers/group-by",["exports","ember-composable-helpers/helpers/group-by"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.default}})})),define("vault/helpers/gt",["exports","ember-truth-helpers/helpers/gt"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.default}}),Object.defineProperty(e,"gt",{enumerable:!0,get:function(){return t.gt}})})),define("vault/helpers/gte",["exports","ember-truth-helpers/helpers/gte"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.default}}),Object.defineProperty(e,"gte",{enumerable:!0,get:function(){return t.gte}})}))
define("vault/helpers/has-feature",["exports","core/helpers/has-feature"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.default}})})),define("vault/helpers/has-next",["exports","ember-composable-helpers/helpers/has-next"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.default}}),Object.defineProperty(e,"hasNext",{enumerable:!0,get:function(){return t.hasNext}})})),define("vault/helpers/has-permission",["exports","@ember/component/helper","@ember/service","@ember/object"],(function(e,t,n,l){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default=t.default.extend({permissions:(0,n.service)(),onPermissionsChange:(0,l.observer)("permissions.exactPaths","permissions.globPaths","permissions.canViewAll",(function(){this.recompute()})),compute([e],t){const{routeParams:n,requireAll:l}=t
return this.permissions.hasNavPermission(e,n,l)}})})),define("vault/helpers/has-previous",["exports","ember-composable-helpers/helpers/has-previous"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.default}}),Object.defineProperty(e,"hasPrevious",{enumerable:!0,get:function(){return t.hasPrevious}})})),define("vault/helpers/hds-link-to-models",["exports","@hashicorp/design-system-components/helpers/hds-link-to-models"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.default}})})),define("vault/helpers/hds-link-to-query",["exports","@hashicorp/design-system-components/helpers/hds-link-to-query"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.default}})})),define("vault/helpers/html-safe",["exports","ember-cli-string-helpers/helpers/html-safe"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.default}}),Object.defineProperty(e,"htmlSafe",{enumerable:!0,get:function(){return t.htmlSafe}})})),define("vault/helpers/humanize",["exports","ember-cli-string-helpers/helpers/humanize"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.default}}),Object.defineProperty(e,"humanize",{enumerable:!0,get:function(){return t.humanize}})})),define("vault/helpers/if-key",["exports","ember-keyboard/helpers/if-key.js"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.default}})})),define("vault/helpers/ignore-children",["exports","ember-modal-dialog/helpers/ignore-children"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.default}})})),define("vault/helpers/img-path",["exports","core/helpers/img-path"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.default}})})),define("vault/helpers/inc",["exports","ember-composable-helpers/helpers/inc"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.default}}),Object.defineProperty(e,"inc",{enumerable:!0,get:function(){return t.inc}})})),define("vault/helpers/includes",["exports","ember-composable-helpers/helpers/includes"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.default}}),Object.defineProperty(e,"includes",{enumerable:!0,get:function(){return t.includes}})})),define("vault/helpers/intersect",["exports","ember-composable-helpers/helpers/intersect"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.default}})})),define("vault/helpers/invoke",["exports","ember-composable-helpers/helpers/invoke"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.default}}),Object.defineProperty(e,"invoke",{enumerable:!0,get:function(){return t.invoke}})})),define("vault/helpers/is-active-route",["exports","core/helpers/is-active-route"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.default}})})),define("vault/helpers/is-active",["exports","ember-router-helpers/helpers/is-active"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.default}}),Object.defineProperty(e,"isActive",{enumerable:!0,get:function(){return t.isActive}})})),define("vault/helpers/is-after",["exports","vault/helpers/-date-base","date-fns"],(function(e,t,n){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default=t.default.extend({compute:function([e,t]){return this._super(...arguments),(0,n.isAfter)(e,t)}})})),define("vault/helpers/is-array",["exports","ember-truth-helpers/helpers/is-array"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.default}}),Object.defineProperty(e,"isArray",{enumerable:!0,get:function(){return t.isArray}})})),define("vault/helpers/is-before",["exports","vault/helpers/-date-base","date-fns"],(function(e,t,n){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default=t.default.extend({compute:function([e,t]){return this._super(...arguments),(0,n.isBefore)(e,t)}})})),define("vault/helpers/is-empty-value",["exports","core/helpers/is-empty-value"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.default}})})),define("vault/helpers/is-empty",["exports","ember-truth-helpers/helpers/is-empty"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.default}})})),define("vault/helpers/is-equal",["exports","ember-truth-helpers/helpers/is-equal"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.default}}),Object.defineProperty(e,"isEqual",{enumerable:!0,get:function(){return t.isEqual}})})),define("vault/helpers/is-wildcard-string",["exports","@ember/component/helper"],(function(e,t){function n([e]){if(!e)return!1
if("object"==typeof e){if(Object.prototype.hasOwnProperty.call(e,"store"))return!1
e=Object.values(e).toString()}return e.includes("*")}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,e.isWildcardString=n
e.default=(0,t.helper)(n)})),define("vault/helpers/join",["exports","ember-composable-helpers/helpers/join"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.default}})})),define("vault/helpers/jsonify",["exports","core/helpers/jsonify"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.default}}),Object.defineProperty(e,"jsonify",{enumerable:!0,get:function(){return t.jsonify}})})),define("vault/helpers/keys",["exports","ember-composable-helpers/helpers/keys"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.default}}),Object.defineProperty(e,"keys",{enumerable:!0,get:function(){return t.keys}})})),define("vault/helpers/loose-equal",["exports","core/helpers/loose-equal"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.default}})})),define("vault/helpers/lowercase",["exports","ember-cli-string-helpers/helpers/lowercase"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.default}}),Object.defineProperty(e,"lowercase",{enumerable:!0,get:function(){return t.lowercase}})})),define("vault/helpers/lt",["exports","ember-truth-helpers/helpers/lt"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.default}}),Object.defineProperty(e,"lt",{enumerable:!0,get:function(){return t.lt}})}))
define("vault/helpers/lte",["exports","ember-truth-helpers/helpers/lte"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.default}}),Object.defineProperty(e,"lte",{enumerable:!0,get:function(){return t.lte}})})),define("vault/helpers/map-by",["exports","ember-composable-helpers/helpers/map-by"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.default}})})),define("vault/helpers/map",["exports","ember-composable-helpers/helpers/map"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.default}})})),define("vault/helpers/media",["exports","ember-responsive/helpers/media"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.default}})})),define("vault/helpers/message-types",["exports","core/helpers/message-types"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"MESSAGE_TYPES",{enumerable:!0,get:function(){return t.MESSAGE_TYPES}}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.default}}),Object.defineProperty(e,"messageTypes",{enumerable:!0,get:function(){return t.messageTypes}})})),define("vault/helpers/mountable-auth-methods",["exports","@ember/component/helper"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),e.allMethods=function(){return[...l,...n]},e.default=void 0,e.methods=i
const n=[{displayName:"SAML",value:"saml",type:"saml",category:"generic",glyph:"saml-color"}],l=[{displayName:"AliCloud",value:"alicloud",type:"alicloud",category:"cloud",glyph:"alibaba-color"},{displayName:"AppRole",value:"approle",type:"approle",category:"generic",glyph:"cpu"},{displayName:"AWS",value:"aws",type:"aws",category:"cloud",glyph:"aws-color"},{displayName:"Azure",value:"azure",type:"azure",category:"cloud",glyph:"azure-color"},{displayName:"Google Cloud",value:"gcp",type:"gcp",category:"cloud",glyph:"gcp-color"},{displayName:"GitHub",value:"github",type:"github",category:"cloud",glyph:"github-color"},{displayName:"JWT",value:"jwt",type:"jwt",glyph:"jwt",category:"generic"},{displayName:"OIDC",value:"oidc",type:"oidc",glyph:"openid-color",category:"generic"},{displayName:"Kubernetes",value:"kubernetes",type:"kubernetes",category:"infra",glyph:"kubernetes-color"},{displayName:"LDAP",value:"ldap",type:"ldap",glyph:"folder-users",category:"infra"},{displayName:"Okta",value:"okta",type:"okta",category:"infra",glyph:"okta-color"},{displayName:"RADIUS",value:"radius",type:"radius",glyph:"mainframe",category:"infra"},{displayName:"TLS Certificates",value:"cert",type:"cert",category:"generic",glyph:"certificate"},{displayName:"Username & Password",value:"userpass",type:"userpass",category:"generic",glyph:"users"}]
function i(){return l.slice()}e.default=(0,t.helper)(i)})),define("vault/helpers/mountable-secret-engines",["exports","@ember/component/helper"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),e.WIF_ENGINES=e.CONFIGURABLE_SECRET_ENGINES=void 0,e.allEngines=a,e.configurableSecretEngines=function(){return l.slice()},e.default=void 0,e.isAddonEngine=function(e,t){if("kv"===e&&1===t)return!1
const n=a().find((t=>t.type===e))?.engineRoute
return!!n},e.mountableEngines=r,e.wifEngines=function(){return i.slice()}
const n=[{displayName:"KMIP",type:"kmip",glyph:"lock",engineRoute:"kmip.scopes.index",category:"generic",requiredFeature:"KMIP"},{displayName:"Transform",type:"transform",category:"generic",requiredFeature:"Transform Secrets Engine",glyph:"transform-data"},{displayName:"Key Management",type:"keymgmt",glyph:"key",category:"cloud",requiredFeature:"Key Management Secrets Engine",routeQueryParams:{tab:"provider"}}],l=[{displayName:"AliCloud",type:"alicloud",glyph:"alibaba-color",category:"cloud"},{displayName:"AWS",type:"aws",category:"cloud",glyph:"aws-color"},{displayName:"Azure",type:"azure",category:"cloud",glyph:"azure-color"},{displayName:"Consul",type:"consul",glyph:"consul-color",category:"infra"},{displayName:"Databases",type:"database",category:"infra",glyph:"database"},{displayName:"Google Cloud",type:"gcp",category:"cloud",glyph:"gcp-color"},{displayName:"Google Cloud KMS",type:"gcpkms",category:"cloud",glyph:"gcp-color"},{displayName:"KV",type:"kv",glyph:"key-values",engineRoute:"kv.list",category:"generic"},{displayName:"Nomad",type:"nomad",glyph:"nomad-color",category:"infra"},{displayName:"PKI Certificates",type:"pki",glyph:"certificate",engineRoute:"pki.overview",category:"generic"},{displayName:"RabbitMQ",type:"rabbitmq",glyph:"rabbitmq-color",category:"infra"},{displayName:"SSH",type:"ssh",glyph:"terminal-screen",category:"generic"},{displayName:"Transit",type:"transit",glyph:"swap-horizontal",category:"generic"},{displayName:"TOTP",type:"totp",glyph:"history",category:"generic"},{displayName:"LDAP",type:"ldap",engineRoute:"ldap.overview",category:"generic",glyph:"folder-users"},{displayName:"Kubernetes",type:"kubernetes",engineRoute:"kubernetes.overview",category:"generic",glyph:"kubernetes-color"}],i=e.WIF_ENGINES=["aws"]
e.CONFIGURABLE_SECRET_ENGINES=["aws","ssh"]
function r(){return l.slice()}function a(){return[...l,...n]}e.default=(0,t.helper)(r)})),define("vault/helpers/multi-line-join",["exports","@ember/component/helper"],(function(e,t){function n([e]){return e.join("\n")}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,e.multiLineJoin=n
e.default=(0,t.helper)(n)})),define("vault/helpers/nav-to-route",["exports","@ember/service","@ember/component/helper"],(function(e,t,n){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default=n.default.extend({router:(0,t.service)(),compute([e,...t],{replace:n=!1}){return()=>{const l=this.router
return(n?l.replaceWith:l.transitionTo).call(l,e,...t)}}})})),define("vault/helpers/new-line-split",["exports","core/helpers/new-line-split"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.default}})})),define("vault/helpers/next",["exports","ember-composable-helpers/helpers/next"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.default}}),Object.defineProperty(e,"next",{enumerable:!0,get:function(){return t.next}})})),define("vault/helpers/noop",["exports","ember-composable-helpers/helpers/noop"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.default}}),Object.defineProperty(e,"noop",{enumerable:!0,get:function(){return t.noop}})})),define("vault/helpers/not-eq",["exports","ember-truth-helpers/helpers/not-equal"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.default}}),Object.defineProperty(e,"notEqualHelper",{enumerable:!0,get:function(){return t.notEqualHelper}})})),define("vault/helpers/not",["exports","ember-truth-helpers/helpers/not"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.default}}),Object.defineProperty(e,"not",{enumerable:!0,get:function(){return t.not}})})),define("vault/helpers/now",["exports","vault/helpers/-date-base"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default=t.default.extend({compute(){return this._super(...arguments),Date.now()}})})),define("vault/helpers/number-to-word",["exports","@ember/component/helper"],(function(e,t){function n(e,t){const n={0:"zero",1:"one",2:"two",3:"three",4:"four",5:"five",6:"six",7:"seven",8:"eight",9:"nine"}[e]||e
return t&&"string"==typeof n?`${n.charAt(0).toUpperCase()}${n.slice(1)}`:n}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,e.numberToWord=n
e.default=(0,t.helper)((function([e],{capitalize:t}){return n(e,t)}))})),define("vault/helpers/object-at",["exports","ember-composable-helpers/helpers/object-at"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.default}}),Object.defineProperty(e,"objectAt",{enumerable:!0,get:function(){return t.objectAt}})})),define("vault/helpers/on-key",["exports","ember-keyboard/helpers/on-key.js"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.default}})})),define("vault/helpers/optional",["exports","ember-composable-helpers/helpers/optional"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.default}}),Object.defineProperty(e,"optional",{enumerable:!0,get:function(){return t.optional}})})),define("vault/helpers/options-for-backend",["exports","core/helpers/options-for-backend"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.default}})})),define("vault/helpers/or",["exports","ember-truth-helpers/helpers/or"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.default}}),Object.defineProperty(e,"or",{enumerable:!0,get:function(){return t.or}})})),define("vault/helpers/page-title",["exports","ember-page-title/helpers/page-title"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.default}})})),define("vault/helpers/path-or-array",["exports","core/helpers/path-or-array"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.default}})})),define("vault/helpers/perform",["exports","ember-concurrency/helpers/perform"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.default}})})),define("vault/helpers/pick",["exports","ember-composable-helpers/helpers/pick"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.default}}),Object.defineProperty(e,"pick",{enumerable:!0,get:function(){return t.pick}})})),define("vault/helpers/pipe-action",["exports","ember-composable-helpers/helpers/pipe-action"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.default}})})),define("vault/helpers/pipe",["exports","ember-composable-helpers/helpers/pipe"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.default}}),Object.defineProperty(e,"pipe",{enumerable:!0,get:function(){return t.pipe}})})),define("vault/helpers/pluralize",["exports","ember-inflector/lib/helpers/pluralize"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default=t.default})),define("vault/helpers/previous",["exports","ember-composable-helpers/helpers/previous"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.default}}),Object.defineProperty(e,"previous",{enumerable:!0,get:function(){return t.previous}})})),define("vault/helpers/queue",["exports","ember-composable-helpers/helpers/queue"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.default}}),Object.defineProperty(e,"queue",{enumerable:!0,get:function(){return t.queue}})}))
define("vault/helpers/range",["exports","ember-composable-helpers/helpers/range"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.default}}),Object.defineProperty(e,"range",{enumerable:!0,get:function(){return t.range}})})),define("vault/helpers/reduce",["exports","ember-composable-helpers/helpers/reduce"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.default}})})),define("vault/helpers/reject-by",["exports","ember-composable-helpers/helpers/reject-by"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.default}})})),define("vault/helpers/remove-from-array",["exports","@ember/component/helper","@ember/debug"],(function(e,t,n){function l(e,t){return[...e||[]].filter((e=>!t.includes(e)))}function i(e,t){const n=[...e],l=n.indexOf(t)
return l>=0&&n.splice(l,1),(i=n).filter(((e,t)=>i.indexOf(e)===t))
var i}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,e.removeFromArray=i,e.removeManyFromArray=l
e.default=(0,t.helper)((function([e,t]){return Array.isArray(t)?l(e,t):i(e,t)}))})),define("vault/helpers/repeat",["exports","ember-composable-helpers/helpers/repeat"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.default}}),Object.defineProperty(e,"repeat",{enumerable:!0,get:function(){return t.repeat}})})),define("vault/helpers/replication-action-for-mode",["exports","core/helpers/replication-action-for-mode"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.default}})})),define("vault/helpers/replication-mode-description",["exports","core/helpers/replication-mode-description"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.default}})})),define("vault/helpers/reverse",["exports","ember-composable-helpers/helpers/reverse"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.default}})})),define("vault/helpers/root-url",["exports","ember-router-helpers/helpers/root-url"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.default}}),Object.defineProperty(e,"rootUrl",{enumerable:!0,get:function(){return t.rootUrl}})})),define("vault/helpers/route-params-for",["exports","@ember/component/helper","@ember/service"],(function(e,t,n){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default=t.default.extend({permissions:(0,n.service)(),compute([e]){return this.permissions.navPathParams(e)}})})),define("vault/helpers/route-params",["exports","ember-router-helpers/helpers/route-params"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.default}}),Object.defineProperty(e,"routeParams",{enumerable:!0,get:function(){return t.routeParams}})})),define("vault/helpers/sanitized-html",["exports","core/helpers/sanitized-html"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.default}})})),define("vault/helpers/scale-band",["exports","@lineal-viz/lineal/helpers/scale-band"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.default}})})),define("vault/helpers/scale-diverging-log",["exports","@lineal-viz/lineal/helpers/scale-diverging-log"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.default}})})),define("vault/helpers/scale-diverging-pow",["exports","@lineal-viz/lineal/helpers/scale-diverging-pow"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.default}})})),define("vault/helpers/scale-diverging-sqrt",["exports","@lineal-viz/lineal/helpers/scale-diverging-sqrt"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.default}})})),define("vault/helpers/scale-diverging-symlog",["exports","@lineal-viz/lineal/helpers/scale-diverging-symlog"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.default}})})),define("vault/helpers/scale-diverging",["exports","@lineal-viz/lineal/helpers/scale-diverging"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.default}})})),define("vault/helpers/scale-fn-compute",["exports","@lineal-viz/lineal/helpers/scale-fn-compute"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.default}})})),define("vault/helpers/scale-fn-derive",["exports","@lineal-viz/lineal/helpers/scale-fn-derive"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.default}})})),define("vault/helpers/scale-identity",["exports","@lineal-viz/lineal/helpers/scale-identity"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.default}})})),define("vault/helpers/scale-linear",["exports","@lineal-viz/lineal/helpers/scale-linear"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.default}})})),define("vault/helpers/scale-log",["exports","@lineal-viz/lineal/helpers/scale-log"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.default}})})),define("vault/helpers/scale-ordinal",["exports","@lineal-viz/lineal/helpers/scale-ordinal"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.default}})})),define("vault/helpers/scale-point",["exports","@lineal-viz/lineal/helpers/scale-point"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.default}})})),define("vault/helpers/scale-pow",["exports","@lineal-viz/lineal/helpers/scale-pow"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.default}})})),define("vault/helpers/scale-quantile",["exports","@lineal-viz/lineal/helpers/scale-quantile"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.default}})})),define("vault/helpers/scale-quantize",["exports","@lineal-viz/lineal/helpers/scale-quantize"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.default}})})),define("vault/helpers/scale-radial",["exports","@lineal-viz/lineal/helpers/scale-radial"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.default}})})),define("vault/helpers/scale-sqrt",["exports","@lineal-viz/lineal/helpers/scale-sqrt"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.default}})}))
define("vault/helpers/scale-symlog",["exports","@lineal-viz/lineal/helpers/scale-symlog"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.default}})})),define("vault/helpers/scale-threshold",["exports","@lineal-viz/lineal/helpers/scale-threshold"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.default}})})),define("vault/helpers/scale-time",["exports","@lineal-viz/lineal/helpers/scale-time"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.default}})})),define("vault/helpers/scale-utc",["exports","@lineal-viz/lineal/helpers/scale-utc"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.default}})})),define("vault/helpers/secret-query-params",["exports","@ember/component/helper"],(function(e,t){function n([e,t=""],{asQueryParams:n}){const l={transit:{tab:"actions"},database:{type:t},keymgmt:{itemType:"provider"===t?"provider":"key"}}[e]
return l&&n?{isQueryParams:!0,values:l}:l}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,e.secretQueryParams=n
e.default=(0,t.helper)(n)})),define("vault/helpers/set-flash-message",["exports","core/helpers/set-flash-message"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.default}})})),define("vault/helpers/sha2-digest-sizes",["exports","@ember/component/helper"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,e.sha2DigestSizes=l
const n=["sha2-224","sha2-256","sha2-384","sha2-512"]
function l(){return n}e.default=(0,t.helper)(l)})),define("vault/helpers/shuffle",["exports","ember-composable-helpers/helpers/shuffle"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.default}}),Object.defineProperty(e,"shuffle",{enumerable:!0,get:function(){return t.shuffle}})})),define("vault/helpers/singularize",["exports","ember-inflector/lib/helpers/singularize"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default=t.default})),define("vault/helpers/slice",["exports","ember-composable-helpers/helpers/slice"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.default}})})),define("vault/helpers/sort-by",["exports","ember-composable-helpers/helpers/sort-by"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.default}})})),define("vault/helpers/split-object",["exports","@ember/component/helper"],(function(e,t){function n(e,t){const n={},l={}
return Object.keys(e).forEach((i=>{t.includes(i)?n[i]=e[i]:l[i]=e[i]})),[n,l]}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,e.splitObject=n
e.default=(0,t.helper)(n)})),define("vault/helpers/stack-h",["exports","@lineal-viz/lineal/helpers/stack-h"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.default}})})),define("vault/helpers/stack-v",["exports","@lineal-viz/lineal/helpers/stack-v"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.default}})})),define("vault/helpers/stack",["exports","@lineal-viz/lineal/helpers/stack"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.default}})})),define("vault/helpers/stringify",["exports","core/helpers/stringify"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.default}}),Object.defineProperty(e,"stringify",{enumerable:!0,get:function(){return t.stringify}})})),define("vault/helpers/sub",["exports","@ember/component/helper"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default=(0,t.helper)((function([e,...t]){return t.reduce(((e,t)=>e-parseInt(t,0)),e)}))})),define("vault/helpers/supported-auth-backends",["exports","@ember/component/helper"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),e.allSupportedAuthBackends=function(){return[...n,...l]},e.default=void 0,e.supportedAuthBackends=i
const n=[{type:"token",typeDisplay:"Token",description:"Token authentication.",tokenPath:"id",displayNamePath:"display_name",formAttributes:["token"]},{type:"userpass",typeDisplay:"Username",description:"A simple username and password backend.",tokenPath:"client_token",displayNamePath:"metadata.username",formAttributes:["username","password"]},{type:"ldap",typeDisplay:"LDAP",description:"LDAP authentication.",tokenPath:"client_token",displayNamePath:"metadata.username",formAttributes:["username","password"]},{type:"okta",typeDisplay:"Okta",description:"Authenticate with your Okta username and password.",tokenPath:"client_token",displayNamePath:"metadata.username",formAttributes:["username","password"]},{type:"jwt",typeDisplay:"JWT",description:"Authenticate using JWT or OIDC provider.",tokenPath:"client_token",displayNamePath:"display_name",formAttributes:["role","jwt"]},{type:"oidc",typeDisplay:"OIDC",description:"Authenticate using JWT or OIDC provider.",tokenPath:"client_token",displayNamePath:"display_name",formAttributes:["role","jwt"]},{type:"radius",typeDisplay:"RADIUS",description:"Authenticate with your RADIUS username and password.",tokenPath:"client_token",displayNamePath:"metadata.username",formAttributes:["username","password"]},{type:"github",typeDisplay:"GitHub",description:"GitHub authentication.",tokenPath:"client_token",displayNamePath:["metadata.org","metadata.username"],formAttributes:["token"]}],l=[{type:"saml",typeDisplay:"SAML",description:"Authenticate using SAML provider.",tokenPath:"client_token",displayNamePath:"display_name",formAttributes:["role"]}]
function i(){return[...n]}e.default=(0,t.helper)(i)})),define("vault/helpers/supported-managed-auth-backends",["exports","@ember/component/helper"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,e.supportedManagedAuthBackends=l
const n=["cert","kubernetes","ldap","okta","radius","userpass"]
function l(){return n}e.default=(0,t.helper)(l)})),define("vault/helpers/supported-secret-backends",["exports","@ember/component/helper"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,e.supportedSecretBackends=l
const n=["aws","database","cubbyhole","generic","kv","pki","ssh","transit","kmip","transform","keymgmt","kubernetes","ldap"]
function l(){return n}e.default=(0,t.helper)(l)})),define("vault/helpers/svg-jar",["exports","ember-svg-jar/helpers/svg-jar"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.default}}),Object.defineProperty(e,"svgJar",{enumerable:!0,get:function(){return t.svgJar}})})),define("vault/helpers/sync-destinations",["exports","core/helpers/sync-destinations"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.default}}),Object.defineProperty(e,"destinationTypes",{enumerable:!0,get:function(){return t.destinationTypes}}),Object.defineProperty(e,"findDestination",{enumerable:!0,get:function(){return t.findDestination}}),Object.defineProperty(e,"syncDestinations",{enumerable:!0,get:function(){return t.syncDestinations}})})),define("vault/helpers/tabs-for-auth-section",["exports","@ember/component/helper","ember-inflector","@ember/string"],(function(e,t,n,l){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,e.tabsForAuthSection=a
const i={aws:[{label:"Client",route:"vault.cluster.settings.auth.configure.section",routeParams:["client"]},{label:"Identity Allow List Tidy",route:"vault.cluster.settings.auth.configure.section",routeParams:["identity-accesslist"]},{label:"Role Tag Deny List Tidy",route:"vault.cluster.settings.auth.configure.section",routeParams:["roletag-denylist"]}],azure:[{label:"Configuration",route:"vault.cluster.settings.auth.configure.section",routeParams:["configuration"]}],github:[{label:"Configuration",route:"vault.cluster.settings.auth.configure.section",routeParams:["configuration"]}],gcp:[{label:"Configuration",route:"vault.cluster.settings.auth.configure.section",routeParams:["configuration"]}],jwt:[{label:"Configuration",route:"vault.cluster.settings.auth.configure.section",routeParams:["configuration"]}],oidc:[{label:"Configuration",route:"vault.cluster.settings.auth.configure.section",routeParams:["configuration"]}],kubernetes:[{label:"Configuration",route:"vault.cluster.settings.auth.configure.section",routeParams:["configuration"]}],ldap:[{label:"Configuration",route:"vault.cluster.settings.auth.configure.section",routeParams:["configuration"]}],okta:[{label:"Configuration",route:"vault.cluster.settings.auth.configure.section",routeParams:["configuration"]}],radius:[{label:"Configuration",route:"vault.cluster.settings.auth.configure.section",routeParams:["configuration"]}]},r={}
function a([e,t="authSettings",a]){let o
return"authSettings"===t?(o=(i[e.type]||[]).slice(),o.push({label:"Method Options",route:"vault.cluster.settings.auth.configure.section",routeParams:[e.id,"options"]}),o):(a||e.paths?(e.paths&&(a=e.paths.paths.filter((e=>e.navigation))),o=a.compact().map((e=>({label:(0,l.capitalize)((0,n.pluralize)(e.itemName)),route:"vault.cluster.access.method.item.list",routeParams:[e.itemType]})))):o=(r[e.type]||[]).slice(),o.push({label:"Configuration",route:"vault.cluster.access.method.section",routeParams:["configuration"]}),o.map((t=>({label:t.label,route:t.route,routeParams:[e.id,...t.routeParams]}))))}e.default=(0,t.helper)(a)})),define("vault/helpers/tabs-for-identity-show",["exports","@ember/component/helper"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=e.TABS=void 0,e.tabsForIdentityShow=l
const n=e.TABS={entity:["details","aliases","policies","groups","metadata"],"entity-alias":["details","metadata"],group:["details","aliases","policies","members","parent-groups","metadata"],"group-internal":["details","policies","members","parent-groups","metadata"],"group-external":["details","aliases","policies","members","parent-groups","metadata"],"group-alias":["details"]}
function l([e,t]){let l=e
return t&&(l=`${l}-${t}`),n[l]}e.default=(0,t.helper)(l)})),define("vault/helpers/take",["exports","ember-composable-helpers/helpers/take"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.default}})})),define("vault/helpers/task",["exports","ember-concurrency/helpers/task"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.default}})})),define("vault/helpers/titleize",["exports","ember-cli-string-helpers/helpers/titleize"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.default}}),Object.defineProperty(e,"titleize",{enumerable:!0,get:function(){return t.titleize}})})),define("vault/helpers/to-label",["exports","core/helpers/to-label"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.default}}),Object.defineProperty(e,"toLabel",{enumerable:!0,get:function(){return t.toLabel}})})),define("vault/helpers/toggle-action",["exports","ember-composable-helpers/helpers/toggle-action"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.default}})})),define("vault/helpers/toggle",["exports","ember-composable-helpers/helpers/toggle"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.default}}),Object.defineProperty(e,"toggle",{enumerable:!0,get:function(){return t.toggle}})}))
define("vault/helpers/tools-actions",["exports","@ember/component/helper"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,e.toolsActions=l
const n=["wrap","lookup","unwrap","rewrap","random","hash"]
function l(){return n}e.default=(0,t.helper)(l)})),define("vault/helpers/transition-to",["exports","ember-router-helpers/helpers/transition-to"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.default}}),Object.defineProperty(e,"transitionTo",{enumerable:!0,get:function(){return t.transitionTo}})})),define("vault/helpers/trim",["exports","ember-cli-string-helpers/helpers/trim"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.default}}),Object.defineProperty(e,"trim",{enumerable:!0,get:function(){return t.trim}})})),define("vault/helpers/truncate",["exports","ember-cli-string-helpers/helpers/truncate"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.default}}),Object.defineProperty(e,"truncate",{enumerable:!0,get:function(){return t.truncate}})})),define("vault/helpers/underscore",["exports","ember-cli-string-helpers/helpers/underscore"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.default}}),Object.defineProperty(e,"underscore",{enumerable:!0,get:function(){return t.underscore}})})),define("vault/helpers/union",["exports","ember-composable-helpers/helpers/union"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.default}})})),define("vault/helpers/uppercase",["exports","ember-cli-string-helpers/helpers/uppercase"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.default}}),Object.defineProperty(e,"uppercase",{enumerable:!0,get:function(){return t.uppercase}})})),define("vault/helpers/url-for",["exports","ember-router-helpers/helpers/url-for"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.default}}),Object.defineProperty(e,"urlFor",{enumerable:!0,get:function(){return t.urlFor}})})),define("vault/helpers/values",["exports","ember-composable-helpers/helpers/values"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.default}}),Object.defineProperty(e,"values",{enumerable:!0,get:function(){return t.values}})})),define("vault/helpers/w",["exports","ember-cli-string-helpers/helpers/w"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.default}}),Object.defineProperty(e,"w",{enumerable:!0,get:function(){return t.w}})})),define("vault/helpers/without",["exports","ember-composable-helpers/helpers/without"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.default}}),Object.defineProperty(e,"without",{enumerable:!0,get:function(){return t.without}})})),define("vault/helpers/xor",["exports","ember-truth-helpers/helpers/xor"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.default}}),Object.defineProperty(e,"xor",{enumerable:!0,get:function(){return t.xor}})})),define("vault/initializers/deprecation-filter",["exports","@ember/debug"],(function(e,t){function n(){(0,t.registerDeprecationHandler)(((e,t,n)=>{t?.until.includes("5.0")&&t?.id.startsWith("ember-data")||n(e,t)}))}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,e.initialize=n
e.default={initialize:n}})),define("vault/initializers/disable-ember-inspector",["exports","vault/config/environment"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default={name:"ember-inspect-disable",initialize:function(){"production"===t.default.environment&&(window.NO_EMBER_DEBUG=!0)}}})),define("vault/initializers/ember-cli-mirage",["exports"],(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default={name:"ember-cli-mirage",initialize(){}}})),define("vault/initializers/ember-data-data-adapter",["exports","@ember-data/debug/setup"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.default}})})),define("vault/initializers/ember-data-identifiers",["exports","@ember-data/store","@ember/string","uuid"],(function(e,t,n,l){function i(){(0,t.setIdentifierGenerationMethod)((e=>e.lid?e.lid:e.id?`@lid:${(0,n.dasherize)(e.type)}-${e.id}`:(0,l.v4)()))}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,e.initialize=i
e.default={name:"ember-data-identifiers",initialize:i}})),define("vault/initializers/ember-data",["exports","ember-data","ember-data/setup-container"],(function(e,t,n){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default={name:"ember-data",initialize:n.default}})),define("vault/initializers/ember-responsive-breakpoints",["exports","ember-responsive/initializers/responsive"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default=t.default})),define("vault/initializers/enable-engines",["exports","vault/config/environment"],(function(e,t){function n(){t.default.addRootMounts=function(){this.mount("replication")}}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,e.initialize=n
e.default={initialize:n}})),define("vault/initializers/engines",["exports","ember-engines/initializers/engines"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.default}}),Object.defineProperty(e,"initialize",{enumerable:!0,get:function(){return t.initialize}})})),define("vault/instance-initializers/add-modals-container",["exports","ember-modal-dialog/instance-initializers/add-modals-container"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default={name:"add-modals-container",initialize:t.default}})),define("vault/instance-initializers/ember-data",["exports"],(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default={name:"ember-data",initialize(){}}})),define("vault/instance-initializers/load-asset-manifest",["exports","vault/config/asset-manifest"],(function(e,t){function n(e){e.lookup("service:asset-loader").pushManifest(t.default)}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,e.initialize=n
e.default={name:"load-asset-manifest",initialize:n}})),define("vault/instance-initializers/load-sprite",["exports","@hashicorp/ember-flight-icons/instance-initializers/load-sprite"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.default}})})),define("vault/instance-initializers/track-csp-event",["exports"],(function(e){function t(e){e.lookup("service:csp-event").attach()}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,e.initialize=t
e.default={name:"track-csp-event",initialize:t}})),define("vault/lib/arg-tokenizer",["exports"],(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(e){if(Array.isArray(e))return e
e=e.trim()
for(var t=0,n=null,l=null,i=null,r=[],a=0;a<e.length;a++)n=l," "!==(l=e.charAt(a))||i?(l===i?(r[t]||(r[t]=""),i=null):"'"!==l&&'"'!==l||i||(i=l),r[t]||(r[t]=""),r[t]+=l):" "!==n&&t++
return r}})),define("vault/lib/console-helpers",["exports","core/utils/key-codes","shell-quote","vault/lib/arg-tokenizer"],(function(e,t,n,l){Object.defineProperty(e,"__esModule",{value:!0}),e.executeUICommand=function(e,t,n){const l=e.startsWith("api")?"api":e,i=r.includes(l)
i&&t(e)
const a=n[l]
a&&"function"==typeof a&&a()
return i},e.extractDataFromStrings=function(e){return e?e.reduce(((e,t)=>{const[n="",l=""]=t.split(/=(.+)?/)
if(!n)return e
const i=e[n]
return i?(e[n]=Array.isArray(i)?[...i,l]:[i,l],e):(e[n]=l,e)}),{}):{}},e.extractFlagsFromStrings=function(e,t){return e?e.reduce(((e,n)=>{const[l,i]=n.split(/=(.+)?/)
if(!l)return e
let r=l.replace(/^-/,"")
return"wrap-ttl"===r?r="wrapTTL":"write"===t&&("f"!==r&&"-force"!==r||(r="force")),e[r]=i||!0,e}),{}):{}},e.formattedErrorFromInput=function(e,t,n,l){if(void 0===e)return{type:"error",content:"A path is required to make a request."}
if("write"===t&&!n.force&&0===l.length)return{type:"error",content:"Must supply data or use -force"}
return},e.logFromError=function(e,t,n){let l
const{httpStatus:i,path:r}=e
l=`Error ${{read:"reading from","kv-get":"reading secret",write:"writing to",list:"listing",delete:"deleting at"}[n]}: ${t}.\nURL: ${r}\nCode: ${i}`,"string"==typeof e.errors[0]&&(l=`${l}\nErrors:\n  ${e.errors.join("\n  ")}`)
return{type:"error",content:l}},e.logFromResponse=function(e,t,n,l){const{format:i,field:r}=l,a=e&&(e.auth||e.data||e.wrap_info),o=a||e
if(!a){if("write"===n)return{type:"success",content:`Success! Data written to: ${t}`}
if("delete"===n)return{type:"success",content:`Success! Data deleted (if it existed) at: ${t}`}}if(r){const e=o[r]
let t
if(e){if(i&&"json"===i)return{type:"json",content:e}
t="string"==typeof e?{type:"text",content:e}:"number"==typeof e||"boolean"==typeof e||Array.isArray(e)?{type:"text",content:JSON.stringify(e)}:{type:"object",content:e}}else t={type:"error",content:`Field "${r}" not present in secret`}
return t}if(i&&"json"===i)return{type:"json",content:e}
if("list"===n)return{type:"list",content:o}
return{type:"object",content:o}},e.parseCommand=function(e){const t=(0,l.default)((0,n.parse)(e))
"vault"===t[0]&&t.shift()
const[r="",...a]=t
let o=""
const s=[],u=[]
if(a.forEach((e=>{if(e.startsWith("-"))s.push(e)
else if(o){const t=e.split(/=(.+)/).filter((e=>""!==e)).join("=")
u.push(t)}else o=e})),!i.includes(r))throw new Error("invalid command")
return{method:r,flagArray:s,path:o,dataArray:u}},e.shiftCommandIndex=function(e,n,l){let i
const r=n.length
if(!r)return[]
e===t.default.UP?(l-=1)<0&&(l=r-1):((l+=1)===r&&(i=""),l>r&&(l-=1))
if(""!==i){const e=n[l]
i=e?.content}return[l,i]}
const i=["read","write","list","delete","kv-get"],r=["api","clearall","clear","fullscreen","refresh"]})),define("vault/lib/control-group-error",["exports","@ember-data/adapter/error"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
class n extends t.default{constructor(e){const{accessor:t,creation_path:n,creation_time:l,token:i,ttl:r}=e
super(),this.message="Control Group encountered",this.token=i,this.accessor=t,this.creation_path=n,this.creation_time=l,this.ttl=r}}e.default=n})),define("vault/lib/kv-object",["exports","@ember/array/proxy","@ember/utils","@ember/object/internals"],(function(e,t,n,l){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default=t.default.extend({fromJSON(e){if(e&&"object"!==(0,n.typeOf)(e))throw new Error("Vault expects data to be formatted as an JSON object.")
const t=Object.keys(e||[]).map((t=>{const n={name:t,value:e[t]}
return(0,l.guidFor)(n),n}))
return this.setObjects(t.sort(((e,t)=>""===e.name?1:""===t.name?-1:e.name.localeCompare(t.name)))),this},fromJSONString(e){return this.fromJSON(JSON.parse(e))},toJSON(e=!1){return this.reduce(((t,n)=>{if(!e&&""===n.value&&""===n.name)return t
const l=void 0===n.value?"":n.value
return t[n.name||""]=l,t}),{})},toJSONString(e){return JSON.stringify(this.toJSON(e),null,2)},isAdvanced(){return this.any((e=>"string"!=typeof e.value))}})}))
define("vault/lib/local-storage",["exports"],(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default={isLocalStorageSupported(){try{const e="__storage__test"
return window.localStorage.setItem(e,null),window.localStorage.removeItem(e),!0}catch(e){throw e.errors=["This is likely due to your browser's cookie settings."],e}},getItem(e){const t=window.localStorage.getItem(e)
return t&&JSON.parse(t)},setItem(e,t){window.localStorage.setItem(e,JSON.stringify(t))},removeItem:e=>window.localStorage.removeItem(e),keys:()=>Object.keys(window.localStorage),cleanupStorage(e,t){if(!e)return
const n=this.keys().filter((t=>t.startsWith(e)))
n?.forEach((e=>{e!==t&&localStorage.removeItem(e)}))}}})),define("vault/lib/memory-storage",["exports"],(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
const t={}
e.default={getItem(e){var n=t[e]
return n&&JSON.parse(n)},setItem(e,n){t[e]=JSON.stringify(n)},removeItem(e){delete t[e]},keys:()=>Object.keys(t)}})),define("vault/lib/path-to-tree",["exports","flat","deepmerge"],(function(e,t,n){Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(e){let i=e.slice(0).sort(((e,t)=>t.length-e.length||t.localeCompare(e))).reduce(((e,t)=>{const n=e.find((e=>e.startsWith(t)))
return n&&"/"===n.charAt(t.length)||e.push(t),e}),[])
return i=i.sort(((e,t)=>e.localeCompare(t))),n.default.all(i.map((e=>(e=e.replace(/\.+/g,l),(0,t.unflatten)({[e]:null},{delimiter:"/",object:!0})))))}
const l="☃"})),define("vault/lib/route-paths",["exports"],(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.UNSEAL=e.REDIRECT=e.OIDC_PROVIDER=e.OIDC_CALLBACK=e.NS_OIDC_PROVIDER=e.LOGOUT=e.INIT=e.EXCLUDED_REDIRECT_URLS=e.DR_REPLICATION_SECONDARY_DETAILS=e.DR_REPLICATION_SECONDARY=e.CLUSTER_INDEX=e.CLUSTER=e.AUTH=void 0
e.INIT="vault.cluster.init",e.UNSEAL="vault.cluster.unseal",e.AUTH="vault.cluster.auth",e.LOGOUT="vault.cluster.logout",e.REDIRECT="vault.cluster.redirect",e.CLUSTER="vault.cluster",e.CLUSTER_INDEX="vault.cluster.index",e.OIDC_CALLBACK="vault.cluster.oidc-callback",e.OIDC_PROVIDER="vault.cluster.oidc-provider",e.NS_OIDC_PROVIDER="vault.cluster.oidc-provider-ns",e.DR_REPLICATION_SECONDARY="vault.cluster.replication-dr-promote",e.DR_REPLICATION_SECONDARY_DETAILS="vault.cluster.replication-dr-promote.details",e.EXCLUDED_REDIRECT_URLS=["/vault/logout"]})),define("vault/lib/token-storage",["exports","vault/lib/local-storage","vault/lib/memory-storage"],(function(e,t,n){Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(e){if("memory"===e)return n.default
let l
try{window.localStorage.getItem("test"),l=t.default}catch(i){l=n.default}return l}})),define("vault/macros/identity-capabilities",["exports","vault/macros/lazy-capabilities"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(){return(0,t.default)(t.apiPath`identity/${"identityType"}/id/${"id"}`,"id","identityType")}})),define("vault/macros/lazy-capabilities",["exports","vault/macros/maybe-query-record"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),e.apiPath=function(e,...t){return function(n){const l=n||{},i=[e[0]]
return t.forEach(((t,n)=>{i.push(l[t],e[n+1])})),i.join("")}},e.default=function(){const[e,...n]=arguments
return(0,t.maybeQueryRecord)("capabilities",(t=>{const l=t.getProperties(...n),i=Object.keys(l).reduce(((e,t)=>(null!=l[t]&&(e[t]=l[t]),e)),{})
if(Object.keys(i).length===n.length)return{id:e(i)}}),...n)}})),define("vault/macros/maybe-query-record",["exports","@ember/object","@ember/object/proxy","@ember/object/promise-proxy-mixin","rsvp","@ember/test-waiters"],(function(e,t,n,l,i,r){Object.defineProperty(e,"__esModule",{value:!0}),e.maybeQueryRecord=function(e,r={},...o){return(0,t.computed)(...o,"store",{get(){const t=a.beginAsync(),o="function"==typeof r?r(this):r
return n.default.extend(l.default).create({promise:o?this.store.queryRecord(e,o).finally((()=>a.endAsync(t))):(0,i.resolve)({}).finally((()=>a.endAsync(t)))})}})},n.default.reopen({unknownProperty(e){if(!(this.isDestroying||this.isDestroyed||this.content&&(this.content.isDestroying||this.content.isDestroyed)))return this._super(e)}})
const a=(0,r.buildWaiter)("capabilities")})),define("vault/mixins/backend-crumb",["exports","@ember/object","@ember/object/mixin"],(function(e,t,n){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default=n.default.create({backendCrumb:(0,t.computed)("backend",(function(){const e=this.backend
if(void 0===e)throw new Error("backend-crumb mixin requires backend to be set")
return{label:e,text:e,path:"vault.cluster.secrets.backend.list-root",model:e}}))})})),define("vault/mixins/cluster-route",["exports","@ember/service","@ember/object/mixin","rsvp","vault/lib/route-paths"],(function(e,t,n,l,i){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default=n.default.create({auth:(0,t.service)(),store:(0,t.service)(),router:(0,t.service)(),transitionToTargetRoute(e={}){const t=this.targetRouteName(e)
if(t&&t!==this.routeName&&t!==e.targetName&&t!==this.router.currentRouteName){const n=i.EXCLUDED_REDIRECT_URLS.find((e=>this.router.currentURL?.includes(e)))
return t!==i.AUTH||e.targetName===i.CLUSTER_INDEX||n?this.router.transitionTo(t):this.router.transitionTo(t,{queryParams:{redirect_to:this.router.currentURL}})}return l.default.resolve()},beforeModel(e){return this.transitionToTargetRoute(e)},clusterModel(){return this.modelFor(i.CLUSTER)||this.store.peekRecord("cluster","vault")},authToken(){return this.auth.currentToken},hasKeyData(){return!!this.controllerFor(i.INIT).keyData},targetRouteName(e){const t=this.clusterModel(),n=this.authToken()
return t.needsInit||this.hasKeyData()&&this.routeName!==i.UNSEAL&&this.routeName!==i.AUTH?i.INIT:t.sealed?i.UNSEAL:t?.dr?.isSecondary?e&&e.targetName===i.DR_REPLICATION_SECONDARY_DETAILS||this.router.currentRouteName===i.DR_REPLICATION_SECONDARY_DETAILS?i.DR_REPLICATION_SECONDARY_DETAILS:i.DR_REPLICATION_SECONDARY:n?!t.needsInit&&this.routeName===i.INIT||!t.sealed&&this.routeName===i.UNSEAL||!t?.dr?.isSecondary&&this.routeName===i.DR_REPLICATION_SECONDARY?i.CLUSTER:n&&this.routeName===i.AUTH?i.REDIRECT:null:e&&e.targetName===i.OIDC_PROVIDER||this.routeName===i.OIDC_PROVIDER?i.OIDC_PROVIDER:e&&e.targetName===i.NS_OIDC_PROVIDER||this.routeName===i.NS_OIDC_PROVIDER?i.NS_OIDC_PROVIDER:e&&e.targetName===i.OIDC_CALLBACK||this.routeName===i.OIDC_CALLBACK?i.OIDC_CALLBACK:i.AUTH}})})),define("vault/mixins/focus-on-insert",["exports","@ember/runloop","@ember/object/evented","@ember/object/mixin"],(function(e,t,n,l){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default=l.default.create({focusOnInsertSelector:null,shouldFocus:!0,focusOnInsert:(0,n.on)("didInsertElement",(function(){(0,t.schedule)("afterRender",this,"focusOnInsertFocus")})),focusOnInsertFocus(){!1!==this.shouldFocus&&this.forceFocus()},forceFocus(){var e=this.element.querySelectorAll(this.focusOnInsertSelector||'input[type="text"]')[0]
e&&e!==document.activeElement&&e.focus()}})})),define("vault/mixins/key-mixin",["exports","@ember/object","@ember/object/mixin","core/utils/key-utils"],(function(e,t,n,l){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default=n.default.create({pathAttr:"path",flags:null,initialParentKey:null,isCreating:(0,t.computed)("initialParentKey",(function(){return null!=this.initialParentKey})),pathVal(){return this[this.pathAttr]||this.id},isFolder:(0,t.computed)("id","path",(function(){return(0,l.keyIsFolder)(this.pathVal())})),keyParts:(0,t.computed)("id","path",(function(){return(0,l.keyPartsForKey)(this.pathVal())})),parentKey:(0,t.computed)("id","path","isCreating",{get:function(){return this.isCreating?this.initialParentKey:(0,l.parentKeyForKey)(this.pathVal())},set:function(e,t){return t}}),keyWithoutParent:(0,t.computed)("id","path","parentKey",{get:function(){var e=this.pathVal()
return e?e.replace(this.parentKey,""):null},set:function(e,t){return t&&t.trim()?this.set(this.pathAttr,this.parentKey+t):this.set(this.pathAttr,null),t}})})})),define("vault/mixins/list-controller",["exports","core/mixins/list-controller"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.default}})})),define("vault/mixins/list-route",["exports","core/mixins/list-route"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.default}})})),define("vault/mixins/model-boundary-route",["exports","@ember/routing/route","@ember/utils","@ember/debug","@ember/object/evented","@ember/object/mixin"],(function(e,t,n,l,i,r){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default=r.default.create({modelType:null,modelTypes:null,verifyProps:(0,i.on)("init",(function(){this.modelType,this.modelTypes})),clearModelCache:(0,i.on)("deactivate",(function(){var e=this.modelType,t=this.modelTypes;(e||t)&&(this.store.isDestroyed||this.store.isDestroying||(e&&this.store.unloadAll(e),t&&t.forEach((e=>{this.store.unloadAll(e)}))))}))})})),define("vault/mixins/replication-actions",["exports","core/mixins/replication-actions"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.default}})})),define("vault/mixins/unload-model-route",["exports","@ember/object/mixin","vault/utils/remove-record"],(function(e,t,n){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default=t.default.create({modelPath:"model",unloadModel(){const{modelPath:e}=this,t=this.controller.get(e)
t&&t.unloadRecord&&!t.isSaving&&((0,n.default)(this.store,t),this.controller.set(e,null))},actions:{willTransition(){return this.unloadModel(),!0}}})})),define("vault/mixins/unsaved-model-route",["exports","@ember/object/mixin","ember"],(function(e,t,n){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default=t.default.create({actions:{willTransition(e){const t=this.controller.get("model")
return!t||(!t.hasDirtyAttributes||(n.default.testing||window.confirm("You have unsaved changes. Navigating away will discard these changes. Are you sure you want to discard your changes?")?(t.rollbackAttributes(),!0):(e.abort(),!1)))}}})})),define("vault/models/auth-config",["exports","@ember-data/model"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default=t.default.extend({backend:(0,t.belongsTo)("auth-method",{inverse:"authConfigs",readOnly:!0,async:!1})})})),define("vault/models/auth-config/approle",["exports","vault/models/auth-config"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default=t.default.extend({})})),define("vault/models/auth-config/aws/client",["exports","@ember-data/model","@ember/object","vault/models/auth-config","vault/utils/field-to-attrs"],(function(e,t,n,l,i){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default=l.default.extend({secretKey:(0,t.attr)("string"),accessKey:(0,t.attr)("string"),endpoint:(0,t.attr)("string",{label:"EC2 Endpoint"}),iamEndpoint:(0,t.attr)("string",{label:"IAM Endpoint"}),stsEndpoint:(0,t.attr)("string",{label:"STS Endpoint"}),iamServerIdHeaderValue:(0,t.attr)("string",{label:"IAM Server ID Header Value"}),fieldGroups:(0,n.computed)((function(){return(0,i.default)(this,[{default:["accessKey","secretKey"]},{"AWS Options":["endpoint","iamEndpoint","stsEndpoint","iamServerIdHeaderValue"]}])}))})})),define("vault/models/auth-config/aws/identity-accesslist",["exports","vault/models/auth-config/aws/tidy"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default=t.default.extend()})),define("vault/models/auth-config/aws/roletag-denylist",["exports","vault/models/auth-config/aws/tidy"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default=t.default.extend()})),define("vault/models/auth-config/aws/tidy",["exports","@ember-data/model","@ember/object","vault/utils/field-to-attrs","vault/models/auth-config"],(function(e,t,n,l,i){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default=i.default.extend({safetyBuffer:(0,t.attr)({defaultValue:"72h",editType:"ttl"}),disablePeriodicTidy:(0,t.attr)("boolean",{defaultValue:!1}),attrs:(0,n.computed)((function(){return(0,l.expandAttributeMeta)(this,["safetyBuffer","disablePeriodicTidy"])}))})})),define("vault/models/auth-config/azure",["exports","@ember-data/model","@ember/object","vault/models/auth-config","vault/utils/openapi-to-attrs","vault/utils/field-to-attrs"],(function(e,t,n,l,i,r){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default=l.default.extend({tenantId:(0,t.attr)("string",{label:"Tenant ID",helpText:"The tenant ID for the Azure Active Directory organization"}),resource:(0,t.attr)("string",{helpText:"The configured URL for the application registered in Azure Active Directory"}),clientId:(0,t.attr)("string",{label:"Client ID",helpText:"The client ID for credentials to query the Azure APIs. Currently read permissions to query compute resources are required."}),clientSecret:(0,t.attr)("string",{helpText:"The client secret for credentials to query the Azure APIs"}),googleCertsEndpoint:(0,t.attr)("string"),fieldGroups:(0,n.computed)("newFields",(function(){let e=[{default:["tenantId","resource"]},{"Azure Options":["clientId","clientSecret"]}]
return this.newFields&&(e=(0,i.combineFieldGroups)(e,this.newFields,[])),(0,r.default)(this,e)}))})})),define("vault/models/auth-config/cert",["exports","vault/models/auth-config"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default=t.default.extend({})})),define("vault/models/auth-config/gcp",["exports","@ember-data/model","@ember/object","vault/models/auth-config","vault/utils/openapi-to-attrs","vault/utils/field-to-attrs"],(function(e,t,n,l,i,r){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default=l.default.extend({credentials:(0,t.attr)("string",{editType:"file"}),googleCertsEndpoint:(0,t.attr)("string"),fieldGroups:(0,n.computed)("newFields",(function(){let e=[{default:["credentials"]},{"Google Cloud Options":["googleCertsEndpoint"]}]
return this.newFields&&(e=(0,i.combineFieldGroups)(e,this.newFields,[])),(0,r.default)(this,e)}))})})),define("vault/models/auth-config/github",["exports","@ember-data/model","@ember/object","vault/models/auth-config","vault/utils/field-to-attrs","vault/utils/openapi-to-attrs"],(function(e,t,n,l,i,r){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default=l.default.extend({organization:(0,t.attr)("string"),baseUrl:(0,t.attr)("string",{label:"Base URL"}),fieldGroups:(0,n.computed)("newFields",(function(){let e=[{default:["organization"]},{"GitHub Options":["baseUrl"]}]
return this.newFields&&(e=(0,r.combineFieldGroups)(e,this.newFields,[])),(0,i.default)(this,e)}))})})),define("vault/models/auth-config/jwt",["exports","@ember-data/model","@ember/object","vault/models/auth-config","vault/utils/field-to-attrs","vault/utils/openapi-to-attrs"],(function(e,t,n,l,i,r){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default=l.default.extend({oidcDiscoveryUrl:(0,t.attr)("string",{label:"OIDC discovery URL",helpText:"The OIDC discovery URL, without any .well-known component (base path). Cannot be used with jwt_validation_pubkeys"}),oidcClientId:(0,t.attr)("string",{label:"OIDC client ID"}),oidcClientSecret:(0,t.attr)("string",{label:"OIDC client secret"}),oidcDiscoveryCaPem:(0,t.attr)("string",{label:"OIDC discovery CA PEM",editType:"file",helpText:"The CA certificate or chain of certificates, in PEM format, to use to validate connections to the OIDC Discovery URL. If not set, system certificates are used"}),jwksCaPem:(0,t.attr)("string",{label:"JWKS CA PEM",editType:"file"}),jwksUrl:(0,t.attr)("string",{label:"JWKS URL"}),jwksPairs:(0,t.attr)({label:"JWKS pairs"}),oidcResponseMode:(0,t.attr)("string",{label:"OIDC response mode"}),oidcResponseTypes:(0,t.attr)("string",{label:"OIDC response types"}),jwtValidationPubkeys:(0,t.attr)({label:"JWT validation public keys",editType:"stringArray"}),jwtSupportedAlgs:(0,t.attr)({label:"JWT supported algorithms"}),boundIssuer:(0,t.attr)("string",{helpText:"The value against which to match the iss claim in a JWT"}),fieldGroups:(0,n.computed)("constructor.modelName","newFields",(function(){const e=this.constructor.modelName.split("/")[1].toUpperCase()
let t=[{default:["oidcDiscoveryUrl","defaultRole","jwksCaPem","jwksUrl","oidcResponseMode","oidcResponseTypes"]},{[`${e} Options`]:["oidcClientId","oidcClientSecret","oidcDiscoveryCaPem","jwtValidationPubkeys","jwtSupportedAlgs","boundIssuer"]}]
return this.newFields&&(t=(0,r.combineFieldGroups)(t,this.newFields,[])),(0,i.default)(this,t)}))})})),define("vault/models/auth-config/kubernetes",["exports","@ember-data/model","@ember/object","vault/models/auth-config","vault/utils/openapi-to-attrs","vault/utils/field-to-attrs"],(function(e,t,n,l,i,r){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default=l.default.extend({kubernetesHost:(0,t.attr)("string",{helpText:"Host must be a host string, a host:port pair, or a URL to the base of the Kubernetes API server."}),kubernetesCaCert:(0,t.attr)("string",{editType:"file",helpText:"Optional PEM encoded CA cert for use by the TLS client used to talk with the Kubernetes API. If it is not set and disable_local_ca_jwt is true, the system's trusted CA certificate pool will be used."}),tokenReviewerJwt:(0,t.attr)("string",{helpText:"A service account JWT used to access the TokenReview API to validate other JWTs during login. If not set the JWT used for login will be used to access the API"}),useAnnotationsAsAliasMetadata:(0,t.attr)("boolean"),pemKeys:(0,t.attr)({editType:"stringArray"}),fieldGroups:(0,n.computed)("newFields",(function(){let e=[{default:["kubernetesHost","kubernetesCaCert"]},{"Kubernetes Options":["tokenReviewerJwt","pemKeys","useAnnotationsAsAliasMetadata"]}]
return this.newFields&&(e=(0,i.combineFieldGroups)(e,this.newFields,[])),(0,r.default)(this,e)}))})}))
define("vault/models/auth-config/ldap",["exports","@ember-data/model","@ember/object","vault/models/auth-config","vault/utils/field-to-attrs","vault/utils/openapi-to-attrs"],(function(e,t,n,l,i,r){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default=l.default.extend({certificate:(0,t.attr)({label:"Certificate",editType:"file"}),fieldGroups:(0,n.computed)("newFields",(function(){let e=[{default:["url"]},{"LDAP Options":["starttls","insecureTls","discoverdn","denyNullBind","tlsMinVersion","tlsMaxVersion","certificate","clientTlsCert","clientTlsKey","userattr","upndomain","anonymousGroupSearch"]},{"Customize User Search":["binddn","userdn","bindpass","userfilter"]},{"Customize Group Membership Search":["groupfilter","groupattr","groupdn","useTokenGroups"]}]
return this.newFields&&(e=(0,r.combineFieldGroups)(e,this.newFields,[])),(0,i.default)(this,e)}))})})),define("vault/models/auth-config/oidc",["exports","vault/models/auth-config/jwt"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.default}})})),define("vault/models/auth-config/okta",["exports","@ember-data/model","@ember/object","vault/models/auth-config","vault/utils/field-to-attrs","vault/utils/openapi-to-attrs"],(function(e,t,n,l,i,r){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default=l.default.extend({orgName:(0,t.attr)("string",{helpText:"Name of the organization to be used in the Okta API"}),apiToken:(0,t.attr)("string",{helpText:"Okta API token. This is required to query Okta for user group membership. If this is not supplied only locally configured groups will be enabled."}),baseUrl:(0,t.attr)("string",{helpText:"If set, will be used as the base domain for API requests. Examples are okta.com, oktapreview.com, and okta-emea.com"}),bypassOktaMfa:(0,t.attr)("boolean",{defaultValue:!1,helpText:"Useful if using Vault's built-in MFA mechanisms. Will also cause certain other statuses to be ignored, such as PASSWORD_EXPIRED"}),fieldGroups:(0,n.computed)("newFields",(function(){let e=[{default:["orgName"]},{Options:["apiToken","baseUrl","bypassOktaMfa"]}]
return this.newFields&&(e=(0,r.combineFieldGroups)(e,this.newFields,[])),(0,i.default)(this,e)}))})})),define("vault/models/auth-config/radius",["exports","@ember-data/model","@ember/object","vault/models/auth-config","vault/utils/openapi-to-attrs","vault/utils/field-to-attrs"],(function(e,t,n,l,i,r){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default=l.default.extend({host:(0,t.attr)("string"),secret:(0,t.attr)("string"),fieldGroups:(0,n.computed)("newFields",(function(){let e=[{default:["host","secret"]},{"RADIUS Options":["port","nasPort","nasIdentifier","dialTimeout","unregisteredUserPolicies"]}]
return this.newFields&&(e=(0,i.combineFieldGroups)(e,this.newFields,[])),(0,r.default)(this,e)}))})})),define("vault/models/auth-config/userpass",["exports","vault/models/auth-config"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default=t.default.extend({})})),define("vault/models/auth-method",["exports","@ember-data/model","@ember/service","vault/utils/field-to-attrs","vault/utils/api-path","vault/decorators/model-validations","vault/helpers/mountable-auth-methods","vault/macros/lazy-capabilities","@ember/object","@ember/string","vault/utils/validators"],(function(e,t,n,l,i,r,a,o,s,u,c){var d,p,f,m,h,b,y,v,g,w,k,x,P,_,T,O,j,z,M,S,C,A,E,R,D,N,F,I
function L(e,t,n,l){n&&Object.defineProperty(e,t,{enumerable:n.enumerable,configurable:n.configurable,writable:n.writable,value:n.initializer?n.initializer.call(l):void 0})}function U(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e
var n=e[Symbol.toPrimitive]
if(void 0!==n){var l=n.call(e,t||"default")
if("object"!=typeof l)return l
throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string")
return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function V(e,t,n,l,i){var r={}
return Object.keys(l).forEach((function(e){r[e]=l[e]})),r.enumerable=!!r.enumerable,r.configurable=!!r.configurable,("value"in r||r.initializer)&&(r.writable=!0),r=n.slice().reverse().reduce((function(n,l){return l(e,t,n)||n}),r),i&&void 0!==r.initializer&&(r.value=r.initializer?r.initializer.call(i):void 0,r.initializer=void 0),void 0===r.initializer?(Object.defineProperty(e,t,r),null):r}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
const q={path:[{type:"presence",message:"Path can't be blank."},{type:"containsWhiteSpace",message:(0,c.WHITESPACE_WARNING)("path"),level:"warn"}]}
e.default=(d=(0,r.withModelValidations)(q),p=(0,t.belongsTo)("mount-config",{async:!1,inverse:null}),f=(0,t.hasMany)("auth-config",{polymorphic:!0,inverse:"backend",async:!1}),m=(0,t.attr)("string"),h=(0,t.attr)("string"),b=(0,t.attr)("string"),y=(0,t.attr)("string"),v=(0,t.attr)("string",{editType:"textarea"}),g=(0,t.attr)("boolean",{helpText:"When Replication is enabled, a local mount will not be replicated across clusters. This can only be specified at mount time."}),w=(0,t.attr)("boolean",{helpText:"When enabled - if a seal supporting seal wrapping is specified in the configuration, all critical security parameters (CSPs) in this backend will be seal wrapped. (For KV mounts, all values will be seal wrapped.) This can only be specified at mount time."}),k=(0,o.default)(i.default`sys/auth/${"id"}`,"id"),x=(0,o.default)(i.default`auth/${"id"}/config`,"id"),P=(0,o.default)(i.default`auth/${"id"}/config/client`,"id"),d((T=class extends t.default{constructor(...e){super(...e),L(this,"store",O,this),L(this,"config",j,this),L(this,"authConfigs",z,this),L(this,"path",M,this),L(this,"accessor",S,this),L(this,"name",C,this),L(this,"type",A,this),L(this,"description",E,this),L(this,"local",R,this),L(this,"sealWrap",D,this),U(this,"userLockoutConfig",{modelAttrs:["config.lockoutThreshold","config.lockoutDuration","config.lockoutCounterReset","config.lockoutDisable"],apiParams:["lockout_threshold","lockout_duration","lockout_counter_reset","lockout_disable"]}),L(this,"deletePath",N,this),L(this,"configPath",F,this),L(this,"awsConfigPath",I,this)}get methodType(){return this.type.replace(/^ns_/,"")}get icon(){const e=(0,a.allMethods)().find((e=>e.type===this.methodType))
return e?.glyph||"users"}get apiPath(){return`auth/${this.path}`}get localDisplay(){return this.local?"local":"replicated"}get supportsUserLockoutConfig(){return["approle","ldap","userpass"].includes(this.methodType)}get tuneAttrs(){const e=["listingVisibility","defaultLeaseTtl","maxLeaseTtl",..."token"===this.methodType?[]:["tokenType"],"auditNonHmacRequestKeys","auditNonHmacResponseKeys","passthroughRequestHeaders","allowedResponseHeaders","pluginVersion",...this.supportsUserLockoutConfig?this.userLockoutConfig.apiParams.map((e=>(0,u.camelize)(e))):[]]
return(0,l.expandAttributeMeta)(this,["description",`config.{${e.join(",")}}`])}get formFields(){return["type","path","description","accessor","local","sealWrap","config.{listingVisibility,defaultLeaseTtl,maxLeaseTtl,tokenType,auditNonHmacRequestKeys,auditNonHmacResponseKeys,passthroughRequestHeaders,allowedResponseHeaders,pluginVersion}"]}get formFieldGroups(){return[{default:["path"]},{"Method Options":["description","config.listingVisibility","local","sealWrap","config.{defaultLeaseTtl,maxLeaseTtl,tokenType,auditNonHmacRequestKeys,auditNonHmacResponseKeys,passthroughRequestHeaders,allowedResponseHeaders,pluginVersion}"]}]}get attrs(){return(0,l.expandAttributeMeta)(this,this.formFields)}get fieldGroups(){return(0,l.default)(this,this.formFieldGroups)}get canDisable(){return!1!==this.deletePath.get("canDelete")}get canEdit(){return!1!==this.configPath.get("canUpdate")}get canEditAws(){return!1!==this.awsConfigPath.get("canUpdate")}tune(e){return this.store.adapterFor("auth-method").tune(this.path,e)}},O=V(T.prototype,"store",[n.service],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),j=V(T.prototype,"config",[p],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),z=V(T.prototype,"authConfigs",[f],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),M=V(T.prototype,"path",[m],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),S=V(T.prototype,"accessor",[h],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),C=V(T.prototype,"name",[b],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),A=V(T.prototype,"type",[y],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),E=V(T.prototype,"description",[v],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),R=V(T.prototype,"local",[g],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),D=V(T.prototype,"sealWrap",[w],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),N=V(T.prototype,"deletePath",[k],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),F=V(T.prototype,"configPath",[x],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),I=V(T.prototype,"awsConfigPath",[P],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),V(T.prototype,"tune",[s.action],Object.getOwnPropertyDescriptor(T.prototype,"tune"),T.prototype),_=T))||_)})),define("vault/models/aws-credential",["exports","@ember-data/model","vault/decorators/model-expanded-attributes"],(function(e,t,n){var l,i,r,a,o,s,u,c,d,p,f,m,h,b,y,v,g,w,k,x,P,_,T
function O(e,t,n,l){n&&Object.defineProperty(e,t,{enumerable:n.enumerable,configurable:n.configurable,writable:n.writable,value:n.initializer?n.initializer.call(l):void 0})}function j(e,t,n,l,i){var r={}
return Object.keys(l).forEach((function(e){r[e]=l[e]})),r.enumerable=!!r.enumerable,r.configurable=!!r.configurable,("value"in r||r.initializer)&&(r.writable=!0),r=n.slice().reverse().reduce((function(n,l){return l(e,t,n)||n}),r),i&&void 0!==r.initializer&&(r.value=r.initializer?r.initializer.call(i):void 0,r.initializer=void 0),void 0===r.initializer?(Object.defineProperty(e,t,r),null):r}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default=(l=(0,n.withExpandedAttributes)(),i=(0,t.attr)("object",{readOnly:!0}),r=(0,t.attr)("string",{defaultValue:"iam_user",possibleValues:[{value:"iam_user",displayName:"IAM User"},{value:"assumed_role",displayName:"Assumed Role"},{value:"federation_token",displayName:"Federation Token"},{value:"session_token",displayName:"Session Token"}],readOnly:!0}),a=(0,t.attr)("string",{label:"Role ARN",helpText:"The ARN of the role to assume if credential_type on the Vault role is assumed_role. Optional if the role has a single role ARN; required otherwise."}),o=(0,t.attr)({editType:"ttl",defaultValue:"3600s",setDefault:!0,ttlOffValue:"",label:"TTL",helpText:"Specifies the TTL for the use of the STS token. Valid only when credential_type is assumed_role, federation_token, or session_token."}),s=(0,t.attr)("string"),u=(0,t.attr)("boolean"),c=(0,t.attr)("number"),d=(0,t.attr)("string"),p=(0,t.attr)("string",{masked:!0}),f=(0,t.attr)("string",{masked:!0}),l((h=class extends t.default{constructor(...e){super(...e),O(this,"role",b,this),O(this,"credentialType",y,this),O(this,"roleArn",v,this),O(this,"ttl",g,this),O(this,"leaseId",w,this),O(this,"renewable",k,this),O(this,"leaseDuration",x,this),O(this,"accessKey",P,this),O(this,"secretKey",_,this),O(this,"securityToken",T,this)}get toCreds(){const e={accessKey:this.accessKey,secretKey:this.secretKey,securityToken:this.securityToken,leaseId:this.leaseId},t=Object.keys(e).reduce(((t,n)=>e[n]?(t[n]=e[n],t):t),{})
return JSON.stringify(t,null,2)}},b=j(h.prototype,"role",[i],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),y=j(h.prototype,"credentialType",[r],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),v=j(h.prototype,"roleArn",[a],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),g=j(h.prototype,"ttl",[o],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),w=j(h.prototype,"leaseId",[s],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),k=j(h.prototype,"renewable",[u],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),x=j(h.prototype,"leaseDuration",[c],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),P=j(h.prototype,"accessKey",[d],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),_=j(h.prototype,"secretKey",[p],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),T=j(h.prototype,"securityToken",[f],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),m=h))||m)})),define("vault/models/aws/lease-config",["exports","@ember-data/model","vault/utils/field-to-attrs","vault/decorators/model-validations"],(function(e,t,n,l){var i,r,a,o,s,u,c,d,p
function f(e,t,n,l){n&&Object.defineProperty(e,t,{enumerable:n.enumerable,configurable:n.configurable,writable:n.writable,value:n.initializer?n.initializer.call(l):void 0})}function m(e,t,n,l,i){var r={}
return Object.keys(l).forEach((function(e){r[e]=l[e]})),r.enumerable=!!r.enumerable,r.configurable=!!r.configurable,("value"in r||r.initializer)&&(r.writable=!0),r=n.slice().reverse().reduce((function(n,l){return l(e,t,n)||n}),r),i&&void 0!==r.initializer&&(r.value=r.initializer?r.initializer.call(i):void 0,r.initializer=void 0),void 0===r.initializer?(Object.defineProperty(e,t,r),null):r}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
const h={lease:[{validator(e){const{lease:t,leaseMax:n}=e
return!!(t&&n||!t&&!n)},message:"Lease TTL and Max Lease TTL are both required if one of them is set."}]}
e.default=(i=(0,l.withModelValidations)(h),r=(0,t.attr)("string"),a=(0,t.attr)({label:"Max Lease TTL",editType:"ttl"}),o=(0,t.attr)({label:"Default Lease TTL",editType:"ttl"}),i((u=class extends t.default{constructor(...e){super(...e),f(this,"backend",c,this),f(this,"leaseMax",d,this),f(this,"lease",p,this)}get attrs(){return(0,n.expandAttributeMeta)(this,["lease","leaseMax"])}},c=m(u.prototype,"backend",[r],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),d=m(u.prototype,"leaseMax",[a],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),p=m(u.prototype,"lease",[o],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),s=u))||s)})),define("vault/models/aws/root-config",["exports","@ember-data/model","vault/utils/field-to-attrs","vault/helpers/aws-regions"],(function(e,t,n,l){var i,r,a,o,s,u,c,d,p,f,m,h,b,y,v,g,w,k,x,P,_
function T(e,t,n,l){n&&Object.defineProperty(e,t,{enumerable:n.enumerable,configurable:n.configurable,writable:n.writable,value:n.initializer?n.initializer.call(l):void 0})}function O(e,t,n,l,i){var r={}
return Object.keys(l).forEach((function(e){r[e]=l[e]})),r.enumerable=!!r.enumerable,r.configurable=!!r.configurable,("value"in r||r.initializer)&&(r.writable=!0),r=n.slice().reverse().reduce((function(n,l){return l(e,t,n)||n}),r),i&&void 0!==r.initializer&&(r.value=r.initializer?r.initializer.call(i):void 0,r.initializer=void 0),void 0===r.initializer?(Object.defineProperty(e,t,r),null):r}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default=(i=(0,t.attr)("string"),r=(0,t.attr)("string"),a=(0,t.attr)("string",{sensitive:!0}),o=(0,t.attr)("string",{label:"Role ARN",subText:"Role ARN to assume for plugin workload identity federation."}),s=(0,t.attr)("string",{subText:"The audience claim value for plugin identity tokens. Must match an allowed audience configured for the target IAM OIDC identity provider."}),u=(0,t.attr)({label:"Identity token TTL",helperTextDisabled:"The TTL of generated tokens. Defaults to 1 hour, turn on the toggle to specify a different value.",helperTextEnabled:"The TTL of generated tokens.",subText:"",editType:"ttl"}),c=(0,t.attr)("string",{possibleValues:(0,l.regions)(),subText:"Specifies the AWS region. If not set it will use the AWS_REGION env var, AWS_DEFAULT_REGION env var, or us-east-1 in that order."}),d=(0,t.attr)("string",{label:"IAM endpoint"}),p=(0,t.attr)("string",{label:"STS endpoint"}),f=(0,t.attr)("number",{label:"Maximum retries",subText:"Number of max retries the client should use for recoverable errors. Default is -1."}),m=class extends t.default{constructor(...e){super(...e),T(this,"backend",h,this),T(this,"accessKey",b,this),T(this,"secretKey",y,this),T(this,"roleArn",v,this),T(this,"identityTokenAudience",g,this),T(this,"identityTokenTtl",w,this),T(this,"region",k,this),T(this,"iamEndpoint",x,this),T(this,"stsEndpoint",P,this),T(this,"maxRetries",_,this)}get attrs(){return(0,n.expandAttributeMeta)(this,["roleArn","identityTokenAudience","identityTokenTtl","accessKey","region","iamEndpoint","stsEndpoint","maxRetries"])}get fieldGroupsWif(){return(0,n.default)(this,this.formFieldGroups("wif"))}get fieldGroupsIam(){return(0,n.default)(this,this.formFieldGroups("iam"))}formFieldGroups(e="iam"){const t=[]
return"wif"===e&&t.push({default:["roleArn","identityTokenAudience","identityTokenTtl"]}),"iam"===e&&t.push({default:["accessKey","secretKey"]}),t.push({"Root config options":["region","iamEndpoint","stsEndpoint","maxRetries"]}),t}},h=O(m.prototype,"backend",[i],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),b=O(m.prototype,"accessKey",[r],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),y=O(m.prototype,"secretKey",[a],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),v=O(m.prototype,"roleArn",[o],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),g=O(m.prototype,"identityTokenAudience",[s],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),w=O(m.prototype,"identityTokenTtl",[u],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),k=O(m.prototype,"region",[c],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),x=O(m.prototype,"iamEndpoint",[d],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),P=O(m.prototype,"stsEndpoint",[p],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),_=O(m.prototype,"maxRetries",[f],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),m)})),define("vault/models/capabilities",["exports","@ember-data/model","@ember/object"],(function(e,t,n){Object.defineProperty(e,"__esModule",{value:!0}),e.default=e.SUDO_PATH_PREFIXES=e.SUDO_PATHS=void 0
const l=e.SUDO_PATHS=["sys/seal","sys/replication/performance/primary/secondary-token","sys/replication/dr/primary/secondary-token","sys/replication/reindex","sys/leases/lookup/"],i=e.SUDO_PATH_PREFIXES=["sys/leases/revoke-prefix","sys/leases/revoke-force"],r=function(e){return(0,n.computed)("path","capabilities","capabilities.[]",(function(){const t=this.capabilities,n=this.path
return!!t&&(!!t.includes("root")||!t.includes("deny")&&(l.includes(n)||i.find((e=>n.startsWith(e)))?t.includes("sudo")&&t.includes(e):t.includes(e)))}))}
e.default=t.default.extend({path:(0,t.attr)("string"),capabilities:(0,t.attr)("array"),allowedParameters:(0,t.attr)(),deniedParameters:(0,t.attr)(),canCreate:r("create"),canDelete:r("delete"),canList:r("list"),canPatch:r("patch"),canRead:r("read"),canSudo:r("sudo"),canUpdate:r("update")})})),define("vault/models/clients/activity",["exports","@ember-data/model"],(function(e,t){var n,l,i,r,a,o,s,u,c,d,p,f,m
function h(e,t,n,l){n&&Object.defineProperty(e,t,{enumerable:n.enumerable,configurable:n.configurable,writable:n.writable,value:n.initializer?n.initializer.call(l):void 0})}function b(e,t,n,l,i){var r={}
return Object.keys(l).forEach((function(e){r[e]=l[e]})),r.enumerable=!!r.enumerable,r.configurable=!!r.configurable,("value"in r||r.initializer)&&(r.writable=!0),r=n.slice().reverse().reduce((function(n,l){return l(e,t,n)||n}),r),i&&void 0!==r.initializer&&(r.value=r.initializer?r.initializer.call(i):void 0,r.initializer=void 0),void 0===r.initializer?(Object.defineProperty(e,t,r),null):r}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default=(n=(0,t.attr)("array"),l=(0,t.attr)("array"),i=(0,t.attr)("object"),r=(0,t.attr)("string"),a=(0,t.attr)("string"),o=(0,t.attr)("string"),s=class extends t.default{constructor(...e){super(...e),h(this,"byMonth",u,this),h(this,"byNamespace",c,this),h(this,"total",d,this),h(this,"startTime",p,this),h(this,"endTime",f,this),h(this,"responseTimestamp",m,this)}},u=b(s.prototype,"byMonth",[n],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),c=b(s.prototype,"byNamespace",[l],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),d=b(s.prototype,"total",[i],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),p=b(s.prototype,"startTime",[r],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),f=b(s.prototype,"endTime",[a],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),m=b(s.prototype,"responseTimestamp",[o],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),s)})),define("vault/models/clients/config",["exports","@ember-data/model","vault/macros/lazy-capabilities","vault/decorators/model-form-fields","vault/decorators/model-validations"],(function(e,t,n,l,i){var r,a,o,s,u,c,d,p,f,m,h,b,y,v,g,w,k,x
function P(e,t,n,l){n&&Object.defineProperty(e,t,{enumerable:n.enumerable,configurable:n.configurable,writable:n.writable,value:n.initializer?n.initializer.call(l):void 0})}function _(e,t,n,l,i){var r={}
return Object.keys(l).forEach((function(e){r[e]=l[e]})),r.enumerable=!!r.enumerable,r.configurable=!!r.configurable,("value"in r||r.initializer)&&(r.writable=!0),r=n.slice().reverse().reduce((function(n,l){return l(e,t,n)||n}),r),i&&void 0!==r.initializer&&(r.value=r.initializer?r.initializer.call(i):void 0,r.initializer=void 0),void 0===r.initializer?(Object.defineProperty(e,t,r),null):r}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
const T={retentionMonths:[{validator:e=>parseInt(e.retentionMonths)>=e.minimumRetentionMonths,message:e=>`Retention period must be greater than or equal to ${e.minimumRetentionMonths}.`},{validator:e=>parseInt(e.retentionMonths)<=60,message:"Retention period must be less than or equal to 60."}]}
e.default=(r=(0,i.withModelValidations)(T),a=(0,l.withFormFields)(["enabled","retentionMonths"]),o=(0,t.attr)("boolean"),s=(0,t.attr)("number",{label:"Retention period",subText:"The number of months of activity logs to maintain for client tracking."}),u=(0,t.attr)("number"),c=(0,t.attr)("string"),d=(0,t.attr)("boolean"),p=(0,t.attr)("date"),f=(0,n.default)(n.apiPath`sys/internal/counters/config`),r(m=a((h=class extends t.default{constructor(...e){super(...e),P(this,"queriesAvailable",b,this),P(this,"retentionMonths",y,this),P(this,"minimumRetentionMonths",v,this),P(this,"enabled",g,this),P(this,"reportingEnabled",w,this),P(this,"billingStartTimestamp",k,this),P(this,"configPath",x,this)}get canRead(){return!1!==this.configPath.get("canRead")}get canEdit(){return!1!==this.configPath.get("canUpdate")}},b=_(h.prototype,"queriesAvailable",[o],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),y=_(h.prototype,"retentionMonths",[s],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),v=_(h.prototype,"minimumRetentionMonths",[u],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),g=_(h.prototype,"enabled",[c],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),w=_(h.prototype,"reportingEnabled",[d],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),k=_(h.prototype,"billingStartTimestamp",[p],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),x=_(h.prototype,"configPath",[f],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),m=h))||m)||m)})),define("vault/models/clients/version-history",["exports","@ember-data/model"],(function(e,t){var n,l,i,r,a,o,s
function u(e,t,n,l){n&&Object.defineProperty(e,t,{enumerable:n.enumerable,configurable:n.configurable,writable:n.writable,value:n.initializer?n.initializer.call(l):void 0})}function c(e,t,n,l,i){var r={}
return Object.keys(l).forEach((function(e){r[e]=l[e]})),r.enumerable=!!r.enumerable,r.configurable=!!r.configurable,("value"in r||r.initializer)&&(r.writable=!0),r=n.slice().reverse().reduce((function(n,l){return l(e,t,n)||n}),r),i&&void 0!==r.initializer&&(r.value=r.initializer?r.initializer.call(i):void 0,r.initializer=void 0),void 0===r.initializer?(Object.defineProperty(e,t,r),null):r}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default=(n=(0,t.attr)("string"),l=(0,t.attr)("string"),i=(0,t.attr)("string"),r=class extends t.default{constructor(...e){super(...e),u(this,"version",a,this),u(this,"previousVersion",o,this),u(this,"timestampInstalled",s,this)}},a=c(r.prototype,"version",[n],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),o=c(r.prototype,"previousVersion",[l],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),s=c(r.prototype,"timestampInstalled",[i],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),r)})),define("vault/models/cluster",["exports","@ember-data/model","@ember/service","@ember/object"],(function(e,t,n,l){var i,r,a,o,s,u,c,d,p,f,m,h,b,y,v,g,w,k,x,P,_,T,O,j,z,M
function S(e,t,n,l){n&&Object.defineProperty(e,t,{enumerable:n.enumerable,configurable:n.configurable,writable:n.writable,value:n.initializer?n.initializer.call(l):void 0})}function C(e,t,n,l,i){var r={}
return Object.keys(l).forEach((function(e){r[e]=l[e]})),r.enumerable=!!r.enumerable,r.configurable=!!r.configurable,("value"in r||r.initializer)&&(r.writable=!0),r=n.slice().reverse().reduce((function(n,l){return l(e,t,n)||n}),r),i&&void 0!==r.initializer&&(r.value=r.initializer?r.initializer.call(i):void 0,r.initializer=void 0),void 0===r.initializer?(Object.defineProperty(e,t,r),null):r}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default=(i=(0,t.hasMany)("nodes",{async:!1,inverse:null}),r=(0,t.attr)("string"),a=(0,t.attr)("string"),o=(0,t.attr)("boolean"),s=(0,t.attr)("string"),u=(0,t.attr)("object"),c=(0,t.attr)("boolean"),d=(0,t.attr)("boolean"),p=(0,t.attr)("string"),f=(0,t.belongsTo)("replication-attributes",{async:!1,inverse:null}),m=(0,t.belongsTo)("replication-attributes",{async:!1,inverse:null}),h=(0,n.service)("replication-mode"),b=class extends t.default{constructor(...e){super(...e),S(this,"version",y,this),S(this,"nodes",v,this),S(this,"name",g,this),S(this,"status",w,this),S(this,"standby",k,this),S(this,"type",x,this),S(this,"license",P,this),S(this,"hasChrootNamespace",_,this),S(this,"replicationRedacted",T,this),S(this,"mode",O,this),S(this,"dr",j,this),S(this,"performance",z,this),S(this,"rm",M,this)}get licenseExpiry(){return this.license?.expiry_time}get licenseState(){return this.license?.state}get needsInit(){return this.nodes.every((e=>!1===e.initialized))}get unsealed(){return!!this.nodes.find((e=>!1===e.sealed))}get sealed(){return!this.unsealed}get leaderNode(){const e=this.nodes
return 1===e.length?e[0]:e.find((e=>!0===e.isLeader))}get sealThreshold(){return this.leaderNode?.sealThreshold}get sealProgress(){return this.leaderNode?.progress}get sealType(){return this.leaderNode?.type}get storageType(){return this.leaderNode?.storageType}get hcpLinkStatus(){return this.leaderNode?.hcpLinkStatus}get hasProgress(){return this.sealProgress>=1}get usingRaft(){return"raft"===this.storageType}get allReplicationDisabled(){return this.dr?.replicationDisabled&&this.performance?.replicationDisabled}get anyReplicationEnabled(){return this.dr?.replicationEnabled||this.performance?.replicationEnabled}get drMode(){return this.dr.mode}get replicationMode(){return this.rm.mode}get replicationModeForDisplay(){return"dr"===this.replicationMode?"Disaster Recovery":"Performance"}get replicationIsInitializing(){return!this.dr?.mode||!this.performance?.mode}get replicationAttrs(){const e=this.replicationMode
return e?(0,l.get)(this,e):null}},y=C(b.prototype,"version",[n.service],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),v=C(b.prototype,"nodes",[i],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),g=C(b.prototype,"name",[r],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),w=C(b.prototype,"status",[a],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),k=C(b.prototype,"standby",[o],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),x=C(b.prototype,"type",[s],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),P=C(b.prototype,"license",[u],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),_=C(b.prototype,"hasChrootNamespace",[c],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),T=C(b.prototype,"replicationRedacted",[d],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),O=C(b.prototype,"mode",[p],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),j=C(b.prototype,"dr",[f],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),z=C(b.prototype,"performance",[m],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),M=C(b.prototype,"rm",[h],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),b)})),define("vault/models/config-ui/message",["exports","@ember-data/model","vault/macros/lazy-capabilities","date-fns","vault/decorators/model-validations","vault/decorators/model-form-fields"],(function(e,t,n,l,i,r){var a,o,s,u,c,d,p,f,m,h,b,y,v,g,w,k,x,P,_,T,O,j,z,M
function S(e,t,n,l){n&&Object.defineProperty(e,t,{enumerable:n.enumerable,configurable:n.configurable,writable:n.writable,value:n.initializer?n.initializer.call(l):void 0})}function C(e,t,n,l,i){var r={}
return Object.keys(l).forEach((function(e){r[e]=l[e]})),r.enumerable=!!r.enumerable,r.configurable=!!r.configurable,("value"in r||r.initializer)&&(r.writable=!0),r=n.slice().reverse().reduce((function(n,l){return l(e,t,n)||n}),r),i&&void 0!==r.initializer&&(r.value=r.initializer?r.initializer.call(i):void 0,r.initializer=void 0),void 0===r.initializer?(Object.defineProperty(e,t,r),null):r}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
const A={title:[{type:"presence",message:"Title is required."}],message:[{type:"presence",message:"Message is required."}],link:[{validator(e){if(!e?.link)return!0
const[t]=Object.keys(e.link),[n]=Object.values(e.link)
return!t&&!n||!(!t||!n)},message:"Link title and url are required."}],startTime:[{validator(e){if(!e.endTime)return!0
const t=new Date(e.startTime),n=new Date(e.endTime)
return(0,l.isBefore)(t,n)},message:"Start time is after end time."}],endTime:[{validator(e){if(!e.endTime)return!0
const t=new Date(e.startTime),n=new Date(e.endTime)
return(0,l.isAfter)(n,t)},message:"End time is before start time."}]}
e.default=(a=(0,i.withModelValidations)(A),o=(0,r.withFormFields)(["authenticated","type","title","message","link","startTime","endTime"]),s=(0,t.attr)("boolean"),u=(0,t.attr)("string",{label:"Type",editType:"radio",possibleValues:[{label:"Alert message",subText:"A banner that appears on the top of every page to display brief but high-signal messages like an update or system alert.",value:"banner"},{label:"Modal",subText:"A pop-up window used to bring immediate attention for important notifications or actions.",value:"modal"}],defaultValue:"banner"}),c=(0,t.attr)({label:"Where should we display this message?",editType:"radio",fieldValue:"authenticatedString",possibleValues:[{label:"After the user logs in",subText:"Display to users after they have successfully logged in to Vault.",value:"authenticated"},{label:"On the login page",subText:"Display to users on the login page before they have authenticated.",value:"unauthenticated"}],defaultValue:!0}),d=(0,t.attr)("string"),p=(0,t.attr)("string",{editType:"textarea"}),f=(0,t.attr)("dateTimeLocal",{editType:"dateTimeLocal",label:"Message starts",subText:"Defaults to 12:00 a.m. the following day (local timezone).",defaultValue:(0,l.addDays)((0,l.startOfDay)(new Date),1).toISOString()}),m=(0,t.attr)("dateTimeLocal",{editType:"yield",label:"Message expires"}),h=(0,t.attr)("object",{editType:"kv",keyPlaceholder:"Display text (e.g. Learn more)",valuePlaceholder:"Link URL (e.g. https://www.hashicorp.com/)",label:"Link (optional)",isSingleRow:!0,allowWhiteSpace:!0}),b=(0,n.default)(n.apiPath`sys/config/ui/custom-messages`),y=(0,n.default)(n.apiPath`sys/config/ui/custom-messages/${"id"}`,"id"),a(v=o((g=class extends t.default{constructor(...e){super(...e),S(this,"active",w,this),S(this,"type",k,this),S(this,"authenticated",x,this),S(this,"title",P,this),S(this,"message",_,this),S(this,"startTime",T,this),S(this,"endTime",O,this),S(this,"link",j,this),S(this,"customMessagesPath",z,this),S(this,"customMessagePath",M,this)}get authenticatedString(){return this.authenticated?"authenticated":"unauthenticated"}set authenticatedString(e){this.authenticated="authenticated"===e}get isStartTimeAfterToday(){return(0,l.isAfter)((0,l.parseISO)(this.startTime),new Date)}get canCreateCustomMessages(){return!1!==this.customMessagesPath.get("canCreate")}get canReadCustomMessages(){return!1!==this.customMessagePath.get("canRead")}get canEditCustomMessages(){return!1!==this.customMessagePath.get("canUpdate")}get canDeleteCustomMessages(){return!1!==this.customMessagePath.get("canDelete")}},w=C(g.prototype,"active",[s],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),k=C(g.prototype,"type",[u],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),x=C(g.prototype,"authenticated",[c],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),P=C(g.prototype,"title",[d],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),_=C(g.prototype,"message",[p],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),T=C(g.prototype,"startTime",[f],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),O=C(g.prototype,"endTime",[m],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),j=C(g.prototype,"link",[h],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),z=C(g.prototype,"customMessagesPath",[b],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),M=C(g.prototype,"customMessagePath",[y],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),v=g))||v)||v)})),define("vault/models/control-group-config",["exports","@ember-data/model","@ember/object/computed","@ember/object","vault/macros/lazy-capabilities","vault/utils/field-to-attrs"],(function(e,t,n,l,i,r){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default=t.default.extend({fields:(0,l.computed)((function(){return(0,r.expandAttributeMeta)(this,["maxTtl"])})),configurePath:(0,i.default)(i.apiPath`sys/config/control-group`),canDelete:(0,n.alias)("configurePath.canDelete"),maxTtl:(0,t.attr)({defaultValue:0,editType:"ttl",label:"Maximum TTL"})})})),define("vault/models/control-group",["exports","@ember-data/model","@ember/object/computed","vault/macros/lazy-capabilities"],(function(e,t,n,l){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default=t.default.extend({approved:(0,t.attr)("boolean"),requestPath:(0,t.attr)("string"),requestEntity:(0,t.belongsTo)("identity/entity",{async:!1,inverse:null}),authorizations:(0,t.hasMany)("identity/entity",{async:!1,inverse:null}),authorizePath:(0,l.default)(l.apiPath`sys/control-group/authorize`),canAuthorize:(0,n.alias)("authorizePath.canUpdate"),configurePath:(0,l.default)(l.apiPath`sys/config/control-group`),canConfigure:(0,n.alias)("configurePath.canUpdate")})})),define("vault/models/database/connection",["exports","@ember-data/model","@ember/object","@ember/object/computed","vault/macros/lazy-capabilities","vault/utils/field-to-attrs","vault/utils/database-helpers"],(function(e,t,n,l,i,r,a){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default=t.default.extend({backend:(0,t.attr)("string",{readOnly:!0}),name:(0,t.attr)("string",{label:"Connection name"}),plugin_name:(0,t.attr)("string",{label:"Database plugin",possibleValues:a.AVAILABLE_PLUGIN_TYPES,noDefault:!0}),verify_connection:(0,t.attr)("boolean",{label:"Connection will be verified",defaultValue:!0}),allowed_roles:(0,t.attr)("array"),password_policy:(0,t.attr)("string",{label:"Use custom password policy",editType:"optionalText",subText:"Specify the name of an existing password policy.",defaultSubText:"Unless a custom policy is specified, Vault will use a default: 20 characters with at least 1 uppercase, 1 lowercase, 1 number, and 1 dash character.",defaultShown:"Default",docLink:"/vault/docs/concepts/password-policies"}),connection_url:(0,t.attr)("string",{label:"Connection URL",subText:"The connection string used to connect to the database. This allows for simple templating of username and password of the root user in the {{field_name}} format."}),url:(0,t.attr)("string",{label:"URL",subText:'The URL for Elasticsearch\'s API ("https://localhost:9200").'}),username:(0,t.attr)("string",{subText:'The name of the user to use as the "root" user when connecting to the database.'}),password:(0,t.attr)("string",{subText:"The password to use when connecting with the above username.",editType:"password"}),ca_cert:(0,t.attr)("string",{label:"CA certificate",subText:"The path to a PEM-encoded CA cert file to use to verify the Elasticsearch server's identity."}),ca_path:(0,t.attr)("string",{label:"CA path",subText:"The path to a directory of PEM-encoded CA cert files to use to verify the Elasticsearch server's identity."}),client_cert:(0,t.attr)("string",{label:"Client certificate",subText:"The path to the certificate for the Elasticsearch client to present for communication."}),client_key:(0,t.attr)("string",{subText:"The path to the key for the Elasticsearch client to use for communication."}),hosts:(0,t.attr)("string",{}),host:(0,t.attr)("string",{}),port:(0,t.attr)("string",{}),write_concern:(0,t.attr)("string",{subText:"Optional. Must be in JSON. See our documentation for help.",allowReset:!0,editType:"json",theme:"hashi short",defaultShown:"Default"}),username_template:(0,t.attr)("string",{editType:"optionalText",subText:"Enter the custom username template to use.",defaultSubText:"Template describing how dynamic usernames are generated. Vault will use the default for this plugin.",docLink:"/vault/docs/concepts/username-templating",defaultShown:"Default"}),max_open_connections:(0,t.attr)("number",{defaultValue:4}),max_idle_connections:(0,t.attr)("number",{defaultValue:0}),max_connection_lifetime:(0,t.attr)("string",{defaultValue:"0s"}),insecure:(0,t.attr)("boolean",{label:"Disable SSL verification",defaultValue:!1}),tls:(0,t.attr)("string",{label:"TLS Certificate Key",helpText:"x509 certificate for connecting to the database. This must be a PEM encoded version of the private key and the certificate combined.",editType:"file"}),tls_ca:(0,t.attr)("string",{label:"TLS CA",helpText:"x509 CA file for validating the certificate presented by the MongoDB server. Must be PEM encoded.",editType:"file"}),tls_server_name:(0,t.attr)("string",{label:"TLS server name",subText:"If set, this name is used to set the SNI host when connecting via 1TLS."}),root_rotation_statements:(0,t.attr)({subText:"The database statements to be executed to rotate the root user's credentials. If nothing is entered, Vault will use a reasonable default.",editType:"stringArray",defaultShown:"Default"}),isAvailablePlugin:(0,n.computed)("plugin_name",(function(){return!!a.AVAILABLE_PLUGIN_TYPES.find((e=>e.value===this.plugin_name))})),showAttrs:(0,n.computed)("plugin_name",(function(){const e=a.AVAILABLE_PLUGIN_TYPES.find((e=>e.value===this.plugin_name)).fields.filter((e=>!1!==e.show)).map((e=>e.attr))
return e.push("allowed_roles"),(0,r.expandAttributeMeta)(this,e)})),fieldAttrs:(0,n.computed)("plugin_name",(function(){let e=["plugin_name","name","connection_url","verify_connection","password_policy"]
return this.plugin_name&&(e=a.AVAILABLE_PLUGIN_TYPES.find((e=>e.value===this.plugin_name)).fields.filter((e=>!e.group)).map((e=>e.attr))),(0,r.expandAttributeMeta)(this,e)})),pluginFieldGroups:(0,n.computed)("plugin_name",(function(){if(!this.plugin_name)return null
const e=function(e,t="subgroup"){const n=[],l=e.reduce((function(e,n){return(e[n[t]]=e[n[t]]||[]).push(n),e}),{})
return Object.keys(l).forEach((e=>{const t=l[e].map((e=>e.attr)),i="undefined"===e?"default":e
n.push({[i]:t})})),n}(a.AVAILABLE_PLUGIN_TYPES.find((e=>e.value===this.plugin_name)).fields.filter((e=>"pluginConfig"===e.group)),"subgroup")
return(0,r.default)(this,e)})),statementFields:(0,n.computed)("plugin_name",(function(){if(!this.plugin_name)return(0,r.expandAttributeMeta)(this,["root_rotation_statements"])
const e=a.AVAILABLE_PLUGIN_TYPES.find((e=>e.value===this.plugin_name)).fields.filter((e=>"statements"===e.group)).map((e=>e.attr))
return(0,r.expandAttributeMeta)(this,e)})),editConnectionPath:(0,i.default)(i.apiPath`${"backend"}/config/${"id"}`,"backend","id"),canEdit:(0,l.alias)("editConnectionPath.canUpdate"),canDelete:(0,l.alias)("editConnectionPath.canDelete"),resetConnectionPath:(0,i.default)(i.apiPath`${"backend"}/reset/${"id"}`,"backend","id"),canReset:(0,l.or)("resetConnectionPath.canUpdate","resetConnectionPath.canCreate"),rotateRootPath:(0,i.default)(i.apiPath`${"backend"}/rotate-root/${"id"}`,"backend","id"),canRotateRoot:(0,l.or)("rotateRootPath.canUpdate","rotateRootPath.canCreate"),rolePath:(0,i.default)(i.apiPath`${"backend"}/role/*`,"backend"),staticRolePath:(0,i.default)(i.apiPath`${"backend"}/static-role/*`,"backend"),canAddRole:(0,l.or)("rolePath.canCreate","staticRolePath.canCreate")})})),define("vault/models/database/credential",["exports","@ember-data/model"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default=t.default.extend({username:(0,t.attr)("string"),password:(0,t.attr)("string"),leaseId:(0,t.attr)("string"),leaseDuration:(0,t.attr)("string"),lastVaultRotation:(0,t.attr)("string"),rotationPeriod:(0,t.attr)("number"),ttl:(0,t.attr)("number"),roleType:(0,t.attr)("string")})})),define("vault/models/database/role",["exports","@ember-data/model","@ember/object","@ember/object/computed","vault/macros/lazy-capabilities","vault/utils/field-to-attrs","vault/utils/database-helpers"],(function(e,t,n,l,i,r,a){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default=t.default.extend({idPrefix:"role/",backend:(0,t.attr)("string",{readOnly:!0}),name:(0,t.attr)("string",{label:"Role name"}),database:(0,t.attr)("array",{label:"Connection name",editType:"searchSelect",fallbackComponent:"string-list",models:["database/connection"],selectLimit:1,onlyAllowExisting:!0,subText:"The database connection for which credentials will be generated."}),type:(0,t.attr)("string",{label:"Type of role",noDefault:!0,possibleValues:["static","dynamic"]}),default_ttl:(0,t.attr)({editType:"ttl",defaultValue:"1h",label:"Generated credentials’s Time-to-Live (TTL)",helperTextDisabled:"Vault will use a TTL of 1 hour.",defaultShown:"Engine default"}),max_ttl:(0,t.attr)({editType:"ttl",defaultValue:"24h",label:"Generated credentials’s maximum Time-to-Live (Max TTL)",helperTextDisabled:"Vault will use a TTL of 24 hours.",defaultShown:"Engine default"}),username:(0,t.attr)("string",{subText:"The database username that this Vault role corresponds to."}),rotation_period:(0,t.attr)({editType:"ttl",defaultValue:"24h",helperTextDisabled:"Specifies the amount of time Vault should wait before rotating the password. The minimum is 5 seconds. Default is 24 hours.",helperTextEnabled:"Vault will rotate password after"}),creation_statements:(0,t.attr)("array",{editType:"stringArray"}),revocation_statements:(0,t.attr)("array",{editType:"stringArray",defaultShown:"Default"}),rotation_statements:(0,t.attr)("array",{editType:"stringArray",defaultShown:"Default"}),rollback_statements:(0,t.attr)("array",{editType:"stringArray",defaultShown:"Default"}),renew_statements:(0,t.attr)("array",{editType:"stringArray",defaultShown:"Default"}),creation_statement:(0,t.attr)("string",{editType:"json",allowReset:!0,theme:"hashi short",defaultShown:"Default"}),revocation_statement:(0,t.attr)("string",{editType:"json",allowReset:!0,theme:"hashi short",defaultShown:"Default"}),get fieldAttrs(){return(0,r.expandAttributeMeta)(this,["name","database","type"])},get showFields(){let e=["name","database","type"]
return e=e.concat((0,a.getRoleFields)(this.type)).concat(["creation_statements"]),"elasticsearch"!==this.database[0]&&(e=e.concat(["revocation_statements"])),(0,r.expandAttributeMeta)(this,e)},roleSettingAttrs:(0,n.computed)((function(){return(0,r.expandAttributeMeta)(this,["default_ttl","max_ttl","username","rotation_period","creation_statements","creation_statement","revocation_statements","revocation_statement","rotation_statements","rollback_statements","renew_statements"])})),path:(0,t.attr)("string",{readOnly:!0}),secretPath:(0,i.default)(i.apiPath`${"backend"}/${"path"}/${"id"}`,"backend","path","id"),canEditRole:(0,l.alias)("secretPath.canUpdate"),canDelete:(0,l.alias)("secretPath.canDelete"),dynamicPath:(0,i.default)(i.apiPath`${"backend"}/roles/+`,"backend"),canCreateDynamic:(0,l.alias)("dynamicPath.canCreate"),staticPath:(0,i.default)(i.apiPath`${"backend"}/static-roles/+`,"backend"),canCreateStatic:(0,l.alias)("staticPath.canCreate"),credentialPath:(0,i.default)(i.apiPath`${"backend"}/creds/${"id"}`,"backend","id"),staticCredentialPath:(0,i.default)(i.apiPath`${"backend"}/static-creds/${"id"}`,"backend","id"),canGenerateCredentials:(0,l.alias)("credentialPath.canRead"),canGetCredentials:(0,l.alias)("staticCredentialPath.canRead"),databasePath:(0,i.default)(i.apiPath`${"backend"}/config/${"database[0]"}`,"backend","database"),canUpdateDb:(0,l.alias)("databasePath.canUpdate"),rotateRolePath:(0,i.default)(i.apiPath`${"backend"}/rotate-role/${"id"}`,"backend","id"),canRotateRoleCredentials:(0,l.alias)("rotateRolePath.canUpdate")})})),define("vault/models/identity/_base",["exports","@ember-data/model","@ember/debug","@ember/object","vault/utils/field-to-attrs"],(function(e,t,n,l,i){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default=t.default.extend({formFields:(0,l.computed)((function(){return(0,n.assert)("formFields should be overridden",!1)})),fields:(0,l.computed)("formFields","formFields.[]",(function(){return(0,i.expandAttributeMeta)(this,this.formFields)})),identityType:(0,l.computed)("constructor.modelName",(function(){return this.constructor.modelName.split("/")[1]}))})})),define("vault/models/identity/entity-alias",["exports","@ember-data/model","@ember/object","@ember/object/computed","vault/models/identity/_base","vault/macros/identity-capabilities"],(function(e,t,n,l,i,r){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default=i.default.extend({parentType:"entity",formFields:(0,n.computed)((function(){return["name","mountAccessor"]})),entity:(0,t.belongsTo)("identity/entity",{readOnly:!0,async:!1,inverse:"aliases"}),name:(0,t.attr)("string"),canonicalId:(0,t.attr)("string"),mountAccessor:(0,t.attr)("string",{label:"Auth Backend",editType:"mountAccessor"}),metadata:(0,t.attr)({editType:"kv",isSectionHeader:!0}),mountPath:(0,t.attr)("string",{readOnly:!0}),mountType:(0,t.attr)("string",{readOnly:!0}),creationTime:(0,t.attr)("string",{readOnly:!0}),lastUpdateTime:(0,t.attr)("string",{readOnly:!0}),mergedFromCanonicalIds:(0,t.attr)(),updatePath:(0,r.default)(),canDelete:(0,l.alias)("updatePath.canDelete"),canEdit:(0,l.alias)("updatePath.canUpdate")})})),define("vault/models/identity/entity-merge",["exports","@ember-data/model","@ember/object","vault/models/identity/_base"],(function(e,t,n,l){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default=l.default.extend({formFields:(0,n.computed)((function(){return["toEntityId","fromEntityIds","force"]})),toEntityId:(0,t.attr)("string",{label:"Entity to merge to"}),fromEntityIds:(0,t.attr)({label:"Entities to merge from",editType:"stringArray"}),force:(0,t.attr)("boolean",{label:'Keep MFA secrets from the "to" entity if there are merge conflicts',defaultValue:!1})})})),define("vault/models/identity/entity",["exports","@ember-data/model","@ember/object","@ember/object/computed","vault/models/identity/_base","vault/utils/api-path","vault/macros/lazy-capabilities"],(function(e,t,n,l,i,r,a){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default=i.default.extend({formFields:(0,n.computed)((function(){return["name","disabled","policies","metadata"]})),name:(0,t.attr)("string"),disabled:(0,t.attr)("boolean",{defaultValue:!1,label:"Disable entity",helpText:"All associated tokens cannot be used, but are not revoked."}),mergedEntityIds:(0,t.attr)(),metadata:(0,t.attr)({editType:"kv",isSectionHeader:!0}),policies:(0,t.attr)({editType:"yield",isSectionHeader:!0}),creationTime:(0,t.attr)("string",{readOnly:!0}),lastUpdateTime:(0,t.attr)("string",{readOnly:!0}),aliases:(0,t.hasMany)("identity/entity-alias",{async:!1,readOnly:!0,inverse:"entity"}),groupIds:(0,t.attr)({readOnly:!0}),directGroupIds:(0,t.attr)({readOnly:!0}),inheritedGroupIds:(0,t.attr)({readOnly:!0}),updatePath:(0,a.default)(r.default`identity/entity/id/${"id"}`,"id"),canDelete:(0,l.alias)("updatePath.canDelete"),canEdit:(0,l.alias)("updatePath.canUpdate"),canRead:(0,l.alias)("updatePath.canRead"),aliasPath:(0,a.default)(r.default`identity/entity-alias`),canAddAlias:(0,l.alias)("aliasPath.canCreate"),policyPath:(0,a.default)(r.default`sys/policies`),canCreatePolicies:(0,l.alias)("policyPath.canCreate")})})),define("vault/models/identity/group-alias",["exports","@ember-data/model","@ember/object","@ember/object/computed","vault/models/identity/_base","vault/macros/identity-capabilities"],(function(e,t,n,l,i,r){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default=i.default.extend({parentType:"group",formFields:(0,n.computed)((function(){return["name","mountAccessor"]})),group:(0,t.belongsTo)("identity/group",{readOnly:!0,async:!1,inverse:"alias"}),name:(0,t.attr)("string"),canonicalId:(0,t.attr)("string"),mountPath:(0,t.attr)("string",{readOnly:!0}),mountType:(0,t.attr)("string",{readOnly:!0}),mountAccessor:(0,t.attr)("string",{label:"Auth Backend",editType:"mountAccessor"}),creationTime:(0,t.attr)("string",{readOnly:!0}),lastUpdateTime:(0,t.attr)("string",{readOnly:!0}),updatePath:(0,r.default)(),canDelete:(0,l.alias)("updatePath.canDelete"),canEdit:(0,l.alias)("updatePath.canUpdate")})})),define("vault/models/identity/group",["exports","@ember-data/model","@ember/object/computed","@ember/object","vault/models/identity/_base","vault/macros/lazy-capabilities","vault/macros/identity-capabilities"],(function(e,t,n,l,i,r,a){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default=i.default.extend({formFields:(0,l.computed)("type",(function(){const e=["name","type","policies","metadata"]
return"internal"===this.type?e.concat(["memberGroupIds","memberEntityIds"]):e})),name:(0,t.attr)("string"),type:(0,t.attr)("string",{defaultValue:"internal",possibleValues:["internal","external"]}),creationTime:(0,t.attr)("string",{readOnly:!0}),lastUpdateTime:(0,t.attr)("string",{readOnly:!0}),numMemberEntities:(0,t.attr)("number",{readOnly:!0}),numParentGroups:(0,t.attr)("number",{readOnly:!0}),metadata:(0,t.attr)("object",{editType:"kv",isSectionHeader:!0}),policies:(0,t.attr)({editType:"yield",isSectionHeader:!0}),memberGroupIds:(0,t.attr)({label:"Member Group IDs",editType:"searchSelect",isSectionHeader:!0,fallbackComponent:"string-list",models:["identity/group"]}),parentGroupIds:(0,t.attr)({label:"Parent Group IDs",editType:"searchSelect",isSectionHeader:!0,fallbackComponent:"string-list",models:["identity/group"]}),memberEntityIds:(0,t.attr)({label:"Member Entity IDs",editType:"searchSelect",isSectionHeader:!0,fallbackComponent:"string-list",models:["identity/entity"]}),hasMembers:(0,l.computed)("memberEntityIds","memberEntityIds.[]","memberGroupIds","memberGroupIds.[]",(function(){const{memberEntityIds:e,memberGroupIds:t}=this
return(e&&e.length||0)+(t&&t.length||0)>0})),policyPath:(0,r.default)(r.apiPath`sys/policies`),canCreatePolicies:(0,n.alias)("policyPath.canCreate"),alias:(0,t.belongsTo)("identity/group-alias",{async:!1,readOnly:!0,inverse:"group"}),updatePath:(0,a.default)(),canDelete:(0,n.alias)("updatePath.canDelete"),canEdit:(0,n.alias)("updatePath.canUpdate"),aliasPath:(0,r.default)(r.apiPath`identity/group-alias`),canAddAlias:(0,n.alias)("aliasPath.canCreate")})})),define("vault/models/identity/oidc/config",["exports","@ember-data/model","vault/utils/field-to-attrs"],(function(e,t,n){var l,i,r
Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default=(l=(0,t.attr)("string",{label:"Issuer",subText:"The Issuer URL to be used in configuring Vault as an identity provider in AWS. If not set, Vault's default issuer will be used",docLink:"/vault/api-docs/secret/identity/tokens#configure-the-identity-tokens-backend",placeholder:"https://vault-test.com"}),i=class extends t.default{constructor(...e){var t,n,l,i
super(...e),t=this,n="issuer",i=this,(l=r)&&Object.defineProperty(t,n,{enumerable:l.enumerable,configurable:l.configurable,writable:l.writable,value:l.initializer?l.initializer.call(i):void 0})}get attrs(){return(0,n.expandAttributeMeta)(this,["issuer"])}},a=i.prototype,o="issuer",s=[l],u={configurable:!0,enumerable:!0,writable:!0,initializer:null},d={},Object.keys(u).forEach((function(e){d[e]=u[e]})),d.enumerable=!!d.enumerable,d.configurable=!!d.configurable,("value"in d||d.initializer)&&(d.writable=!0),d=s.slice().reverse().reduce((function(e,t){return t(a,o,e)||e}),d),c&&void 0!==d.initializer&&(d.value=d.initializer?d.initializer.call(c):void 0,d.initializer=void 0),r=void 0===d.initializer?(Object.defineProperty(a,o,d),null):d,i)
var a,o,s,u,c,d})),define("vault/models/keymgmt/key",["exports","@ember-data/model","vault/utils/field-to-attrs","vault/macros/lazy-capabilities"],(function(e,t,n,l){var i,r,a,o,s,u,c,d,p,f,m,h,b,y,v,g,w,k,x,P,_,T,O,j,z,M,S,C,A
function E(e,t,n,l){n&&Object.defineProperty(e,t,{enumerable:n.enumerable,configurable:n.configurable,writable:n.writable,value:n.initializer?n.initializer.call(l):void 0})}function R(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e
var n=e[Symbol.toPrimitive]
if(void 0!==n){var l=n.call(e,t||"default")
if("object"!=typeof l)return l
throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string")
return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function D(e,t,n,l,i){var r={}
return Object.keys(l).forEach((function(e){r[e]=l[e]})),r.enumerable=!!r.enumerable,r.configurable=!!r.configurable,("value"in r||r.initializer)&&(r.writable=!0),r=n.slice().reverse().reduce((function(n,l){return l(e,t,n)||n}),r),i&&void 0!==r.initializer&&(r.value=r.initializer?r.initializer.call(i):void 0,r.initializer=void 0),void 0===r.initializer?(Object.defineProperty(e,t,r),null):r}Object.defineProperty(e,"__esModule",{value:!0}),e.default=e.KEY_TYPES=void 0
const N=e.KEY_TYPES=["aes256-gcm96","rsa-2048","rsa-3072","rsa-4096","ecdsa-p256","ecdsa-p384","ecdsa-p521"]
e.default=(i=(0,t.attr)("string",{label:"Key name",subText:"This is the name of the key that shows in Vault."}),r=(0,t.attr)("string"),a=(0,t.attr)("string",{subText:"The type of cryptographic key that will be created.",possibleValues:N,defaultValue:"rsa-2048"}),o=(0,t.attr)("boolean",{label:"Allow deletion",defaultValue:!1}),s=(0,t.attr)("number",{label:"Current version"}),u=(0,t.attr)("number",{defaultValue:0,defaultShown:"All versions enabled"}),c=(0,t.attr)("array"),d=(0,t.attr)("date"),p=(0,t.attr)("date",{defaultShown:"Not yet rotated"}),f=(0,t.attr)(),m=(0,t.attr)(),h=(0,l.default)(l.apiPath`${"backend"}/key/${"id"}`,"backend","id"),b=(0,l.default)(l.apiPath`${"backend"}/key`,"backend"),y=(0,l.default)(l.apiPath`${"backend"}/key/${"id"}/kms`,"backend","id"),v=class extends t.default{constructor(...e){super(...e),E(this,"name",g,this),E(this,"backend",w,this),E(this,"type",k,this),E(this,"deletionAllowed",x,this),E(this,"latestVersion",P,this),E(this,"minEnabledVersion",_,this),E(this,"versions",T,this),E(this,"created",O,this),E(this,"lastRotated",j,this),E(this,"provider",z,this),E(this,"distribution",M,this),R(this,"icon","key"),E(this,"keyPath",S,this),E(this,"keysPath",C,this),E(this,"keyProvidersPath",A,this)}get hasVersions(){return this.versions.length>1}get createFields(){return(0,n.expandAttributeMeta)(this,["name","type","deletionAllowed"])}get updateFields(){return(0,n.expandAttributeMeta)(this,["minEnabledVersion","deletionAllowed"])}get showFields(){return(0,n.expandAttributeMeta)(this,["name","created","type","deletionAllowed","latestVersion","minEnabledVersion","lastRotated"])}get keyTypeOptions(){return(0,n.expandAttributeMeta)(this,["type"])[0]}get distFields(){return[{name:"name",type:"string",label:"Distributed name",subText:"The name given to the key by the provider."},{name:"purpose",type:"string",label:"Key Purpose"},{name:"protection",type:"string",subText:"Where cryptographic operations are performed."}]}get canCreate(){return this.keyPath.get("canCreate")}get canDelete(){return this.keyPath.get("canDelete")}get canEdit(){return this.keyPath.get("canUpdate")}get canRead(){return this.keyPath.get("canRead")}get canList(){return this.keysPath.get("canList")}get canListProviders(){return this.keyProvidersPath.get("canList")}},g=D(v.prototype,"name",[i],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),w=D(v.prototype,"backend",[r],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),k=D(v.prototype,"type",[a],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),x=D(v.prototype,"deletionAllowed",[o],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),P=D(v.prototype,"latestVersion",[s],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),_=D(v.prototype,"minEnabledVersion",[u],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),T=D(v.prototype,"versions",[c],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),O=D(v.prototype,"created",[d],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),j=D(v.prototype,"lastRotated",[p],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),z=D(v.prototype,"provider",[f],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),M=D(v.prototype,"distribution",[m],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),S=D(v.prototype,"keyPath",[h],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),C=D(v.prototype,"keysPath",[b],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),A=D(v.prototype,"keyProvidersPath",[y],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),v)})),define("vault/models/keymgmt/provider",["exports","@ember-data/model","@glimmer/tracking","vault/utils/field-to-attrs","vault/decorators/model-validations","vault/macros/lazy-capabilities","@ember/service"],(function(e,t,n,l,i,r,a){var o,s,u,c,d,p,f,m,h,b,y,v,g,w,k,x,P,_,T,O
function j(e,t,n,l){n&&Object.defineProperty(e,t,{enumerable:n.enumerable,configurable:n.configurable,writable:n.writable,value:n.initializer?n.initializer.call(l):void 0})}function z(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e
var n=e[Symbol.toPrimitive]
if(void 0!==n){var l=n.call(e,t||"default")
if("object"!=typeof l)return l
throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string")
return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function M(e,t,n,l,i){var r={}
return Object.keys(l).forEach((function(e){r[e]=l[e]})),r.enumerable=!!r.enumerable,r.configurable=!!r.configurable,("value"in r||r.initializer)&&(r.writable=!0),r=n.slice().reverse().reduce((function(n,l){return l(e,t,n)||n}),r),i&&void 0!==r.initializer&&(r.value=r.initializer?r.initializer.call(i):void 0,r.initializer=void 0),void 0===r.initializer?(Object.defineProperty(e,t,r),null):r}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
const S={azurekeyvault:["client_id","client_secret","tenant_id"],awskms:["access_key","secret_key","session_token","endpoint"],gcpckms:["service_account_file"]},C=["session_token","endpoint"],A={name:[{type:"presence",message:"Provider name is required"}],keyCollection:[{type:"presence",message:"Key Vault instance name"}],...Object.keys(S).reduce(((e,t)=>(S[t].forEach((t=>{C.includes(t)||(e[`credentials.${t}`]=[{message:`${t} is required`,validator:e=>!e.credentialProps.includes(t)||e.credentials[t]}])})),e)),{})}
e.default=(o=(0,i.withModelValidations)(A),s=(0,t.attr)("string"),u=(0,t.attr)("string",{label:"Provider name",subText:"This is the name of the provider that will be displayed in Vault. This cannot be edited later."}),c=(0,t.attr)("string",{label:"Type",subText:"Choose the provider type.",possibleValues:["azurekeyvault","awskms","gcpckms"],noDefault:!0}),d=(0,t.attr)("string",{label:"Key Vault instance name",subText:"The name of a Key Vault instance must be supplied. This cannot be edited later."}),p=(0,r.default)(r.apiPath`${"backend"}/kms/${"id"}`,"backend","id"),f=(0,r.default)(r.apiPath`${"backend"}/kms`,"backend"),m=(0,r.default)(r.apiPath`${"backend"}/kms/${"id"}/key`,"backend","id"),o((b=class extends t.default{constructor(...e){super(...e),j(this,"store",y,this),j(this,"backend",v,this),j(this,"name",g,this),j(this,"provider",w,this),j(this,"keyCollection",k,this),z(this,"idPrefix","provider/"),z(this,"type","provider"),j(this,"keys",x,this),j(this,"credentials",P,this),j(this,"providerPath",_,this),j(this,"providersPath",T,this),j(this,"providerKeysPath",O,this)}get icon(){return{azurekeyvault:"azure-color",awskms:"aws-color",gcpckms:"gcp-color"}[this.provider]}get typeName(){return{azurekeyvault:"Azure Key Vault",awskms:"AWS Key Management Service",gcpckms:"Google Cloud Key Management Service"}[this.provider]}get showFields(){const e=(0,l.expandAttributeMeta)(this,["name","keyCollection"])
e.splice(1,0,{hasBlock:!0,label:"Type",value:this.typeName,icon:this.icon})
const t=this.keys.length,n=t?`${t} ${t>1?"keys":"key"}`:this.canListKeys?"None":"You do not have permission to list keys"
return e.push({hasBlock:!0,isLink:t,label:"Keys",value:n}),e}get credentialProps(){return this.provider?S[this.provider]:[]}get credentialFields(){const[e,t]=this.credentialProps.reduce((([e,t],n)=>{e[n]=null
const l={name:`credentials.${n}`,type:"string",options:{label:n}}
return"service_account_file"===n&&(l.options.subText="The path to a Google service account key file, not the file itself."),t.push(l),[e,t]}),[{},[]])
return this.credentials=e,t}get createFields(){return(0,l.expandAttributeMeta)(this,["provider","name","keyCollection"])}async fetchKeys(e){if(!1===this.canListKeys)this.keys=[]
else try{this.keys=await this.store.lazyPaginatedQuery("keymgmt/key",{backend:this.backend,provider:this.name,responsePath:"data.keys",page:Number(e)||1})}catch(t){if(this.keys=[],404!==t.httpStatus)throw t}}get canCreate(){return this.providerPath.get("canCreate")}get canDelete(){return this.providerPath.get("canDelete")}get canEdit(){return this.providerPath.get("canUpdate")}get canRead(){return this.providerPath.get("canRead")}get canList(){return this.providersPath.get("canList")}get canListKeys(){return this.providerKeysPath.get("canList")}get canCreateKeys(){return this.providerKeysPath.get("canCreate")}},y=M(b.prototype,"store",[a.service],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),v=M(b.prototype,"backend",[s],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),g=M(b.prototype,"name",[u],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),w=M(b.prototype,"provider",[c],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),k=M(b.prototype,"keyCollection",[d],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),x=M(b.prototype,"keys",[n.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return[]}}),P=M(b.prototype,"credentials",[n.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),_=M(b.prototype,"providerPath",[p],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),T=M(b.prototype,"providersPath",[f],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),O=M(b.prototype,"providerKeysPath",[m],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),h=b))||h)})),define("vault/models/kmip/ca",["exports","@ember-data/model"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default=t.default.extend({config:(0,t.belongsTo)("kmip/config",{async:!1,inverse:"ca"}),caPem:(0,t.attr)("string",{label:"CA PEM"})})}))
define("vault/models/kmip/config",["exports","@ember-data/model","@ember/object","vault/utils/openapi-to-attrs","vault/utils/field-to-attrs"],(function(e,t,n,l,i){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default=t.default.extend({ca:(0,t.belongsTo)("kmip/ca",{async:!1,inverse:"config"}),fieldGroups:(0,n.computed)("newFields",(function(){let e=[{default:["listenAddrs","connectionTimeout"]}]
return e=(0,l.combineFieldGroups)(e,this.newFields,[]),(0,i.default)(this,e)}))})})),define("vault/models/kmip/credential",["exports","@ember-data/model","vault/utils/field-to-attrs","@ember/object","vault/utils/api-path","vault/macros/lazy-capabilities"],(function(e,t,n,l,i,r){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default=t.default.extend({backend:(0,t.attr)({readOnly:!0}),scope:(0,t.attr)({readOnly:!0}),role:(0,t.attr)({readOnly:!0}),certificate:(0,t.attr)("string",{readOnly:!0}),caChain:(0,t.attr)({readOnly:!0}),privateKey:(0,t.attr)("string",{readOnly:!0,sensitive:!0}),format:(0,t.attr)("string",{possibleValues:["pem","der","pem_bundle"],defaultValue:"pem",label:"Certificate format"}),fieldGroups:(0,l.computed)((function(){return(0,n.default)(this,[{default:["format"]}])})),deletePath:(0,r.default)(i.default`${"backend"}/scope/${"scope"}/role/${"role"}/credentials/revoke`,"backend","scope","role")})})),define("vault/models/kmip/role",["exports","@ember-data/model","@ember/object","vault/utils/field-to-attrs","vault/utils/api-path","vault/macros/lazy-capabilities","vault/helpers/remove-from-array"],(function(e,t,n,l,i,r,a){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
const o={operationFields:(0,n.computed)("newFields",(function(){return this.newFields.filter((e=>e.startsWith("operation")))})),operationFieldsWithoutSpecial:(0,n.computed)("operationFields",(function(){return(0,a.removeManyFromArray)(this.operationFields,["operationAll","operationNone"])})),tlsFields:(0,n.computed)((function(){return["tlsClientKeyBits","tlsClientKeyType","tlsClientTtl"]})),defaultFields:(0,n.computed)("newFields","operationFields","tlsFields",(function(){const e=["role"].concat(this.operationFields,this.tlsFields)
return(0,a.removeManyFromArray)(this.newFields,e)})),nonOperationFields:(0,n.computed)("newFields","operationFields",(function(){return(0,a.removeManyFromArray)(this.newFields,this.operationFields)}))}
e.default=t.default.extend(o,{backend:(0,t.attr)({readOnly:!0}),scope:(0,t.attr)({readOnly:!0}),name:(0,t.attr)({readOnly:!0}),fieldGroups:(0,n.computed)("fields","defaultFields.length","tlsFields",(function(){const e=[{TLS:this.tlsFields}]
this.defaultFields.length&&e.unshift({default:this.defaultFields})
return(0,l.default)(this,e)})),operationFormFields:(0,n.computed)("operationFieldsWithoutSpecial",(function(){const e=["operationCreate","operationActivate","operationGet","operationLocate","operationRekey","operationRevoke","operationDestroy"],t=["operationAddAttribute","operationGetAttributes"],n=["operationDiscoverVersions"],i=(0,a.removeManyFromArray)(this.operationFieldsWithoutSpecial,[...e,...t,...n]),r=[{"Managed Cryptographic Objects":e},{"Object Attributes":t},{Server:n}]
return i.length&&r.push({Other:i}),(0,l.default)(this,r)})),tlsFormFields:(0,n.computed)("tlsFields",(function(){return(0,l.expandAttributeMeta)(this,this.tlsFields)})),fields:(0,n.computed)("defaultFields",(function(){return(0,l.expandAttributeMeta)(this,this.defaultFields)})),updatePath:(0,r.default)(i.default`${"backend"}/scope/${"scope"}/role/${"id"}`,"backend","scope","id")})})),define("vault/models/kmip/scope",["exports","@ember-data/model","@ember/object","vault/utils/api-path","vault/utils/field-to-attrs","vault/macros/lazy-capabilities"],(function(e,t,n,l,i,r){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default=t.default.extend({name:(0,t.attr)("string"),backend:(0,t.attr)({readOnly:!0}),attrs:(0,n.computed)((function(){return(0,i.expandAttributeMeta)(this,["name"])})),updatePath:(0,r.default)(l.default`${"backend"}/scope/${"id"}`,"backend","id")})})),define("vault/models/kubernetes/config",["exports","@ember-data/model","vault/decorators/model-form-fields","vault/decorators/model-validations"],(function(e,t,n,l){var i,r,a,o,s,u,c,d,p,f,m,h,b,y
function v(e,t,n,l){n&&Object.defineProperty(e,t,{enumerable:n.enumerable,configurable:n.configurable,writable:n.writable,value:n.initializer?n.initializer.call(l):void 0})}function g(e,t,n,l,i){var r={}
return Object.keys(l).forEach((function(e){r[e]=l[e]})),r.enumerable=!!r.enumerable,r.configurable=!!r.configurable,("value"in r||r.initializer)&&(r.writable=!0),r=n.slice().reverse().reduce((function(n,l){return l(e,t,n)||n}),r),i&&void 0!==r.initializer&&(r.value=r.initializer?r.initializer.call(i):void 0,r.initializer=void 0),void 0===r.initializer?(Object.defineProperty(e,t,r),null):r}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default=(i=(0,l.withModelValidations)({kubernetesHost:[{validator:e=>!(e.disableLocalCaJwt&&!e.kubernetesHost),message:"Kubernetes host is required"}]}),r=(0,n.withFormFields)(["kubernetesHost","serviceAccountJwt","kubernetesCaCert"]),a=(0,t.attr)("string"),o=(0,t.attr)("string",{label:"Kubernetes host",subText:"Kubernetes API URL to connect to."}),s=(0,t.attr)("string",{label:"Service account JWT",subText:"The JSON web token of the service account used by the secret engine to manage Kubernetes roles. Defaults to the local pod’s JWT if found."}),u=(0,t.attr)("string",{label:"Kubernetes CA Certificate",subText:"PEM-encoded CA certificate to use by the secret engine to verify the Kubernetes API server certificate. Defaults to the local pod’s CA if found.",editType:"textarea"}),c=(0,t.attr)("boolean",{defaultValue:!1}),i(d=r((p=class extends t.default{constructor(...e){super(...e),v(this,"backend",f,this),v(this,"kubernetesHost",m,this),v(this,"serviceAccountJwt",h,this),v(this,"kubernetesCaCert",b,this),v(this,"disableLocalCaJwt",y,this)}},f=g(p.prototype,"backend",[a],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),m=g(p.prototype,"kubernetesHost",[o],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),h=g(p.prototype,"serviceAccountJwt",[s],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),b=g(p.prototype,"kubernetesCaCert",[u],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),y=g(p.prototype,"disableLocalCaJwt",[c],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),d=p))||d)||d)})),define("vault/models/kubernetes/role",["exports","@ember-data/model","vault/decorators/model-validations","vault/decorators/model-form-fields","vault/macros/lazy-capabilities","@glimmer/tracking"],(function(e,t,n,l,i,r){var a,o,s,u,c,d,p,f,m,h,b,y,v,g,w,k,x,P,_,T,O,j,z,M,S,C,A,E,R,D,N,F,I
function L(e,t,n,l){n&&Object.defineProperty(e,t,{enumerable:n.enumerable,configurable:n.configurable,writable:n.writable,value:n.initializer?n.initializer.call(l):void 0})}function U(e,t,n,l,i){var r={}
return Object.keys(l).forEach((function(e){r[e]=l[e]})),r.enumerable=!!r.enumerable,r.configurable=!!r.configurable,("value"in r||r.initializer)&&(r.writable=!0),r=n.slice().reverse().reduce((function(n,l){return l(e,t,n)||n}),r),i&&void 0!==r.initializer&&(r.value=r.initializer?r.initializer.call(i):void 0,r.initializer=void 0),void 0===r.initializer?(Object.defineProperty(e,t,r),null):r}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default=(a=(0,n.withModelValidations)({name:[{type:"presence",message:"Name is required"}]}),o=(0,l.withFormFields)(["name","serviceAccountName","kubernetesRoleType","kubernetesRoleName","allowedKubernetesNamespaces","tokenMaxTtl","tokenDefaultTtl","nameTemplate"]),s=(0,t.attr)("string"),u=(0,t.attr)("string",{label:"Role name",subText:"The role’s name in Vault."}),c=(0,t.attr)("string",{label:"Service account name",subText:"Vault will use the default template when generating service accounts, roles and role bindings."}),d=(0,t.attr)("string",{label:"Kubernetes role type",editType:"radio",possibleValues:["Role","ClusterRole"]}),p=(0,t.attr)("string",{label:"Kubernetes role name",subText:"Vault will use the default template when generating service accounts, roles and role bindings."}),f=(0,t.attr)("string",{label:"Allowed Kubernetes namespaces",subText:'A list of the valid Kubernetes namespaces in which this role can be used for creating service accounts. If set to "*" all namespaces are allowed.'}),m=(0,t.attr)({label:"Max Lease TTL",editType:"ttl"}),h=(0,t.attr)({label:"Default Lease TTL",editType:"ttl"}),b=(0,t.attr)("string",{label:"Name template",editType:"optionalText",defaultSubText:"Vault will use the default template when generating service accounts, roles and role bindings.",subText:"Vault will use the default template when generating service accounts, roles and role bindings."}),y=(0,t.attr)("string"),v=(0,i.default)(i.apiPath`${"backend"}/roles/${"name"}`,"backend","name"),g=(0,i.default)(i.apiPath`${"backend"}/creds/${"name"}`,"backend","name"),w=(0,i.default)(i.apiPath`${"backend"}/roles`,"backend"),a(k=o((x=class extends t.default{constructor(...e){super(...e),L(this,"backend",P,this),L(this,"name",_,this),L(this,"serviceAccountName",T,this),L(this,"kubernetesRoleType",O,this),L(this,"kubernetesRoleName",j,this),L(this,"allowedKubernetesNamespaces",z,this),L(this,"tokenMaxTtl",M,this),L(this,"tokenDefaultTtl",S,this),L(this,"nameTemplate",C,this),L(this,"extraAnnotations",A,this),L(this,"extraLabels",E,this),L(this,"generatedRoleRules",R,this),L(this,"_generationPreference",D,this),L(this,"rolePath",N,this),L(this,"credsPath",F,this),L(this,"rolesPath",I,this)}get generationPreference(){if(this._generationPreference)return this._generationPreference
let e=null
return this.serviceAccountName?e="basic":this.kubernetesRoleName?e="expanded":this.generatedRoleRules&&(e="full"),e}set generationPreference(e){({basic:["kubernetesRoleType","kubernetesRoleName","generatedRoleRules","nameTemplate"],expanded:["serviceAccountName","generatedRoleRules"],full:["serviceAccountName","kubernetesRoleName"]})[e].forEach((e=>this[e]=null)),this._generationPreference=e}get filteredFormFields(){const e={basic:[2,3,7],expanded:[1],full:[1,3]}[this.generationPreference]
return e?this.formFields.filter(((t,n)=>!e.includes(n))):null}get canCreate(){return this.rolePath.get("canCreate")}get canDelete(){return this.rolePath.get("canDelete")}get canEdit(){return this.rolePath.get("canUpdate")}get canRead(){return this.rolePath.get("canRead")}get canList(){return this.rolesPath.get("canList")}get canGenerateCreds(){return this.credsPath.get("canCreate")}},P=U(x.prototype,"backend",[s],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),_=U(x.prototype,"name",[u],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),T=U(x.prototype,"serviceAccountName",[c],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),O=U(x.prototype,"kubernetesRoleType",[d],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),j=U(x.prototype,"kubernetesRoleName",[p],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),z=U(x.prototype,"allowedKubernetesNamespaces",[f],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),M=U(x.prototype,"tokenMaxTtl",[m],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),S=U(x.prototype,"tokenDefaultTtl",[h],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),C=U(x.prototype,"nameTemplate",[b],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),A=U(x.prototype,"extraAnnotations",[t.attr],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),E=U(x.prototype,"extraLabels",[t.attr],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),R=U(x.prototype,"generatedRoleRules",[y],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),D=U(x.prototype,"_generationPreference",[r.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),N=U(x.prototype,"rolePath",[v],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),F=U(x.prototype,"credsPath",[g],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),I=U(x.prototype,"rolesPath",[w],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),k=x))||k)||k)})),define("vault/models/kv/config",["exports","@ember-data/model","vault/macros/lazy-capabilities","vault/decorators/model-form-fields","core/helpers/format-duration"],(function(e,t,n,l,i){var r,a,o,s,u,c,d,p,f,m,h,b
function y(e,t,n,l){n&&Object.defineProperty(e,t,{enumerable:n.enumerable,configurable:n.configurable,writable:n.writable,value:n.initializer?n.initializer.call(l):void 0})}function v(e,t,n,l,i){var r={}
return Object.keys(l).forEach((function(e){r[e]=l[e]})),r.enumerable=!!r.enumerable,r.configurable=!!r.configurable,("value"in r||r.initializer)&&(r.writable=!0),r=n.slice().reverse().reduce((function(n,l){return l(e,t,n)||n}),r),i&&void 0!==r.initializer&&(r.value=r.initializer?r.initializer.call(i):void 0,r.initializer=void 0),void 0===r.initializer?(Object.defineProperty(e,t,r),null):r}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default=(r=(0,l.withFormFields)(["casRequired","deleteVersionAfter","maxVersions"]),a=(0,t.attr)("number",{label:"Maximum number of versions"}),o=(0,t.attr)("boolean",{label:"Require check and set"}),s=(0,t.attr)({label:"Automate secret deletion"}),u=(0,n.default)(n.apiPath`${"backend"}/config`,"backend"),r((d=class extends t.default{constructor(...e){super(...e),y(this,"backend",p,this),y(this,"maxVersions",f,this),y(this,"casRequired",m,this),y(this,"deleteVersionAfter",h,this),y(this,"configPath",b,this)}get canRead(){return!1!==this.configPath.get("canRead")}get displayFields(){return["casRequired","deleteVersionAfter","maxVersions"]}get displayDeleteTtl(){return"0s"===this.deleteVersionAfter?"Never delete":(0,i.duration)([this.deleteVersionAfter])}},p=v(d.prototype,"backend",[t.attr],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),f=v(d.prototype,"maxVersions",[a],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),m=v(d.prototype,"casRequired",[o],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),h=v(d.prototype,"deleteVersionAfter",[s],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),b=v(d.prototype,"configPath",[u],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),c=d))||c)})),define("vault/models/kv/data",["exports","@ember-data/model","vault/macros/lazy-capabilities","vault/decorators/model-validations","vault/decorators/model-form-fields","kv/utils/kv-deleted","vault/utils/validators"],(function(e,t,n,l,i,r,a){var o,s,u,c,d,p,f,m,h,b,y,v,g,w,k,x,P,_,T,O,j,z,M,S,C,A,E,R,D,N,F,I,L,U,V,q
function $(e,t,n,l){n&&Object.defineProperty(e,t,{enumerable:n.enumerable,configurable:n.configurable,writable:n.writable,value:n.initializer?n.initializer.call(l):void 0})}function K(e,t,n,l,i){var r={}
return Object.keys(l).forEach((function(e){r[e]=l[e]})),r.enumerable=!!r.enumerable,r.configurable=!!r.configurable,("value"in r||r.initializer)&&(r.writable=!0),r=n.slice().reverse().reduce((function(n,l){return l(e,t,n)||n}),r),i&&void 0!==r.initializer&&(r.value=r.initializer?r.initializer.call(i):void 0,r.initializer=void 0),void 0===r.initializer?(Object.defineProperty(e,t,r),null):r}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
const B={path:[{type:"presence",message:"Path can't be blank."},{type:"endsInSlash",message:"Path can't end in forward slash '/'."},{type:"containsWhiteSpace",message:(0,a.WHITESPACE_WARNING)("path"),level:"warn"}],secretData:[{validator:e=>void 0===e.secretData||"object"==typeof e.secretData,message:"Vault expects data to be formatted as an JSON object."}]}
e.default=(o=(0,l.withModelValidations)(B),s=(0,i.withFormFields)(),u=(0,t.attr)("string"),c=(0,t.attr)("string",{label:"Path for this secret",subText:"Names with forward slashes define hierarchical path structures."}),d=(0,t.attr)("object"),p=(0,t.attr)("string"),f=(0,t.attr)("object"),m=(0,t.attr)("string"),h=(0,t.attr)("boolean"),b=(0,t.attr)("number"),y=(0,t.attr)("number"),v=(0,t.attr)("number"),g=(0,n.default)(n.apiPath`${"backend"}/data/${"path"}`,"backend","path"),w=(0,n.default)(n.apiPath`${"backend"}/metadata/${"path"}`,"backend","path"),k=(0,n.default)(n.apiPath`${"backend"}/delete/${"path"}`,"backend","path"),x=(0,n.default)(n.apiPath`${"backend"}/destroy/${"path"}`,"backend","path"),P=(0,n.default)(n.apiPath`${"backend"}/undelete/${"path"}`,"backend","path"),_=(0,n.default)(n.apiPath`${"backend"}/subkeys/${"path"}`,"backend","path"),o(T=s((O=class extends t.default{constructor(...e){super(...e),$(this,"backend",j,this),$(this,"path",z,this),$(this,"secretData",M,this),$(this,"createdTime",S,this),$(this,"customMetadata",C,this),$(this,"deletionTime",A,this),$(this,"destroyed",E,this),$(this,"version",R,this),$(this,"failReadErrorCode",D,this),$(this,"casVersion",N,this),$(this,"dataPath",F,this),$(this,"metadataPath",I,this),$(this,"deletePath",L,this),$(this,"destroyPath",U,this),$(this,"undeletePath",V,this),$(this,"subkeysPath",q,this)}get state(){return this.destroyed?"destroyed":this.isSecretDeleted?"deleted":this.createdTime?"created":""}get isSecretDeleted(){return(0,r.isDeleted)(this.deletionTime)}get canDeleteLatestVersion(){return!1!==this.dataPath.get("canDelete")}get canDeleteVersion(){return!1!==this.deletePath.get("canUpdate")}get canUndelete(){return!1!==this.undeletePath.get("canUpdate")}get canDestroyVersion(){return!1!==this.destroyPath.get("canUpdate")}get canEditData(){return!1!==this.dataPath.get("canUpdate")}get canReadData(){return!1!==this.dataPath.get("canRead")}get canReadMetadata(){return!1!==this.metadataPath.get("canRead")}get canUpdateMetadata(){return!1!==this.metadataPath.get("canUpdate")}get canListMetadata(){return!1!==this.metadataPath.get("canList")}get canDeleteMetadata(){return!1!==this.metadataPath.get("canDelete")}get canReadSubkeys(){return!1!==this.subkeysPath.get("canRead")}},j=K(O.prototype,"backend",[u],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),z=K(O.prototype,"path",[c],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),M=K(O.prototype,"secretData",[d],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),S=K(O.prototype,"createdTime",[p],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),C=K(O.prototype,"customMetadata",[f],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),A=K(O.prototype,"deletionTime",[m],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),E=K(O.prototype,"destroyed",[h],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),R=K(O.prototype,"version",[b],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),D=K(O.prototype,"failReadErrorCode",[y],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),N=K(O.prototype,"casVersion",[v],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),F=K(O.prototype,"dataPath",[g],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),I=K(O.prototype,"metadataPath",[w],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),L=K(O.prototype,"deletePath",[k],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),U=K(O.prototype,"destroyPath",[x],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),V=K(O.prototype,"undeletePath",[P],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),q=K(O.prototype,"subkeysPath",[_],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),T=O))||T)||T)})),define("vault/models/kv/metadata",["exports","@ember-data/model","vault/macros/lazy-capabilities","vault/decorators/model-validations","vault/decorators/model-form-fields","core/utils/key-utils","kv/utils/kv-deleted"],(function(e,t,n,l,i,r,a){var o,s,u,c,d,p,f,m,h,b,y,v,g,w,k,x,P,_,T,O,j,z,M,S,C,A,E,R,D,N,F,I
function L(e,t,n,l){n&&Object.defineProperty(e,t,{enumerable:n.enumerable,configurable:n.configurable,writable:n.writable,value:n.initializer?n.initializer.call(l):void 0})}function U(e,t,n,l,i){var r={}
return Object.keys(l).forEach((function(e){r[e]=l[e]})),r.enumerable=!!r.enumerable,r.configurable=!!r.configurable,("value"in r||r.initializer)&&(r.writable=!0),r=n.slice().reverse().reduce((function(n,l){return l(e,t,n)||n}),r),i&&void 0!==r.initializer&&(r.value=r.initializer?r.initializer.call(i):void 0,r.initializer=void 0),void 0===r.initializer?(Object.defineProperty(e,t,r),null):r}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default=(o=(0,l.withModelValidations)({maxVersions:[{type:"number",message:"Maximum versions must be a number."},{type:"length",options:{min:1,max:16},message:"You cannot go over 16 characters."}]}),s=(0,i.withFormFields)(["customMetadata","maxVersions","casRequired","deleteVersionAfter"]),u=(0,t.attr)("string"),c=(0,t.attr)("string"),d=(0,t.attr)("string"),p=(0,t.attr)("number",{defaultValue:0,label:"Maximum number of versions",subText:"The number of versions to keep per key. Once the number of keys exceeds the maximum number set here, the oldest version will be permanently deleted."}),f=(0,t.attr)("boolean",{defaultValue:!1,label:"Require Check and Set",subText:"Writes will only be allowed if the key's current version matches the version specified in the cas parameter."}),m=(0,t.attr)("string",{defaultValue:"0s",editType:"ttl",label:"Automate secret deletion",helperTextDisabled:"A secret's version must be manually deleted.",helperTextEnabled:"Delete all new versions of this secret after:"}),h=(0,t.attr)("object",{editType:"kv",isSectionHeader:!0,subText:"An optional set of informational key-value pairs that will be stored with all secret versions."}),b=(0,t.attr)("string"),y=(0,t.attr)("number"),v=(0,t.attr)("number"),g=(0,t.attr)("string"),w=(0,t.attr)("object"),k=(0,n.default)(n.apiPath`${"backend"}/data/${"permissionsPath"}`,"backend","permissionsPath"),x=(0,n.default)(n.apiPath`${"backend"}/metadata/${"permissionsPath"}`,"backend","permissionsPath"),o(P=s((_=class extends t.default{constructor(...e){super(...e),L(this,"backend",T,this),L(this,"path",O,this),L(this,"fullSecretPath",j,this),L(this,"maxVersions",z,this),L(this,"casRequired",M,this),L(this,"deleteVersionAfter",S,this),L(this,"customMetadata",C,this),L(this,"createdTime",A,this),L(this,"currentVersion",E,this),L(this,"oldestVersion",R,this),L(this,"updatedTime",D,this),L(this,"versions",N,this),L(this,"dataPath",F,this),L(this,"metadataPath",I,this)}get pathIsDirectory(){return(0,r.keyIsFolder)(this.path)}get sortedVersions(){const e=[]
for(const t in this.versions)this.versions[t].isSecretDeleted=(0,a.isDeleted)(this.versions[t].deletion_time),e.push({version:t,...this.versions[t]})
return e.reverse()}get currentSecret(){if(!this.versions||!this.currentVersion)return!1
const e=this.versions[this.currentVersion],t=e.destroyed?"destroyed":(0,a.isDeleted)(e.deletion_time)?"deleted":"created"
return{state:t,isDeactivated:"created"!==t,deletionTime:e.deletion_time}}get permissionsPath(){return this.fullSecretPath||this.path}get canDeleteMetadata(){return!1!==this.metadataPath.get("canDelete")}get canReadMetadata(){return!1!==this.metadataPath.get("canRead")}get canUpdateMetadata(){return!1!==this.metadataPath.get("canUpdate")}get canCreateVersionData(){return!1!==this.dataPath.get("canUpdate")}},T=U(_.prototype,"backend",[u],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),O=U(_.prototype,"path",[c],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),j=U(_.prototype,"fullSecretPath",[d],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),z=U(_.prototype,"maxVersions",[p],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),M=U(_.prototype,"casRequired",[f],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),S=U(_.prototype,"deleteVersionAfter",[m],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),C=U(_.prototype,"customMetadata",[h],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),A=U(_.prototype,"createdTime",[b],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),E=U(_.prototype,"currentVersion",[y],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),R=U(_.prototype,"oldestVersion",[v],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),D=U(_.prototype,"updatedTime",[g],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),N=U(_.prototype,"versions",[w],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),F=U(_.prototype,"dataPath",[k],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),I=U(_.prototype,"metadataPath",[x],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),P=_))||P)||P)})),define("vault/models/ldap/config",["exports","@ember-data/model","vault/decorators/model-form-fields","vault/decorators/model-validations"],(function(e,t,n,l){var i,r,a,o,s,u,c,d,p,f,m,h,b,y,v,g,w,k,x,P,_,T,O,j,z,M,S,C,A,E,R,D,N,F,I,L
function U(e,t,n,l){n&&Object.defineProperty(e,t,{enumerable:n.enumerable,configurable:n.configurable,writable:n.writable,value:n.initializer?n.initializer.call(l):void 0})}function V(e,t,n,l,i){var r={}
return Object.keys(l).forEach((function(e){r[e]=l[e]})),r.enumerable=!!r.enumerable,r.configurable=!!r.configurable,("value"in r||r.initializer)&&(r.writable=!0),r=n.slice().reverse().reduce((function(n,l){return l(e,t,n)||n}),r),i&&void 0!==r.initializer&&(r.value=r.initializer?r.initializer.call(i):void 0,r.initializer=void 0),void 0===r.initializer?(Object.defineProperty(e,t,r),null):r}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default=(i=(0,l.withModelValidations)({binddn:[{type:"presence",message:"Administrator distinguished name is required."}],bindpass:[{type:"presence",message:"Administrator password is required."}]}),r=(0,n.withFormFields)(null,[{default:["binddn","bindpass","url","password_policy"]},{"TLS options":["starttls","insecure_tls","certificate","client_tls_cert","client_tls_key"]},{"More options":["userdn","userattr","upndomain","connection_timeout","request_timeout"]}]),a=(0,t.attr)("string"),o=(0,t.attr)("string",{label:"Administrator Distinguished Name",subText:"Distinguished name of the administrator to bind (Bind DN) when performing user and group search. Example: cn=vault,ou=Users,dc=example,dc=com."}),s=(0,t.attr)("string",{label:"Administrator Password",subText:"Password to use along with Bind DN when performing user search."}),u=(0,t.attr)("string",{label:"URL",subText:"The directory server to connect to."}),c=(0,t.attr)("string",{editType:"optionalText",label:"Use custom password policy",subText:"Specify the name of an existing password policy.",defaultSubText:"Unless a custom policy is specified, Vault will use a default.",defaultShown:"Default",docLink:"/vault/docs/concepts/password-policies"}),d=(0,t.attr)("string"),p=(0,t.attr)("boolean",{label:"Start TLS",subText:"If checked, or address contains “ldaps://”, creates an encrypted connection with LDAP."}),f=(0,t.attr)("boolean",{label:"Insecure TLS",subText:"If checked, skips LDAP server SSL certificate verification - insecure, use with caution!"}),m=(0,t.attr)("string",{editType:"file",label:"CA Certificate",helpText:"CA certificate to use when verifying LDAP server certificate, must be x509 PEM encoded."}),h=(0,t.attr)("string",{editType:"file",label:"Client TLS Certificate",helpText:"Client certificate to provide to the LDAP server, must be x509 PEM encoded."}),b=(0,t.attr)("string",{editType:"file",label:"Client TLS Key",helpText:"Client key to provide to the LDAP server, must be x509 PEM encoded."}),y=(0,t.attr)("string",{label:"Userdn",helpText:"The base DN under which to perform user search in library management and static roles."}),v=(0,t.attr)("string",{label:"Userattr",subText:"The attribute field name used to perform user search in library management and static roles."}),g=(0,t.attr)("string",{label:"Upndomain",subText:"The domain (userPrincipalDomain) used to construct a UPN string for authentication."}),w=(0,t.attr)("number",{editType:"optionalText",label:"Connection Timeout",subText:"Specify the connection timeout length in seconds.",defaultSubText:"Vault will use the default of 30 seconds.",defaultShown:"Default 30 seconds."}),k=(0,t.attr)("number",{editType:"optionalText",label:"Request Timeout",subText:"Specify the connection timeout length in seconds.",defaultSubText:"Vault will use the default of 90 seconds.",defaultShown:"Default 90 seconds."}),i(x=r((P=class extends t.default{constructor(...e){super(...e),U(this,"backend",_,this),U(this,"binddn",T,this),U(this,"bindpass",O,this),U(this,"url",j,this),U(this,"password_policy",z,this),U(this,"schema",M,this),U(this,"starttls",S,this),U(this,"insecure_tls",C,this),U(this,"certificate",A,this),U(this,"client_tls_cert",E,this),U(this,"client_tls_key",R,this),U(this,"userdn",D,this),U(this,"userattr",N,this),U(this,"upndomain",F,this),U(this,"connection_timeout",I,this),U(this,"request_timeout",L,this)}async rotateRoot(){return this.store.adapterFor("ldap/config").rotateRoot(this.backend)}},_=V(P.prototype,"backend",[a],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),T=V(P.prototype,"binddn",[o],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),O=V(P.prototype,"bindpass",[s],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),j=V(P.prototype,"url",[u],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),z=V(P.prototype,"password_policy",[c],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),M=V(P.prototype,"schema",[d],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),S=V(P.prototype,"starttls",[p],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),C=V(P.prototype,"insecure_tls",[f],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),A=V(P.prototype,"certificate",[m],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),E=V(P.prototype,"client_tls_cert",[h],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),R=V(P.prototype,"client_tls_key",[b],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),D=V(P.prototype,"userdn",[y],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),N=V(P.prototype,"userattr",[v],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),F=V(P.prototype,"upndomain",[g],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),I=V(P.prototype,"connection_timeout",[w],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),L=V(P.prototype,"request_timeout",[k],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),x=P))||x)||x)})),define("vault/models/ldap/library",["exports","@ember-data/model","vault/decorators/model-form-fields","vault/decorators/model-validations","vault/macros/lazy-capabilities"],(function(e,t,n,l,i){var r,a,o,s,u,c,d,p,f,m,h,b,y,v,g,w,k,x,P,_,T,O,j,z
function M(e,t,n,l){n&&Object.defineProperty(e,t,{enumerable:n.enumerable,configurable:n.configurable,writable:n.writable,value:n.initializer?n.initializer.call(l):void 0})}function S(e,t,n,l,i){var r={}
return Object.keys(l).forEach((function(e){r[e]=l[e]})),r.enumerable=!!r.enumerable,r.configurable=!!r.configurable,("value"in r||r.initializer)&&(r.writable=!0),r=n.slice().reverse().reduce((function(n,l){return l(e,t,n)||n}),r),i&&void 0!==r.initializer&&(r.value=r.initializer?r.initializer.call(i):void 0,r.initializer=void 0),void 0===r.initializer?(Object.defineProperty(e,t,r),null):r}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default=(r=(0,l.withModelValidations)({name:[{type:"presence",message:"Library name is required."}],service_account_names:[{type:"presence",message:"At least one service account is required."}]}),a=(0,n.withFormFields)(["name","service_account_names","ttl","max_ttl","disable_check_in_enforcement"]),o=(0,t.attr)("string"),s=(0,t.attr)("string",{label:"Library name",editDisabled:!0}),u=(0,t.attr)("string",{editType:"stringArray",label:"Accounts",subText:"The names of all the accounts that can be checked out from this set. These accounts must only be used by Vault, and may only be in one set."}),c=(0,t.attr)({editType:"ttl",label:"Default lease TTL",detailsLabel:"TTL",helperTextDisabled:"Vault will use the default lease duration.",defaultValue:"24h",defaultShown:"Engine default"}),d=(0,t.attr)({editType:"ttl",label:"Max lease TTL",detailsLabel:"Max TTL",helperTextDisabled:"Vault will use the default lease duration.",defaultValue:"24h",defaultShown:"Engine default"}),p=(0,t.attr)("string",{editType:"radio",label:"Check-in enforcement",subText:"When enabled, accounts must be checked in by the entity or client token that checked them out. If disabled, anyone with the right permission can check the account back in.",possibleValues:["Disabled","Enabled"],defaultValue:"Enabled"}),f=(0,i.default)(i.apiPath`${"backend"}/library/${"name"}`,"backend","name"),m=(0,i.default)(i.apiPath`${"backend"}/library/${"name"}/status`,"backend","name"),h=(0,i.default)(i.apiPath`${"backend"}/library/${"name"}/check-out`,"backend","name"),b=(0,i.default)(i.apiPath`${"backend"}/library/${"name"}/check-in`,"backend","name"),r(y=a((v=class extends t.default{constructor(...e){super(...e),M(this,"backend",g,this),M(this,"name",w,this),M(this,"service_account_names",k,this),M(this,"ttl",x,this),M(this,"max_ttl",P,this),M(this,"disable_check_in_enforcement",_,this),M(this,"libraryPath",T,this),M(this,"statusPath",O,this),M(this,"checkOutPath",j,this),M(this,"checkInPath",z,this)}get displayFields(){return this.formFields.filter((e=>"service_account_names"!==e.name))}get canCreate(){return!1!==this.libraryPath.get("canCreate")}get canDelete(){return!1!==this.libraryPath.get("canDelete")}get canEdit(){return!1!==this.libraryPath.get("canUpdate")}get canRead(){return!1!==this.libraryPath.get("canRead")}get canList(){return!1!==this.libraryPath.get("canList")}get canReadStatus(){return!1!==this.statusPath.get("canRead")}get canCheckOut(){return!1!==this.checkOutPath.get("canUpdate")}get canCheckIn(){return!1!==this.checkInPath.get("canUpdate")}fetchStatus(){return this.store.adapterFor("ldap/library").fetchStatus(this.backend,this.name)}checkOutAccount(e){return this.store.adapterFor("ldap/library").checkOutAccount(this.backend,this.name,e)}checkInAccount(e){return this.store.adapterFor("ldap/library").checkInAccount(this.backend,this.name,[e])}},g=S(v.prototype,"backend",[o],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),w=S(v.prototype,"name",[s],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),k=S(v.prototype,"service_account_names",[u],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),x=S(v.prototype,"ttl",[c],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),P=S(v.prototype,"max_ttl",[d],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),_=S(v.prototype,"disable_check_in_enforcement",[p],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),T=S(v.prototype,"libraryPath",[f],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),O=S(v.prototype,"statusPath",[m],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),j=S(v.prototype,"checkOutPath",[h],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),z=S(v.prototype,"checkInPath",[b],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),y=v))||y)||y)})),define("vault/models/ldap/role",["exports","@ember-data/model","vault/decorators/model-form-fields","vault/decorators/model-validations","vault/macros/lazy-capabilities"],(function(e,t,n,l,i){var r,a,o,s,u,c,d,p,f,m,h,b,y,v,g,w,k,x,P,_,T,O,j,z,M,S,C,A,E,R,D,N,F,I,L,U
function V(e,t,n,l){n&&Object.defineProperty(e,t,{enumerable:n.enumerable,configurable:n.configurable,writable:n.writable,value:n.initializer?n.initializer.call(l):void 0})}function q(e,t,n,l,i){var r={}
return Object.keys(l).forEach((function(e){r[e]=l[e]})),r.enumerable=!!r.enumerable,r.configurable=!!r.configurable,("value"in r||r.initializer)&&(r.writable=!0),r=n.slice().reverse().reduce((function(n,l){return l(e,t,n)||n}),r),i&&void 0!==r.initializer&&(r.value=r.initializer?r.initializer.call(i):void 0,r.initializer=void 0),void 0===r.initializer?(Object.defineProperty(e,t,r),null):r}Object.defineProperty(e,"__esModule",{value:!0}),e.staticRoleFields=e.dynamicRoleFields=e.default=void 0
e.staticRoleFields=["username","dn","rotation_period"],e.dynamicRoleFields=["default_ttl","max_ttl","username_template","creation_ldif","deletion_ldif","rollback_ldif"]
e.default=(r=(0,l.withModelValidations)({name:[{type:"presence",message:"Name is required"}],username:[{validator:e=>!(e.isStatic&&!e.username),message:"Username is required."}],rotation_period:[{validator:e=>!(e.isStatic&&!e.rotation_period),message:"Rotation Period is required."}],creation_ldif:[{validator:e=>!(e.isDynamic&&!e.creation_ldif),message:"Creation LDIF is required."}],deletion_ldif:[{validator:e=>!(e.isDynamic&&!e.creation_ldif),message:"Deletion LDIF is required."}]}),a=(0,n.withFormFields)(),o=(0,t.attr)("string"),s=(0,t.attr)("string"),u=(0,t.attr)("string",{defaultValue:"static"}),c=(0,t.attr)("string",{label:"Role name",subText:"The name of the role that will be used in Vault.",editDisabled:!0}),d=(0,t.attr)("string",{label:"Distinguished name",subText:"Distinguished name (DN) of entry Vault should manage."}),p=(0,t.attr)("string",{label:"Username",subText:"The name of the user to be used when logging in. This is useful when DN isn't used for login purposes."}),f=(0,t.attr)({editType:"ttl",label:"Rotation period",helperTextEnabled:"Specifies the amount of time Vault should wait before rotating the password. The minimum is 5 seconds.",hideToggle:!0}),m=(0,t.attr)({editType:"ttl",label:"Generated credential’s time-to-live (TTL)",detailsLabel:"TTL",helperTextDisabled:"Vault will use the default of 1 hour.",defaultValue:"1h",defaultShown:"Engine default"}),h=(0,t.attr)({editType:"ttl",label:"Generated credential’s maximum time-to-live (Max TTL)",detailsLabel:"Max TTL",helperTextDisabled:"Vault will use the engine default of 24 hours.",defaultValue:"24h",defaultShown:"Engine default"}),b=(0,t.attr)("string",{editType:"optionalText",label:"Username template",subText:"Enter the custom username template to use.",defaultSubText:"Template describing how dynamic usernames are generated. Vault will use the default for this plugin.",docLink:"/vault/docs/concepts/username-templating",defaultShown:"Default"}),y=(0,t.attr)("string",{editType:"json",label:"Creation LDIF",helpText:"Specifies the LDIF statements executed to create a user. May optionally be base64 encoded.",example:"# The example below is treated as a comment and will not be submitted\n# dn: cn={{.Username}},ou=users,dc=learn,dc=example\n# objectClass: person\n# objectClass: top\n",mode:"ruby",sectionHeading:"LDIF Statements"}),v=(0,t.attr)("string",{editType:"json",label:"Deletion LDIF",helpText:"Specifies the LDIF statements executed to delete a user once its TTL has expired. May optionally be base64 encoded.",example:"# The example below is treated as a comment and will not be submitted\n# dn: cn={{.Username}},ou=users,dc=learn,dc=example\n# changetype: delete\n",mode:"ruby"}),g=(0,t.attr)("string",{editType:"json",label:"Rollback LDIF",helpText:"Specifies the LDIF statement to attempt to rollback any changes if the creation results in an error. May optionally be base64 encoded.",example:"# The example below is treated as a comment and will not be submitted\n# dn: cn={{.Username}},ou=users,dc=learn,dc=example\n# changetype: delete\n",mode:"ruby"}),w=(0,i.default)(i.apiPath`${"backend"}/${"roleUri"}/${"name"}`,"backend","roleUri","name"),k=(0,i.default)(i.apiPath`${"backend"}/${"credsUri"}/${"name"}`,"backend","credsUri","name"),x=(0,i.default)(i.apiPath`${"backend"}/rotate-role/${"name"}`,"backend","name"),r(P=a((_=class extends t.default{constructor(...e){super(...e),V(this,"backend",T,this),V(this,"path_to_role",O,this),V(this,"type",j,this),V(this,"name",z,this),V(this,"dn",M,this),V(this,"username",S,this),V(this,"rotation_period",C,this),V(this,"default_ttl",A,this),V(this,"max_ttl",E,this),V(this,"username_template",R,this),V(this,"creation_ldif",D,this),V(this,"deletion_ldif",N,this),V(this,"rollback_ldif",F,this),V(this,"rolePath",I,this),V(this,"credsPath",L,this),V(this,"staticRotateCredsPath",U,this)}get isStatic(){return"static"===this.type}get isDynamic(){return"dynamic"===this.type}get fieldsForType(){return this.isStatic?["username","dn","rotation_period"]:["default_ttl","max_ttl","username_template","creation_ldif","deletion_ldif","rollback_ldif"]}get formFields(){return this.allFields.filter((e=>"name"===e.name||this.fieldsForType.includes(e.name)))}get displayFields(){const[e,...t]=this.formFields
return[e,{name:"type",options:{label:"Role type"}},...t]}get roleUri(){return this.isStatic?"static-role":"role"}get credsUri(){return this.isStatic?"static-cred":"creds"}get canCreate(){return!1!==this.rolePath.get("canCreate")}get canDelete(){return!1!==this.rolePath.get("canDelete")}get canEdit(){return!1!==this.rolePath.get("canUpdate")}get canRead(){return!1!==this.rolePath.get("canRead")}get canList(){return!1!==this.rolePath.get("canList")}get canReadCreds(){return!1!==this.credsPath.get("canRead")}get canRotateStaticCreds(){return this.isStatic&&!1!==this.staticRotateCredsPath.get("canCreate")}fetchCredentials(){return this.store.adapterFor("ldap/role").fetchCredentials(this.backend,this.type,this.name)}rotateStaticPassword(){return this.store.adapterFor("ldap/role").rotateStaticPassword(this.backend,this.name)}},T=q(_.prototype,"backend",[o],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),O=q(_.prototype,"path_to_role",[s],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),j=q(_.prototype,"type",[u],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),z=q(_.prototype,"name",[c],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),M=q(_.prototype,"dn",[d],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),S=q(_.prototype,"username",[p],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),C=q(_.prototype,"rotation_period",[f],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),A=q(_.prototype,"default_ttl",[m],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),E=q(_.prototype,"max_ttl",[h],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),R=q(_.prototype,"username_template",[b],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),D=q(_.prototype,"creation_ldif",[y],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),N=q(_.prototype,"deletion_ldif",[v],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),F=q(_.prototype,"rollback_ldif",[g],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),I=q(_.prototype,"rolePath",[w],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),L=q(_.prototype,"credsPath",[k],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),U=q(_.prototype,"staticRotateCredsPath",[x],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),P=_))||P)||P)})),define("vault/models/lease",["exports","@ember-data/model","@ember/object/computed","vault/mixins/key-mixin"],(function(e,t,n,l){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default=t.default.extend(l.default,{issueTime:(0,t.attr)("string"),expireTime:(0,t.attr)("string"),lastRenewal:(0,t.attr)("string"),renewable:(0,t.attr)("boolean"),ttl:(0,t.attr)("number"),isAuthLease:(0,n.match)("id",/^auth/)})})),define("vault/models/license",["exports","@ember-data/model"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default=t.default.extend({expirationTime:(0,t.attr)("string"),features:(0,t.attr)("array"),licenseId:(0,t.attr)("string"),startTime:(0,t.attr)("string"),performanceStandbyCount:(0,t.attr)("number"),autoloaded:(0,t.attr)("boolean")})})),define("vault/models/mfa-login-enforcement",["exports","@ember-data/model","@ember/array/proxy","@ember/object/promise-proxy-mixin","vault/helpers/mountable-auth-methods","vault/decorators/model-validations","@ember/utils","@ember/service","vault/helpers/add-to-array"],(function(e,t,n,l,i,r,a,o,s){var u,c,d,p,f,m,h,b,y,v,g,w,k,x,P,_,T,O
function j(e,t,n,l){n&&Object.defineProperty(e,t,{enumerable:n.enumerable,configurable:n.configurable,writable:n.writable,value:n.initializer?n.initializer.call(l):void 0})}function z(e,t,n,l,i){var r={}
return Object.keys(l).forEach((function(e){r[e]=l[e]})),r.enumerable=!!r.enumerable,r.configurable=!!r.configurable,("value"in r||r.initializer)&&(r.writable=!0),r=n.slice().reverse().reduce((function(n,l){return l(e,t,n)||n}),r),i&&void 0!==r.initializer&&(r.value=r.initializer?r.initializer.call(i):void 0,r.initializer=void 0),void 0===r.initializer?(Object.defineProperty(e,t,r),null):r}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
const M={name:[{type:"presence",message:"Name is required"}],mfa_methods:[{type:"presence",message:"At least one MFA method is required"}],targets:[{validator(e){const t=e.hasMany("identity_entities").ids(),n=e.hasMany("identity_groups").ids()
return(0,a.isPresent)(e.auth_method_accessors)||(0,a.isPresent)(e.auth_method_types)||(0,a.isPresent)(t)||(0,a.isPresent)(n)},message:"At least one target is required. If you've selected one, click 'Add' to make sure it's added to this enforcement."}]}
e.default=(u=(0,r.withModelValidations)(M),c=(0,t.attr)("string"),d=(0,t.hasMany)("mfa-method",{async:!0,inverse:null}),p=(0,t.attr)("string"),f=(0,t.attr)("array",{defaultValue:()=>[]}),m=(0,t.attr)("array",{defaultValue:()=>[]}),h=(0,t.hasMany)("identity/entity",{async:!0,inverse:null}),b=(0,t.hasMany)("identity/group",{async:!0,inverse:null}),u((v=class extends t.default{constructor(...e){super(...e),j(this,"store",g,this),j(this,"name",w,this),j(this,"mfa_methods",k,this),j(this,"namespace_id",x,this),j(this,"auth_method_accessors",P,this),j(this,"auth_method_types",_,this),j(this,"identity_entities",T,this),j(this,"identity_groups",O,this)}get targets(){return n.default.extend(l.default).create({promise:this.prepareTargets()})}async prepareTargets(){let e,t=[]
if(this.auth_method_accessors.length||this.auth_method_types.length)try{const{data:t}=await this.store.adapterFor("auth-method").findAll()
e=Object.keys(t).map((e=>({path:e,...t[e]})))}catch(n){}if(this.auth_method_accessors.length){const n=e.filter((e=>this.auth_method_accessors.includes(e.accessor)))
t=(0,s.addManyToArray)(t,n.map((e=>({icon:this.iconForMount(e.type),link:"vault.cluster.access.method",linkModels:[e.path.slice(0,-1)],title:e.path,subTitle:e.accessor}))))}this.auth_method_types.forEach((n=>{const l=this.iconForMount(n),i=e.filterBy("type",n).length
t=(0,s.addToArray)(t,{key:"auth_method_types",icon:l,title:n,subTitle:`All ${n} mounts (${i})`})}))
for(const l of["identity_entities","identity_groups"])(await this[l]).forEach((e=>{t=(0,s.addToArray)(t,{key:l,icon:"user",link:"vault.cluster.access.identity.show",linkModels:[l.split("_")[1],e.id,"details"],title:e.name,subTitle:e.id})}))
return t}iconForMount(e){const t=(0,i.methods)().find((t=>t.type===e))
return t?t.glyph||t.type:"token"}},g=z(v.prototype,"store",[o.service],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),w=z(v.prototype,"name",[c],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),k=z(v.prototype,"mfa_methods",[d],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),x=z(v.prototype,"namespace_id",[p],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),P=z(v.prototype,"auth_method_accessors",[f],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),_=z(v.prototype,"auth_method_types",[m],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),T=z(v.prototype,"identity_entities",[h],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),O=z(v.prototype,"identity_groups",[b],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),y=v))||y)})),define("vault/models/mfa-method",["exports","@ember-data/model","@ember/string","vault/utils/field-to-attrs","vault/decorators/model-validations","@ember/utils"],(function(e,t,n,l,i,r){var a,o,s,u,c,d,p,f,m,h,b,y,v,g,w,k,x,P,_,T,O,j,z,M,S,C,A,E,R,D,N,F,I,L,U,V,q,$,K,B,G,W,H,Q,Y,J,X,Z,ee,te,ne,le,ie,re,ae,oe,se
function ue(e,t,n,l){n&&Object.defineProperty(e,t,{enumerable:n.enumerable,configurable:n.configurable,writable:n.writable,value:n.initializer?n.initializer.call(l):void 0})}function ce(e,t,n,l,i){var r={}
return Object.keys(l).forEach((function(e){r[e]=l[e]})),r.enumerable=!!r.enumerable,r.configurable=!!r.configurable,("value"in r||r.initializer)&&(r.writable=!0),r=n.slice().reverse().reduce((function(n,l){return l(e,t,n)||n}),r),i&&void 0!==r.initializer&&(r.value=r.initializer?r.initializer.call(i):void 0,r.initializer=void 0),void 0===r.initializer?(Object.defineProperty(e,t,r),null):r}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
const de={common:[],duo:["username_format","secret_key","integration_key","api_hostname","push_info","use_passcode"],okta:["username_format","mount_accessor","org_name","api_token","base_url","primary_email"],totp:["issuer","period","key_size","qr_size","algorithm","digits","skew","max_validation_attempts"],pingid:["username_format","settings_file_base64","use_signature","idp_url","admin_url","authenticator_url","org_alias"]},pe={duo:["secret_key","integration_key","api_hostname"],okta:["org_name","api_token"],totp:["issuer"],pingid:["settings_file_base64"]},fe=Object.keys(pe).reduce(((e,t)=>(pe[t].forEach((n=>{e[`${n}`]=[{message:`${n.replace(/_/g," ")} is required`,validator:e=>e.type!==t||(0,r.isPresent)(e[n])}]})),e)),{})
e.default=(a=(0,i.withModelValidations)(fe),o=(0,t.attr)("string"),s=(0,t.attr)("string",{label:"Username format",subText:"How to map identity names to MFA method names. "}),u=(0,t.attr)("string",{label:"Namespace"}),c=(0,t.attr)("string"),d=(0,t.attr)("string",{label:"Settings file",subText:"A base-64 encoded third party setting file retrieved from the PingIDs configuration page."}),p=(0,t.attr)("boolean"),f=(0,t.attr)("string"),m=(0,t.attr)("string"),h=(0,t.attr)("string"),b=(0,t.attr)("string"),y=(0,t.attr)("string",{label:"Organization name",subText:"Name of the organization to be used in the Okta API."}),v=(0,t.attr)("string",{label:"Okta API key"}),g=(0,t.attr)("string",{label:"Base URL",subText:"If set, will be used as the base domain for API requests. Example are okta.com, oktapreview.com and okta-emea.com."}),w=(0,t.attr)("boolean"),k=(0,t.attr)("string",{label:"Duo secret key",sensitive:!0}),x=(0,t.attr)("string",{label:"Duo integration key",sensitive:!0}),P=(0,t.attr)("string",{label:"Duo API hostname"}),_=(0,t.attr)("string",{label:"Duo push information",subText:"Additional information displayed to the user when the push is presented to them."}),T=(0,t.attr)("boolean",{label:"Passcode reminder",subText:"If this is turned on, the user is reminded to use the passcode upon MFA validation."}),O=(0,t.attr)("string",{label:"Issuer",subText:"The human-readable name of the keys issuing organization."}),j=(0,t.attr)({label:"Period",editType:"ttl",helperTextEnabled:"How long each generated TOTP is valid.",hideToggle:!0,defaultValue:30}),z=(0,t.attr)("number",{label:"Key size",subText:"The size in bytes of the Vault generated key."}),M=(0,t.attr)("number",{label:"QR size",subText:"The pixel size of the generated square QR code."}),S=(0,t.attr)("string",{label:"Algorithm",editType:"radio",possibleValues:["SHA1","SHA256","SHA512"],subText:"The hashing algorithm used to generate the TOTP code."}),C=(0,t.attr)("number",{label:"Digits",editType:"radio",possibleValues:[6,8],subText:"The number digits in the generated TOTP code."}),A=(0,t.attr)("number",{label:"Skew",editType:"radio",possibleValues:[0,1],subText:"The number of delay periods allowed when validating a TOTP token."}),E=(0,t.attr)("number"),a((D=class extends t.default{constructor(...e){super(...e),ue(this,"type",N,this),ue(this,"username_format",F,this),ue(this,"namespace_id",I,this),ue(this,"mount_accessor",L,this),ue(this,"settings_file_base64",U,this),ue(this,"use_signature",V,this),ue(this,"idp_url",q,this),ue(this,"admin_url",$,this),ue(this,"authenticator_url",K,this),ue(this,"org_alias",B,this),ue(this,"org_name",G,this),ue(this,"api_token",W,this),ue(this,"base_url",H,this),ue(this,"primary_email",Q,this),ue(this,"secret_key",Y,this),ue(this,"integration_key",J,this),ue(this,"api_hostname",X,this),ue(this,"push_info",Z,this),ue(this,"use_passcode",ee,this),ue(this,"issuer",te,this),ue(this,"period",ne,this),ue(this,"key_size",le,this),ue(this,"qr_size",ie,this),ue(this,"algorithm",re,this),ue(this,"digits",ae,this),ue(this,"skew",oe,this),ue(this,"max_validation_attempts",se,this)}get name(){return"totp"===this.type?this.type.toUpperCase():(0,n.capitalize)(this.type)}get icon(){return"totp"===this.type?"history":this.type}get formFields(){return[...de.common,...de[this.type]]}get attrs(){return(0,l.expandAttributeMeta)(this,this.formFields)}},N=ce(D.prototype,"type",[o],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),F=ce(D.prototype,"username_format",[s],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),I=ce(D.prototype,"namespace_id",[u],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),L=ce(D.prototype,"mount_accessor",[c],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),U=ce(D.prototype,"settings_file_base64",[d],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),V=ce(D.prototype,"use_signature",[p],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),q=ce(D.prototype,"idp_url",[f],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),$=ce(D.prototype,"admin_url",[m],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),K=ce(D.prototype,"authenticator_url",[h],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),B=ce(D.prototype,"org_alias",[b],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),G=ce(D.prototype,"org_name",[y],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),W=ce(D.prototype,"api_token",[v],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),H=ce(D.prototype,"base_url",[g],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),Q=ce(D.prototype,"primary_email",[w],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),Y=ce(D.prototype,"secret_key",[k],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),J=ce(D.prototype,"integration_key",[x],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),X=ce(D.prototype,"api_hostname",[P],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),Z=ce(D.prototype,"push_info",[_],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),ee=ce(D.prototype,"use_passcode",[T],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),te=ce(D.prototype,"issuer",[O],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),ne=ce(D.prototype,"period",[j],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),le=ce(D.prototype,"key_size",[z],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),ie=ce(D.prototype,"qr_size",[M],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),re=ce(D.prototype,"algorithm",[S],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),ae=ce(D.prototype,"digits",[C],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),oe=ce(D.prototype,"skew",[A],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),se=ce(D.prototype,"max_validation_attempts",[E],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),R=D))||R)})),define("vault/models/mount-config",["exports","@ember-data/model"],(function(e,t){var n,l,i,r,a,o,s,u,c,d,p,f,m,h,b,y,v,g,w,k,x,P,_,T,O,j,z,M,S,C,A
function E(e,t,n,l){n&&Object.defineProperty(e,t,{enumerable:n.enumerable,configurable:n.configurable,writable:n.writable,value:n.initializer?n.initializer.call(l):void 0})}function R(e,t,n,l,i){var r={}
return Object.keys(l).forEach((function(e){r[e]=l[e]})),r.enumerable=!!r.enumerable,r.configurable=!!r.configurable,("value"in r||r.initializer)&&(r.writable=!0),r=n.slice().reverse().reduce((function(n,l){return l(e,t,n)||n}),r),i&&void 0!==r.initializer&&(r.value=r.initializer?r.initializer.call(i):void 0,r.initializer=void 0),void 0===r.initializer?(Object.defineProperty(e,t,r),null):r}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default=(n=(0,t.attr)({label:"Default Lease TTL",editType:"ttl"}),l=(0,t.attr)({label:"Max Lease TTL",editType:"ttl"}),i=(0,t.attr)({label:"Request keys excluded from HMACing in audit",editType:"stringArray",helpText:"Keys that will not be HMAC'd by audit devices in the request data object."}),r=(0,t.attr)({label:"Response keys excluded from HMACing in audit",editType:"stringArray",helpText:"Keys that will not be HMAC'd by audit devices in the response data object."}),a=(0,t.attr)("mountVisibility",{editType:"boolean",label:"List method when unauthenticated",defaultValue:!1}),o=(0,t.attr)({label:"Allowed passthrough request headers",helpText:"Headers to allow and pass from the request to the backend",editType:"stringArray"}),s=(0,t.attr)({label:"Allowed response headers",helpText:"Headers to allow, allowing a plugin to include them in the response.",editType:"stringArray"}),u=(0,t.attr)("string",{label:"Token type",helpText:"The type of token that should be generated via this role. For `default-service` and `default-batch` service and batch tokens will be issued respectively, unless the auth method explicitly requests a different type.",possibleValues:["default-service","default-batch","batch","service"],noDefault:!0}),c=(0,t.attr)({editType:"stringArray"}),d=(0,t.attr)("string",{label:"Plugin version",subText:'Specifies the semantic version of the plugin to use, e.g. "v1.0.0". If unspecified, the server will select any matching un-versioned plugin that may have been registered, the latest versioned plugin registered, or a built-in plugin in that order of precedence.'}),p=(0,t.attr)({label:"Identity token key",subText:"A named key to sign tokens. If not provided, this will default to Vault's OIDC default key.",editType:"yield"}),f=(0,t.attr)("string",{label:"Lockout threshold",subText:"Specifies the number of failed login attempts after which the user is locked out, e.g. 15."}),m=(0,t.attr)({label:"Lockout duration",helperTextEnabled:'The duration for which a user will be locked out, e.g. "5s" or "30m".',editType:"ttl",helperTextDisabled:"No lockout duration configured."}),h=(0,t.attr)({label:"Lockout counter reset",helperTextEnabled:'The duration after which the lockout counter is reset with no failed login attempts, e.g. "5s" or "30m".',editType:"ttl",helperTextDisabled:"No reset duration configured."}),b=(0,t.attr)("boolean",{label:"Disable lockout for this mount",subText:"If checked, disables the user lockout feature for this mount."}),y=class extends t.default{constructor(...e){super(...e),E(this,"defaultLeaseTtl",v,this),E(this,"maxLeaseTtl",g,this),E(this,"auditNonHmacRequestKeys",w,this),E(this,"auditNonHmacResponseKeys",k,this),E(this,"listingVisibility",x,this),E(this,"passthroughRequestHeaders",P,this),E(this,"allowedResponseHeaders",_,this),E(this,"tokenType",T,this),E(this,"allowedManagedKeys",O,this),E(this,"pluginVersion",j,this),E(this,"identityTokenKey",z,this),E(this,"lockoutThreshold",M,this),E(this,"lockoutDuration",S,this),E(this,"lockoutCounterReset",C,this),E(this,"lockoutDisable",A,this)}},v=R(y.prototype,"defaultLeaseTtl",[n],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),g=R(y.prototype,"maxLeaseTtl",[l],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),w=R(y.prototype,"auditNonHmacRequestKeys",[i],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),k=R(y.prototype,"auditNonHmacResponseKeys",[r],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),x=R(y.prototype,"listingVisibility",[a],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),P=R(y.prototype,"passthroughRequestHeaders",[o],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),_=R(y.prototype,"allowedResponseHeaders",[s],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),T=R(y.prototype,"tokenType",[u],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),O=R(y.prototype,"allowedManagedKeys",[c],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),j=R(y.prototype,"pluginVersion",[d],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),z=R(y.prototype,"identityTokenKey",[p],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),M=R(y.prototype,"lockoutThreshold",[f],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),S=R(y.prototype,"lockoutDuration",[m],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),C=R(y.prototype,"lockoutCounterReset",[h],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),A=R(y.prototype,"lockoutDisable",[b],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),y)})),define("vault/models/namespace",["exports","@ember-data/model","vault/decorators/model-expanded-attributes","vault/decorators/model-validations"],(function(e,t,n,l){var i,r,a,o,s,u
Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default=(i=(0,n.withExpandedAttributes)(),r=(0,l.withModelValidations)({path:[{type:"presence",message:"Path can't be blank."},{type:"endsInSlash",message:"Path can't end in forward slash '/'."},{type:"containsWhiteSpace",message:"Path can't contain whitespace."}]}),a=(0,t.attr)("string"),i(o=r((s=class extends t.default{constructor(...e){var t,n,l,i
super(...e),t=this,n="path",i=this,(l=u)&&Object.defineProperty(t,n,{enumerable:l.enumerable,configurable:l.configurable,writable:l.writable,value:l.initializer?l.initializer.call(i):void 0})}get fields(){return["path"].map((e=>this.allByKey[e]))}},c=s.prototype,d="path",p=[a],f={configurable:!0,enumerable:!0,writable:!0,initializer:null},h={},Object.keys(f).forEach((function(e){h[e]=f[e]})),h.enumerable=!!h.enumerable,h.configurable=!!h.configurable,("value"in h||h.initializer)&&(h.writable=!0),h=p.slice().reverse().reduce((function(e,t){return t(c,d,e)||e}),h),m&&void 0!==h.initializer&&(h.value=h.initializer?h.initializer.call(m):void 0,h.initializer=void 0),u=void 0===h.initializer?(Object.defineProperty(c,d,h),null):h,o=s))||o)||o)
var c,d,p,f,m,h})),define("vault/models/node",["exports","@ember-data/model","@ember/object/computed"],(function(e,t,n){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default=t.default.extend({name:(0,t.attr)("string"),standby:(0,t.attr)("boolean"),isActive:(0,n.equal)("standby",!1),clusterId:(0,t.attr)("string"),isLeader:(0,n.and)("initialized","isActive"),initialized:(0,t.attr)("boolean"),sealed:(0,t.attr)("boolean"),isSealed:(0,n.alias)("sealed"),t:(0,t.attr)("number"),n:(0,t.attr)("number"),progress:(0,t.attr)("number"),sealThreshold:(0,n.alias)("t"),sealNumShares:(0,n.alias)("n"),version:(0,t.attr)("string"),type:(0,t.attr)("string"),storageType:(0,t.attr)("string"),hcpLinkStatus:(0,t.attr)("string"),haEnabled:(0,t.attr)("boolean"),isSelf:(0,t.attr)("boolean"),leaderAddress:(0,t.attr)("string")})})),define("vault/models/oidc/assignment",["exports","@ember-data/model","vault/macros/lazy-capabilities","vault/decorators/model-validations","@ember/utils"],(function(e,t,n,l,i){var r,a,o,s,u,c,d,p,f,m,h
function b(e,t,n,l){n&&Object.defineProperty(e,t,{enumerable:n.enumerable,configurable:n.configurable,writable:n.writable,value:n.initializer?n.initializer.call(l):void 0})}function y(e,t,n,l,i){var r={}
return Object.keys(l).forEach((function(e){r[e]=l[e]})),r.enumerable=!!r.enumerable,r.configurable=!!r.configurable,("value"in r||r.initializer)&&(r.writable=!0),r=n.slice().reverse().reduce((function(n,l){return l(e,t,n)||n}),r),i&&void 0!==r.initializer&&(r.value=r.initializer?r.initializer.call(i):void 0,r.initializer=void 0),void 0===r.initializer?(Object.defineProperty(e,t,r),null):r}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
const v={name:[{type:"presence",message:"Name is required."},{type:"containsWhiteSpace",message:"Name cannot contain whitespace."}],targets:[{validator:e=>(0,i.isPresent)(e.entityIds)||(0,i.isPresent)(e.groupIds),message:"At least one entity or group is required."}]}
e.default=(r=(0,l.withModelValidations)(v),a=(0,t.attr)("string"),o=(0,t.attr)("array"),s=(0,t.attr)("array"),u=(0,n.default)(n.apiPath`identity/oidc/assignment/${"name"}`,"name"),r((d=class extends t.default{constructor(...e){super(...e),b(this,"name",p,this),b(this,"entityIds",f,this),b(this,"groupIds",m,this),b(this,"assignmentPath",h,this)}get canRead(){return this.assignmentPath.get("canRead")}get canEdit(){return this.assignmentPath.get("canUpdate")}get canDelete(){return this.assignmentPath.get("canDelete")}},p=y(d.prototype,"name",[a],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),f=y(d.prototype,"entityIds",[o],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),m=y(d.prototype,"groupIds",[s],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),h=y(d.prototype,"assignmentPath",[u],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),c=d))||c)})),define("vault/models/oidc/client",["exports","@ember-data/model","vault/macros/lazy-capabilities","vault/utils/field-to-attrs","vault/decorators/model-validations"],(function(e,t,n,l,i){var r,a,o,s,u,c,d,p,f,m,h,b,y,v,g,w,k,x,P,_,T,O,j
function z(e,t,n,l){n&&Object.defineProperty(e,t,{enumerable:n.enumerable,configurable:n.configurable,writable:n.writable,value:n.initializer?n.initializer.call(l):void 0})}function M(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e
var n=e[Symbol.toPrimitive]
if(void 0!==n){var l=n.call(e,t||"default")
if("object"!=typeof l)return l
throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string")
return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function S(e,t,n,l,i){var r={}
return Object.keys(l).forEach((function(e){r[e]=l[e]})),r.enumerable=!!r.enumerable,r.configurable=!!r.configurable,("value"in r||r.initializer)&&(r.writable=!0),r=n.slice().reverse().reduce((function(n,l){return l(e,t,n)||n}),r),i&&void 0!==r.initializer&&(r.value=r.initializer?r.initializer.call(i):void 0,r.initializer=void 0),void 0===r.initializer?(Object.defineProperty(e,t,r),null):r}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default=(r=(0,i.withModelValidations)({name:[{type:"presence",message:"Name is required."},{type:"containsWhiteSpace",message:"Name cannot contain whitespace."}],key:[{type:"presence",message:"Key is required."}]}),a=(0,t.attr)("string",{label:"Application name",editDisabled:!0}),o=(0,t.attr)("string",{label:"Type",subText:"Specify whether the application type is confidential or public. The public type must use PKCE. This cannot be edited later.",editType:"radio",editDisabled:!0,defaultValue:"confidential",possibleValues:["confidential","public"]}),s=(0,t.attr)("array",{label:"Redirect URIs",subText:"One of these values must exactly match the redirect_uri parameter value used in each authentication request.",editType:"stringArray"}),u=(0,t.attr)("string",{label:"Signing key",subText:"Add a key to sign and verify the JSON web tokens (JWT). This cannot be edited later.",editType:"searchSelect",editDisabled:!0,onlyAllowExisting:!0,defaultValue:()=>["default"],fallbackComponent:"input-search",selectLimit:1,models:["oidc/key"]}),c=(0,t.attr)({label:"Access Token TTL",editType:"ttl",defaultValue:"24h"}),d=(0,t.attr)({label:"ID Token TTL",editType:"ttl",defaultValue:"24h"}),p=(0,t.attr)("array",{label:"Assign access"}),f=(0,t.attr)("string",{label:"Client ID"}),m=(0,t.attr)("string"),h=(0,n.default)(n.apiPath`identity/oidc/client/${"name"}`,"name"),r((y=class extends t.default{constructor(...e){super(...e),z(this,"name",v,this),z(this,"clientType",g,this),z(this,"redirectUris",w,this),z(this,"key",k,this),z(this,"accessTokenTtl",x,this),z(this,"idTokenTtl",P,this),z(this,"assignments",_,this),z(this,"clientId",T,this),z(this,"clientSecret",O,this),M(this,"_attributeMeta",null),M(this,"_fieldToAttrsGroups",null),z(this,"clientPath",j,this)}get formFields(){return this._attributeMeta||(this._attributeMeta=(0,l.expandAttributeMeta)(this,["name","clientType","redirectUris"])),this._attributeMeta}get fieldGroups(){return this._fieldToAttrsGroups||(this._fieldToAttrsGroups=(0,l.default)(this,[{"More options":["key","idTokenTtl","accessTokenTtl"]}])),this._fieldToAttrsGroups}get canRead(){return!1!==this.clientPath.get("canRead")}get canEdit(){return!1!==this.clientPath.get("canUpdate")}get canDelete(){return!1!==this.clientPath.get("canDelete")}},v=S(y.prototype,"name",[a],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),g=S(y.prototype,"clientType",[o],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),w=S(y.prototype,"redirectUris",[s],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),k=S(y.prototype,"key",[u],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),x=S(y.prototype,"accessTokenTtl",[c],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),P=S(y.prototype,"idTokenTtl",[d],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),_=S(y.prototype,"assignments",[p],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),T=S(y.prototype,"clientId",[f],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),O=S(y.prototype,"clientSecret",[m],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),j=S(y.prototype,"clientPath",[h],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),b=y))||b)})),define("vault/models/oidc/key",["exports","@ember-data/model","vault/macros/lazy-capabilities","vault/utils/field-to-attrs","vault/decorators/model-validations"],(function(e,t,n,l,i){var r,a,o,s,u,c,d,p,f,m,h,b,y,v,g,w,k
function x(e,t,n,l){n&&Object.defineProperty(e,t,{enumerable:n.enumerable,configurable:n.configurable,writable:n.writable,value:n.initializer?n.initializer.call(l):void 0})}function P(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e
var n=e[Symbol.toPrimitive]
if(void 0!==n){var l=n.call(e,t||"default")
if("object"!=typeof l)return l
throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string")
return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function _(e,t,n,l,i){var r={}
return Object.keys(l).forEach((function(e){r[e]=l[e]})),r.enumerable=!!r.enumerable,r.configurable=!!r.configurable,("value"in r||r.initializer)&&(r.writable=!0),r=n.slice().reverse().reduce((function(n,l){return l(e,t,n)||n}),r),i&&void 0!==r.initializer&&(r.value=r.initializer?r.initializer.call(i):void 0,r.initializer=void 0),void 0===r.initializer?(Object.defineProperty(e,t,r),null):r}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default=(r=(0,i.withModelValidations)({name:[{type:"presence",message:"Name is required."},{type:"containsWhiteSpace",message:"Name cannot contain whitespace."}]}),a=(0,t.attr)("string",{editDisabled:!0}),o=(0,t.attr)("string",{defaultValue:"RS256",possibleValues:["RS256","RS384","RS512","ES256","ES384","ES512","EdDSA"]}),s=(0,t.attr)({editType:"ttl",defaultValue:"24h"}),u=(0,t.attr)({label:"Verification TTL",editType:"ttl",defaultValue:"24h"}),c=(0,t.attr)("array",{label:"Allowed applications"}),d=(0,n.default)(n.apiPath`identity/oidc/key/${"name"}`,"name"),p=(0,n.default)(n.apiPath`identity/oidc/key/${"name"}/rotate`,"name"),r((m=class extends t.default{constructor(...e){super(...e),x(this,"name",h,this),x(this,"algorithm",b,this),x(this,"rotationPeriod",y,this),x(this,"verificationTtl",v,this),x(this,"allowedClientIds",g,this),P(this,"_attributeMeta",null),x(this,"keyPath",w,this),x(this,"rotatePath",k,this)}get formFields(){return this._attributeMeta||(this._attributeMeta=(0,l.expandAttributeMeta)(this,["name","algorithm","rotationPeriod","verificationTtl"])),this._attributeMeta}get canRead(){return this.keyPath.get("canRead")}get canEdit(){return this.keyPath.get("canUpdate")}get canRotate(){return this.rotatePath.get("canUpdate")}get canDelete(){return this.keyPath.get("canDelete")}},h=_(m.prototype,"name",[a],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),b=_(m.prototype,"algorithm",[o],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),y=_(m.prototype,"rotationPeriod",[s],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),v=_(m.prototype,"verificationTtl",[u],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),g=_(m.prototype,"allowedClientIds",[c],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),w=_(m.prototype,"keyPath",[d],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),k=_(m.prototype,"rotatePath",[p],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),f=m))||f)})),define("vault/models/oidc/provider",["exports","@ember-data/model","vault/macros/lazy-capabilities","vault/utils/field-to-attrs","vault/decorators/model-validations"],(function(e,t,n,l,i){var r,a,o,s,u,c,d,p,f,m,h,b,y
function v(e,t,n,l){n&&Object.defineProperty(e,t,{enumerable:n.enumerable,configurable:n.configurable,writable:n.writable,value:n.initializer?n.initializer.call(l):void 0})}function g(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e
var n=e[Symbol.toPrimitive]
if(void 0!==n){var l=n.call(e,t||"default")
if("object"!=typeof l)return l
throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string")
return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function w(e,t,n,l,i){var r={}
return Object.keys(l).forEach((function(e){r[e]=l[e]})),r.enumerable=!!r.enumerable,r.configurable=!!r.configurable,("value"in r||r.initializer)&&(r.writable=!0),r=n.slice().reverse().reduce((function(n,l){return l(e,t,n)||n}),r),i&&void 0!==r.initializer&&(r.value=r.initializer?r.initializer.call(i):void 0,r.initializer=void 0),void 0===r.initializer?(Object.defineProperty(e,t,r),null):r}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default=(r=(0,i.withModelValidations)({name:[{type:"presence",message:"Name is required."},{type:"containsWhiteSpace",message:"Name cannot contain whitespace."}]}),a=(0,t.attr)("string",{editDisabled:!0}),o=(0,t.attr)("string",{subText:"The scheme, host, and optional port for your issuer. This will be used to build the URL that validates ID tokens.",placeholderText:"e.g. https://example.com:8200",docLink:"/vault/api-docs/secret/identity/oidc-provider#create-or-update-a-provider",helpText:"Optional. This defaults to a URL with Vault's api_addr"}),s=(0,t.attr)("array",{label:"Supported scopes",subText:"Scopes define information about a user and the OIDC service. Optional.",editType:"searchSelect",models:["oidc/scope"],fallbackComponent:"string-list",onlyAllowExisting:!0}),u=(0,t.attr)("array",{label:"Allowed applications"}),c=(0,n.default)(n.apiPath`identity/oidc/provider/${"name"}`,"name"),r((p=class extends t.default{constructor(...e){super(...e),v(this,"name",f,this),v(this,"issuer",m,this),v(this,"scopesSupported",h,this),v(this,"allowedClientIds",b,this),g(this,"_attributeMeta",null),v(this,"providerPath",y,this)}get formFields(){return this._attributeMeta||(this._attributeMeta=(0,l.expandAttributeMeta)(this,["name","issuer","scopesSupported"])),this._attributeMeta}get canRead(){return!1!==this.providerPath.get("canRead")}get canEdit(){return!1!==this.providerPath.get("canUpdate")}get canDelete(){return!1!==this.providerPath.get("canDelete")}},f=w(p.prototype,"name",[a],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),m=w(p.prototype,"issuer",[o],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),h=w(p.prototype,"scopesSupported",[s],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),b=w(p.prototype,"allowedClientIds",[u],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),y=w(p.prototype,"providerPath",[c],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),d=p))||d)})),define("vault/models/oidc/scope",["exports","@ember-data/model","vault/macros/lazy-capabilities","vault/utils/field-to-attrs","vault/decorators/model-validations"],(function(e,t,n,l,i){var r,a,o,s,u,c,d,p,f,m,h
function b(e,t,n,l){n&&Object.defineProperty(e,t,{enumerable:n.enumerable,configurable:n.configurable,writable:n.writable,value:n.initializer?n.initializer.call(l):void 0})}function y(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e
var n=e[Symbol.toPrimitive]
if(void 0!==n){var l=n.call(e,t||"default")
if("object"!=typeof l)return l
throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string")
return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function v(e,t,n,l,i){var r={}
return Object.keys(l).forEach((function(e){r[e]=l[e]})),r.enumerable=!!r.enumerable,r.configurable=!!r.configurable,("value"in r||r.initializer)&&(r.writable=!0),r=n.slice().reverse().reduce((function(n,l){return l(e,t,n)||n}),r),i&&void 0!==r.initializer&&(r.value=r.initializer?r.initializer.call(i):void 0,r.initializer=void 0),void 0===r.initializer?(Object.defineProperty(e,t,r),null):r}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default=(r=(0,i.withModelValidations)({name:[{type:"presence",message:"Name is required."}]}),a=(0,t.attr)("string",{editDisabled:!0}),o=(0,t.attr)("string",{editType:"textarea"}),s=(0,t.attr)("string",{label:"JSON Template",editType:"json",mode:"ruby"}),u=(0,n.default)(n.apiPath`identity/oidc/scope/${"name"}`,"name"),r((d=class extends t.default{constructor(...e){super(...e),b(this,"name",p,this),b(this,"description",f,this),b(this,"template",m,this),y(this,"_attributeMeta",null),b(this,"scopePath",h,this)}get formFields(){return this._attributeMeta||(this._attributeMeta=(0,l.expandAttributeMeta)(this,["name","description","template"])),this._attributeMeta}get canRead(){return this.scopePath.get("canRead")}get canEdit(){return this.scopePath.get("canUpdate")}get canDelete(){return this.scopePath.get("canDelete")}},p=v(d.prototype,"name",[a],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),f=v(d.prototype,"description",[o],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),m=v(d.prototype,"template",[s],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),h=v(d.prototype,"scopePath",[u],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),c=d))||c)})),define("vault/models/path-filter-config",["exports","@ember-data/model"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default=t.default.extend({mode:(0,t.attr)("string"),paths:(0,t.attr)("array",{defaultValue:function(){return[]}})})})),define("vault/models/pki/action",["exports","@ember-data/model","@ember/service","@glimmer/tracking","vault/macros/lazy-capabilities","vault/decorators/model-form-fields","vault/decorators/model-validations"],(function(e,t,n,l,i,r,a){var o,s,u,c,d,p,f,m,h,b,y,v,g,w,k,x,P,_,T,O,j,z,M,S,C,A,E,R,D,N,F,I,L,U,V,q,$,K,B,G,W,H,Q,Y,J,X,Z,ee,te,ne,le,ie,re,ae,oe,se,ue,ce,de,pe,fe,me,he,be,ye,ve,ge,we,ke,xe,Pe,_e,Te,Oe,je,ze,Me,Se,Ce,Ae,Ee,Re,De,Ne,Fe,Ie,Le,Ue,Ve,qe,$e,Ke,Be,Ge,We,He,Qe,Ye
function Je(e,t,n,l){n&&Object.defineProperty(e,t,{enumerable:n.enumerable,configurable:n.configurable,writable:n.writable,value:n.initializer?n.initializer.call(l):void 0})}function Xe(e,t,n,l,i){var r={}
return Object.keys(l).forEach((function(e){r[e]=l[e]})),r.enumerable=!!r.enumerable,r.configurable=!!r.configurable,("value"in r||r.initializer)&&(r.writable=!0),r=n.slice().reverse().reduce((function(n,l){return l(e,t,n)||n}),r),i&&void 0!==r.initializer&&(r.value=r.initializer?r.initializer.call(i):void 0,r.initializer=void 0),void 0===r.initializer?(Object.defineProperty(e,t,r),null):r}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
const Ze={type:[{type:"presence",message:"Type is required."}],commonName:[{type:"presence",message:"Common name is required."}],issuerName:[{validator:e=>"generate-root"!==e.actionType&&"rotate-root"!==e.actionType||"default"!==e.issuerName,message:"Issuer name must be unique across all issuers and not be the reserved value 'default'."}],keyName:[{validator:e=>"default"!==e.keyName,message:"Key name cannot be the reserved value 'default'"}]}
e.default=(o=(0,a.withModelValidations)(Ze),s=(0,r.withFormFields)(),u=(0,t.attr)("string"),c=(0,t.attr)("string",{readOnly:!0,isCertificate:!0}),d=(0,t.attr)("string",{label:"Issuing CA",readOnly:!0,isCertificate:!0}),p=(0,t.attr)("string",{possibleValues:["exported","internal","existing","kms"],noDefault:!0}),f=(0,t.attr)("string"),m=(0,t.attr)("string"),h=(0,t.attr)("string",{defaultValue:"default",label:"Key reference"}),b=(0,t.attr)("string"),y=(0,t.attr)("string",{label:"Subject Alternative Names (SANs)",editType:"stringArray"}),v=(0,t.attr)("string",{label:"IP Subject Alternative Names (IP SANs)",editType:"stringArray"}),g=(0,t.attr)("string",{label:"URI Subject Alternative Names (URI SANs)",editType:"stringArray"}),w=(0,t.attr)("string",{label:"Other SANs",editType:"stringArray"}),k=(0,t.attr)("string",{defaultValue:"pem",possibleValues:["pem","der","pem_bundle"]}),x=(0,t.attr)("string",{defaultValue:"der",possibleValues:["der","pkcs8"]}),P=(0,t.attr)("string",{defaultValue:"rsa",possibleValues:["rsa","ed25519","ec"]}),_=(0,t.attr)("string",{defaultValue:"0"}),T=(0,t.attr)("number",{defaultValue:-1}),O=(0,t.attr)("boolean",{label:"Exclude common name from SANs",subText:"If checked, the common name will not be included in DNS or Email Subject Alternate Names. This is useful if the CN is a human-readable identifier, not a hostname or email address.",defaultValue:!1}),j=(0,t.attr)("string",{label:"Permitted DNS domains"}),z=(0,t.attr)("string",{label:"Organizational Units (OU)",subText:"A list of allowed serial numbers to be requested during certificate issuance. Shell-style globbing is supported. If empty, custom-specified serial numbers will be forbidden.",editType:"stringArray"}),M=(0,t.attr)({editType:"stringArray"}),S=(0,t.attr)({editType:"stringArray"}),C=(0,t.attr)({editType:"stringArray"}),A=(0,t.attr)({editType:"stringArray"}),E=(0,t.attr)({editType:"stringArray"}),R=(0,t.attr)({editType:"stringArray"}),D=(0,t.attr)("string",{subText:"Specifies the requested Subject's named Serial Number value. This has no impact on the Certificate's serial number randomly generated by Vault."}),N=(0,t.attr)("boolean",{subText:"Whether to add a Basic Constraints extension with CA: true."}),F=(0,t.attr)({label:"Backdate validity",detailsLabel:"Issued certificate backdating",helperTextDisabled:"Vault will use the default value, 30s",helperTextEnabled:"Also called the not_before_duration property. Allows certificates to be valid for a certain time period before now. This is useful to correct clock misalignment on various systems when setting up your CA.",editType:"ttl",defaultValue:"30s"}),I=(0,t.attr)("string"),L=(0,t.attr)("string",{label:"Managed key UUID"}),U=(0,t.attr)({label:"Not valid after",detailsLabel:"Issued certificates expire after",subText:"The time after which this certificate will no longer be valid. This can be a TTL (a range of time from now) or a specific date.",editType:"yield"}),V=(0,t.attr)("string"),q=(0,t.attr)("date"),$=(0,t.attr)("string",{label:"Issuer ID",readOnly:!0,detailLinkTo:"issuers.issuer.details"}),K=(0,t.attr)("string",{label:"CSR",isCertificate:!0}),B=(0,t.attr)("string",{label:"Key ID",detailLinkTo:"keys.key.details"}),G=(0,t.attr)("string",{isCertificate:!0}),W=(0,t.attr)("string"),H=(0,i.default)(i.apiPath`${"backend"}/issuers/import/bundle`,"backend"),Q=(0,i.default)(i.apiPath`${"backend"}/issuers/generate/root/${"type"}`,"backend","type"),Y=(0,i.default)(i.apiPath`${"backend"}/issuers/generate/intermediate/${"type"}`,"backend","type"),J=(0,i.default)(i.apiPath`${"backend"}/issuers/cross-sign`,"backend"),o(X=s((Z=class extends t.default{constructor(...e){super(...e),Je(this,"secretMountPath",ee,this),Je(this,"actionType",te,this),Je(this,"pemBundle",ne,this),Je(this,"parsedCertificate",le,this),Je(this,"importedIssuers",ie,this),Je(this,"importedKeys",re,this),Je(this,"mapping",ae,this),Je(this,"certificate",oe,this),Je(this,"serialNumber",se,this),Je(this,"issuingCa",ue,this),Je(this,"type",ce,this),Je(this,"issuerName",de,this),Je(this,"keyName",pe,this),Je(this,"keyRef",fe,this),Je(this,"commonName",me,this),Je(this,"altNames",he,this),Je(this,"ipSans",be,this),Je(this,"uriSans",ye,this),Je(this,"otherSans",ve,this),Je(this,"format",ge,this),Je(this,"privateKeyFormat",we,this),Je(this,"keyType",ke,this),Je(this,"keyBits",xe,this),Je(this,"maxPathLength",Pe,this),Je(this,"excludeCnFromSans",_e,this),Je(this,"permittedDnsDomains",Te,this),Je(this,"ou",Oe,this),Je(this,"organization",je,this),Je(this,"country",ze,this)
Je(this,"locality",Me,this),Je(this,"province",Se,this),Je(this,"streetAddress",Ce,this),Je(this,"postalCode",Ae,this),Je(this,"subjectSerialNumber",Ee,this),Je(this,"addBasicConstraints",Re,this),Je(this,"notBeforeDuration",De,this),Je(this,"managedKeyName",Ne,this),Je(this,"managedKeyId",Fe,this),Je(this,"customTtl",Ie,this),Je(this,"ttl",Le,this),Je(this,"notAfter",Ue,this),Je(this,"issuerId",Ve,this),Je(this,"csr",qe,this),Je(this,"caChain",$e,this),Je(this,"keyId",Ke,this),Je(this,"privateKey",Be,this),Je(this,"privateKeyType",Ge,this),Je(this,"importBundlePath",We,this),Je(this,"generateIssuerRootPath",He,this),Je(this,"generateIssuerCsrPath",Qe,this),Je(this,"crossSignPath",Ye,this)}get backend(){return this.secretMountPath.currentPath}get canImportBundle(){return!0===this.importBundlePath.get("canCreate")}get canGenerateIssuerRoot(){return!0===this.generateIssuerRootPath.get("canCreate")}get canGenerateIssuerIntermediate(){return!0===this.generateIssuerCsrPath.get("canCreate")}get canCrossSign(){return!0===this.crossSignPath.get("canCreate")}},ee=Xe(Z.prototype,"secretMountPath",[n.service],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),te=Xe(Z.prototype,"actionType",[l.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),ne=Xe(Z.prototype,"pemBundle",[u],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),le=Xe(Z.prototype,"parsedCertificate",[t.attr],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),ie=Xe(Z.prototype,"importedIssuers",[t.attr],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),re=Xe(Z.prototype,"importedKeys",[t.attr],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),ae=Xe(Z.prototype,"mapping",[t.attr],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),oe=Xe(Z.prototype,"certificate",[c],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),se=Xe(Z.prototype,"serialNumber",[t.attr],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),ue=Xe(Z.prototype,"issuingCa",[d],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),ce=Xe(Z.prototype,"type",[p],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),de=Xe(Z.prototype,"issuerName",[f],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),pe=Xe(Z.prototype,"keyName",[m],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),fe=Xe(Z.prototype,"keyRef",[h],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),me=Xe(Z.prototype,"commonName",[b],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),he=Xe(Z.prototype,"altNames",[y],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),be=Xe(Z.prototype,"ipSans",[v],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),ye=Xe(Z.prototype,"uriSans",[g],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),ve=Xe(Z.prototype,"otherSans",[w],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),ge=Xe(Z.prototype,"format",[k],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),we=Xe(Z.prototype,"privateKeyFormat",[x],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),ke=Xe(Z.prototype,"keyType",[P],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),xe=Xe(Z.prototype,"keyBits",[_],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),Pe=Xe(Z.prototype,"maxPathLength",[T],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),_e=Xe(Z.prototype,"excludeCnFromSans",[O],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),Te=Xe(Z.prototype,"permittedDnsDomains",[j],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),Oe=Xe(Z.prototype,"ou",[z],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),je=Xe(Z.prototype,"organization",[M],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),ze=Xe(Z.prototype,"country",[S],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),Me=Xe(Z.prototype,"locality",[C],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),Se=Xe(Z.prototype,"province",[A],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),Ce=Xe(Z.prototype,"streetAddress",[E],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),Ae=Xe(Z.prototype,"postalCode",[R],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),Ee=Xe(Z.prototype,"subjectSerialNumber",[D],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),Re=Xe(Z.prototype,"addBasicConstraints",[N],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),De=Xe(Z.prototype,"notBeforeDuration",[F],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),Ne=Xe(Z.prototype,"managedKeyName",[I],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),Fe=Xe(Z.prototype,"managedKeyId",[L],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),Ie=Xe(Z.prototype,"customTtl",[U],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),Le=Xe(Z.prototype,"ttl",[V],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),Ue=Xe(Z.prototype,"notAfter",[q],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),Ve=Xe(Z.prototype,"issuerId",[$],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),qe=Xe(Z.prototype,"csr",[K],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),$e=Xe(Z.prototype,"caChain",[t.attr],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),Ke=Xe(Z.prototype,"keyId",[B],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),Be=Xe(Z.prototype,"privateKey",[G],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),Ge=Xe(Z.prototype,"privateKeyType",[W],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),We=Xe(Z.prototype,"importBundlePath",[H],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),He=Xe(Z.prototype,"generateIssuerRootPath",[Q],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),Qe=Xe(Z.prototype,"generateIssuerCsrPath",[Y],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),Ye=Xe(Z.prototype,"crossSignPath",[J],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),X=Z))||X)||X)})),define("vault/models/pki/certificate/base",["exports","@ember-data/model","@ember/service","vault/decorators/model-form-fields","vault/macros/lazy-capabilities"],(function(e,t,n,l,i){var r,a,o,s,u,c,d,p,f,m,h,b,y,v,g,w,k,x,P,_,T,O,j,z,M,S,C,A,E,R,D,N,F,I,L,U,V,q,$
function K(e,t,n,l){n&&Object.defineProperty(e,t,{enumerable:n.enumerable,configurable:n.configurable,writable:n.writable,value:n.initializer?n.initializer.call(l):void 0})}function B(e,t,n,l,i){var r={}
return Object.keys(l).forEach((function(e){r[e]=l[e]})),r.enumerable=!!r.enumerable,r.configurable=!!r.configurable,("value"in r||r.initializer)&&(r.writable=!0),r=n.slice().reverse().reduce((function(n,l){return l(e,t,n)||n}),r),i&&void 0!==r.initializer&&(r.value=r.initializer?r.initializer.call(i):void 0,r.initializer=void 0),void 0===r.initializer?(Object.defineProperty(e,t,r),null):r}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default=(r=(0,l.withFormFields)(["certificate","commonName","revocationTime","serialNumber"]),a=(0,t.attr)("string"),o=(0,t.attr)({label:"Not valid after",detailsLabel:"Issued certificates expire after",subText:"The time after which this certificate will no longer be valid. This can be a TTL (a range of time from now) or a specific date.",editType:"yield"}),s=(0,t.attr)("boolean",{label:"Exclude common name from SANs",subText:"If checked, the common name will not be included in DNS or Email Subject Alternate Names. This is useful if the CN is a human-readable identifier, not a hostname or email address.",defaultValue:!1}),u=(0,t.attr)("string",{label:"Subject Alternative Names (SANs)",subText:"The requested Subject Alternative Names; if email protection is enabled for the role, this may contain email addresses.",editType:"stringArray"}),c=(0,t.attr)("string",{label:"IP Subject Alternative Names (IP SANs)",subText:"Only valid if the role allows IP SANs (which is the default)."}),d=(0,t.attr)("string",{label:"URI Subject Alternative Names (URI SANs)",subText:"If any requested URIs do not match role policy, the entire request will be denied."}),p=(0,t.attr)("string",{subText:"Requested other SANs with the format <oid>;UTF8:<utf8 string value> for each entry."}),f=(0,t.attr)("string"),m=(0,t.attr)({label:"CA Chain",isCertificate:!0}),h=(0,t.attr)("string",{isCertificate:!0}),b=(0,t.attr)("number"),y=(0,t.attr)("string",{label:"Issuing CA",isCertificate:!0}),v=(0,t.attr)("string",{isCertificate:!0}),g=(0,t.attr)("string"),w=(0,t.attr)("number",{formatDate:!0}),k=(0,t.attr)("string"),x=(0,i.default)(i.apiPath`${"backend"}/revoke`,"backend"),r((_=class extends t.default{constructor(...e){super(...e),K(this,"secretMountPath",T,this),K(this,"parsedCertificate",O,this),K(this,"commonName",j,this),K(this,"customTtl",z,this),K(this,"excludeCnFromSans",M,this),K(this,"altNames",S,this),K(this,"ipSans",C,this),K(this,"uriSans",A,this),K(this,"otherSans",E,this),K(this,"role",R,this),K(this,"caChain",D,this),K(this,"certificate",N,this),K(this,"expiration",F,this),K(this,"issuingCa",I,this),K(this,"privateKey",L,this),K(this,"privateKeyType",U,this),K(this,"revocationTime",V,this),K(this,"serialNumber",q,this),K(this,"revokePath",$,this)}get backend(){return this.secretMountPath.currentPath}get canRevoke(){return this.revokePath.get("isLoading")||!1!==this.revokePath.get("canCreate")}},T=B(_.prototype,"secretMountPath",[n.service],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),O=B(_.prototype,"parsedCertificate",[t.attr],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),j=B(_.prototype,"commonName",[a],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),z=B(_.prototype,"customTtl",[o],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),M=B(_.prototype,"excludeCnFromSans",[s],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),S=B(_.prototype,"altNames",[u],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),C=B(_.prototype,"ipSans",[c],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),A=B(_.prototype,"uriSans",[d],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),E=B(_.prototype,"otherSans",[p],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),R=B(_.prototype,"role",[f],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),D=B(_.prototype,"caChain",[m],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),N=B(_.prototype,"certificate",[h],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),F=B(_.prototype,"expiration",[b],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),I=B(_.prototype,"issuingCa",[y],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),L=B(_.prototype,"privateKey",[v],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),U=B(_.prototype,"privateKeyType",[g],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),V=B(_.prototype,"revocationTime",[w],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),q=B(_.prototype,"serialNumber",[k],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),$=B(_.prototype,"revokePath",[x],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),P=_))||P)})),define("vault/models/pki/certificate/generate",["exports","@ember-data/model","vault/decorators/model-form-fields","vault/models/pki/certificate/base"],(function(e,t,n,l){var i,r,a,o,s
Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default=(i=(0,n.withFormFields)(["certificate","commonName","revocationTime","serialNumber","caChain","issuingCa","privateKey","privateKeyType"],[{default:["commonName","userIds","customTtl","format","privateKeyFormat"]},{"Subject Alternative Name (SAN) Options":["excludeCnFromSans","altNames","ipSans","uriSans","otherSans"]}]),r=(0,t.attr)("string"),i((o=class extends l.default{constructor(...e){var t,n,l,i
super(...e),t=this,n="role",i=this,(l=s)&&Object.defineProperty(t,n,{enumerable:l.enumerable,configurable:l.configurable,writable:l.writable,value:l.initializer?l.initializer.call(i):void 0})}},u=o.prototype,c="role",d=[r],p={configurable:!0,enumerable:!0,writable:!0,initializer:null},m={},Object.keys(p).forEach((function(e){m[e]=p[e]})),m.enumerable=!!m.enumerable,m.configurable=!!m.configurable,("value"in m||m.initializer)&&(m.writable=!0),m=d.slice().reverse().reduce((function(e,t){return t(u,c,e)||e}),m),f&&void 0!==m.initializer&&(m.value=m.initializer?m.initializer.call(f):void 0,m.initializer=void 0),s=void 0===m.initializer?(Object.defineProperty(u,c,m),null):m,a=o))||a)
var u,c,d,p,f,m})),define("vault/models/pki/certificate/sign",["exports","@ember-data/model","vault/decorators/model-form-fields","vault/models/pki/certificate/base"],(function(e,t,n,l){var i,r,a,o,s,u,c,d,p
function f(e,t,n,l){n&&Object.defineProperty(e,t,{enumerable:n.enumerable,configurable:n.configurable,writable:n.writable,value:n.initializer?n.initializer.call(l):void 0})}function m(e,t,n,l,i){var r={}
return Object.keys(l).forEach((function(e){r[e]=l[e]})),r.enumerable=!!r.enumerable,r.configurable=!!r.configurable,("value"in r||r.initializer)&&(r.writable=!0),r=n.slice().reverse().reduce((function(n,l){return l(e,t,n)||n}),r),i&&void 0!==r.initializer&&(r.value=r.initializer?r.initializer.call(i):void 0,r.initializer=void 0),void 0===r.initializer?(Object.defineProperty(e,t,r),null):r}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default=(i=(0,n.withFormFields)(null,[{default:["csr","commonName","customTtl","format","removeRootsFromChain"]},{"Subject Alternative Name (SAN) Options":["excludeCnFromSans","altNames","ipSans","uriSans","otherSans"]}]),r=(0,t.attr)("string"),a=(0,t.attr)("string",{label:"CSR",editType:"textarea"}),o=(0,t.attr)("boolean",{subText:"When checked, the CA chain will not include self-signed CA certificates."}),i((u=class extends l.default{constructor(...e){super(...e),f(this,"role",c,this),f(this,"csr",d,this),f(this,"removeRootsFromChain",p,this)}},c=m(u.prototype,"role",[r],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),d=m(u.prototype,"csr",[a],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),p=m(u.prototype,"removeRootsFromChain",[o],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),s=u))||s)})),define("vault/models/pki/config/acme",["exports","@ember-data/model","vault/decorators/model-form-fields","vault/macros/lazy-capabilities"],(function(e,t,n,l){var i,r,a,o,s,u,c,d,p,f,m,h,b,y,v,g,w,k,x,P,_
function T(e,t,n,l){n&&Object.defineProperty(e,t,{enumerable:n.enumerable,configurable:n.configurable,writable:n.writable,value:n.initializer?n.initializer.call(l):void 0})}function O(e,t,n,l,i){var r={}
return Object.keys(l).forEach((function(e){r[e]=l[e]})),r.enumerable=!!r.enumerable,r.configurable=!!r.configurable,("value"in r||r.initializer)&&(r.writable=!0),r=n.slice().reverse().reduce((function(n,l){return l(e,t,n)||n}),r),i&&void 0!==r.initializer&&(r.value=r.initializer?r.initializer.call(i):void 0,r.initializer=void 0),void 0===r.initializer?(Object.defineProperty(e,t,r),null):r}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default=(i=(0,n.withFormFields)(),r=(0,t.attr)("boolean",{label:"ACME enabled",subText:"When ACME is disabled, all requests to ACME directory URLs will return 404."}),a=(0,t.attr)("string",{subText:"Specifies the behavior of the default ACME directory. Can be 'forbid', 'sign-verbatim' or a role given by 'role:<role_name>'. If a role is used, it must be present in 'allowed_roles'."}),o=(0,t.attr)("array",{editType:"stringArray",subText:"The default value '*' allows every role within the mount to be used. If the default_directory_policy specifies a role, it must be allowed under this configuration."}),s=(0,t.attr)("boolean",{label:"Allow role ExtKeyUsage",subText:"When enabled, respect the role's ExtKeyUsage flags. Otherwise, ACME certificates are forced to ServerAuth."}),u=(0,t.attr)("array",{editType:"stringArray",subText:"Specifies a list of issuers allowed to issue certificates via explicit ACME paths. If an allowed role specifies an issuer outside this list, it will be allowed. The default value '*' allows every issuer within the mount."}),c=(0,t.attr)("string",{label:"EAB policy",possibleValues:["not-required","new-account-required","always-required"]}),d=(0,t.attr)("string",{label:"DNS resolver",subText:"An optional overriding DNS resolver to use for challenge verification lookups. When not specified, the default system resolver will be used. This allows domains on peered networks with an accessible DNS resolver to be validated."}),p=(0,t.attr)({label:"Max TTL",editType:"ttl",hideToggle:!0,helperTextEnabled:"Specify the maximum TTL for ACME certificates. Role TTL values will be limited to this value."}),f=(0,l.default)(l.apiPath`${"id"}/config/acme`,"id"),i((h=class extends t.default{constructor(...e){super(...e),T(this,"enabled",b,this),T(this,"defaultDirectoryPolicy",y,this),T(this,"allowedRoles",v,this),T(this,"allowRoleExtKeyUsage",g,this),T(this,"allowedIssuers",w,this),T(this,"eabPolicy",k,this),T(this,"dnsResolver",x,this),T(this,"maxTtl",P,this),T(this,"acmePath",_,this)}get canSet(){return!1!==this.acmePath.get("canUpdate")}},b=O(h.prototype,"enabled",[r],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),y=O(h.prototype,"defaultDirectoryPolicy",[a],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),v=O(h.prototype,"allowedRoles",[o],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),g=O(h.prototype,"allowRoleExtKeyUsage",[s],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),w=O(h.prototype,"allowedIssuers",[u],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),k=O(h.prototype,"eabPolicy",[c],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),x=O(h.prototype,"dnsResolver",[d],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),P=O(h.prototype,"maxTtl",[p],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),_=O(h.prototype,"acmePath",[f],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),m=h))||m)}))
define("vault/models/pki/config/cluster",["exports","@ember-data/model","vault/decorators/model-form-fields","vault/macros/lazy-capabilities"],(function(e,t,n,l){var i,r,a,o,s,u,c,d,p
function f(e,t,n,l){n&&Object.defineProperty(e,t,{enumerable:n.enumerable,configurable:n.configurable,writable:n.writable,value:n.initializer?n.initializer.call(l):void 0})}function m(e,t,n,l,i){var r={}
return Object.keys(l).forEach((function(e){r[e]=l[e]})),r.enumerable=!!r.enumerable,r.configurable=!!r.configurable,("value"in r||r.initializer)&&(r.writable=!0),r=n.slice().reverse().reduce((function(n,l){return l(e,t,n)||n}),r),i&&void 0!==r.initializer&&(r.value=r.initializer?r.initializer.call(i):void 0,r.initializer=void 0),void 0===r.initializer?(Object.defineProperty(e,t,r),null):r}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default=(i=(0,n.withFormFields)(),r=(0,t.attr)("string",{label:"Mount's API path",subText:"Specifies the path to this performance replication cluster's API mount path, including any namespaces as path components. This address is used for the ACME directories, which must be served over a TLS-enabled listener."}),a=(0,t.attr)("string",{label:"AIA path",subText:"Specifies the path to this performance replication cluster's AIA distribution point; may refer to an external, non-Vault responder."}),o=(0,l.default)(l.apiPath`${"id"}/config/cluster`,"id"),i((u=class extends t.default{constructor(...e){super(...e),f(this,"path",c,this),f(this,"aiaPath",d,this),f(this,"clusterPath",p,this)}get canSet(){return!1!==this.clusterPath.get("canUpdate")}},c=m(u.prototype,"path",[r],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),d=m(u.prototype,"aiaPath",[a],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),p=m(u.prototype,"clusterPath",[o],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),s=u))||s)})),define("vault/models/pki/config/crl",["exports","@ember-data/model","vault/decorators/model-form-fields","vault/macros/lazy-capabilities"],(function(e,t,n,l){var i,r,a,o,s,u,c,d,p,f,m,h,b,y,v,g,w,k,x,P,_,T,O,j,z,M,S
function C(e,t,n,l){n&&Object.defineProperty(e,t,{enumerable:n.enumerable,configurable:n.configurable,writable:n.writable,value:n.initializer?n.initializer.call(l):void 0})}function A(e,t,n,l,i){var r={}
return Object.keys(l).forEach((function(e){r[e]=l[e]})),r.enumerable=!!r.enumerable,r.configurable=!!r.configurable,("value"in r||r.initializer)&&(r.writable=!0),r=n.slice().reverse().reduce((function(n,l){return l(e,t,n)||n}),r),i&&void 0!==r.initializer&&(r.value=r.initializer?r.initializer.call(i):void 0,r.initializer=void 0),void 0===r.initializer?(Object.defineProperty(e,t,r),null):r}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default=(i=(0,n.withFormFields)(null,[{"Certificate Revocation List (CRL)":["expiry","autoRebuildGracePeriod","deltaRebuildInterval"]},{"Online Certificate Status Protocol (OCSP)":["ocspExpiry"]},{"Unified Revocation":["crossClusterRevocation","unifiedCrl","unifiedCrlOnExistingPaths"]}]),r=(0,t.attr)("boolean"),a=(0,t.attr)("string",{label:"Auto-rebuild on",labelDisabled:"Auto-rebuild off",mapToBoolean:"autoRebuild",isOppositeValue:!1,editType:"ttl",helperTextEnabled:"Vault will rebuild the CRL in the below grace period before expiration",helperTextDisabled:"Vault will not automatically rebuild the CRL"}),o=(0,t.attr)("boolean"),s=(0,t.attr)("string",{label:"Delta CRL building on",labelDisabled:"Delta CRL building off",mapToBoolean:"enableDelta",isOppositeValue:!1,editType:"ttl",helperTextEnabled:"Vault will rebuild the delta CRL at the interval below:",helperTextDisabled:"Vault will not rebuild the delta CRL at an interval"}),u=(0,t.attr)("boolean"),c=(0,t.attr)("string",{label:"Expiry",labelDisabled:"No expiry",mapToBoolean:"disable",isOppositeValue:!0,editType:"ttl",helperTextDisabled:"The CRL will not be built.",helperTextEnabled:"The CRL will expire after:"}),d=(0,t.attr)("boolean"),p=(0,t.attr)("string",{label:"OCSP responder APIs enabled",labelDisabled:"OCSP responder APIs disabled",mapToBoolean:"ocspDisable",isOppositeValue:!0,editType:"ttl",helperTextEnabled:"Requests about a certificate's status will be valid for:",helperTextDisabled:"Requests cannot be made to check if an individual certificate is valid."}),f=(0,t.attr)("boolean",{label:"Cross-cluster revocation",helpText:"Enables cross-cluster revocation request queues. When a serial not issued on this local cluster is passed to the /revoke endpoint, it is replicated across clusters and revoked by the issuing cluster if it is online."}),m=(0,t.attr)("boolean",{label:"Unified CRL",helpText:"Enables unified CRL and OCSP building. This synchronizes all revocations between clusters; a single, unified CRL will be built on the active node of the primary performance replication (PR) cluster."}),h=(0,t.attr)("boolean",{label:"Unified CRL on existing paths",helpText:"If enabled, existing CRL and OCSP paths will return the unified CRL instead of a response based on cluster-local data."}),b=(0,l.default)(l.apiPath`${"id"}/config/crl`,"id"),i((v=class extends t.default{constructor(...e){super(...e),C(this,"autoRebuild",g,this),C(this,"autoRebuildGracePeriod",w,this),C(this,"enableDelta",k,this),C(this,"deltaRebuildInterval",x,this),C(this,"disable",P,this),C(this,"expiry",_,this),C(this,"ocspDisable",T,this),C(this,"ocspExpiry",O,this),C(this,"crossClusterRevocation",j,this),C(this,"unifiedCrl",z,this),C(this,"unifiedCrlOnExistingPaths",M,this),C(this,"crlPath",S,this)}get canSet(){return!1!==this.crlPath.get("canUpdate")}},g=A(v.prototype,"autoRebuild",[r],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),w=A(v.prototype,"autoRebuildGracePeriod",[a],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),k=A(v.prototype,"enableDelta",[o],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),x=A(v.prototype,"deltaRebuildInterval",[s],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),P=A(v.prototype,"disable",[u],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),_=A(v.prototype,"expiry",[c],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),T=A(v.prototype,"ocspDisable",[d],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),O=A(v.prototype,"ocspExpiry",[p],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),j=A(v.prototype,"crossClusterRevocation",[f],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),z=A(v.prototype,"unifiedCrl",[m],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),M=A(v.prototype,"unifiedCrlOnExistingPaths",[h],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),S=A(v.prototype,"crlPath",[b],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),y=v))||y)})),define("vault/models/pki/config/urls",["exports","@ember-data/model","vault/decorators/model-form-fields","vault/macros/lazy-capabilities"],(function(e,t,n,l){var i,r,a,o,s,u,c,d,p,f,m
function h(e,t,n,l){n&&Object.defineProperty(e,t,{enumerable:n.enumerable,configurable:n.configurable,writable:n.writable,value:n.initializer?n.initializer.call(l):void 0})}function b(e,t,n,l,i){var r={}
return Object.keys(l).forEach((function(e){r[e]=l[e]})),r.enumerable=!!r.enumerable,r.configurable=!!r.configurable,("value"in r||r.initializer)&&(r.writable=!0),r=n.slice().reverse().reduce((function(n,l){return l(e,t,n)||n}),r),i&&void 0!==r.initializer&&(r.value=r.initializer?r.initializer.call(i):void 0,r.initializer=void 0),void 0===r.initializer?(Object.defineProperty(e,t,r),null):r}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default=(i=(0,n.withFormFields)(),r=(0,t.attr)({label:"Issuing certificates",subText:"The URL values for the Issuing Certificate field; these are different URLs for the same resource.",showHelpText:!1,editType:"stringArray"}),a=(0,t.attr)({label:"CRL distribution points",subText:"Specifies the URL values for the CRL Distribution Points field.",showHelpText:!1,editType:"stringArray"}),o=(0,t.attr)({label:"OCSP Servers",subText:"Specifies the URL values for the OCSP Servers field.",showHelpText:!1,editType:"stringArray"}),s=(0,l.default)(l.apiPath`${"id"}/config/urls`,"id"),i((c=class extends t.default{constructor(...e){super(...e),h(this,"issuingCertificates",d,this),h(this,"crlDistributionPoints",p,this),h(this,"ocspServers",f,this),h(this,"urlsPath",m,this)}get canSet(){return!1!==this.urlsPath.get("canUpdate")}},d=b(c.prototype,"issuingCertificates",[r],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),p=b(c.prototype,"crlDistributionPoints",[a],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),f=b(c.prototype,"ocspServers",[o],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),m=b(c.prototype,"urlsPath",[s],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),u=c))||u)})),define("vault/models/pki/issuer",["exports","@ember-data/model","vault/decorators/model-form-fields","vault/macros/lazy-capabilities","@ember/service"],(function(e,t,n,l,i){var r,a,o,s,u,c,d,p,f,m,h,b,y,v,g,w,k,x,P,_,T,O,j,z,M,S,C,A,E,R,D,N,F,I,L,U,V,q,$,K,B,G,W,H,Q,Y,J,X,Z,ee,te,ne,le,ie,re,ae,oe,se,ue,ce,de,pe,fe
function me(e,t,n,l){n&&Object.defineProperty(e,t,{enumerable:n.enumerable,configurable:n.configurable,writable:n.writable,value:n.initializer?n.initializer.call(l):void 0})}function he(e,t,n,l,i){var r={}
return Object.keys(l).forEach((function(e){r[e]=l[e]})),r.enumerable=!!r.enumerable,r.configurable=!!r.configurable,("value"in r||r.initializer)&&(r.writable=!0),r=n.slice().reverse().reduce((function(n,l){return l(e,t,n)||n}),r),i&&void 0!==r.initializer&&(r.value=r.initializer?r.initializer.call(i):void 0,r.initializer=void 0),void 0===r.initializer?(Object.defineProperty(e,t,r),null):r}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
const be=["issuingCertificates","crlDistributionPoints","ocspServers"],ye=["issuerName","leafNotAfterBehavior","usage","manualChain","revocationSignatureAlgorithm",...be],ve=[{default:["certificate","caChain","commonName","issuerName","issuerId","keyId"]},{"Issuer URLs":be}]
e.default=(r=(0,n.withFormFields)(ye,ve),a=(0,t.attr)("string",{label:"Issuer ID",detailLinkTo:"issuers.issuer.details"}),o=(0,t.attr)("string",{label:"Default key ID",detailLinkTo:"keys.key.details"}),s=(0,t.attr)({label:"CA Chain",isCertificate:!0}),u=(0,t.attr)({isCertificate:!0}),c=(0,t.attr)("string"),d=(0,t.attr)("string"),p=(0,t.attr)({label:"Subject Alternative Names (SANs)"}),f=(0,t.attr)({label:"IP SANs"}),m=(0,t.attr)({label:"URI SANs"}),h=(0,t.attr)({label:"Other SANs"}),b=(0,t.attr)("string"),y=(0,t.attr)({label:"Leaf notAfter behavior",subText:"What happens when a leaf certificate is issued, but its NotAfter field (and therefore its expiry date) exceeds that of this issuer.",docLink:"/vault/api-docs/secret/pki#update-issuer",editType:"yield",valueOptions:["always_enforce_err","err","truncate","permit"]}),v=(0,t.attr)({subText:"Allowed usages for this issuer. It can always be read.",editType:"yield",valueOptions:[{label:"Issuing certificates",value:"issuing-certificates"},{label:"Signing CRLs",value:"crl-signing"},{label:"Signing OCSPs",value:"ocsp-signing"}]}),g=(0,t.attr)("string",{subText:"An advanced field useful when automatic chain building isn't desired. The first element must be the present issuer's reference."}),w=(0,t.attr)({subText:"The signature algorithm to use when building CRLs. The default value (empty string) is for Go to select the signature algorithm automatically, which may not always work.",noDefault:!0,possibleValues:["sha256withrsa","ecdsawithsha384","sha256withrsapss","ed25519","sha384withrsapss","sha512withrsapss","pureed25519","sha384withrsa","sha512withrsa","ecdsawithsha256","ecdsawithsha512"]}),k=(0,t.attr)("string",{subText:"The URL values for the Issuing Certificate field; these are different URLs for the same resource.",editType:"stringArray"}),x=(0,t.attr)("string",{label:"CRL distribution points",subText:"Specifies the URL values for the CRL Distribution Points field.",editType:"stringArray"}),P=(0,t.attr)("string",{label:"OCSP servers",subText:"Specifies the URL values for the OCSP Servers field.",editType:"stringArray"}),_=(0,t.attr)("string"),T=(0,l.default)(l.apiPath`${"backend"}/issuer/${"issuerId"}`,"backend","issuerId"),O=(0,l.default)(l.apiPath`${"backend"}/root/rotate/exported`,"backend"),j=(0,l.default)(l.apiPath`${"backend"}/root/rotate/internal`,"backend"),z=(0,l.default)(l.apiPath`${"backend"}/root/rotate/existing`,"backend"),M=(0,l.default)(l.apiPath`${"backend"}/root`,"backend"),S=(0,l.default)(l.apiPath`${"backend"}/intermediate/cross-sign`,"backend"),C=(0,l.default)(l.apiPath`${"backend"}/issuer/${"issuerId"}/sign-intermediate`,"backend","issuerId"),r((E=class extends t.default{constructor(...e){super(...e),me(this,"secretMountPath",R,this),me(this,"isDefault",D,this),me(this,"issuerId",N,this),me(this,"keyId",F,this),me(this,"caChain",I,this),me(this,"certificate",L,this),me(this,"serialNumber",U,this),me(this,"parsedCertificate",V,this),me(this,"commonName",q,this),me(this,"isRoot",$,this),me(this,"subjectSerialNumber",K,this),me(this,"altNames",B,this),me(this,"ipSans",G,this),me(this,"uriSans",W,this),me(this,"otherSans",H,this),me(this,"issuerName",Q,this),me(this,"leafNotAfterBehavior",Y,this),me(this,"usage",J,this),me(this,"manualChain",X,this),me(this,"revocationSignatureAlgorithm",Z,this),me(this,"issuingCertificates",ee,this),me(this,"crlDistributionPoints",te,this),me(this,"ocspServers",ne,this),me(this,"pemBundle",le,this),me(this,"importedIssuers",ie,this),me(this,"importedKeys",re,this),me(this,"mapping",ae,this),me(this,"issuerPath",oe,this),me(this,"rotateExported",se,this)
me(this,"rotateInternal",ue,this),me(this,"rotateExisting",ce,this),me(this,"deletePath",de,this),me(this,"crossSignPath",pe,this),me(this,"signIntermediate",fe,this)}get backend(){return this.secretMountPath.currentPath}get issuerRef(){return this.issuerName||this.issuerId}get canRotateIssuer(){return!1!==this.rotateExported.get("canUpdate")||!1!==this.rotateExisting.get("canUpdate")||!1!==this.rotateInternal.get("canUpdate")}get canCrossSign(){return!1!==this.crossSignPath.get("canUpdate")}get canSignIntermediate(){return!1!==this.signIntermediate.get("canUpdate")}get canConfigure(){return!1!==this.issuerPath.get("canUpdate")}get canDeleteAllIssuers(){return this.deletePath.get("isLoading")||!1!==this.deletePath.get("canDelete")}},R=he(E.prototype,"secretMountPath",[i.service],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),D=he(E.prototype,"isDefault",[t.attr],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),N=he(E.prototype,"issuerId",[a],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),F=he(E.prototype,"keyId",[o],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),I=he(E.prototype,"caChain",[s],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),L=he(E.prototype,"certificate",[u],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),U=he(E.prototype,"serialNumber",[c],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),V=he(E.prototype,"parsedCertificate",[t.attr],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),q=he(E.prototype,"commonName",[d],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),$=he(E.prototype,"isRoot",[t.attr],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),K=he(E.prototype,"subjectSerialNumber",[t.attr],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),B=he(E.prototype,"altNames",[p],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),G=he(E.prototype,"ipSans",[f],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),W=he(E.prototype,"uriSans",[m],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),H=he(E.prototype,"otherSans",[h],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),Q=he(E.prototype,"issuerName",[b],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),Y=he(E.prototype,"leafNotAfterBehavior",[y],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),J=he(E.prototype,"usage",[v],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),X=he(E.prototype,"manualChain",[g],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),Z=he(E.prototype,"revocationSignatureAlgorithm",[w],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),ee=he(E.prototype,"issuingCertificates",[k],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),te=he(E.prototype,"crlDistributionPoints",[x],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),ne=he(E.prototype,"ocspServers",[P],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),le=he(E.prototype,"pemBundle",[_],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),ie=he(E.prototype,"importedIssuers",[t.attr],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),re=he(E.prototype,"importedKeys",[t.attr],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),ae=he(E.prototype,"mapping",[t.attr],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),oe=he(E.prototype,"issuerPath",[T],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),se=he(E.prototype,"rotateExported",[O],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),ue=he(E.prototype,"rotateInternal",[j],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),ce=he(E.prototype,"rotateExisting",[z],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),de=he(E.prototype,"deletePath",[M],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),pe=he(E.prototype,"crossSignPath",[S],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),fe=he(E.prototype,"signIntermediate",[C],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),A=E))||A)})),define("vault/models/pki/key",["exports","@ember-data/model","@ember/service","vault/macros/lazy-capabilities","vault/decorators/model-form-fields","vault/decorators/model-validations"],(function(e,t,n,l,i,r){var a,o,s,u,c,d,p,f,m,h,b,y,v,g,w,k,x,P,_,T,O,j,z,M,S
function C(e,t,n,l){n&&Object.defineProperty(e,t,{enumerable:n.enumerable,configurable:n.configurable,writable:n.writable,value:n.initializer?n.initializer.call(l):void 0})}function A(e,t,n,l,i){var r={}
return Object.keys(l).forEach((function(e){r[e]=l[e]})),r.enumerable=!!r.enumerable,r.configurable=!!r.configurable,("value"in r||r.initializer)&&(r.writable=!0),r=n.slice().reverse().reduce((function(n,l){return l(e,t,n)||n}),r),i&&void 0!==r.initializer&&(r.value=r.initializer?r.initializer.call(i):void 0,r.initializer=void 0),void 0===r.initializer?(Object.defineProperty(e,t,r),null):r}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
const E={type:[{type:"presence",message:"Type is required."}],keyType:[{type:"presence",message:"Please select a key type."}],keyName:[{validator:e=>"default"!==e.keyName,message:"Key name cannot be the reserved value 'default'"}]}
e.default=(a=(0,r.withModelValidations)(E),o=(0,i.withFormFields)(["keyId","keyName","keyType","keyBits"],[{default:["keyName","type"]},{"Key parameters":["keyType","keyBits"]}]),s=(0,t.attr)("string",{detailsLabel:"Key ID"}),u=(0,t.attr)("string",{subText:"Optional, human-readable name for this key. The name must be unique across all keys and cannot be 'default'."}),c=(0,t.attr)("string",{noDefault:!0,possibleValues:["internal","exported"],subText:"The type of operation. If exported, the private key will be returned in the response; if internal the private key will not be returned and cannot be retrieved later."}),d=(0,t.attr)("string",{noDefault:!0,possibleValues:["rsa","ec","ed25519"],subText:"The type of key that will be generated. Must be rsa, ed25519, or ec. "}),p=(0,t.attr)("string",{label:"Key bits",noDefault:!0,subText:"Bit length of the key to generate."}),f=(0,t.attr)("string"),m=(0,t.attr)("string"),h=(0,l.default)(l.apiPath`${"backend"}/key/${"keyId"}`,"backend","keyId"),b=(0,l.default)(l.apiPath`${"backend"}/keys/generate`,"backend"),y=(0,l.default)(l.apiPath`${"backend"}/keys/import`,"backend"),a(v=o((g=class extends t.default{constructor(...e){super(...e),C(this,"secretMountPath",w,this),C(this,"keyId",k,this),C(this,"keyName",x,this),C(this,"type",P,this),C(this,"keyType",_,this),C(this,"keyBits",T,this),C(this,"pemBundle",O,this),C(this,"privateKey",j,this),C(this,"keyPath",z,this),C(this,"generatePath",M,this),C(this,"importPath",S,this)}get backend(){return this.secretMountPath.currentPath}get canRead(){return!1!==this.keyPath.get("canRead")}get canEdit(){return!1!==this.keyPath.get("canUpdate")}get canDelete(){return!1!==this.keyPath.get("canDelete")}get canGenerateKey(){return!1!==this.generatePath.get("canUpdate")}get canImportKey(){return!1!==this.importPath.get("canUpdate")}},w=A(g.prototype,"secretMountPath",[n.service],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),k=A(g.prototype,"keyId",[s],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),x=A(g.prototype,"keyName",[u],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),P=A(g.prototype,"type",[c],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),_=A(g.prototype,"keyType",[d],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),T=A(g.prototype,"keyBits",[p],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),O=A(g.prototype,"pemBundle",[f],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),j=A(g.prototype,"privateKey",[m],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),z=A(g.prototype,"keyPath",[h],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),M=A(g.prototype,"generatePath",[b],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),S=A(g.prototype,"importPath",[y],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),v=g))||v)||v)})),define("vault/models/pki/role",["exports","@ember-data/model","@ember/service","vault/macros/lazy-capabilities","vault/decorators/model-validations","vault/decorators/model-expanded-attributes"],(function(e,t,n,l,i,r){var a,o,s,u,c,d,p,f,m,h,b,y,v,g,w,k,x,P,_,T,O,j,z,M,S,C,A,E,R,D,N,F,I,L,U,V,q,$,K,B,G,W,H,Q,Y,J,X,Z,ee,te,ne,le,ie,re,ae,oe,se,ue,ce,de,pe,fe,me,he,be,ye,ve,ge,we,ke,xe,Pe,_e,Te,Oe,je,ze,Me,Se,Ce,Ae,Ee,Re
function De(e,t,n,l){n&&Object.defineProperty(e,t,{enumerable:n.enumerable,configurable:n.configurable,writable:n.writable,value:n.initializer?n.initializer.call(l):void 0})}function Ne(e,t,n,l,i){var r={}
return Object.keys(l).forEach((function(e){r[e]=l[e]})),r.enumerable=!!r.enumerable,r.configurable=!!r.configurable,("value"in r||r.initializer)&&(r.writable=!0),r=n.slice().reverse().reduce((function(n,l){return l(e,t,n)||n}),r),i&&void 0!==r.initializer&&(r.value=r.initializer?r.initializer.call(i):void 0,r.initializer=void 0),void 0===r.initializer?(Object.defineProperty(e,t,r),null):r}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default=(a=(0,r.withExpandedAttributes)(),o=(0,i.withModelValidations)({name:[{type:"presence",message:"Name is required."}]}),s=(0,t.attr)("string",{readOnly:!0}),u=(0,t.attr)("string",{label:"Role name",fieldValue:"name",editDisabled:!0}),c=(0,t.attr)("string",{label:"Issuer reference",detailsLabel:"Issuer",defaultValue:"default",subText:"Specifies the issuer that will be used to create certificates with this role. To find this, run read -field=default pki_int/config/issuers in the console. By default, we will use the mounts default issuer."}),d=(0,t.attr)({label:"Not valid after",detailsLabel:"Issued certificates expire after",subText:"The time after which this certificate will no longer be valid. This can be a TTL (a range of time from now) or a specific date.",editType:"yield"}),p=(0,t.attr)({label:"Backdate validity",detailsLabel:"Issued certificate backdating",helperTextDisabled:"Vault will use the default value, 30s",helperTextEnabled:"Also called the not_before_duration property. Allows certificates to be valid for a certain time period before now. This is useful to correct clock misalignment on various systems when setting up your CA.",editType:"ttl",defaultValue:"30s"}),f=(0,t.attr)({label:"Max TTL",helperTextDisabled:"The maximum Time-To-Live of certificates generated by this role. If not set, the system max lease TTL will be used.",editType:"ttl",defaultShown:"System default"}),m=(0,t.attr)("boolean",{label:"Generate lease with certificate",subText:"Specifies if certificates issued/signed against this role will have Vault leases attached to them.",docLink:"/vault/api-docs/secret/pki#create-update-role"}),h=(0,t.attr)("boolean",{label:"Do not store certificates in storage backend",detailsLabel:"Store in storage backend",subText:"This can improve performance when issuing large numbers of certificates. However, certificates issued in this way cannot be enumerated or revoked.",docLink:"/vault/api-docs/secret/pki#create-update-role"}),b=(0,t.attr)("boolean",{label:"Do not store certificate metadata in storage backend",detailsLabel:"Store metadata in storage backend",subText:"We don’t recommend storing metadata, since this information creates overhead in storage, and requires clean up."}),y=(0,t.attr)("boolean",{label:"Basic constraints valid for non-CA",detailsLabel:"Add basic constraints",subText:"Mark Basic Constraints valid when issuing non-CA certificates."}),v=(0,t.attr)({label:"Allowed domains",subText:"Specifies the domains this role is allowed to issue certificates for.",editType:"stringArray"}),g=(0,t.attr)("boolean",{label:"Allow templates in allowed domains"}),w=(0,t.attr)("string",{label:"Key type",possibleValues:["rsa","ec","ed25519","any"],defaultValue:"rsa"}),k=(0,t.attr)("string",{label:"Key bits",defaultValue:"2048"}),x=(0,t.attr)("string",{label:"Signature bits",subText:"Only applicable for key_type 'RSA'. Ignore for other key types.",defaultValue:"0",possibleValues:["0","256","384","512"]}),P=(0,t.attr)({label:"Policy identifiers",subText:"A list of policy object identifiers (OIDs).",editType:"stringArray"}),_=(0,t.attr)("boolean",{label:"Allow IP SANs",subText:"Specifies if clients can request IP Subject Alternative Names.",defaultValue:!0}),T=(0,t.attr)({label:"URI Subject Alternative Names (URI SANs)",subText:"Defines allowed URI Subject Alternative Names.",editType:"stringArray",docLink:"/vault/docs/concepts/policies"}),O=(0,t.attr)("boolean",{label:"Allow URI SANs template",subText:"If true, the URI SANs above may contain templates, as with ACL Path Templating.",docLink:"/vault/docs/concepts/policies"}),j=(0,t.attr)({label:"Other SANs",subText:"Defines allowed custom OID/UTF8-string SANs.",editType:"stringArray"}),z=(0,t.attr)({label:"Allowed serial numbers",subText:"A list of allowed serial numbers to be requested during certificate issuance. Shell-style globbing is supported. If empty, custom-specified serial numbers will be forbidden.",editType:"stringArray"}),M=(0,t.attr)("boolean",{label:"Require common name",subText:"If set to false, common name will be optional when generating a certificate.",defaultValue:!0}),S=(0,t.attr)("boolean",{label:"Use CSR common name",subText:"When used with the CSR signing endpoint, the common name in the CSR will be used instead of taken from the JSON data.",defaultValue:!0}),C=(0,t.attr)("boolean",{label:"Use CSR SANs",subText:"When used with the CSR signing endpoint, the subject alternate names in the CSR will be used instead of taken from the JSON data.",defaultValue:!0}),A=(0,t.attr)({label:"Organization Units (OU)",subText:"A list of allowed serial numbers to be requested during certificate issuance. Shell-style globbing is supported. If empty, custom-specified serial numbers will be forbidden.",editType:"stringArray"}),E=(0,t.attr)("array",{defaultValue:()=>["DigitalSignature","KeyAgreement","KeyEncipherment"],defaultShown:"None"}),R=(0,t.attr)("array",{defaultShown:"None"}),D=(0,t.attr)("array",{defaultShown:"None"}),N=(0,t.attr)({editType:"stringArray"}),F=(0,t.attr)({editType:"stringArray"}),I=(0,t.attr)({editType:"stringArray"}),L=(0,t.attr)({editType:"stringArray"}),U=(0,t.attr)({editType:"stringArray"}),V=(0,t.attr)({editType:"stringArray"}),q=(0,t.attr)({editType:"stringArray"}),$=(0,l.default)(l.apiPath`${"backend"}/roles/${"id"}`,"backend","id"),K=(0,l.default)(l.apiPath`${"backend"}/issue/${"id"}`,"backend","id"),B=(0,l.default)(l.apiPath`${"backend"}/sign/${"id"}`,"backend","id"),G=(0,l.default)(l.apiPath`${"backend"}/sign-verbatim/${"id"}`,"backend","id"),a(W=o((H=class extends t.default{constructor(...e){super(...e),De(this,"version",Q,this),De(this,"backend",Y,this),De(this,"name",J,this),De(this,"issuerRef",X,this),De(this,"customTtl",Z,this),De(this,"notBeforeDuration",ee,this),De(this,"maxTtl",te,this),De(this,"generateLease",ne,this),De(this,"noStore",le,this),De(this,"noStoreMetadata",ie,this),De(this,"addBasicConstraints",re,this),De(this,"allowedDomains",ae,this),De(this,"allowedDomainsTemplate",oe,this),De(this,"keyType",se,this),De(this,"keyBits",ue,this),De(this,"signatureBits",ce,this),De(this,"policyIdentifiers",de,this),De(this,"allowIpSans",pe,this),De(this,"allowedUriSans",fe,this),De(this,"allowUriSansTemplate",me,this),De(this,"allowedOtherSans",he,this),De(this,"allowedSerialNumbers",be,this),De(this,"requireCn",ye,this),De(this,"useCsrCommonName",ve,this),De(this,"useCsrSans",ge,this),De(this,"ou",we,this),De(this,"keyUsage",ke,this),De(this,"extKeyUsage",xe,this),De(this,"extKeyUsageOids",Pe,this)
De(this,"allowedUserIds",_e,this),De(this,"organization",Te,this),De(this,"country",Oe,this),De(this,"locality",je,this),De(this,"province",ze,this),De(this,"streetAddress",Me,this),De(this,"postalCode",Se,this),De(this,"updatePath",Ce,this),De(this,"generatePath",Ae,this),De(this,"signPath",Ee,this),De(this,"signVerbatimPath",Re,this)}get formFieldGroups(){let e=["name","issuerRef","customTtl","notBeforeDuration","maxTtl","generateLease","noStore","noStoreMetadata","addBasicConstraints"]
if(this.version.isCommunity){const t=["noStoreMetadata"]
e=e.filter((e=>!t.includes(e)))}return this._expandGroups([{default:e},{"Domain handling":["allowedDomains","allowedDomainsTemplate","allowBareDomains","allowSubdomains","allowGlobDomains","allowWildcardCertificates","allowLocalhost","allowAnyName","enforceHostnames"]},{"Key parameters":["keyType","keyBits","signatureBits"]},{"Key usage":["keyUsage","extKeyUsage","extKeyUsageOids"]},{"Policy identifiers":["policyIdentifiers"]},{"Subject Alternative Name (SAN) Options":["allowIpSans","allowedUriSans","allowUriSansTemplate","allowedOtherSans"]},{"Additional subject fields":["allowedUserIds","allowedSerialNumbers","requireCn","useCsrCommonName","useCsrSans","ou","organization","country","locality","province","streetAddress","postalCode"]}])}get canDelete(){return this.updatePath.get("isLoading")||!1!==this.updatePath.get("canCreate")}get canEdit(){return this.updatePath.get("isLoading")||!1!==this.updatePath.get("canUpdate")}get canRead(){return this.updatePath.get("isLoading")||!1!==this.updatePath.get("canRead")}get canGenerateCert(){return this.generatePath.get("isLoading")||!1!==this.generatePath.get("canUpdate")}get canSign(){return this.signPath.get("isLoading")||!1!==this.signPath.get("canUpdate")}get canSignVerbatim(){return this.signVerbatimPath.get("isLoading")||!1!==this.signVerbatimPath.get("canUpdate")}get fieldGroupsInfo(){return{"Domain handling":{footer:{text:"These options can interact intricately with one another. For more information,",docText:"learn more here.",docLink:"/vault/api-docs/secret/pki#allowed_domains"}},"Key parameters":{header:{text:"These are the parameters for generating or validating the certificate's key material."}},"Subject Alternative Name (SAN) Options":{header:{text:"Subject Alternative Names (SANs) are identities (domains, IP addresses, and URIs) Vault attaches to the requested certificates."}},"Additional subject fields":{header:{text:"Additional identity metadata Vault can attach to the requested certificates."}}}}},Q=Ne(H.prototype,"version",[n.service],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),Y=Ne(H.prototype,"backend",[s],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),J=Ne(H.prototype,"name",[u],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),X=Ne(H.prototype,"issuerRef",[c],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),Z=Ne(H.prototype,"customTtl",[d],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),ee=Ne(H.prototype,"notBeforeDuration",[p],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),te=Ne(H.prototype,"maxTtl",[f],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),ne=Ne(H.prototype,"generateLease",[m],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),le=Ne(H.prototype,"noStore",[h],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),ie=Ne(H.prototype,"noStoreMetadata",[b],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),re=Ne(H.prototype,"addBasicConstraints",[y],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),ae=Ne(H.prototype,"allowedDomains",[v],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),oe=Ne(H.prototype,"allowedDomainsTemplate",[g],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),se=Ne(H.prototype,"keyType",[w],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),ue=Ne(H.prototype,"keyBits",[k],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),ce=Ne(H.prototype,"signatureBits",[x],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),de=Ne(H.prototype,"policyIdentifiers",[P],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),pe=Ne(H.prototype,"allowIpSans",[_],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),fe=Ne(H.prototype,"allowedUriSans",[T],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),me=Ne(H.prototype,"allowUriSansTemplate",[O],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),he=Ne(H.prototype,"allowedOtherSans",[j],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),be=Ne(H.prototype,"allowedSerialNumbers",[z],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),ye=Ne(H.prototype,"requireCn",[M],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),ve=Ne(H.prototype,"useCsrCommonName",[S],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),ge=Ne(H.prototype,"useCsrSans",[C],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),we=Ne(H.prototype,"ou",[A],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),ke=Ne(H.prototype,"keyUsage",[E],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),xe=Ne(H.prototype,"extKeyUsage",[R],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),Pe=Ne(H.prototype,"extKeyUsageOids",[D],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),_e=Ne(H.prototype,"allowedUserIds",[N],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),Te=Ne(H.prototype,"organization",[F],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),Oe=Ne(H.prototype,"country",[I],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),je=Ne(H.prototype,"locality",[L],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),ze=Ne(H.prototype,"province",[U],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),Me=Ne(H.prototype,"streetAddress",[V],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),Se=Ne(H.prototype,"postalCode",[q],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),Ce=Ne(H.prototype,"updatePath",[$],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),Ae=Ne(H.prototype,"generatePath",[K],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),Ee=Ne(H.prototype,"signPath",[B],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),Re=Ne(H.prototype,"signVerbatimPath",[G],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),W=H))||W)||W)})),define("vault/models/pki/sign-intermediate",["exports","@ember-data/model","vault/decorators/model-form-fields","vault/decorators/model-validations","vault/models/pki/certificate/base"],(function(e,t,n,l,i){var r,a,o,s,u,c,d,p,f,m,h,b,y,v,g,w,k,x,P,_,T,O,j,z,M
function S(e,t,n,l){n&&Object.defineProperty(e,t,{enumerable:n.enumerable,configurable:n.configurable,writable:n.writable,value:n.initializer?n.initializer.call(l):void 0})}function C(e,t,n,l,i){var r={}
return Object.keys(l).forEach((function(e){r[e]=l[e]})),r.enumerable=!!r.enumerable,r.configurable=!!r.configurable,("value"in r||r.initializer)&&(r.writable=!0),r=n.slice().reverse().reduce((function(n,l){return l(e,t,n)||n}),r),i&&void 0!==r.initializer&&(r.value=r.initializer?r.initializer.call(i):void 0,r.initializer=void 0),void 0===r.initializer?(Object.defineProperty(e,t,r),null):r}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default=(r=(0,l.withModelValidations)({csr:[{type:"presence",message:"CSR is required."}]}),a=(0,n.withFormFields)(["csr","useCsrValues","commonName","excludeCnFromSans","customTtl","notBeforeDuration","enforceLeafNotAfterBehavior","format","permittedDnsDomains","maxPathLength"]),o=(0,t.attr)("string",{label:"CSR",editType:"textarea",subText:"The PEM-encoded CSR to be signed."}),s=(0,t.attr)("boolean",{label:"Use CSR values",subText:"Subject information and key usages specified in the CSR will be used over parameters provided here, and extensions in the CSR will be copied into the issued certificate.",docLink:"/vault/api-docs/secret/pki#use_csr_values"}),u=(0,t.attr)({label:"Backdate validity",detailsLabel:"Issued certificate backdating",helperTextDisabled:"Vault will use the default value, 30s",helperTextEnabled:"Also called the not_before_duration property. Allows certificates to be valid for a certain time period before now. This is useful to correct clock misalignment on various systems when setting up your CA.",editType:"ttl",defaultValue:"30s"}),c=(0,t.attr)("boolean",{subText:"Do not truncate the NotAfter field, use the issuer's configured leaf_not_after_behavior"}),d=(0,t.attr)({label:"Permitted DNS domains",subText:"DNS domains for which certificates are allowed to be issued or signed by this CA certificate. Enter each value as a new input."}),p=(0,t.attr)({subText:"Specifies the maximum path length to encode in the generated certificate. -1 means no limit",defaultValue:"-1"}),f=(0,t.attr)({label:"Use PSS",subText:"If checked, PSS signatures will be used over PKCS#1v1.5 signatures when a RSA-type issuer is used. Ignored for ECDSA/Ed25519 issuers."}),m=(0,t.attr)({label:"Subject Key Identifier (SKID)",subText:"Value for the subject key identifier, specified as a string in hex format. If this is empty, Vault will automatically calculate the SKID. "}),h=(0,t.attr)({possibleValues:["0","256","384","512"]}),b=(0,t.attr)("string",{subText:"Specifies the requested Subject's named Serial Number value. This has no impact on the Certificate's serial number randomly generated by Vault."}),r(y=a((v=class extends i.default{constructor(...e){super(...e),S(this,"issuerRef",g,this),S(this,"csr",w,this),S(this,"useCsrValues",k,this),S(this,"notBeforeDuration",x,this),S(this,"enforceLeafNotAfterBehavior",P,this),S(this,"permittedDnsDomains",_,this),S(this,"maxPathLength",T,this),S(this,"usePss",O,this),S(this,"skid",j,this),S(this,"signatureBits",z,this),S(this,"subjectSerialNumber",M,this)}},g=C(v.prototype,"issuerRef",[t.attr],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),w=C(v.prototype,"csr",[o],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),k=C(v.prototype,"useCsrValues",[s],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),x=C(v.prototype,"notBeforeDuration",[u],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),P=C(v.prototype,"enforceLeafNotAfterBehavior",[c],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),_=C(v.prototype,"permittedDnsDomains",[d],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),T=C(v.prototype,"maxPathLength",[p],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),O=C(v.prototype,"usePss",[f],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),j=C(v.prototype,"skid",[m],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),z=C(v.prototype,"signatureBits",[h],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),M=C(v.prototype,"subjectSerialNumber",[b],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),y=v))||y)||y)})),define("vault/models/pki/tidy",["exports","@ember-data/model","@ember/service","vault/decorators/model-expanded-attributes"],(function(e,t,n,l){var i,r,a,o,s,u,c,d,p,f,m,h,b,y,v,g,w,k,x,P,_,T,O,j,z,M,S,C,A,E,R,D,N,F,I,L,U,V,q,$,K,B
function G(e,t,n,l){n&&Object.defineProperty(e,t,{enumerable:n.enumerable,configurable:n.configurable,writable:n.writable,value:n.initializer?n.initializer.call(l):void 0})}function W(e,t,n,l,i){var r={}
return Object.keys(l).forEach((function(e){r[e]=l[e]})),r.enumerable=!!r.enumerable,r.configurable=!!r.configurable,("value"in r||r.initializer)&&(r.writable=!0),r=n.slice().reverse().reduce((function(n,l){return l(e,t,n)||n}),r),i&&void 0!==r.initializer&&(r.value=r.initializer?r.initializer.call(i):void 0,r.initializer=void 0),void 0===r.initializer?(Object.defineProperty(e,t,r),null):r}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default=(i=(0,l.withExpandedAttributes)(),r=(0,t.attr)({label:"Tidy ACME enabled",labelDisabled:"Tidy ACME disabled",mapToBoolean:"tidyAcme",helperTextDisabled:"Tidying of ACME accounts, orders and authorizations is disabled.",helperTextEnabled:"The amount of time that must pass after creation that an account with no orders is marked revoked, and the amount of time after being marked revoked or deactivated.",detailsLabel:"ACME account safety buffer",formatTtl:!0,defaultValue:"720h"}),a=(0,t.attr)("boolean",{label:"Tidy ACME",defaultValue:!1}),o=(0,t.attr)("boolean",{label:"Automatic tidy enabled",labelDisabled:"Automatic tidy disabled",helperTextDisabled:"Automatic tidy operations will not run."}),s=(0,t.attr)({editType:"ttl",helperTextEnabled:"Sets the interval_duration between automatic tidy operations; note that this is from the end of one operation to the start of the next.",hideToggle:!0,formatTtl:!0}),u=(0,t.attr)({label:"Minimum startup backoff duration",editType:"ttl",helperTextEnabled:"Sets the min_startup_backoff_duration field which forces the minimum delay after Vault startup auto-tidy can run.",hideToggle:!0,formatTtl:!0}),c=(0,t.attr)({label:"Maximum startup backoff duration",editType:"ttl",helperTextEnabled:"Sets the max_startup_backoff_duration field which forces the maximum delay after Vault startup auto-tidy can run.",hideToggle:!0,formatTtl:!0}),d=(0,t.attr)({editType:"ttl",helperTextEnabled:"Specifies a duration that issuers should be kept for, past their NotAfter validity period. Defaults to 365 days (8760 hours).",hideToggle:!0,formatTtl:!0}),p=(0,t.attr)("string",{editType:"ttl",helperTextEnabled:"Specifies the duration to pause between tidying individual certificates. This releases the revocation lock and allows other operations to continue while tidy is running.",hideToggle:!0,formatTtl:!0}),f=(0,t.attr)("string",{editType:"ttl",helperTextEnabled:"Specifies a duration after which cross-cluster revocation requests will be removed as expired.",hideToggle:!0,formatTtl:!0}),m=(0,t.attr)({editType:"ttl",helperTextEnabled:"For a certificate to be expunged, the time must be after the expiration time of the certificate (according to the local clock) plus the safety buffer. Defaults to 72 hours.",hideToggle:!0,formatTtl:!0}),h=(0,t.attr)("boolean",{label:"Tidy the certificate store"}),b=(0,t.attr)("boolean"),y=(0,t.attr)("boolean",{label:"Tidy cross-cluster revoked certificates",subText:"Remove expired, cross-cluster revocation entries."}),v=(0,t.attr)("boolean",{label:"Tidy CMPv2 nonce store"}),g=(0,t.attr)("boolean",{subText:"Automatically remove expired issuers after the issuer safety buffer duration has elapsed."}),w=(0,t.attr)("boolean",{label:"Tidy legacy CA bundle",subText:"Backup any legacy CA/issuers bundle (from Vault versions earlier than 1.11) to config/ca_bundle.bak. Migration will only occur after issuer safety buffer has passed."}),k=(0,t.attr)("boolean",{label:"Tidy cross-cluster revocation requests"}),x=(0,t.attr)("boolean",{label:"Tidy revoked certificate issuer associations"}),P=(0,t.attr)("boolean",{label:"Tidy revoked certificates",subText:"Remove all invalid and expired certificates from storage."}),i((T=class extends t.default{constructor(...e){super(...e),G(this,"version",O,this),G(this,"acmeAccountSafetyBuffer",j,this),G(this,"tidyAcme",z,this),G(this,"enabled",M,this),G(this,"intervalDuration",S,this),G(this,"minStartupBackoffDuration",C,this),G(this,"maxStartupBackoffDuration",A,this),G(this,"issuerSafetyBuffer",E,this),G(this,"pauseDuration",R,this),G(this,"revocationQueueSafetyBuffer",D,this),G(this,"safetyBuffer",N,this),G(this,"tidyCertStore",F,this),G(this,"tidyCertMetadata",I,this),G(this,"tidyCrossClusterRevokedCerts",L,this),G(this,"tidyCmpv2NonceStore",U,this),G(this,"tidyExpiredIssuers",V,this),G(this,"tidyMoveLegacyCaBundle",q,this),G(this,"tidyRevocationQueue",$,this),G(this,"tidyRevokedCertIssuerAssociations",K,this),G(this,"tidyRevokedCerts",B,this)}get allGroups(){const e=[{autoTidy:["enabled",...this.autoTidyConfigFields]},...this.sharedFields]
return this._expandGroups(e)}get autoTidyConfigFields(){return["intervalDuration","minStartupBackoffDuration","maxStartupBackoffDuration"]}get sharedFields(){const e=[{"Universal operations":["tidyCertStore","tidyCertMetadata","tidyRevokedCerts","tidyRevokedCertIssuerAssociations","safetyBuffer","pauseDuration"]},{"ACME operations":["tidyAcme","acmeAccountSafetyBuffer"]},{"Issuer operations":["tidyExpiredIssuers","tidyMoveLegacyCaBundle","issuerSafetyBuffer"]}]
return this.version.isEnterprise&&e.push({"Cross-cluster operations":["tidyRevocationQueue","tidyCrossClusterRevokedCerts","tidyCmpv2NonceStore","revocationQueueSafetyBuffer"]}),e}get formFieldGroups(){return this._expandGroups(this.sharedFields)}},O=W(T.prototype,"version",[n.service],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),j=W(T.prototype,"acmeAccountSafetyBuffer",[r],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),z=W(T.prototype,"tidyAcme",[a],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),M=W(T.prototype,"enabled",[o],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),S=W(T.prototype,"intervalDuration",[s],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),C=W(T.prototype,"minStartupBackoffDuration",[u],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),A=W(T.prototype,"maxStartupBackoffDuration",[c],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),E=W(T.prototype,"issuerSafetyBuffer",[d],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),R=W(T.prototype,"pauseDuration",[p],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),D=W(T.prototype,"revocationQueueSafetyBuffer",[f],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),N=W(T.prototype,"safetyBuffer",[m],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),F=W(T.prototype,"tidyCertStore",[h],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),I=W(T.prototype,"tidyCertMetadata",[b],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),L=W(T.prototype,"tidyCrossClusterRevokedCerts",[y],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),U=W(T.prototype,"tidyCmpv2NonceStore",[v],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),V=W(T.prototype,"tidyExpiredIssuers",[g],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),q=W(T.prototype,"tidyMoveLegacyCaBundle",[w],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),$=W(T.prototype,"tidyRevocationQueue",[k],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),K=W(T.prototype,"tidyRevokedCertIssuerAssociations",[x],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),B=W(T.prototype,"tidyRevokedCerts",[P],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),_=T))||_)})),define("vault/models/policy",["exports","@ember-data/model","@ember/object/computed","@ember/object","vault/macros/lazy-capabilities"],(function(e,t,n,l,i){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default=t.default.extend({name:(0,t.attr)("string"),policy:(0,t.attr)("string"),policyType:(0,l.computed)("constructor.modelName",(function(){return this.constructor.modelName.split("/")[1]})),updatePath:(0,i.default)(i.apiPath`sys/policies/${"policyType"}/${"id"}`,"id","policyType"),canDelete:(0,n.alias)("updatePath.canDelete"),canEdit:(0,n.alias)("updatePath.canUpdate"),canRead:(0,n.alias)("updatePath.canRead"),format:(0,l.computed)("policy",(function(){const e=this.policy
let t
try{JSON.parse(e)&&(t=!0)}catch(n){t=!1}return t?"json":"hcl"}))})})),define("vault/models/policy/acl",["exports","vault/models/policy"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default=t.default.extend()})),define("vault/models/policy/egp",["exports","@ember-data/model","@ember/object","vault/models/policy/rgp","vault/utils/field-to-attrs"],(function(e,t,n,l,i){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default=l.default.extend({paths:(0,t.attr)({editType:"stringArray"}),additionalAttrs:(0,n.computed)((function(){return(0,i.expandAttributeMeta)(this,["enforcementLevel","paths"])}))})})),define("vault/models/policy/rgp",["exports","@ember-data/model","@ember/object","vault/models/policy","vault/utils/field-to-attrs"],(function(e,t,n,l,i){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default=l.default.extend({enforcementLevel:(0,t.attr)("string",{possibleValues:["advisory","soft-mandatory","hard-mandatory"],defaultValue:"hard-mandatory"}),additionalAttrs:(0,n.computed)((function(){return(0,i.expandAttributeMeta)(this,["enforcementLevel"])}))})})),define("vault/models/raft-join",["exports","@ember-data/model","vault/utils/field-to-attrs","@ember/object"],(function(e,t,n,l){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default=t.default.extend({leaderApiAddr:(0,t.attr)("string",{label:"Leader API Address"}),retry:(0,t.attr)("boolean",{label:"Keep retrying to join in case of failures"}),leaderCaCert:(0,t.attr)("string",{label:"Leader CA Certificate",editType:"file"}),leaderClientCert:(0,t.attr)("string",{label:"Leader Client Certificate",editType:"file"}),leaderClientKey:(0,t.attr)("string",{label:"Leader Client Key",editType:"file"}),fields:(0,l.computed)((function(){return(0,n.expandAttributeMeta)(this,["leaderApiAddr","leaderCaCert","leaderClientCert","leaderClientKey","retry"])}))})})),define("vault/models/replication-attributes",["exports","@ember-data/model","@ember/object/computed","@ember/object"],(function(e,t,n,l){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default=t.default.extend({clusterId:(0,t.attr)("string"),clusterIdDisplay:(0,l.computed)("clusterId","mode",(function(){const e=this.clusterId
return e?e.split("-")[0]:null})),mode:(0,t.attr)("string"),replicationDisabled:(0,n.match)("mode",/disabled|unsupported/),replicationUnsupported:(0,n.match)("mode",/unsupported/),replicationEnabled:(0,n.not)("replicationDisabled"),isPrimary:(0,n.match)("mode",/primary/),knownSecondaries:(0,t.attr)("array"),secondaries:(0,t.attr)("array"),isSecondary:(0,n.match)("mode",/secondary/),connection_state:(0,t.attr)("string"),modeForUrl:(0,l.computed)("isPrimary","isSecondary","mode",(function(){return"bootstrapping"===this.mode?"bootstrapping":this.isSecondary?"secondary":this.isPrimary&&"primary"})),modeForHeader:(0,l.computed)("mode",(function(){const e=this.mode
return e||"loading"})),secondaryId:(0,t.attr)("string"),primaryClusterAddr:(0,t.attr)("string"),knownPrimaryClusterAddrs:(0,t.attr)("array"),primaries:(0,t.attr)("array"),state:(0,t.attr)("string"),lastRemoteWAL:(0,t.attr)("number"),lastWAL:(0,t.attr)("number"),merkleRoot:(0,t.attr)("string"),merkleSyncProgress:(0,t.attr)("object"),get syncProgress(){const{state:e,merkleSyncProgress:t}=this
if("merkle-sync"!==e||!t)return null
const{sync_total_keys:n,sync_progress:l}=t
return{progress:l,total:n}},syncProgressPercent:(0,l.computed)("syncProgress",(function(){const e=this.syncProgress
if(!e)return null
const{progress:t,total:n}=e
return Math.floor(t/n*100)})),modeDisplay:(0,l.computed)("mode",(function(){return{disabled:"Disabled",unknown:"Unknown",bootstrapping:"Bootstrapping",primary:"Primary",secondary:"Secondary",unsupported:"Not supported"}[this.mode]||"Disabled"}))})})),define("vault/models/replication-mode",["exports","@ember-data/model"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default=t.default.extend({status:(0,t.attr)("object")})})),define("vault/models/role-aws",["exports","@ember-data/model","@ember/object/computed","@ember/object","vault/macros/lazy-capabilities","vault/utils/field-to-attrs"],(function(e,t,n,l,i,r){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default=t.default.extend({backend:(0,t.attr)("string",{readOnly:!0}),name:(0,t.attr)("string",{label:"Role name",readOnly:!0}),credentialTypes:(0,t.attr)("array",{readOnly:!0}),credentialType:(0,t.attr)("string",{defaultValue:"iam_user",possibleValues:[{value:"iam_user",displayName:"IAM User"},{value:"assumed_role",displayName:"Assumed Role"},{value:"federation_token",displayName:"Federation Token"},{value:"session_token",displayName:"Session Token"}]}),roleArns:(0,t.attr)({editType:"stringArray",label:"Role ARNs"}),policyArns:(0,t.attr)({editType:"stringArray",label:"Policy ARNs"}),policyDocument:(0,t.attr)("string",{editType:"json",helpText:"A policy is an object in AWS that, when associated with an identity or resource, defines their permissions."}),fields:(0,l.computed)("credentialType",(function(){const e=this.credentialType
return(0,r.expandAttributeMeta)(this,{iam_user:["name","credentialType","policyArns","policyDocument"],assumed_role:["name","credentialType","roleArns","policyDocument"],federation_token:["name","credentialType","policyDocument"],session_token:["name","credentialType"]}[e])})),updatePath:(0,i.default)(i.apiPath`${"backend"}/roles/${"id"}`,"backend","id"),canDelete:(0,n.alias)("updatePath.canDelete"),canEdit:(0,n.alias)("updatePath.canUpdate"),canRead:(0,n.alias)("updatePath.canRead"),generatePath:(0,i.default)(i.apiPath`${"backend"}/creds/${"id"}`,"backend","id"),canGenerate:(0,n.alias)("generatePath.canUpdate")})})),define("vault/models/role-jwt",["exports","@ember-data/model","core/utils/parse-url"],(function(e,t,n){var l,i,r
Object.defineProperty(e,"__esModule",{value:!0}),e.default=e.PROVIDER_WITH_LOGO=e.DOMAIN_STRINGS=void 0
const a=e.DOMAIN_STRINGS={"github.com":"GitHub","gitlab.com":"GitLab","google.com":"Google","ping.com":"Ping","okta.com":"Okta","auth0.com":"Auth0"},o=e.PROVIDER_WITH_LOGO={GitHub:"github",GitLab:"gitlab",Google:"google",Okta:"okta",Auth0:"auth0"}
e.default=(l=(0,t.attr)("string"),i=class extends t.default{constructor(...e){var t,n,l,i
super(...e),t=this,n="authUrl",i=this,(l=r)&&Object.defineProperty(t,n,{enumerable:l.enumerable,configurable:l.configurable,writable:l.writable,value:l.initializer?l.initializer.call(i):void 0})}get providerName(){const{hostname:e}=(0,n.default)(this.authUrl),t=Object.keys(a).find((t=>e.includes(t)))
return a[t]||null}get providerIcon(){const{providerName:e}=this
return o[e]||null}},s=i.prototype,u="authUrl",c=[l],d={configurable:!0,enumerable:!0,writable:!0,initializer:null},f={},Object.keys(d).forEach((function(e){f[e]=d[e]})),f.enumerable=!!f.enumerable,f.configurable=!!f.configurable,("value"in f||f.initializer)&&(f.writable=!0),f=c.slice().reverse().reduce((function(e,t){return t(s,u,e)||e}),f),p&&void 0!==f.initializer&&(f.value=f.initializer?f.initializer.call(p):void 0,f.initializer=void 0),r=void 0===f.initializer?(Object.defineProperty(s,u,f),null):f,i)
var s,u,c,d,p,f})),define("vault/models/role-saml",["exports","@ember-data/model"],(function(e,t){var n,l,i,r,a,o,s
function u(e,t,n,l){n&&Object.defineProperty(e,t,{enumerable:n.enumerable,configurable:n.configurable,writable:n.writable,value:n.initializer?n.initializer.call(l):void 0})}function c(e,t,n,l,i){var r={}
return Object.keys(l).forEach((function(e){r[e]=l[e]})),r.enumerable=!!r.enumerable,r.configurable=!!r.configurable,("value"in r||r.initializer)&&(r.writable=!0),r=n.slice().reverse().reduce((function(n,l){return l(e,t,n)||n}),r),i&&void 0!==r.initializer&&(r.value=r.initializer?r.initializer.call(i):void 0,r.initializer=void 0),void 0===r.initializer?(Object.defineProperty(e,t,r),null):r}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default=(n=(0,t.attr)("string"),l=(0,t.attr)("string"),i=(0,t.attr)("string"),r=class extends t.default{constructor(...e){super(...e),u(this,"ssoServiceURL",a,this),u(this,"tokenPollID",o,this),u(this,"clientVerifier",s,this)}},a=c(r.prototype,"ssoServiceURL",[n],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),o=c(r.prototype,"tokenPollID",[l],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),s=c(r.prototype,"clientVerifier",[i],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),r)})),define("vault/models/role-ssh",["exports","@ember-data/model","@ember/object/computed","@ember/object","vault/utils/field-to-attrs","vault/macros/lazy-capabilities"],(function(e,t,n,l,i,r){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
const a=["name","keyType","defaultUser","adminUser","port","allowedUsers","cidrList","excludeCidrList"],o=["name","keyType","allowUserCertificates","allowHostCertificates","defaultUser","allowedUsers","allowedUsersTemplate","allowedDomains","allowedDomainsTemplate","ttl","maxTtl","allowedCriticalOptions","defaultCriticalOptions","allowedExtensions","defaultExtensions","allowBareDomains","allowSubdomains","allowEmptyPrincipals","allowUserKeyIds","keyIdFormat","notBeforeDuration","algorithmSigner"]
e.default=t.default.extend({zeroAddress:(0,t.attr)("boolean",{readOnly:!0}),backend:(0,t.attr)("string",{readOnly:!0}),name:(0,t.attr)("string",{label:"Role Name",fieldValue:"name",readOnly:!0}),keyType:(0,t.attr)("string",{possibleValues:["ca","otp"]}),adminUser:(0,t.attr)("string",{helpText:"Username of the admin user at the remote host"}),defaultUser:(0,t.attr)("string",{helpText:"Username to use when one isn't specified"}),allowedUsers:(0,t.attr)("string",{helpText:"Create a list of users who are allowed to use this key (e.g. `admin, dev`, or use `*` to allow all.)"}),allowedUsersTemplate:(0,t.attr)("boolean",{helpText:"Specifies that Allowed Users can be templated e.g. {{identity.entity.aliases.mount_accessor_xyz.name}}"}),allowedDomains:(0,t.attr)("string",{helpText:"List of domains for which a client can request a certificate (e.g. `example.com`, or `*` to allow all)"}),allowedDomainsTemplate:(0,t.attr)("boolean",{helpText:"Specifies that Allowed Domains can be set using identity template policies. Non-templated domains are also permitted."}),cidrList:(0,t.attr)("string",{helpText:"List of CIDR blocks for which this role is applicable"}),excludeCidrList:(0,t.attr)("string",{helpText:"List of CIDR blocks that are not accepted by this role"}),port:(0,t.attr)("number",{helpText:"Port number for the SSH connection (default is `22`)"}),allowedCriticalOptions:(0,t.attr)("string",{helpText:"List of critical options that certificates have when signed"}),defaultCriticalOptions:(0,t.attr)("object",{helpText:"Map of critical options certificates should have if none are provided when signing"}),allowedExtensions:(0,t.attr)("string",{helpText:"List of extensions that certificates can have when signed"}),defaultExtensions:(0,t.attr)("object",{helpText:"Map of extensions certificates should have if none are provided when signing"}),allowUserCertificates:(0,t.attr)("boolean",{helpText:"Specifies if certificates are allowed to be signed for us as a user"}),allowHostCertificates:(0,t.attr)("boolean",{helpText:"Specifies if certificates are allowed to be signed for us as a host"}),allowBareDomains:(0,t.attr)("boolean",{helpText:"Specifies if host certificates that are requested are allowed to use the base domains listed in Allowed Domains"}),allowSubdomains:(0,t.attr)("boolean",{helpText:"Specifies if host certificates that are requested are allowed to be subdomains of those listed in Allowed Domains"}),allowEmptyPrincipals:(0,t.attr)("boolean",{helpText:"Allow signing certificates with no valid principals (e.g. any valid principal). For backwards compatibility only. The default of false is highly recommended."}),allowUserKeyIds:(0,t.attr)("boolean",{helpText:'Specifies if users can override the key ID for a signed certificate with the "key_id" field'}),keyIdFormat:(0,t.attr)("string",{helpText:"When supplied, this value specifies a custom format for the key id of a signed certificate"}),algorithmSigner:(0,t.attr)("string",{helpText:"When supplied, this value specifies a signing algorithm for the key",possibleValues:["default","ssh-rsa","rsa-sha2-256","rsa-sha2-512"]}),showFields:(0,l.computed)("keyType",(function(){const e="ca"===this.keyType?o.slice(0):a.slice(0)
return(0,i.expandAttributeMeta)(this,e)})),fieldGroups:(0,l.computed)("keyType",(function(){const e="otp"===this.keyType?3:4,t="otp"===this.keyType?[...a]:[...o],n=[{default:t.splice(0,e)},{Options:[...t]}]
return(0,i.default)(this,n)})),updatePath:(0,r.default)(r.apiPath`${"backend"}/roles/${"id"}`,"backend","id"),canDelete:(0,n.alias)("updatePath.canDelete"),canEdit:(0,n.alias)("updatePath.canUpdate"),canRead:(0,n.alias)("updatePath.canRead"),generatePath:(0,r.default)(r.apiPath`${"backend"}/creds/${"id"}`,"backend","id"),canGenerate:(0,n.alias)("generatePath.canUpdate"),signPath:(0,r.default)(r.apiPath`${"backend"}/sign/${"id"}`,"backend","id"),canSign:(0,n.alias)("signPath.canUpdate"),zeroAddressPath:(0,r.default)(r.apiPath`${"backend"}/config/zeroaddress`,"backend"),canEditZeroAddress:(0,n.alias)("zeroAddressPath.canUpdate")})})),define("vault/models/secret-engine",["exports","@ember-data/model","vault/decorators/model-validations","vault/decorators/model-expanded-attributes","vault/helpers/supported-secret-backends","vault/helpers/mountable-secret-engines","vault/utils/validators"],(function(e,t,n,l,i,r,a){var o,s,u,c,d,p,f,m,h,b,y,v,g,w,k,x,P,_,T,O,j,z,M,S,C,A,E,R,D,N,F,I
function L(e,t,n,l){n&&Object.defineProperty(e,t,{enumerable:n.enumerable,configurable:n.configurable,writable:n.writable,value:n.initializer?n.initializer.call(l):void 0})}function U(e,t,n,l,i){var r={}
return Object.keys(l).forEach((function(e){r[e]=l[e]})),r.enumerable=!!r.enumerable,r.configurable=!!r.configurable,("value"in r||r.initializer)&&(r.writable=!0),r=n.slice().reverse().reduce((function(n,l){return l(e,t,n)||n}),r),i&&void 0!==r.initializer&&(r.value=r.initializer?r.initializer.call(i):void 0,r.initializer=void 0),void 0===r.initializer?(Object.defineProperty(e,t,r),null):r}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
const V=(0,i.supportedSecretBackends)(),q=["system","identity"],$={path:[{type:"presence",message:"Path can't be blank."},{type:"containsWhiteSpace",message:(0,a.WHITESPACE_WARNING)("path"),level:"warn"}],maxVersions:[{type:"number",message:"Maximum versions must be a number."},{type:"length",options:{min:1,max:16},message:"You cannot go over 16 characters."}]}
e.default=(o=(0,n.withModelValidations)($),s=(0,l.withExpandedAttributes)(),u=(0,t.attr)("string"),c=(0,t.attr)("string"),d=(0,t.attr)("string",{editType:"textarea"}),p=(0,t.belongsTo)("mount-config",{async:!1,inverse:null}),f=(0,t.attr)("boolean",{helpText:"When Replication is enabled, a local mount will not be replicated across clusters. This can only be specified at mount time."}),m=(0,t.attr)("boolean",{helpText:"When enabled - if a seal supporting seal wrapping is specified in the configuration, all critical security parameters (CSPs) in this backend will be seal wrapped. (For KV mounts, all values will be seal wrapped.) This can only be specified at mount time."}),h=(0,t.attr)("boolean"),b=(0,t.attr)("number",{label:"Version",helpText:"The KV Secrets Engine can operate in different modes. Version 1 is the original generic Secrets Engine the allows for storing of static key/value pairs. Version 2 added more features including data versioning, TTLs, and check and set.",possibleValues:[2,1],defaultFormValue:2}),y=(0,t.attr)("string"),v=(0,t.attr)("string"),g=(0,t.attr)("string"),w=(0,t.attr)("number",{defaultValue:0,label:"Maximum number of versions",subText:"The number of versions to keep per key. Once the number of keys exceeds the maximum number set here, the oldest version will be permanently deleted. This value applies to all keys, but a key’s metadata settings can overwrite this value. When 0 is used or the value is unset, Vault will keep 10 versions."}),k=(0,t.attr)("boolean",{defaultValue:!1,label:"Require Check and Set",subText:"If checked, all keys will require the cas parameter to be set on all write requests. A key’s metadata settings can overwrite this value."}),x=(0,t.attr)({defaultValue:0,editType:"ttl",label:"Automate secret deletion",helperTextDisabled:"A secret’s version must be manually deleted.",helperTextEnabled:"Delete all new versions of this secret after"}),o(P=s((_=class extends t.default{constructor(...e){super(...e),L(this,"path",T,this),L(this,"type",O,this),L(this,"description",j,this),L(this,"config",z,this),L(this,"local",M,this),L(this,"sealWrap",S,this),L(this,"externalEntropyAccess",C,this),L(this,"version",A,this),L(this,"lease",E,this),L(this,"leaseMax",R,this),L(this,"accessor",D,this),L(this,"maxVersions",N,this),L(this,"casRequired",F,this),L(this,"deleteVersionAfter",I,this)}get isV2KV(){return 2===this.version&&("kv"===this.engineType||"generic"===this.engineType)}get attrs(){return this.formFields.map((e=>this.allByKey[e]))}get fieldGroups(){return this._expandGroups(this.formFieldGroups)}get icon(){const e=(0,r.allEngines)().find((e=>e.type===this.engineType))
return e?.glyph||"lock"}get engineType(){return(this.type||"").replace(/^ns_/,"")}get shouldIncludeInList(){return!q.includes(this.engineType)}get isSupportedBackend(){return V.includes(this.engineType)}get backendLink(){if("database"===this.engineType)return"vault.cluster.secrets.backend.overview"
if((0,r.isAddonEngine)(this.engineType,this.version)){const{engineRoute:e}=(0,r.allEngines)().find((e=>e.type===this.engineType))
return`vault.cluster.secrets.backend.${e}`}return this.isV2KV?"vault.cluster.secrets.backend.kv.list":"vault.cluster.secrets.backend.list-root"}get backendConfigurationLink(){return(0,r.isAddonEngine)(this.engineType,this.version)?`vault.cluster.secrets.backend.${this.engineType}.configuration`:"vault.cluster.secrets.backend.configuration"}get localDisplay(){return this.local?"local":"replicated"}get formFields(){const e=this.engineType,t=["type","path","description","accessor","local","sealWrap"]
return"keymgmt"!==e&&t.push("config.defaultLeaseTtl","config.maxLeaseTtl"),t.push("config.allowedManagedKeys","config.auditNonHmacRequestKeys","config.auditNonHmacResponseKeys","config.passthroughRequestHeaders","config.allowedResponseHeaders"),"kv"!==e&&"generic"!==e||t.push("version"),"kv"===e&&2===parseInt(this.version,10)&&t.push("casRequired","deleteVersionAfter","maxVersions"),"aws"===e&&t.push("config.identityTokenKey"),t}get formFieldGroups(){let e,t=["path"]
const n=["description","config.listingVisibility","local","sealWrap"],l=["config.auditNonHmacRequestKeys","config.auditNonHmacResponseKeys","config.passthroughRequestHeaders","config.allowedResponseHeaders"]
switch(this.engineType){case"kv":t=["path","maxVersions","casRequired","deleteVersionAfter"],e=["version",...n,"config.defaultLeaseTtl","config.maxLeaseTtl","config.allowedManagedKeys",...l]
break
case"generic":e=["version",...n,"config.defaultLeaseTtl","config.maxLeaseTtl","config.allowedManagedKeys",...l]
break
case"database":t=["path","config.defaultLeaseTtl","config.maxLeaseTtl"],e=[...n,"config.allowedManagedKeys",...l]
break
case"pki":t=["path","config.defaultLeaseTtl","config.maxLeaseTtl","config.allowedManagedKeys"],e=[...n,...l]
break
case"keymgmt":e=[...n,"config.allowedManagedKeys",...l]
break
case"aws":t=["path"],e=[...n,"config.defaultLeaseTtl","config.maxLeaseTtl","config.identityTokenKey","config.allowedManagedKeys",...l]
break
default:t=["path"],e=[...n,"config.defaultLeaseTtl","config.maxLeaseTtl","config.allowedManagedKeys",...l]}return[{default:t},{"Method Options":e}]}saveZeroAddressConfig(){return this.save({adapterOptions:{adapterMethod:"saveZeroAddressConfig"}})}},T=U(_.prototype,"path",[u],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),O=U(_.prototype,"type",[c],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),j=U(_.prototype,"description",[d],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),z=U(_.prototype,"config",[p],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),M=U(_.prototype,"local",[f],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),S=U(_.prototype,"sealWrap",[m],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),C=U(_.prototype,"externalEntropyAccess",[h],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),A=U(_.prototype,"version",[b],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),E=U(_.prototype,"lease",[y],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),R=U(_.prototype,"leaseMax",[v],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),D=U(_.prototype,"accessor",[g],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),N=U(_.prototype,"maxVersions",[w],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),F=U(_.prototype,"casRequired",[k],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),I=U(_.prototype,"deleteVersionAfter",[x],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),P=_))||P)||P)})),define("vault/models/secret",["exports","@ember-data/model","@ember/object","@ember/object/computed","vault/mixins/key-mixin","vault/macros/lazy-capabilities"],(function(e,t,n,l,i,r){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default=t.default.extend(i.default,{failedServerRead:(0,t.attr)("boolean"),auth:(0,t.attr)("string"),lease_duration:(0,t.attr)("number"),lease_id:(0,t.attr)("string"),renewable:(0,t.attr)("boolean"),secretData:(0,t.attr)("object"),secretKeyAndValue:(0,n.computed)("secretData",(function(){const e=this.secretData
return Object.keys(e).map((t=>({key:t,value:e[t]})))})),dataAsJSONString:(0,n.computed)("secretData",(function(){return JSON.stringify(this.secretData,null,2)})),isAdvancedFormat:(0,n.computed)("secretData",(function(){const e=this.secretData
return e&&Object.keys(e).some((t=>"string"!=typeof e[t]))})),helpText:(0,t.attr)("string"),backend:(0,t.attr)("string"),secretPath:(0,r.default)(r.apiPath`${"backend"}/${"id"}`,"backend","id"),canEdit:(0,l.alias)("secretPath.canUpdate"),canDelete:(0,l.alias)("secretPath.canDelete"),canRead:(0,l.alias)("secretPath.canRead")})})),define("vault/models/server",["exports","@ember-data/model"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default=t.default.extend({address:(0,t.attr)("string"),nodeId:(0,t.attr)("string"),protocolVersion:(0,t.attr)("string"),voter:(0,t.attr)("boolean"),leader:(0,t.attr)("boolean")})})),define("vault/models/ssh-otp-credential",["exports","@ember-data/model","vault/decorators/model-expanded-attributes"],(function(e,t,n){var l,i,r,a,o,s,u,c,d,p,f,m,h,b,y
function v(e,t,n,l){n&&Object.defineProperty(e,t,{enumerable:n.enumerable,configurable:n.configurable,writable:n.writable,value:n.initializer?n.initializer.call(l):void 0})}function g(e,t,n,l,i){var r={}
return Object.keys(l).forEach((function(e){r[e]=l[e]})),r.enumerable=!!r.enumerable,r.configurable=!!r.configurable,("value"in r||r.initializer)&&(r.writable=!0),r=n.slice().reverse().reduce((function(n,l){return l(e,t,n)||n}),r),i&&void 0!==r.initializer&&(r.value=r.initializer?r.initializer.call(i):void 0,r.initializer=void 0),void 0===r.initializer?(Object.defineProperty(e,t,r),null):r}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default=(l=(0,n.withExpandedAttributes)(),i=(0,t.attr)("object",{readOnly:!0}),r=(0,t.attr)("string",{label:"IP Address"}),a=(0,t.attr)("string"),o=(0,t.attr)("string",{masked:!0}),s=(0,t.attr)("string"),u=(0,t.attr)("number"),l((d=class extends t.default{constructor(...e){super(...e),v(this,"role",p,this),v(this,"ip",f,this),v(this,"username",m,this),v(this,"key",h,this),v(this,"keyType",b,this),v(this,"port",y,this)}get toCreds(){return this.key}},p=g(d.prototype,"role",[i],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),f=g(d.prototype,"ip",[r],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),m=g(d.prototype,"username",[a],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),h=g(d.prototype,"key",[o],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),b=g(d.prototype,"keyType",[s],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),y=g(d.prototype,"port",[u],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),c=d))||c)})),define("vault/models/ssh-sign",["exports","@ember-data/model","@ember/object","vault/utils/field-to-attrs"],(function(e,t,n,l){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
const i=["publicKey","keyId","validPrincipals","certType","criticalOptions","extensions","ttl"],r=["signedKey","leaseId","renewable","leaseDuration","serialNumber"]
e.default=t.default.extend({role:(0,t.attr)("object",{readOnly:!0}),publicKey:(0,t.attr)("string",{label:"Public Key",editType:"textarea"}),ttl:(0,t.attr)({label:"TTL",editType:"ttl"}),validPrincipals:(0,t.attr)("string",{helpText:"Specifies valid principals, either usernames or hostnames, that the certificate should be signed for. Required unless the role has specified allow_empty_principals."}),certType:(0,t.attr)("string",{defaultValue:"user",label:"Certificate Type",possibleValues:["user","host"]}),keyId:(0,t.attr)("string",{label:"Key ID"}),criticalOptions:(0,t.attr)("object"),extensions:(0,t.attr)("object"),leaseId:(0,t.attr)("string",{label:"Lease ID"}),renewable:(0,t.attr)("boolean"),leaseDuration:(0,t.attr)("number"),serialNumber:(0,t.attr)("string"),signedKey:(0,t.attr)("string"),attrs:(0,n.computed)("signedKey",(function(){const e=this.signedKey?r.slice(0):i.slice(0)
return(0,l.expandAttributeMeta)(this,e)}))})})),define("vault/models/ssh/ca-config",["exports","@ember-data/model","vault/utils/field-to-attrs","vault/decorators/model-validations"],(function(e,t,n,l){var i,r,a,o,s,u,c,d,p,f,m
function h(e,t,n,l){n&&Object.defineProperty(e,t,{enumerable:n.enumerable,configurable:n.configurable,writable:n.writable,value:n.initializer?n.initializer.call(l):void 0})}function b(e,t,n,l,i){var r={}
return Object.keys(l).forEach((function(e){r[e]=l[e]})),r.enumerable=!!r.enumerable,r.configurable=!!r.configurable,("value"in r||r.initializer)&&(r.writable=!0),r=n.slice().reverse().reduce((function(n,l){return l(e,t,n)||n}),r),i&&void 0!==r.initializer&&(r.value=r.initializer?r.initializer.call(i):void 0,r.initializer=void 0),void 0===r.initializer?(Object.defineProperty(e,t,r),null):r}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
const y={generateSigningKey:[{validator(e){const{publicKey:t,privateKey:n,generateSigningKey:l}=e
return!!(l||t&&n)},message:'Provide a Public and Private key or set "Generate Signing Key" to true.'}],publicKey:[{validator(e){const{publicKey:t,privateKey:n}=e
return!t&&!n||t&&n},message:"You must provide a Public and Private keys or leave both unset."}]}
e.default=(i=(0,l.withModelValidations)(y),r=(0,t.attr)("string"),a=(0,t.attr)("string",{sensitive:!0}),o=(0,t.attr)("string"),s=(0,t.attr)("boolean",{defaultValue:!0}),i((c=class extends t.default{constructor(...e){super(...e),h(this,"backend",d,this),h(this,"privateKey",p,this),h(this,"publicKey",f,this),h(this,"generateSigningKey",m,this)}get attrs(){return(0,n.expandAttributeMeta)(this,["publicKey","generateSigningKey"])}get formFields(){return(0,n.expandAttributeMeta)(this,["privateKey","publicKey","generateSigningKey"])}},d=b(c.prototype,"backend",[r],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),p=b(c.prototype,"privateKey",[a],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),f=b(c.prototype,"publicKey",[o],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),m=b(c.prototype,"generateSigningKey",[s],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),u=c))||u)})),define("vault/models/sync/association",["exports","@ember-data/model","vault/macros/lazy-capabilities"],(function(e,t,n){var l,i,r,a,o,s,u,c,d,p,f,m
function h(e,t,n,l){n&&Object.defineProperty(e,t,{enumerable:n.enumerable,configurable:n.configurable,writable:n.writable,value:n.initializer?n.initializer.call(l):void 0})}function b(e,t,n,l,i){var r={}
return Object.keys(l).forEach((function(e){r[e]=l[e]})),r.enumerable=!!r.enumerable,r.configurable=!!r.configurable,("value"in r||r.initializer)&&(r.writable=!0),r=n.slice().reverse().reduce((function(n,l){return l(e,t,n)||n}),r),i&&void 0!==r.initializer&&(r.value=r.initializer?r.initializer.call(i):void 0,r.initializer=void 0),void 0===r.initializer?(Object.defineProperty(e,t,r),null):r}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default=(l=(0,n.default)(n.apiPath`sys/sync/destinations/${"destinationType"}/${"destinationName"}/associations/set`,"destinationType","destinationName"),i=(0,n.default)(n.apiPath`sys/sync/destinations/${"destinationType"}/${"destinationName"}/associations/remove`,"destinationType","destinationName"),r=class extends t.default{constructor(...e){super(...e),h(this,"mount",a,this),h(this,"secretName",o,this),h(this,"syncStatus",s,this),h(this,"updatedAt",u,this),h(this,"destinationName",c,this),h(this,"destinationType",d,this),h(this,"subKey",p,this),h(this,"setAssociationPath",f,this),h(this,"removeAssociationPath",m,this)}get canSync(){return!1!==this.setAssociationPath.get("canUpdate")}get canUnsync(){return!1!==this.removeAssociationPath.get("canUpdate")}},a=b(r.prototype,"mount",[t.attr],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),o=b(r.prototype,"secretName",[t.attr],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),s=b(r.prototype,"syncStatus",[t.attr],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),u=b(r.prototype,"updatedAt",[t.attr],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),c=b(r.prototype,"destinationName",[t.attr],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),d=b(r.prototype,"destinationType",[t.attr],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),p=b(r.prototype,"subKey",[t.attr],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),f=b(r.prototype,"setAssociationPath",[l],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),m=b(r.prototype,"removeAssociationPath",[i],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),r)})),define("vault/models/sync/destination",["exports","@ember-data/model","vault/helpers/sync-destinations","vault/macros/lazy-capabilities","vault/decorators/model-validations"],(function(e,t,n,l,i){var r,a,o,s,u,c,d,p,f,m,h,b,y,v,g,w,k,x
function P(e,t,n,l){n&&Object.defineProperty(e,t,{enumerable:n.enumerable,configurable:n.configurable,writable:n.writable,value:n.initializer?n.initializer.call(l):void 0})}function _(e,t,n,l,i){var r={}
return Object.keys(l).forEach((function(e){r[e]=l[e]})),r.enumerable=!!r.enumerable,r.configurable=!!r.configurable,("value"in r||r.initializer)&&(r.writable=!0),r=n.slice().reverse().reduce((function(n,l){return l(e,t,n)||n}),r),i&&void 0!==r.initializer&&(r.value=r.initializer?r.initializer.call(i):void 0,r.initializer=void 0),void 0===r.initializer?(Object.defineProperty(e,t,r),null):r}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default=(r=(0,i.withModelValidations)({name:[{type:"presence",message:"Name is required."},{type:"containsWhiteSpace",message:"Name cannot contain whitespace."}]}),a=(0,t.attr)("string",{subText:"Specifies the name for this destination.",editDisabled:!0}),o=(0,t.attr)("string",{subText:'Go-template string that indicates how to format the secret name at the destination. The default template varies by destination type but is generally in the form of "vault-{{ .MountAccessor }}-{{ .SecretPath }}" e.g. "vault-kv_9a8f68ad-my-secret-1". Optional.'}),s=(0,t.attr)("string",{editType:"radio",label:"Secret sync granularity",possibleValues:[{label:"Secret path",subText:"Sync entire secret contents as a single entry at the destination.",value:"secret-path"},{label:"Secret key",subText:"Sync each key-value pair of secret data as a distinct entry at the destination.",helpText:"Only top-level keys will be synced and any nested or complex values will be encoded as a JSON string.",value:"secret-key"}]}),u=(0,t.attr)("string"),c=(0,t.attr)("string"),d=(0,l.default)(l.apiPath`sys/sync/destinations/${"type"}/${"name"}`,"type","name"),p=(0,l.default)(l.apiPath`sys/sync/destinations/${"type"}/${"name"}/associations/set`,"type","name"),r((m=class extends t.default{constructor(...e){super(...e),P(this,"name",h,this),P(this,"type",b,this),P(this,"secretNameTemplate",y,this),P(this,"granularity",v,this),P(this,"purgeInitiatedAt",g,this),P(this,"purgeError",w,this),P(this,"destinationPath",k,this),P(this,"setAssociationPath",x,this)}get icon(){return(0,n.findDestination)(this.type)?.icon}get typeDisplayName(){return(0,n.findDestination)(this.type)?.name}get maskedParams(){return(0,n.findDestination)(this.type)?.maskedParams}get canCreate(){return!1!==this.destinationPath.get("canCreate")}get canDelete(){return!1!==this.destinationPath.get("canDelete")}get canEdit(){return!1!==this.destinationPath.get("canUpdate")&&!this.purgeInitiatedAt}get canRead(){return!1!==this.destinationPath.get("canRead")}get canSync(){return!1!==this.setAssociationPath.get("canUpdate")&&!this.purgeInitiatedAt}},h=_(m.prototype,"name",[a],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),b=_(m.prototype,"type",[t.attr],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),y=_(m.prototype,"secretNameTemplate",[o],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),v=_(m.prototype,"granularity",[s],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),g=_(m.prototype,"purgeInitiatedAt",[u],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),w=_(m.prototype,"purgeError",[c],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),k=_(m.prototype,"destinationPath",[d],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),x=_(m.prototype,"setAssociationPath",[p],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),f=m))||f)})),define("vault/models/sync/destinations/aws-sm",["exports","vault/models/sync/destination","@ember-data/model","vault/decorators/model-form-fields"],(function(e,t,n,l){var i,r,a,o,s,u,c,d,p,f,m,h,b,y,v
function g(e,t,n,l){n&&Object.defineProperty(e,t,{enumerable:n.enumerable,configurable:n.configurable,writable:n.writable,value:n.initializer?n.initializer.call(l):void 0})}function w(e,t,n,l,i){var r={}
return Object.keys(l).forEach((function(e){r[e]=l[e]})),r.enumerable=!!r.enumerable,r.configurable=!!r.configurable,("value"in r||r.initializer)&&(r.writable=!0),r=n.slice().reverse().reduce((function(n,l){return l(e,t,n)||n}),r),i&&void 0!==r.initializer&&(r.value=r.initializer?r.initializer.call(i):void 0,r.initializer=void 0),void 0===r.initializer?(Object.defineProperty(e,t,r),null):r}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default=(i=(0,l.withFormFields)(["name","region","accessKeyId","secretAccessKey","roleArn","externalId","granularity","secretNameTemplate","customTags"],[{default:["name","region","roleArn","externalId"]},{Credentials:["accessKeyId","secretAccessKey"]},{"Advanced configuration":["granularity","secretNameTemplate","customTags"]}]),r=(0,n.attr)("string",{label:"Access key ID",subText:"Access key ID to authenticate against the secrets manager. If empty, Vault will use the AWS_ACCESS_KEY_ID environment variable if configured.",sensitive:!0,noCopy:!0}),a=(0,n.attr)("string",{label:"Secret access key",subText:"Secret access key to authenticate against the secrets manager. If empty, Vault will use the AWS_SECRET_ACCESS_KEY environment variable if configured.",sensitive:!0,noCopy:!0}),o=(0,n.attr)("string",{subText:"For AWS secrets manager, the name of the region must be supplied, something like “us-west-1.” If empty, Vault will use the AWS_REGION environment variable if configured.",editDisabled:!0}),s=(0,n.attr)("object",{subText:"An optional set of informational key-value pairs added as additional metadata on secrets synced to this destination. Custom tags are merged with built-in tags.",editType:"kv"}),u=(0,n.attr)("string",{label:"Role ARN",subText:"Specifies a role to assume when connecting to AWS. When assuming a role, Vault uses temporary STS credentials to authenticate."}),c=(0,n.attr)("string",{label:"External ID",subText:"Optional extra protection that must match the trust policy granting access to the AWS IAM role ARN. We recommend using a different random UUID per destination."}),i((p=class extends t.default{constructor(...e){super(...e),g(this,"accessKeyId",f,this),g(this,"secretAccessKey",m,this),g(this,"region",h,this),g(this,"customTags",b,this),g(this,"roleArn",y,this),g(this,"externalId",v,this)}},f=w(p.prototype,"accessKeyId",[r],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),m=w(p.prototype,"secretAccessKey",[a],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),h=w(p.prototype,"region",[o],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),b=w(p.prototype,"customTags",[s],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),y=w(p.prototype,"roleArn",[u],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),v=w(p.prototype,"externalId",[c],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),d=p))||d)})),define("vault/models/sync/destinations/azure-kv",["exports","vault/models/sync/destination","@ember-data/model","vault/decorators/model-form-fields"],(function(e,t,n,l){var i,r,a,o,s,u,c,d,p,f,m,h,b,y,v
function g(e,t,n,l){n&&Object.defineProperty(e,t,{enumerable:n.enumerable,configurable:n.configurable,writable:n.writable,value:n.initializer?n.initializer.call(l):void 0})}function w(e,t,n,l,i){var r={}
return Object.keys(l).forEach((function(e){r[e]=l[e]})),r.enumerable=!!r.enumerable,r.configurable=!!r.configurable,("value"in r||r.initializer)&&(r.writable=!0),r=n.slice().reverse().reduce((function(n,l){return l(e,t,n)||n}),r),i&&void 0!==r.initializer&&(r.value=r.initializer?r.initializer.call(i):void 0,r.initializer=void 0),void 0===r.initializer?(Object.defineProperty(e,t,r),null):r}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default=(i=(0,l.withFormFields)(["name","keyVaultUri","tenantId","cloud","clientId","clientSecret","granularity","secretNameTemplate","customTags"],[{default:["name","keyVaultUri","tenantId","cloud","clientId"]},{Credentials:["clientSecret"]},{"Advanced configuration":["granularity","secretNameTemplate","customTags"]}]),r=(0,n.attr)("string",{label:"Key Vault URI",subText:"URI of an existing Azure Key Vault instance. If empty, Vault will use the KEY_VAULT_URI environment variable if configured.",editDisabled:!0}),a=(0,n.attr)("string",{label:"Client ID",subText:"Client ID of an Azure app registration. If empty, Vault will use the AZURE_CLIENT_ID environment variable if configured."}),o=(0,n.attr)("string",{subText:"Client secret of an Azure app registration. If empty, Vault will use the AZURE_CLIENT_SECRET environment variable if configured.",sensitive:!0,noCopy:!0}),s=(0,n.attr)("string",{label:"Tenant ID",subText:"ID of the target Azure tenant. If empty, Vault will use the AZURE_TENANT_ID environment variable if configured.",editDisabled:!0}),u=(0,n.attr)("string",{subText:"Specifies a cloud for the client. The default is Azure Public Cloud.",editDisabled:!0}),c=(0,n.attr)("object",{subText:"An optional set of informational key-value pairs added as additional metadata on secrets synced to this destination. Custom tags are merged with built-in tags.",editType:"kv"}),i((p=class extends t.default{constructor(...e){super(...e),g(this,"keyVaultUri",f,this),g(this,"clientId",m,this),g(this,"clientSecret",h,this),g(this,"tenantId",b,this),g(this,"cloud",y,this),g(this,"customTags",v,this)}},f=w(p.prototype,"keyVaultUri",[r],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),m=w(p.prototype,"clientId",[a],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),h=w(p.prototype,"clientSecret",[o],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),b=w(p.prototype,"tenantId",[s],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),y=w(p.prototype,"cloud",[u],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),v=w(p.prototype,"customTags",[c],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),d=p))||d)})),define("vault/models/sync/destinations/gcp-sm",["exports","vault/models/sync/destination","@ember-data/model","vault/decorators/model-form-fields"],(function(e,t,n,l){var i,r,a,o,s,u,c,d,p
function f(e,t,n,l){n&&Object.defineProperty(e,t,{enumerable:n.enumerable,configurable:n.configurable,writable:n.writable,value:n.initializer?n.initializer.call(l):void 0})}function m(e,t,n,l,i){var r={}
return Object.keys(l).forEach((function(e){r[e]=l[e]})),r.enumerable=!!r.enumerable,r.configurable=!!r.configurable,("value"in r||r.initializer)&&(r.writable=!0),r=n.slice().reverse().reduce((function(n,l){return l(e,t,n)||n}),r),i&&void 0!==r.initializer&&(r.value=r.initializer?r.initializer.call(i):void 0,r.initializer=void 0),void 0===r.initializer?(Object.defineProperty(e,t,r),null):r}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default=(i=(0,l.withFormFields)(["name","projectId","credentials","granularity","secretNameTemplate","customTags"],[{default:["name","projectId"]},{Credentials:["credentials"]},{"Advanced configuration":["granularity","secretNameTemplate","customTags"]}]),r=(0,n.attr)("string",{label:"Project ID",subText:"The target project to manage secrets in. If set, overrides the project derived from the service account JSON credentials or application default credentials."}),a=(0,n.attr)("string",{label:"JSON credentials",subText:"If empty, Vault will use the GOOGLE_APPLICATION_CREDENTIALS environment variable if configured.",editType:"file",docLink:"/vault/docs/secrets/gcp#authentication"}),o=(0,n.attr)("object",{subText:"An optional set of informational key-value pairs added as additional metadata on secrets synced to this destination. Custom tags are merged with built-in tags.",editType:"kv"}),i((u=class extends t.default{constructor(...e){super(...e),f(this,"projectId",c,this),f(this,"credentials",d,this),f(this,"customTags",p,this)}},c=m(u.prototype,"projectId",[r],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),d=m(u.prototype,"credentials",[a],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),p=m(u.prototype,"customTags",[o],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),s=u))||s)}))
define("vault/models/sync/destinations/gh",["exports","vault/models/sync/destination","@ember-data/model","vault/decorators/model-form-fields"],(function(e,t,n,l){var i,r,a,o,s,u,c,d,p
function f(e,t,n,l){n&&Object.defineProperty(e,t,{enumerable:n.enumerable,configurable:n.configurable,writable:n.writable,value:n.initializer?n.initializer.call(l):void 0})}function m(e,t,n,l,i){var r={}
return Object.keys(l).forEach((function(e){r[e]=l[e]})),r.enumerable=!!r.enumerable,r.configurable=!!r.configurable,("value"in r||r.initializer)&&(r.writable=!0),r=n.slice().reverse().reduce((function(n,l){return l(e,t,n)||n}),r),i&&void 0!==r.initializer&&(r.value=r.initializer?r.initializer.call(i):void 0,r.initializer=void 0),void 0===r.initializer?(Object.defineProperty(e,t,r),null):r}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default=(i=(0,l.withFormFields)(["name","repositoryOwner","repositoryName","accessToken","granularity","secretNameTemplate"],[{default:["name","repositoryOwner","repositoryName"]},{Credentials:["accessToken"]},{"Advanced configuration":["granularity","secretNameTemplate"]}]),r=(0,n.attr)("string",{subText:"Personal access token to authenticate to the GitHub repository. If empty, Vault will use the GITHUB_ACCESS_TOKEN environment variable if configured.",sensitive:!0,noCopy:!0}),a=(0,n.attr)("string",{subText:"Github organization or username that owns the repository. If empty, Vault will use the GITHUB_REPOSITORY_OWNER environment variable if configured.",editDisabled:!0}),o=(0,n.attr)("string",{subText:"The name of the Github repository to connect to. If empty, Vault will use the GITHUB_REPOSITORY_NAME environment variable if configured.",editDisabled:!0}),i((u=class extends t.default{constructor(...e){super(...e),f(this,"accessToken",c,this),f(this,"repositoryOwner",d,this),f(this,"repositoryName",p,this)}},c=m(u.prototype,"accessToken",[r],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),d=m(u.prototype,"repositoryOwner",[a],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),p=m(u.prototype,"repositoryName",[o],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),s=u))||s)})),define("vault/models/sync/destinations/vercel-project",["exports","vault/models/sync/destination","@ember-data/model","vault/decorators/model-form-fields","vault/decorators/model-validations"],(function(e,t,n,l,i){var r,a,o,s,u,c,d,p,f,m,h,b
function y(e,t,n,l){n&&Object.defineProperty(e,t,{enumerable:n.enumerable,configurable:n.configurable,writable:n.writable,value:n.initializer?n.initializer.call(l):void 0})}function v(e,t,n,l,i){var r={}
return Object.keys(l).forEach((function(e){r[e]=l[e]})),r.enumerable=!!r.enumerable,r.configurable=!!r.configurable,("value"in r||r.initializer)&&(r.writable=!0),r=n.slice().reverse().reduce((function(n,l){return l(e,t,n)||n}),r),i&&void 0!==r.initializer&&(r.value=r.initializer?r.initializer.call(i):void 0,r.initializer=void 0),void 0===r.initializer?(Object.defineProperty(e,t,r),null):r}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
const g={name:[{type:"presence",message:"Name is required."}],teamId:[{validator:e=>!(!e.isNew&&Object.keys(e.changedAttributes()).includes("teamId")),message:"Team ID should only be updated if the project was transferred to another account.",level:"warn"}],deploymentEnvironmentsArray:[{type:"presence",message:"At least one environment is required."}]}
e.default=(r=(0,i.withModelValidations)(g),a=(0,l.withFormFields)(["name","accessToken","projectId","teamId","deploymentEnvironments","granularity","secretNameTemplate"],[{default:["name","projectId","teamId","deploymentEnvironments"]},{Credentials:["accessToken"]},{"Advanced configuration":["granularity","secretNameTemplate"]}]),o=(0,n.attr)("string",{subText:"Vercel API access token with the permissions to manage environment variables.",sensitive:!0,noCopy:!0}),s=(0,n.attr)("string",{label:"Project ID",subText:"Project ID where to manage environment variables.",editDisabled:!0}),u=(0,n.attr)("string",{label:"Team ID",subText:"Team ID the project belongs to. Optional."}),c=(0,n.attr)("commaString",{subText:"Deployment environments where the environment variables are available.",editType:"checkboxList",possibleValues:["development","preview","production"],fieldValue:"deploymentEnvironmentsArray"}),r(d=a((p=class extends t.default{constructor(...e){super(...e),y(this,"accessToken",f,this),y(this,"projectId",m,this),y(this,"teamId",h,this),y(this,"deploymentEnvironments",b,this)}get deploymentEnvironmentsArray(){return this.deploymentEnvironments?this.deploymentEnvironments.split(","):[]}set deploymentEnvironmentsArray(e){this.deploymentEnvironments=e.join(",")}},f=v(p.prototype,"accessToken",[o],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),m=v(p.prototype,"projectId",[s],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),h=v(p.prototype,"teamId",[u],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),b=v(p.prototype,"deploymentEnvironments",[c],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),d=p))||d)||d)})),define("vault/models/test-form-model",["exports","vault/models/auth-method","@ember-data/model"],(function(e,t,n){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default=t.default.extend({otherConfig:(0,n.belongsTo)("mount-config",{async:!1,inverse:null})})})),define("vault/models/transform",["exports","@ember-data/model","@ember/object","vault/macros/lazy-capabilities","vault/utils/field-to-attrs"],(function(e,t,n,l,i){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default=t.default.extend({name:(0,t.attr)("string",{label:"Name",readOnly:!0,subText:"The name for your transformation. This cannot be edited later."}),type:(0,t.attr)("string",{defaultValue:"fpe",label:"Type",possibleValues:[{value:"fpe",displayName:"Format Preserving Encryption (FPE)"},{value:"masking",displayName:"Masking"},{value:"tokenization",displayName:"Tokenization"}],subText:"Vault provides two types of transformations: Format Preserving Encryption (FPE) is reversible, while Masking is not. This cannot be edited later."}),tweak_source:(0,t.attr)("string",{defaultValue:"supplied",label:"Tweak source",possibleValues:[{value:"supplied",displayName:"supplied"},{value:"generated",displayName:"generated"},{value:"internal",displayName:"internal"}],subText:"A tweak value is used when performing FPE transformations. This can be supplied, generated, or internal."}),masking_character:(0,t.attr)("string",{characterLimit:1,defaultValue:"*",label:"Masking character",subText:"Specify which character you’d like to mask your data."}),template:(0,t.attr)("array",{editType:"searchSelect",isSectionHeader:!0,fallbackComponent:"string-list",label:"Template",models:["transform/template"],selectLimit:1,onlyAllowExisting:!0,subText:"Templates allow Vault to determine what and how to capture the value to be transformed. Type to use an existing template or create a new one."}),allowed_roles:(0,t.attr)("array",{editType:"searchSelect",isSectionHeader:!0,label:"Allowed roles",fallbackComponent:"string-list",models:["transform/role"],subText:"Search for an existing role, type a new role to create it, or use a wildcard (*).",wildcardLabel:"role"}),deletion_allowed:(0,t.attr)("boolean",{label:"Allow deletion",subText:"If checked, this transform can be deleted otherwise deletion is blocked. Note that deleting the transform deletes the underlying key which makes decoding of tokenized values impossible without restoring from a backup."}),convergent:(0,t.attr)("boolean",{label:"Use convergent tokenization",subText:"This cannot be edited later. If checked, tokenization of the same plaintext more than once results in the same token. Defaults to false as unique tokens are more desirable from a security standpoint if there isn't a use-case need for convergence."}),stores:(0,t.attr)("array",{label:"Stores",editType:"stringArray",subText:"The list of tokenization stores to use for tokenization state. Vault's internal storage is used by default."}),mapping_mode:(0,t.attr)("string",{defaultValue:"default",subText:'Specifies the mapping mode for stored tokenization values. "default" is strongly recommended for highest security, "exportable" allows for all plaintexts to be decoded via the export-decoded endpoint in an emergency.'}),max_ttl:(0,t.attr)({editType:"ttl",defaultValue:"0",label:"Maximum TTL (time-to-live) of a token",helperTextDisabled:'If "0" or unspecified, tokens may have no expiration.'}),transformAttrs:(0,n.computed)("type",(function(){const e=["name","type","deletion_allowed"]
switch(this.type){case"fpe":return[...e,"tweak_source","template","allowed_roles"]
case"masking":return[...e,"masking_character","template","allowed_roles"]
case"tokenization":return[...e,"mapping_mode","convergent","max_ttl","stores","allowed_roles"]
default:return[...e]}})),transformFieldAttrs:(0,n.computed)("transformAttrs",(function(){return(0,i.expandAttributeMeta)(this,this.transformAttrs)})),backend:(0,t.attr)("string",{readOnly:!0}),updatePath:(0,l.default)(l.apiPath`${"backend"}/transformation/${"id"}`,"backend","id")})})),define("vault/models/transform/alphabet",["exports","@ember-data/model","vault/macros/lazy-capabilities","vault/utils/field-to-attrs"],(function(e,t,n,l){var i,r,a,o,s,u,c,d,p
function f(e,t,n,l){n&&Object.defineProperty(e,t,{enumerable:n.enumerable,configurable:n.configurable,writable:n.writable,value:n.initializer?n.initializer.call(l):void 0})}function m(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e
var n=e[Symbol.toPrimitive]
if(void 0!==n){var l=n.call(e,t||"default")
if("object"!=typeof l)return l
throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string")
return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function h(e,t,n,l,i){var r={}
return Object.keys(l).forEach((function(e){r[e]=l[e]})),r.enumerable=!!r.enumerable,r.configurable=!!r.configurable,("value"in r||r.initializer)&&(r.writable=!0),r=n.slice().reverse().reduce((function(n,l){return l(e,t,n)||n}),r),i&&void 0!==r.initializer&&(r.value=r.initializer?r.initializer.call(i):void 0,r.initializer=void 0),void 0===r.initializer?(Object.defineProperty(e,t,r),null):r}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default=(i=(0,t.attr)("string",{readOnly:!0,subText:"The alphabet name. Keep in mind that spaces are not allowed and this cannot be edited later."}),r=(0,t.attr)("string",{label:"Alphabet",subText:"Provide the set of valid UTF-8 characters contained within both the input and transformed value.",docLink:"/vault/api-docs/secret/transform#create-update-alphabet"}),a=(0,t.attr)("string",{readOnly:!0}),o=(0,n.default)(n.apiPath`${"backend"}/alphabet/${"id"}`,"backend","id"),s=class extends t.default{constructor(...e){super(...e),m(this,"idPrefix","alphabet/"),f(this,"name",u,this),f(this,"alphabet",c,this),f(this,"backend",d,this),f(this,"updatePath",p,this)}get idForNav(){const e=this.id||""
return`${this.idPrefix}${e}`}get attrs(){return(0,l.expandAttributeMeta)(this,["name","alphabet"])}},u=h(s.prototype,"name",[i],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),c=h(s.prototype,"alphabet",[r],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),d=h(s.prototype,"backend",[a],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),p=h(s.prototype,"updatePath",[o],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),s)})),define("vault/models/transform/role",["exports","@ember-data/model","@ember/object","vault/macros/lazy-capabilities","vault/utils/field-to-attrs"],(function(e,t,n,l,i){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default=t.default.extend({idPrefix:"role/",idForNav:(0,n.computed)("id","idPrefix",(function(){const e=this.id||""
return`${this.idPrefix}${e}`})),name:(0,t.attr)("string",{label:"Name",readOnly:!0,subText:"The name for your role. This cannot be edited later."}),transformations:(0,t.attr)("array",{editType:"searchSelect",isSectionHeader:!0,fallbackComponent:"string-list",label:"Transformations",models:["transform"],onlyAllowExisting:!0,subText:"Select which transformations this role will have access to. It must already exist."}),attrs:(0,n.computed)("transformations",(function(){return(0,i.expandAttributeMeta)(this,["name","transformations"])})),backend:(0,t.attr)("string",{readOnly:!0}),updatePath:(0,l.default)(l.apiPath`${"backend"}/role/${"id"}`,"backend","id")})})),define("vault/models/transform/template",["exports","@ember-data/model","@ember/object","vault/macros/lazy-capabilities","vault/utils/field-to-attrs"],(function(e,t,n,l,i){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default=t.default.extend({idPrefix:"template/",idForNav:(0,n.computed)("id","idPrefix",(function(){const e=this.id||""
return`${this.idPrefix}${e}`})),name:(0,t.attr)("string",{readOnly:!0,subText:"Templates allow Vault to determine what and how to capture the value to be transformed. This cannot be edited later."}),type:(0,t.attr)("string",{defaultValue:"regex"}),pattern:(0,t.attr)("string",{editType:"regex",subText:"The template’s pattern defines the data format. Expressed in regex."}),alphabet:(0,t.attr)("array",{subText:"Alphabet defines a set of characters (UTF-8) that is used for FPE to determine the validity of plaintext and ciphertext values. You can choose a built-in one, or create your own.",editType:"searchSelect",isSectionHeader:!0,fallbackComponent:"string-list",label:"Alphabet",models:["transform/alphabet"],selectLimit:1}),encodeFormat:(0,t.attr)("string"),decodeFormats:(0,t.attr)(),backend:(0,t.attr)("string",{readOnly:!0}),readAttrs:(0,n.computed)((function(){return(0,i.expandAttributeMeta)(this,["name","pattern","encodeFormat","decodeFormats","alphabet"])})),writeAttrs:(0,n.computed)((function(){return(0,i.expandAttributeMeta)(this,["name","pattern","alphabet"])})),updatePath:(0,l.default)(l.apiPath`${"backend"}/template/${"id"}`,"backend","id")})})),define("vault/models/transit-key",["exports","@ember-data/model","@ember/object","vault/utils/clamp","vault/macros/lazy-capabilities"],(function(e,t,n,l,i){var r,a,o,s,u,c,d,p,f,m,h,b,y,v,g,w,k,x,P,_,T,O,j,z,M,S,C,A,E,R,D,N,F,I,L,U,V,q,$
function K(e,t,n,l){n&&Object.defineProperty(e,t,{enumerable:n.enumerable,configurable:n.configurable,writable:n.writable,value:n.initializer?n.initializer.call(l):void 0})}function B(e,t,n,l,i){var r={}
return Object.keys(l).forEach((function(e){r[e]=l[e]})),r.enumerable=!!r.enumerable,r.configurable=!!r.configurable,("value"in r||r.initializer)&&(r.writable=!0),r=n.slice().reverse().reduce((function(n,l){return l(e,t,n)||n}),r),i&&void 0!==r.initializer&&(r.value=r.initializer?r.initializer.call(i):void 0,r.initializer=void 0),void 0===r.initializer?(Object.defineProperty(e,t,r),null):r}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
const G={encrypt:{isSupported:"supportsEncryption",description:"Looks up wrapping properties for the given token.",glyph:"lock-fill"},decrypt:{isSupported:"supportsDecryption",description:"Decrypts the provided ciphertext using this key.",glyph:"mail-open"},datakey:{isSupported:"supportsEncryption",description:"Generates a new key and value encrypted with this key.",glyph:"key"},rewrap:{isSupported:"supportsEncryption",description:"Rewraps the ciphertext using the latest version of the named key.",glyph:"reload"},sign:{isSupported:"supportsSigning",description:"Get the cryptographic signature of the given data.",glyph:"pencil-tool"},hmac:{isSupported:!0,description:"Generate a data digest using a hash algorithm.",glyph:"shuffle"},verify:{isSupported:!0,description:"Validate the provided signature for the given data.",glyph:"check-circle"},export:{isSupported:"exportable",description:"Get the named key.",glyph:"external-link"}}
e.default=(r=(0,t.attr)("string"),a=(0,t.attr)("string",{defaultValue:"aes256-gcm96"}),o=(0,t.attr)("string",{label:"Name",readOnly:!0}),s=(0,t.attr)({defaultValue:"0",defaultShown:"Key is not automatically rotated",editType:"ttl",label:"Auto-rotation period"}),u=(0,t.attr)("boolean"),c=(0,t.attr)("boolean"),d=(0,t.attr)("boolean"),p=(0,t.attr)("number",{defaultValue:1}),f=(0,t.attr)("number",{defaultValue:0}),m=(0,t.attr)("number"),h=(0,t.attr)("object"),b=(0,t.attr)("boolean"),y=(0,t.attr)("number"),v=(0,t.attr)("boolean"),g=(0,t.attr)("boolean"),w=(0,t.attr)("boolean"),k=(0,t.attr)("boolean"),x=(0,i.default)(i.apiPath`${"backend"}/keys/${"id"}/rotate`,"backend","id"),P=(0,i.default)(i.apiPath`${"backend"}/keys/${"id"}`,"backend","id"),_=class extends t.default{constructor(...e){super(...e),K(this,"backend",T,this),K(this,"type",O,this),K(this,"name",j,this),K(this,"autoRotatePeriod",z,this),K(this,"deletionAllowed",M,this),K(this,"derived",S,this),K(this,"exportable",C,this),K(this,"minDecryptionVersion",A,this),K(this,"minEncryptionVersion",E,this),K(this,"latestVersion",R,this),K(this,"keys",D,this),K(this,"convergentEncryption",N,this),K(this,"convergentEncryptionVersion",F,this),K(this,"supportsSigning",I,this),K(this,"supportsEncryption",L,this),K(this,"supportsDecryption",U,this),K(this,"supportsDerivation",V,this),K(this,"rotatePath",q,this),K(this,"secretPath",$,this)}setConvergentEncryption(e){!0===e&&(0,n.set)(this,"derived",e),(0,n.set)(this,"convergentEncryption",e)}setDerived(e){!1===e&&(0,n.set)(this,"convergentEncryption",e),(0,n.set)(this,"derived",e)}get supportedActions(){return Object.keys(G).filter((e=>{const{isSupported:t}=G[e]
return"boolean"==typeof t||(0,n.get)(this,t)})).map((e=>{const{description:t,glyph:n}=G[e]
return{name:e,description:t,glyph:n}}))}get canDelete(){const e=Boolean(this.changedAttributes().deletionAllowed)
return this.deletionAllowed&&!1===e}get keyVersions(){let e=Math.max(...this.validKeyVersions)
const t=[]
for(;e>0;)t.unshift(e),e--
return t}get encryptionKeyVersions(){const{keyVersions:e,minDecryptionVersion:t}=this
return e.filter((e=>e>=t)).reverse()}get keysForEncryption(){let{minEncryptionVersion:e,latestVersion:t}=this
const n=(0,l.default)(e-1,0,t),i=[]
for(;t>n;)i.push(t),t--
return i}get validKeyVersions(){return Object.keys(this.keys)}get exportKeyTypes(){const e=["hmac"]
return this.supportsSigning&&e.unshift("signing"),this.supportsEncryption&&e.unshift("encryption"),e}get canRotate(){return!1!==this.rotatePath.get("canUpdate")}get canRead(){return!1!==this.secretPath.get("canUpdate")}get canEdit(){return!1!==this.secretPath.get("canUpdate")}},T=B(_.prototype,"backend",[r],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),O=B(_.prototype,"type",[a],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),j=B(_.prototype,"name",[o],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),z=B(_.prototype,"autoRotatePeriod",[s],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),M=B(_.prototype,"deletionAllowed",[u],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),S=B(_.prototype,"derived",[c],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),C=B(_.prototype,"exportable",[d],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),A=B(_.prototype,"minDecryptionVersion",[p],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),E=B(_.prototype,"minEncryptionVersion",[f],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),R=B(_.prototype,"latestVersion",[m],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),D=B(_.prototype,"keys",[h],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),N=B(_.prototype,"convergentEncryption",[b],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),F=B(_.prototype,"convergentEncryptionVersion",[y],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),I=B(_.prototype,"supportsSigning",[v],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),L=B(_.prototype,"supportsEncryption",[g],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),U=B(_.prototype,"supportsDecryption",[w],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),V=B(_.prototype,"supportsDerivation",[k],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),q=B(_.prototype,"rotatePath",[x],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),$=B(_.prototype,"secretPath",[P],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),_)})),define("vault/modifiers/basic-dropdown-trigger",["exports","ember-basic-dropdown/modifiers/basic-dropdown-trigger"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.default}})})),define("vault/modifiers/code-mirror",["exports","core/modifiers/code-mirror"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.default}})})),define("vault/modifiers/did-insert",["exports","@ember/render-modifiers/modifiers/did-insert"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.default}})})),define("vault/modifiers/did-resize",["exports","ember-resize-modifier/modifiers/did-resize"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.default}})})),define("vault/modifiers/did-update",["exports","@ember/render-modifiers/modifiers/did-update"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.default}})})),define("vault/modifiers/focus-trap",["exports","ember-focus-trap/modifiers/focus-trap.js"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.default}})})),define("vault/modifiers/hds-anchored-position",["exports","@hashicorp/design-system-components/modifiers/hds-anchored-position"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.default}})})),define("vault/modifiers/hds-clipboard",["exports","@hashicorp/design-system-components/modifiers/hds-clipboard"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.default}})})),define("vault/modifiers/hds-register-event",["exports","@hashicorp/design-system-components/modifiers/hds-register-event"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.default}})})),define("vault/modifiers/hds-tooltip",["exports","@hashicorp/design-system-components/modifiers/hds-tooltip"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.default}})})),define("vault/modifiers/interactor-cartesian-horizontal",["exports","@lineal-viz/lineal/modifiers/interactor-cartesian-horizontal"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.default}})})),define("vault/modifiers/on-key",["exports","ember-keyboard/modifiers/on-key.js"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.default}})})),define("vault/modifiers/style",["exports","ember-style-modifier/modifiers/style"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.default}})})),define("vault/modifiers/will-destroy",["exports","@ember/render-modifiers/modifiers/will-destroy"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.default}})})),define("vault/router",["exports","@ember/routing/router","vault/config/environment","@docfy/ember"],(function(e,t,n,l){function i(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e
var n=e[Symbol.toPrimitive]
if(void 0!==n){var l=n.call(e,t||"default")
if("object"!=typeof l)return l
throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string")
return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
class r extends t.default{constructor(...e){super(...e),i(this,"location",n.default.locationType),i(this,"rootURL",n.default.rootURL)}}e.default=r,r.map((function(){this.route("vault",{path:"/"},(function(){this.route("cluster",{path:"/:cluster_name"},(function(){this.route("dashboard"),this.mount("config-ui"),this.mount("sync"),this.route("oidc-provider-ns",{path:"/*namespace/identity/oidc/provider/:provider_name/authorize"}),this.route("oidc-provider",{path:"/identity/oidc/provider/:provider_name/authorize"}),this.route("oidc-callback",{path:"/auth/*auth_path/oidc/callback"}),this.route("auth"),this.route("redirect"),this.route("init"),this.route("logout"),this.route("license"),this.route("mfa-setup"),this.route("clients",(function(){this.route("counts",(function(){this.route("overview"),this.route("token"),this.route("sync"),this.route("acme")})),this.route("config"),this.route("edit")})),this.route("storage",{path:"/storage/raft"}),this.route("storage-restore",{path:"/storage/raft/restore"}),this.route("settings",(function(){this.route("index",{path:"/"}),this.route("seal"),this.route("auth",(function(){this.route("index",{path:"/"}),this.route("enable"),this.route("configure",{path:"/configure/:method"},(function(){this.route("index",{path:"/"}),this.route("section",{path:"/:section_name"})}))})),this.route("mount-secret-backend")})),this.route("unseal"),this.route("tools",(function(){this.route("tool",{path:"/:selected_action"}),this.mount("open-api-explorer",{path:"/api-explorer"})})),this.route("access",(function(){this.route("reset-password"),this.route("methods",{path:"/"}),this.route("method",{path:"/:path"},(function(){this.route("index",{path:"/"}),this.route("item",{path:"/item/:item_type"},(function(){this.route("list",{path:"/"}),this.route("create"),this.route("edit",{path:"/edit/:item_id"}),this.route("show",{path:"/show/:item_id"})})),this.route("section",{path:"/:section_name"})})),this.route("mfa",(function(){this.route("index",{path:"/"}),this.route("methods",(function(){this.route("index",{path:"/"}),this.route("create"),this.route("method",{path:"/:id"},(function(){this.route("edit"),this.route("enforcements")}))})),this.route("enforcements",(function(){this.route("index",{path:"/"}),this.route("create"),this.route("enforcement",{path:"/:name"},(function(){this.route("edit")}))}))})),this.route("leases",(function(){this.route("index",{path:"/"}),this.route("list-root",{path:"/list/"}),this.route("list",{path:"/list/*prefix"}),this.route("show",{path:"/show/*lease_id"})})),this.route("identity",{path:"/identity/:item_type"},(function(){this.route("index",{path:"/"}),this.route("create"),this.route("merge"),this.route("edit",{path:"/edit/:item_id"}),this.route("show",{path:"/:item_id/:section"}),this.route("aliases",(function(){this.route("index",{path:"/"}),this.route("add",{path:"/add/:item_id"}),this.route("edit",{path:"/edit/:item_alias_id"}),this.route("show",{path:"/:item_alias_id/:section"})}))})),this.route("control-groups"),this.route("control-groups-configure",{path:"/control-groups/configure"}),this.route("control-group-accessor",{path:"/control-groups/:accessor"}),this.route("namespaces",(function(){this.route("index",{path:"/"}),this.route("create")})),this.route("oidc",(function(){this.route("clients",(function(){this.route("create"),this.route("client",{path:"/:name"},(function(){this.route("details"),this.route("providers"),this.route("edit")}))})),this.route("keys",(function(){this.route("create"),this.route("key",{path:"/:name"},(function(){this.route("details"),this.route("clients"),this.route("edit")}))})),this.route("assignments",(function(){this.route("create"),this.route("assignment",{path:"/:name"},(function(){this.route("details"),this.route("edit")}))})),this.route("providers",(function(){this.route("create"),this.route("provider",{path:"/:name"},(function(){this.route("details"),this.route("clients"),this.route("edit")}))})),this.route("scopes",(function(){this.route("create"),this.route("scope",{path:"/:name"},(function(){this.route("details"),this.route("edit")}))}))}))})),this.route("secrets",(function(){this.route("backends",{path:"/"}),this.route("backend",{path:"/:backend"},(function(){this.mount("kmip"),this.mount("kubernetes"),this.mount("kv"),this.mount("ldap"),this.mount("pki"),this.route("index",{path:"/"}),this.route("configuration",(function(){this.route("edit")})),this.route("list-root",{path:"/list/"}),this.route("create-root",{path:"/create/"}),this.route("show-root",{path:"/show/"}),this.route("edit-root",{path:"/edit/"}),this.route("list",{path:"/list/*secret"}),this.route("show",{path:"/show/*secret"}),this.route("create",{path:"/create/*secret"}),this.route("edit",{path:"/edit/*secret"}),this.route("credentials-root",{path:"/credentials/"}),this.route("credentials",{path:"/credentials/*secret"}),this.route("sign-root",{path:"/sign/"}),this.route("sign",{path:"/sign/*secret"}),this.route("actions-root",{path:"/actions/"}),this.route("actions",{path:"/actions/*secret"}),this.route("overview")}))})),this.route("policies",{path:"/policies/:type"},(function(){this.route("index",{path:"/"}),this.route("create")})),this.route("policy",{path:"/policy/:type"},(function(){this.route("show",{path:"/:policy_name"}),this.route("edit",{path:"/:policy_name/edit"})})),this.route("replication-dr-promote",(function(){this.route("details")})),n.default.addRootMounts&&n.default.addRootMounts.call(this),this.route("not-found",{path:"/*path"})})),this.route("not-found",{path:"/*path"})})),"production"!==n.default.environment&&(0,l.addDocfyRoutes)(this)}))})),define("vault/routes/application",["exports","@ember/service","@ember/routing/route","vault/lib/control-group-error","@ember/object"],(function(e,t,n,l,i){var r,a,o,s,u,c,d,p
function f(e,t,n,l){n&&Object.defineProperty(e,t,{enumerable:n.enumerable,configurable:n.configurable,writable:n.writable,value:n.initializer?n.initializer.call(l):void 0})}function m(e,t,n,l,i){var r={}
return Object.keys(l).forEach((function(e){r[e]=l[e]})),r.enumerable=!!r.enumerable,r.configurable=!!r.configurable,("value"in r||r.initializer)&&(r.writable=!0),r=n.slice().reverse().reduce((function(n,l){return l(e,t,n)||n}),r),i&&void 0!==r.initializer&&(r.value=r.initializer?r.initializer.call(i):void 0,r.initializer=void 0),void 0===r.initializer?(Object.defineProperty(e,t,r),null):r}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default=(r=(0,t.service)("router"),a=(0,t.service)("namespace"),o=(0,t.service)("flags"),s=class extends n.default{constructor(...e){super(...e),f(this,"controlGroup",u,this),f(this,"routing",c,this),f(this,"namespaceService",d,this),f(this,"flagsService",p,this)}willTransition(){window.scrollTo(0,0)}error(e,t){const n=this.controlGroup
if(e instanceof l.default)return n.handleError(e)
"/v1/sys/wrapping/unwrap"===e.path&&n.unmarkTokenForUnwrap()
const i=this.routing
let r=t.intent.url
const{name:a,contexts:o,queryParams:s}=t.intent
if(!r)try{r=i.urlFor(a,...o||[],{queryParams:s})}catch(u){r=null}return r&&(r=r.replace("/ui","")),e.errorURL=r,s&&this.controllerFor("vault.cluster").set("namespaceQueryParam",s.namespace||""),r&&i.location.setURL(r),!0}beforeModel(){return this.flagsService.fetchFeatureFlags()}},u=m(s.prototype,"controlGroup",[t.service],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),c=m(s.prototype,"routing",[r],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),d=m(s.prototype,"namespaceService",[a],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),p=m(s.prototype,"flagsService",[o],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),m(s.prototype,"willTransition",[i.action],Object.getOwnPropertyDescriptor(s.prototype,"willTransition"),s.prototype),m(s.prototype,"error",[i.action],Object.getOwnPropertyDescriptor(s.prototype,"error"),s.prototype),s)})),define("vault/routes/loading",["exports","@ember/routing/route"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default=t.default.extend({setupController(e){this._super(...arguments)
const t=location.pathname||""
e.set("isCallback",t.includes("oidc/callback"))}})})),define("vault/routes/vault",["exports","@ember/runloop","rsvp","@ember/service","@ember/routing/route","ember"],(function(e,t,n,l,i,r){var a,o,s,u
function c(e,t,n,l){n&&Object.defineProperty(e,t,{enumerable:n.enumerable,configurable:n.configurable,writable:n.writable,value:n.initializer?n.initializer.call(l):void 0})}function d(e,t,n,l,i){var r={}
return Object.keys(l).forEach((function(e){r[e]=l[e]})),r.enumerable=!!r.enumerable,r.configurable=!!r.configurable,("value"in r||r.initializer)&&(r.writable=!0),r=n.slice().reverse().reduce((function(n,l){return l(e,t,n)||n}),r),i&&void 0!==r.initializer&&(r.value=r.initializer?r.initializer.call(i):void 0,r.initializer=void 0),void 0===r.initializer?(Object.defineProperty(e,t,r),null):r}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default=(a=class extends i.default{constructor(...e){super(...e),c(this,"router",o,this),c(this,"store",s,this),c(this,"version",u,this)}beforeModel(){return this.version.fetchType()}model(){const e=r.default.testing?0:300
return this.store.push({data:{id:"1",type:"cluster",attributes:{name:"vault"}}}),new n.Promise((n=>{(0,t.later)((()=>{n(this.store.peekAll("cluster"))}),e)}))}redirect(e,t){if(1===e.length&&"vault.index"===t.targetName)return this.router.transitionTo("vault.cluster",e[0].name)}},o=d(a.prototype,"router",[l.service],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),s=d(a.prototype,"store",[l.service],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),u=d(a.prototype,"version",[l.service],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),a)})),define("vault/routes/vault/cluster",["exports","@ember/service","@ember/object","rsvp","@ember/routing/route","ember-concurrency","ember","vault/lib/token-storage","vault/lib/local-storage","vault/mixins/cluster-route","vault/mixins/model-boundary-route","@ember/debug"],(function(e,t,n,l,i,r,a,o,s,u,c,d){Object.defineProperty(e,"__esModule",{value:!0}),e.getManagedNamespace=e.default=void 0
const p=(e,t)=>e&&e.replaceAll("/","")!==t?e.startsWith(`${t}/`)?e:`${t}/${e}`:t
e.getManagedNamespace=p
e.default=i.default.extend(c.default,u.default,{auth:(0,t.service)(),currentCluster:(0,t.service)(),customMessages:(0,t.service)(),flagsService:(0,t.service)("flags"),namespaceService:(0,t.service)("namespace"),permissions:(0,t.service)(),router:(0,t.service)(),store:(0,t.service)(),version:(0,t.service)(),modelTypes:(0,n.computed)((function(){return["node","secret","secret-engine"]})),queryParams:{namespaceQueryParam:{refreshModel:!0}},getClusterId(e){const{cluster_name:t}=e,n=this.store.peekAll("cluster").find((e=>e.name===t))
return n?.id??null},async beforeModel(){const e=this.paramsFor(this.routeName)
let t=e.namespaceQueryParam
const n=this.auth.currentTokenName,i=this.flagsService.hvdManagedNamespaceRoot
if(await this.flagsService.fetchActivatedFlags(),t||!n||a.default.testing){if(null!==i){const e=p(t,i)
e!==t&&this.router.transitionTo({queryParams:{namespace:e}})}}else{const e=(0,o.default)().getItem(n)
t=e?.userRootNamespace,t&&this.router.transitionTo({queryParams:{namespace:t}})}this.namespaceService.setNamespace(t)
const r=this.getClusterId(e)
return r?(this.auth.setCluster(r),this.auth.currentToken&&(this.version.fetchVersion(),await this.permissions.getPaths.perform()),this.version.fetchFeatures()):(0,l.reject)({httpStatus:404,message:"not found",path:e.cluster_name})},model(e){s.default.isLocalStorageSupported()
const t=this.getClusterId(e)
return this.store.findRecord("cluster",t)},poll:(0,r.task)((function*(){for(;;){if(a.default.testing)return
yield(0,r.timeout)(1e4)
try{yield this.controller.model.reload(),yield this.transitionToTargetRoute()}catch(e){}}})).cancelOn("deactivate").keepLatest(),afterModel(e,t){return this._super(...arguments),this.currentCluster.setCluster(e),e.needsInit&&this.auth.currentToken&&this.auth.deleteCurrentToken(),this.namespaceService.path&&!this.version.hasNamespaces?this.router.transitionTo(this.routeName,{queryParams:{namespace:""}}):this.transitionToTargetRoute(t)},setupController(){this._super(...arguments),this.poll.perform()},actions:{error(e){return 503===e.httpStatus&&"Vault is sealed"===e.errors[0]&&this.refresh(),!0}}})})),define("vault/routes/vault/cluster/access",["exports","@ember/object","@ember/routing/route","vault/mixins/cluster-route","vault/mixins/model-boundary-route"],(function(e,t,n,l,i){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default=n.default.extend(i.default,l.default,{modelTypes:(0,t.computed)((function(){return["capabilities","control-group","identity/group","identity/group-alias","identity/alias"]})),model:()=>({})})})),define("vault/routes/vault/cluster/access/control-group-accessor",["exports","@ember/service","@ember/routing/route","vault/mixins/unload-model-route"],(function(e,t,n,l){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default=n.default.extend(l.default,{store:(0,t.service)(),version:(0,t.service)(),beforeModel(){return this.version.fetchFeatures().then((()=>this._super(...arguments)))},model(e){return this.version.hasControlGroups?this.store.findRecord("control-group",e.accessor):null},actions:{willTransition:()=>!0,deactivate(){return this.unloadModel(),!0}}})})),define("vault/routes/vault/cluster/access/control-groups-configure",["exports","@ember/service","@ember/routing/route","vault/mixins/unload-model-route"],(function(e,t,n,l){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default=n.default.extend(l.default,{store:(0,t.service)(),version:(0,t.service)(),beforeModel(){return this.version.fetchFeatures().then((()=>this._super(...arguments)))},model(){const e="control-group-config"
return this.version.hasControlGroups?this.store.findRecord(e,"config").catch((t=>{if(404===t.httpStatus)return this.store.createRecord(e,{id:"config"})
throw t})):null},actions:{reload(){this.refresh()}}})}))
define("vault/routes/vault/cluster/access/control-groups",["exports","@ember/service","@ember/routing/route","vault/mixins/unload-model-route"],(function(e,t,n,l){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default=n.default.extend(l.default,{store:(0,t.service)(),version:(0,t.service)(),beforeModel(){return this.version.fetchFeatures().then((()=>this._super(...arguments)))},model(){return this.version.hasControlGroups?this.store.createRecord("control-group"):null}})})),define("vault/routes/vault/cluster/access/identity",["exports","@ember-data/adapter/error","@ember/object","@ember/routing/route"],(function(e,t,n,l){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
const i={entities:"entity",groups:"group"}
e.default=l.default.extend({model(e){const l=i[e.item_type]
if(!l){const e=new t.default
throw(0,n.set)(e,"httpStatus",404),e}return l}})})),define("vault/routes/vault/cluster/access/identity/aliases/add",["exports","@ember/routing/route","vault/mixins/unsaved-model-route","@ember/service"],(function(e,t,n,l){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default=t.default.extend(n.default,{store:(0,l.service)(),model(e){const t=`identity/${this.modelFor("vault.cluster.access.identity")}-alias`
return this.store.createRecord(t,{canonicalId:e.item_id})}})})),define("vault/routes/vault/cluster/access/identity/aliases/edit",["exports","@ember/routing/route","vault/mixins/unsaved-model-route","@ember/service"],(function(e,t,n,l){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default=t.default.extend(n.default,{store:(0,l.service)(),model(e){const t=`identity/${this.modelFor("vault.cluster.access.identity")}-alias`
return this.store.findRecord(t,e.item_alias_id)}})})),define("vault/routes/vault/cluster/access/identity/aliases/index",["exports","@ember/routing/route","core/mixins/list-route","@ember/service"],(function(e,t,n,l){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default=t.default.extend(n.default,{store:(0,l.service)(),model(e){const t=`identity/${this.modelFor("vault.cluster.access.identity")}-alias`
return this.store.lazyPaginatedQuery(t,{responsePath:"data.keys",page:e.page,pageFilter:e.pageFilter,sortBy:"name"}).catch((e=>{if(404===e.httpStatus)return[]
throw e}))},setupController(e){this._super(...arguments),e.set("identityType",this.modelFor("vault.cluster.access.identity"))},actions:{willTransition(e){return window.scrollTo(0,0),e&&e.targetName===this.routeName||this.store.clearAllDatasets(),!0},reload(){this.store.clearAllDatasets(),this.refresh()}}})})),define("vault/routes/vault/cluster/access/identity/aliases/show",["exports","@ember-data/adapter/error","rsvp","@ember/object","@ember/routing/route","vault/helpers/tabs-for-identity-show","@ember/service"],(function(e,t,n,l,i,r,a){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default=i.default.extend({store:(0,a.service)(),model(e){const{section:i}=e,a=this.modelFor("vault.cluster.access.identity")+"-alias",o=`identity/${a}`
if(!r.TABS[a].includes(i)){const e=new t.default
throw(0,l.set)(e,"httpStatus",404),e}return(0,n.hash)({model:this.store.findRecord(o,e.item_alias_id),section:i})},setupController(e,t){const{model:n,section:l}=t
e.setProperties({model:n,section:l})}})})),define("vault/routes/vault/cluster/access/identity/create",["exports","@ember/routing/route","vault/mixins/unsaved-model-route","@ember/service"],(function(e,t,n,l){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default=t.default.extend(n.default,{store:(0,l.service)(),model(){const e=`identity/${this.modelFor("vault.cluster.access.identity")}`
return this.store.createRecord(e)}})})),define("vault/routes/vault/cluster/access/identity/edit",["exports","@ember/routing/route","vault/mixins/unsaved-model-route","@ember/service"],(function(e,t,n,l){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default=t.default.extend(n.default,{store:(0,l.service)(),model(e){const t=`identity/${this.modelFor("vault.cluster.access.identity")}`
return this.store.findRecord(t,e.item_id)}})})),define("vault/routes/vault/cluster/access/identity/index",["exports","@ember/routing/route","core/mixins/list-route","@ember/service"],(function(e,t,n,l){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default=t.default.extend(n.default,{store:(0,l.service)(),model(e){const t=`identity/${this.modelFor("vault.cluster.access.identity")}`
return this.store.lazyPaginatedQuery(t,{responsePath:"data.keys",page:e.page,pageFilter:e.pageFilter,sortBy:"name"}).catch((e=>{if(404===e.httpStatus)return[]
throw e}))},setupController(e){this._super(...arguments),e.set("identityType",this.modelFor("vault.cluster.access.identity"))},actions:{willTransition(e){return window.scrollTo(0,0),e.targetName!==this.routeName&&this.store.clearAllDatasets(),!0},reload(){this.store.clearAllDatasets(),this.refresh()}}})})),define("vault/routes/vault/cluster/access/identity/merge",["exports","@ember/routing/route","vault/mixins/unload-model-route","@ember/service"],(function(e,t,n,l){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default=t.default.extend(n.default,{store:(0,l.service)(),router:(0,l.service)(),beforeModel(){if("entity"!==this.modelFor("vault.cluster.access.identity"))return this.router.transitionTo("vault.cluster.access.identity")},model(){return this.store.createRecord("identity/entity-merge")}})})),define("vault/routes/vault/cluster/access/identity/show",["exports","@ember-data/adapter/error","@ember/runloop","rsvp","@ember/object","@ember/routing/route","vault/helpers/tabs-for-identity-show","@ember/service"],(function(e,t,n,l,i,r,a,o){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default=r.default.extend({router:(0,o.service)(),store:(0,o.service)(),model(e){const{section:n}=e,r=this.modelFor("vault.cluster.access.identity"),o=`identity/${r}`
if(!a.TABS[r].includes(n)){const e=new t.default
throw(0,i.set)(e,"httpStatus",404),e}let s=this.store.peekRecord(o,e.item_id)
return s&&!s?.creationTime&&(s=s.reload()),s||(s=this.store.findRecord(o,e.item_id)),(0,l.hash)({model:s,section:n})},activate(){this.currentModel&&(0,n.next)((()=>{this.controller.model.reload()}))},afterModel(e){const{section:t,model:n}=e
if("group"===n?.identityType&&"internal"===n?.type&&"aliases"===t)return this.router.transitionTo("vault.cluster.access.identity.show",n.id,"details")},setupController(e,t){const{model:n,section:l}=t
e.setProperties({model:n,section:l})}})})),define("vault/routes/vault/cluster/access/leases",["exports","@ember/routing/route","vault/mixins/cluster-route","@ember/service"],(function(e,t,n,l){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default=t.default.extend(n.default,{store:(0,l.service)(),model(){return this.store.findRecord("capabilities","sys/leases/lookup/")}})})),define("vault/routes/vault/cluster/access/leases/index",["exports","@ember/routing/route","@ember/service"],(function(e,t,n){var l,i
Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default=(l=class extends t.default{constructor(...e){var t,n,l,r
super(...e),t=this,n="router",r=this,(l=i)&&Object.defineProperty(t,n,{enumerable:l.enumerable,configurable:l.configurable,writable:l.writable,value:l.initializer?l.initializer.call(r):void 0})}beforeModel(e){return this.modelFor("vault.cluster.access.leases").canList&&e.targetName===this.routeName?this.router.replaceWith("vault.cluster.access.leases.list-root"):void 0}},r=l.prototype,a="router",o=[n.service],s={configurable:!0,enumerable:!0,writable:!0,initializer:null},c={},Object.keys(s).forEach((function(e){c[e]=s[e]})),c.enumerable=!!c.enumerable,c.configurable=!!c.configurable,("value"in c||c.initializer)&&(c.writable=!0),c=o.slice().reverse().reduce((function(e,t){return t(r,a,e)||e}),c),u&&void 0!==c.initializer&&(c.value=c.initializer?c.initializer.call(u):void 0,c.initializer=void 0),i=void 0===c.initializer?(Object.defineProperty(r,a,c),null):c,l)
var r,a,o,s,u,c})),define("vault/routes/vault/cluster/access/leases/list-root",["exports","vault/routes/vault/cluster/access/leases/list"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.default}})})),define("vault/routes/vault/cluster/access/leases/list",["exports","@ember/object","rsvp","@ember/routing/route","@ember/service"],(function(e,t,n,l,i){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default=l.default.extend({store:(0,i.service)(),queryParams:{page:{refreshModel:!0},pageFilter:{refreshModel:!0}},templateName:"vault/cluster/access/leases/list",model(e){const t=e.prefix||""
if(this.modelFor("vault.cluster.access.leases").canList)return(0,n.hash)({leases:this.store.lazyPaginatedQuery("lease",{prefix:t,responsePath:"data.keys",page:e.page,pageFilter:e.pageFilter}).then((e=>(this.set("has404",!1),e))).catch((e=>{if(404===e.httpStatus&&""===t)return[]
throw e})),capabilities:(0,n.hash)({revokePrefix:this.store.findRecord("capabilities",`sys/leases/revoke-prefix/${t}`),forceRevokePrefix:this.store.findRecord("capabilities",`sys/leases/revoke-force/${t}`)})})},setupController(e,t){const n=this.paramsFor(this.routeName),l=n.prefix?n.prefix:"",i=this.has404
if(e.set("hasModel",!0),e.setProperties({model:t.leases,capabilities:t.capabilities,baseKey:{id:l},has404:i}),!i){const i=n.pageFilter
let r
l?r=l+(i||""):i&&(r=i),e.setProperties({filter:r||"",page:t.leases?.meta?.currentPage})}},resetController(e,t){this._super(...arguments),t&&e.set("filter","")},actions:{error(e,n){const{prefix:l}=this.paramsFor(this.routeName);(0,t.set)(e,"keyId",l)
if(!this.controllerFor(this.routeName).hasModel||404!==e.httpStatus)return!0
this.set("has404",!0),n.abort()},willTransition(e){return window.scrollTo(0,0),e.targetName!==this.routeName&&this.store.clearAllDatasets(),!0}}})})),define("vault/routes/vault/cluster/access/leases/show",["exports","rsvp","@ember/object","@ember/routing/route","@ember/service","core/utils/key-utils","vault/mixins/unload-model-route"],(function(e,t,n,l,i,r,a){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default=l.default.extend(a.default,{store:(0,i.service)(),router:(0,i.service)(),beforeModel(){const{lease_id:e}=this.paramsFor(this.routeName),t=(0,r.parentKeyForKey)(e)
if((0,r.keyIsFolder)(e))return t?this.router.transitionTo("vault.cluster.access.leases.list",t):this.router.transitionTo("vault.cluster.access.leases.list-root")},model(e){const{lease_id:n}=e
return(0,t.hash)({lease:this.store.queryRecord("lease",{lease_id:n}),capabilities:(0,t.hash)({renew:this.store.findRecord("capabilities","sys/leases/renew"),revoke:this.store.findRecord("capabilities","sys/leases/revoke"),leases:this.modelFor("vault.cluster.access.leases")})})},setupController(e,t){this._super(...arguments)
const{lease_id:n}=this.paramsFor(this.routeName)
e.setProperties({model:t.lease,capabilities:t.capabilities,baseKey:{id:n}})},actions:{error(e){const{lease_id:t}=this.paramsFor(this.routeName)
return(0,n.set)(e,"keyId",t),!0},refreshModel(){this.refresh()}}})})),define("vault/routes/vault/cluster/access/method",["exports","@ember-data/adapter/error","@ember/object","@ember/routing/route","@ember/service","vault/helpers/supported-managed-auth-backends"],(function(e,t,n,l,i,r){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default=l.default.extend({store:(0,i.service)(),pathHelp:(0,i.service)("path-help"),model(e){const{path:l}=e
return this.store.findAll("auth-method",{adapterOptions:{useMountsEndpoint:!0}}).then((e=>{const i=e.find((e=>e.id===l))
if(!i){const e=new t.default
throw(0,n.set)(e,"httpStatus",404),e}return(0,r.supportedManagedAuthBackends)().includes(i.methodType)?this.pathHelp.getPaths(i.apiPath,l).then((e=>(i.set("paths",e),i))):(i.set("paths",{apiPath:i.apiPath,paths:[]}),i)}))}})})),define("vault/routes/vault/cluster/access/method/index",["exports","@ember/routing/route","@ember/service","vault/helpers/tabs-for-auth-section"],(function(e,t,n,l){var i,r
Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default=(i=class extends t.default{constructor(...e){var t,n,l,i
super(...e),t=this,n="router",i=this,(l=r)&&Object.defineProperty(t,n,{enumerable:l.enumerable,configurable:l.configurable,writable:l.writable,value:l.initializer?l.initializer.call(i):void 0})}beforeModel(){const e=this.modelFor("vault.cluster.access.method"),t=e.paths?e.paths.paths.filter((e=>!0===e.navigation)):null,n=(0,l.tabsForAuthSection)([e,"authConfig",t])[0]
return this.router.transitionTo(n.route,...n.routeParams)}},a=i.prototype,o="router",s=[n.service],u={configurable:!0,enumerable:!0,writable:!0,initializer:null},d={},Object.keys(u).forEach((function(e){d[e]=u[e]})),d.enumerable=!!d.enumerable,d.configurable=!!d.configurable,("value"in d||d.initializer)&&(d.writable=!0),d=s.slice().reverse().reduce((function(e,t){return t(a,o,e)||e}),d),c&&void 0!==d.initializer&&(d.value=d.initializer?d.initializer.call(c):void 0,d.initializer=void 0),r=void 0===d.initializer?(Object.defineProperty(a,o,d),null):d,i)
var a,o,s,u,c,d})),define("vault/routes/vault/cluster/access/method/item",["exports","@ember/service","@ember/routing/route","ember-inflector"],(function(e,t,n,l){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default=n.default.extend({pathHelp:(0,t.service)("path-help"),beforeModel(){const{apiPath:e,type:t,authMethodPath:n,itemType:i}=this.getMethodAndModelInfo(),r=`generated-${(0,l.singularize)(i)}-${t}`
return this.pathHelp.getNewModel(r,n,e,i)},getMethodAndModelInfo(){const{item_type:e}=this.paramsFor(this.routeName),{path:t}=this.paramsFor("vault.cluster.access.method"),n=this.modelFor("vault.cluster.access.method"),{apiPath:l,type:i}=n
return{apiPath:l,type:i,authMethodPath:t,itemType:e}},setupController(e){this._super(...arguments)
const{apiPath:t,authMethodPath:n,itemType:l}=this.getMethodAndModelInfo()
e.set("itemType",l),this.pathHelp.getPaths(t,n,l).then((t=>{const n=t.paths.filter((e=>e.navigation))
e.set("paths",n.filter((e=>e.itemType.includes(l))).map((e=>e.path)))}))}})})),define("vault/routes/vault/cluster/access/method/item/create",["exports","@ember/routing/route","vault/mixins/unsaved-model-route","ember-inflector","@ember/service"],(function(e,t,n,l,i){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default=t.default.extend(n.default,{store:(0,i.service)(),model(){const{item_type:e}=this.paramsFor("vault.cluster.access.method.item"),t=this.modelFor("vault.cluster.access.method"),{type:n}=t,{path:i}=this.paramsFor("vault.cluster.access.method"),r=`generated-${(0,l.singularize)(e)}-${n}`
return this.store.createRecord(r,{itemType:e,method:i,adapterOptions:{path:`${i}/${e}`}})},setupController(e){this._super(...arguments)
const{item_type:t}=this.paramsFor("vault.cluster.access.method.item"),{path:n}=this.paramsFor("vault.cluster.access.method")
e.set("itemType",(0,l.singularize)(t)),e.set("mode","create"),e.set("method",n)}})})),define("vault/routes/vault/cluster/access/method/item/edit",["exports","@ember/routing/route","vault/mixins/unsaved-model-route","ember-inflector","@ember/service"],(function(e,t,n,l,i){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default=t.default.extend(n.default,{store:(0,i.service)(),model(e){const t=e.item_id,{item_type:n}=this.paramsFor("vault.cluster.access.method.item"),i=this.modelFor("vault.cluster.access.method"),r=`generated-${(0,l.singularize)(n)}-${i.type}`
return this.store.queryRecord(r,{id:t,authMethodPath:i.id})},setupController(e){this._super(...arguments)
const{item_type:t}=this.paramsFor("vault.cluster.access.method.item"),{path:n}=this.paramsFor("vault.cluster.access.method")
e.set("itemType",(0,l.singularize)(t)),e.set("method",n)}})})),define("vault/routes/vault/cluster/access/method/item/list",["exports","@ember/service","@ember/routing/route","ember-inflector","vault/mixins/list-route"],(function(e,t,n,l,i){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default=n.default.extend(i.default,{store:(0,t.service)(),pathHelp:(0,t.service)("path-help"),getMethodAndModelInfo(){const{item_type:e}=this.paramsFor("vault.cluster.access.method.item"),{path:t}=this.paramsFor("vault.cluster.access.method"),n=this.modelFor("vault.cluster.access.method"),{apiPath:l,type:i}=n
return{apiPath:l,type:i,authMethodPath:t,itemType:e,methodModel:n}},model(){const{type:e,authMethodPath:t,itemType:n}=this.getMethodAndModelInfo(),{page:i,pageFilter:r}=this.paramsFor(this.routeName),a=`generated-${(0,l.singularize)(n)}-${e}`
return this.store.lazyPaginatedQuery(a,{responsePath:"data.keys",page:i,pageFilter:r,type:n,id:t}).catch((e=>{if(404===e.httpStatus)return[]
throw e}))},actions:{willTransition(e){return window.scrollTo(0,0),e.targetName!==this.routeName&&this.store.clearAllDatasets(),!0},reload(){this.store.clearAllDatasets(),this.refresh()}},setupController(e){this._super(...arguments)
const{apiPath:t,authMethodPath:n,itemType:l,methodModel:i}=this.getMethodAndModelInfo()
e.set("itemType",l),e.set("methodModel",i),this.pathHelp.getPaths(t,n,l).then((t=>{e.set("paths",t.paths.filter((e=>e.navigation&&e.itemType.includes(l))))}))}})})),define("vault/routes/vault/cluster/access/method/item/show",["exports","ember-inflector","@ember/service","@ember/routing/route"],(function(e,t,n,l){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default=l.default.extend({store:(0,n.service)(),pathHelp:(0,n.service)("path-help"),model(e){const n=e.item_id,{item_type:l}=this.paramsFor("vault.cluster.access.method.item"),i=this.modelFor("vault.cluster.access.method"),r=`generated-${(0,t.singularize)(l)}-${i.type}`
return this.store.queryRecord(r,{id:n,authMethodPath:i.id})},setupController(e){this._super(...arguments)
const{item_type:n}=this.paramsFor("vault.cluster.access.method.item"),{path:l}=this.paramsFor("vault.cluster.access.method")
e.set("itemType",(0,t.singularize)(n)),e.set("method",l)}})})),define("vault/routes/vault/cluster/access/method/section",["exports","@ember-data/adapter/error","@ember/object","@ember/routing/route"],(function(e,t,n,l){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default=l.default.extend({model(e){const{section_name:l}=e
if("configuration"!==l){const e=new t.default
throw(0,n.set)(e,"httpStatus",404),e}return this.modelFor("vault.cluster.access.method")},setupController(e){const{section_name:t}=this.paramsFor(this.routeName)
this._super(...arguments),e.set("section",t)
const n=this.modelFor("vault.cluster.access.method")
e.set("paths",n.paths.paths.filter((e=>e.navigation)))}})})),define("vault/routes/vault/cluster/access/methods",["exports","@ember/routing/route","@ember/service"],(function(e,t,n){var l,i
function r(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e
var n=e[Symbol.toPrimitive]
if(void 0!==n){var l=n.call(e,t||"default")
if("object"!=typeof l)return l
throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string")
return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default=(l=class extends t.default{constructor(...e){var t,n,l,a
super(...e),t=this,n="store",a=this,(l=i)&&Object.defineProperty(t,n,{enumerable:l.enumerable,configurable:l.configurable,writable:l.writable,value:l.initializer?l.initializer.call(a):void 0}),r(this,"queryParams",{page:{refreshModel:!0},pageFilter:{refreshModel:!0}})}model(){return this.store.findAll("auth-method")}},a=l.prototype,o="store",s=[n.service],u={configurable:!0,enumerable:!0,writable:!0,initializer:null},d={},Object.keys(u).forEach((function(e){d[e]=u[e]})),d.enumerable=!!d.enumerable,d.configurable=!!d.configurable,("value"in d||d.initializer)&&(d.writable=!0),d=s.slice().reverse().reduce((function(e,t){return t(a,o,e)||e}),d),c&&void 0!==d.initializer&&(d.value=d.initializer?d.initializer.call(c):void 0,d.initializer=void 0),i=void 0===d.initializer?(Object.defineProperty(a,o,d),null):d,l)
var a,o,s,u,c,d})),define("vault/routes/vault/cluster/access/mfa/enforcements/create",["exports","@ember/routing/route","@ember/service"],(function(e,t,n){var l,i
Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default=(l=class extends t.default{constructor(...e){var t,n,l,r
super(...e),t=this,n="store",r=this,(l=i)&&Object.defineProperty(t,n,{enumerable:l.enumerable,configurable:l.configurable,writable:l.writable,value:l.initializer?l.initializer.call(r):void 0})}model(){return this.store.createRecord("mfa-login-enforcement")}},r=l.prototype,a="store",o=[n.service],s={configurable:!0,enumerable:!0,writable:!0,initializer:null},c={},Object.keys(s).forEach((function(e){c[e]=s[e]})),c.enumerable=!!c.enumerable,c.configurable=!!c.configurable,("value"in c||c.initializer)&&(c.writable=!0),c=o.slice().reverse().reduce((function(e,t){return t(r,a,e)||e}),c),u&&void 0!==c.initializer&&(c.value=c.initializer?c.initializer.call(u):void 0,c.initializer=void 0),i=void 0===c.initializer?(Object.defineProperty(r,a,c),null):c,l)
var r,a,o,s,u,c})),define("vault/routes/vault/cluster/access/mfa/enforcements/enforcement",["exports","@ember/routing/route","@ember/service"],(function(e,t,n){var l,i
Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default=(l=class extends t.default{constructor(...e){var t,n,l,r
super(...e),t=this,n="store",r=this,(l=i)&&Object.defineProperty(t,n,{enumerable:l.enumerable,configurable:l.configurable,writable:l.writable,value:l.initializer?l.initializer.call(r):void 0})}model({name:e}){return this.store.findRecord("mfa-login-enforcement",e)}},r=l.prototype,a="store",o=[n.service],s={configurable:!0,enumerable:!0,writable:!0,initializer:null},c={},Object.keys(s).forEach((function(e){c[e]=s[e]})),c.enumerable=!!c.enumerable,c.configurable=!!c.configurable,("value"in c||c.initializer)&&(c.writable=!0),c=o.slice().reverse().reduce((function(e,t){return t(r,a,e)||e}),c),u&&void 0!==c.initializer&&(c.value=c.initializer?c.initializer.call(u):void 0,c.initializer=void 0),i=void 0===c.initializer?(Object.defineProperty(r,a,c),null):c,l)
var r,a,o,s,u,c})),define("vault/routes/vault/cluster/access/mfa/enforcements/enforcement/edit",["exports","@ember/routing/route"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
class n extends t.default{}e.default=n})),define("vault/routes/vault/cluster/access/mfa/enforcements/index",["exports","@ember/routing/route","@ember/service"],(function(e,t,n){var l,i
Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default=(l=class extends t.default{constructor(...e){var t,n,l,r
super(...e),t=this,n="store",r=this,(l=i)&&Object.defineProperty(t,n,{enumerable:l.enumerable,configurable:l.configurable,writable:l.writable,value:l.initializer?l.initializer.call(r):void 0})}model(){return this.store.query("mfa-login-enforcement",{}).catch((e=>{if(404===e.httpStatus)return[]
throw e}))}setupController(e,t){e.set("model",t)}},r=l.prototype,a="store",o=[n.service],s={configurable:!0,enumerable:!0,writable:!0,initializer:null},c={},Object.keys(s).forEach((function(e){c[e]=s[e]})),c.enumerable=!!c.enumerable,c.configurable=!!c.configurable,("value"in c||c.initializer)&&(c.writable=!0),c=o.slice().reverse().reduce((function(e,t){return t(r,a,e)||e}),c),u&&void 0!==c.initializer&&(c.value=c.initializer?c.initializer.call(u):void 0,c.initializer=void 0),i=void 0===c.initializer?(Object.defineProperty(r,a,c),null):c,l)
var r,a,o,s,u,c})),define("vault/routes/vault/cluster/access/mfa/index",["exports","@ember/routing/route","@ember/service"],(function(e,t,n){var l,i,r
function a(e,t,n,l){n&&Object.defineProperty(e,t,{enumerable:n.enumerable,configurable:n.configurable,writable:n.writable,value:n.initializer?n.initializer.call(l):void 0})}function o(e,t,n,l,i){var r={}
return Object.keys(l).forEach((function(e){r[e]=l[e]})),r.enumerable=!!r.enumerable,r.configurable=!!r.configurable,("value"in r||r.initializer)&&(r.writable=!0),r=n.slice().reverse().reduce((function(n,l){return l(e,t,n)||n}),r),i&&void 0!==r.initializer&&(r.value=r.initializer?r.initializer.call(i):void 0,r.initializer=void 0),void 0===r.initializer?(Object.defineProperty(e,t,r),null):r}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default=(l=class extends t.default{constructor(...e){super(...e),a(this,"router",i,this),a(this,"store",r,this)}beforeModel(){return this.store.query("mfa-method",{}).then((()=>{this.router.transitionTo("vault.cluster.access.mfa.methods.index")})).catch((()=>{}))}},i=o(l.prototype,"router",[n.service],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),r=o(l.prototype,"store",[n.service],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),l)}))
define("vault/routes/vault/cluster/access/mfa/methods/create",["exports","@ember/routing/route"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
class n extends t.default{setupController(e){super.setupController(...arguments)
const{type:t}=e
t&&e.createModels()}resetController(e,t){t&&e.set("type",null)}}e.default=n})),define("vault/routes/vault/cluster/access/mfa/methods/index",["exports","@ember/routing/route","@ember/service"],(function(e,t,n){var l,i,r
function a(e,t,n,l){n&&Object.defineProperty(e,t,{enumerable:n.enumerable,configurable:n.configurable,writable:n.writable,value:n.initializer?n.initializer.call(l):void 0})}function o(e,t,n,l,i){var r={}
return Object.keys(l).forEach((function(e){r[e]=l[e]})),r.enumerable=!!r.enumerable,r.configurable=!!r.configurable,("value"in r||r.initializer)&&(r.writable=!0),r=n.slice().reverse().reduce((function(n,l){return l(e,t,n)||n}),r),i&&void 0!==r.initializer&&(r.value=r.initializer?r.initializer.call(i):void 0,r.initializer=void 0),void 0===r.initializer?(Object.defineProperty(e,t,r),null):r}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default=(l=class extends t.default{constructor(...e){super(...e),a(this,"store",i,this),a(this,"router",r,this)}model(){return this.store.query("mfa-method",{}).catch((e=>{if(404===e.httpStatus)return[]
throw e}))}afterModel(e){0===e.length&&this.router.transitionTo("vault.cluster.access.mfa")}setupController(e,t){e.set("model",t)}},i=o(l.prototype,"store",[n.service],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),r=o(l.prototype,"router",[n.service],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),l)})),define("vault/routes/vault/cluster/access/mfa/methods/method",["exports","@ember/routing/route","rsvp","@ember/service"],(function(e,t,n,l){var i,r
Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default=(i=class extends t.default{constructor(...e){var t,n,l,i
super(...e),t=this,n="store",i=this,(l=r)&&Object.defineProperty(t,n,{enumerable:l.enumerable,configurable:l.configurable,writable:l.writable,value:l.initializer?l.initializer.call(i):void 0})}model({id:e}){return(0,n.hash)({method:this.store.findRecord("mfa-method",e).then((e=>e)),enforcements:this.store.query("mfa-login-enforcement",{}).then((t=>t.filter((t=>t.hasMany("mfa_methods").ids().includes(e))))).catch((()=>{}))})}setupController(e,t){e.set("model",t)}},a=i.prototype,o="store",s=[l.service],u={configurable:!0,enumerable:!0,writable:!0,initializer:null},d={},Object.keys(u).forEach((function(e){d[e]=u[e]})),d.enumerable=!!d.enumerable,d.configurable=!!d.configurable,("value"in d||d.initializer)&&(d.writable=!0),d=s.slice().reverse().reduce((function(e,t){return t(a,o,e)||e}),d),c&&void 0!==d.initializer&&(d.value=d.initializer?d.initializer.call(c):void 0,d.initializer=void 0),r=void 0===d.initializer?(Object.defineProperty(a,o,d),null):d,i)
var a,o,s,u,c,d})),define("vault/routes/vault/cluster/access/mfa/methods/method/edit",["exports","@ember/routing/route"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
class n extends t.default{}e.default=n})),define("vault/routes/vault/cluster/access/namespaces/create",["exports","@ember/service","@ember/routing/route","vault/mixins/unload-model-route"],(function(e,t,n,l){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default=n.default.extend(l.default,{store:(0,t.service)(),version:(0,t.service)(),beforeModel(){return this.version.fetchFeatures().then((()=>this._super(...arguments)))},model(){return this.version.hasNamespaces?this.store.createRecord("namespace"):null}})})),define("vault/routes/vault/cluster/access/namespaces/index",["exports","@ember/service","@ember/routing/route","vault/mixins/unload-model-route"],(function(e,t,n,l){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default=n.default.extend(l.default,{store:(0,t.service)(),queryParams:{page:{refreshModel:!0}},version:(0,t.service)(),beforeModel(){return this.store.unloadAll("namespace"),this.version.fetchFeatures().then((()=>this._super(...arguments)))},model(e){return this.version.hasNamespaces?this.store.lazyPaginatedQuery("namespace",{responsePath:"data.keys",page:Number(e?.page)||1}).then((e=>e)).catch((e=>{if(404===e.httpStatus)return[]
throw e})):null},setupController(e,t){const n=this.has404
e.setProperties({model:t,has404:n,hasModel:!0}),n||e.setProperties({page:Number(t?.meta?.currentPage)||1})},actions:{error(e,t){if(!this.controllerFor(this.routeName).hasModel||404!==e.httpStatus)return!0
this.set("has404",!0),t.abort()},willTransition(e){return window.scrollTo(0,0),e&&e.targetName===this.routeName||this.store.clearAllDatasets(),!0},reload(){this.store.clearAllDatasets(),this.refresh()}}})})),define("vault/routes/vault/cluster/access/oidc",["exports","@ember/routing/route"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
class n extends t.default{}e.default=n})),define("vault/routes/vault/cluster/access/oidc/assignments/assignment",["exports","@ember/routing/route","@ember/service"],(function(e,t,n){var l,i
Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default=(l=class extends t.default{constructor(...e){var t,n,l,r
super(...e),t=this,n="store",r=this,(l=i)&&Object.defineProperty(t,n,{enumerable:l.enumerable,configurable:l.configurable,writable:l.writable,value:l.initializer?l.initializer.call(r):void 0})}model({name:e}){return this.store.findRecord("oidc/assignment",e)}},r=l.prototype,a="store",o=[n.service],s={configurable:!0,enumerable:!0,writable:!0,initializer:null},c={},Object.keys(s).forEach((function(e){c[e]=s[e]})),c.enumerable=!!c.enumerable,c.configurable=!!c.configurable,("value"in c||c.initializer)&&(c.writable=!0),c=o.slice().reverse().reduce((function(e,t){return t(r,a,e)||e}),c),u&&void 0!==c.initializer&&(c.value=c.initializer?c.initializer.call(u):void 0,c.initializer=void 0),i=void 0===c.initializer?(Object.defineProperty(r,a,c),null):c,l)
var r,a,o,s,u,c})),define("vault/routes/vault/cluster/access/oidc/assignments/assignment/details",["exports","@ember/routing/route"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
class n extends t.default{}e.default=n})),define("vault/routes/vault/cluster/access/oidc/assignments/assignment/edit",["exports","@ember/routing/route"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
class n extends t.default{}e.default=n})),define("vault/routes/vault/cluster/access/oidc/assignments/create",["exports","@ember/routing/route","@ember/service"],(function(e,t,n){var l,i
Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default=(l=class extends t.default{constructor(...e){var t,n,l,r
super(...e),t=this,n="store",r=this,(l=i)&&Object.defineProperty(t,n,{enumerable:l.enumerable,configurable:l.configurable,writable:l.writable,value:l.initializer?l.initializer.call(r):void 0})}model(){return this.store.createRecord("oidc/assignment")}},r=l.prototype,a="store",o=[n.service],s={configurable:!0,enumerable:!0,writable:!0,initializer:null},c={},Object.keys(s).forEach((function(e){c[e]=s[e]})),c.enumerable=!!c.enumerable,c.configurable=!!c.configurable,("value"in c||c.initializer)&&(c.writable=!0),c=o.slice().reverse().reduce((function(e,t){return t(r,a,e)||e}),c),u&&void 0!==c.initializer&&(c.value=c.initializer?c.initializer.call(u):void 0,c.initializer=void 0),i=void 0===c.initializer?(Object.defineProperty(r,a,c),null):c,l)
var r,a,o,s,u,c})),define("vault/routes/vault/cluster/access/oidc/assignments/index",["exports","@ember/routing/route","@ember/service"],(function(e,t,n){var l,i
Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default=(l=class extends t.default{constructor(...e){var t,n,l,r
super(...e),t=this,n="store",r=this,(l=i)&&Object.defineProperty(t,n,{enumerable:l.enumerable,configurable:l.configurable,writable:l.writable,value:l.initializer?l.initializer.call(r):void 0})}model(){return this.store.query("oidc/assignment",{}).catch((e=>{if(404===e.httpStatus)return[]
throw e}))}},r=l.prototype,a="store",o=[n.service],s={configurable:!0,enumerable:!0,writable:!0,initializer:null},c={},Object.keys(s).forEach((function(e){c[e]=s[e]})),c.enumerable=!!c.enumerable,c.configurable=!!c.configurable,("value"in c||c.initializer)&&(c.writable=!0),c=o.slice().reverse().reduce((function(e,t){return t(r,a,e)||e}),c),u&&void 0!==c.initializer&&(c.value=c.initializer?c.initializer.call(u):void 0,c.initializer=void 0),i=void 0===c.initializer?(Object.defineProperty(r,a,c),null):c,l)
var r,a,o,s,u,c})),define("vault/routes/vault/cluster/access/oidc/clients/client",["exports","@ember/routing/route","@ember/service"],(function(e,t,n){var l,i
Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default=(l=class extends t.default{constructor(...e){var t,n,l,r
super(...e),t=this,n="store",r=this,(l=i)&&Object.defineProperty(t,n,{enumerable:l.enumerable,configurable:l.configurable,writable:l.writable,value:l.initializer?l.initializer.call(r):void 0})}model({name:e}){return this.store.findRecord("oidc/client",e)}},r=l.prototype,a="store",o=[n.service],s={configurable:!0,enumerable:!0,writable:!0,initializer:null},c={},Object.keys(s).forEach((function(e){c[e]=s[e]})),c.enumerable=!!c.enumerable,c.configurable=!!c.configurable,("value"in c||c.initializer)&&(c.writable=!0),c=o.slice().reverse().reduce((function(e,t){return t(r,a,e)||e}),c),u&&void 0!==c.initializer&&(c.value=c.initializer?c.initializer.call(u):void 0,c.initializer=void 0),i=void 0===c.initializer?(Object.defineProperty(r,a,c),null):c,l)
var r,a,o,s,u,c})),define("vault/routes/vault/cluster/access/oidc/clients/client/details",["exports","@ember/routing/route"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
class n extends t.default{}e.default=n})),define("vault/routes/vault/cluster/access/oidc/clients/client/edit",["exports","@ember/routing/route"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
class n extends t.default{}e.default=n})),define("vault/routes/vault/cluster/access/oidc/clients/client/providers",["exports","@ember/routing/route","@ember/service"],(function(e,t,n){var l,i
Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default=(l=class extends t.default{constructor(...e){var t,n,l,r
super(...e),t=this,n="store",r=this,(l=i)&&Object.defineProperty(t,n,{enumerable:l.enumerable,configurable:l.configurable,writable:l.writable,value:l.initializer?l.initializer.call(r):void 0})}model(){const e=this.modelFor("vault.cluster.access.oidc.clients.client")
return this.store.query("oidc/provider",{allowed_client_id:e.clientId}).catch((e=>{if(404===e.httpStatus)return[]
throw e}))}},r=l.prototype,a="store",o=[n.service],s={configurable:!0,enumerable:!0,writable:!0,initializer:null},c={},Object.keys(s).forEach((function(e){c[e]=s[e]})),c.enumerable=!!c.enumerable,c.configurable=!!c.configurable,("value"in c||c.initializer)&&(c.writable=!0),c=o.slice().reverse().reduce((function(e,t){return t(r,a,e)||e}),c),u&&void 0!==c.initializer&&(c.value=c.initializer?c.initializer.call(u):void 0,c.initializer=void 0),i=void 0===c.initializer?(Object.defineProperty(r,a,c),null):c,l)
var r,a,o,s,u,c})),define("vault/routes/vault/cluster/access/oidc/clients/create",["exports","@ember/routing/route","@ember/service"],(function(e,t,n){var l,i
Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default=(l=class extends t.default{constructor(...e){var t,n,l,r
super(...e),t=this,n="store",r=this,(l=i)&&Object.defineProperty(t,n,{enumerable:l.enumerable,configurable:l.configurable,writable:l.writable,value:l.initializer?l.initializer.call(r):void 0})}model(){return this.store.createRecord("oidc/client")}},r=l.prototype,a="store",o=[n.service],s={configurable:!0,enumerable:!0,writable:!0,initializer:null},c={},Object.keys(s).forEach((function(e){c[e]=s[e]})),c.enumerable=!!c.enumerable,c.configurable=!!c.configurable,("value"in c||c.initializer)&&(c.writable=!0),c=o.slice().reverse().reduce((function(e,t){return t(r,a,e)||e}),c),u&&void 0!==c.initializer&&(c.value=c.initializer?c.initializer.call(u):void 0,c.initializer=void 0),i=void 0===c.initializer?(Object.defineProperty(r,a,c),null):c,l)
var r,a,o,s,u,c})),define("vault/routes/vault/cluster/access/oidc/clients/index",["exports","@ember/routing/route","@ember/service"],(function(e,t,n){var l,i,r
function a(e,t,n,l){n&&Object.defineProperty(e,t,{enumerable:n.enumerable,configurable:n.configurable,writable:n.writable,value:n.initializer?n.initializer.call(l):void 0})}function o(e,t,n,l,i){var r={}
return Object.keys(l).forEach((function(e){r[e]=l[e]})),r.enumerable=!!r.enumerable,r.configurable=!!r.configurable,("value"in r||r.initializer)&&(r.writable=!0),r=n.slice().reverse().reduce((function(n,l){return l(e,t,n)||n}),r),i&&void 0!==r.initializer&&(r.value=r.initializer?r.initializer.call(i):void 0,r.initializer=void 0),void 0===r.initializer?(Object.defineProperty(e,t,r),null):r}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default=(l=class extends t.default{constructor(...e){super(...e),a(this,"store",i,this),a(this,"router",r,this)}model(){return this.store.query("oidc/client",{}).catch((e=>{if(404===e.httpStatus)return[]
throw e}))}afterModel(e){0===e.length&&this.router.transitionTo("vault.cluster.access.oidc")}},i=o(l.prototype,"store",[n.service],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),r=o(l.prototype,"router",[n.service],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),l)})),define("vault/routes/vault/cluster/access/oidc/index",["exports","@ember/routing/route","@ember/service"],(function(e,t,n){var l,i,r
function a(e,t,n,l){n&&Object.defineProperty(e,t,{enumerable:n.enumerable,configurable:n.configurable,writable:n.writable,value:n.initializer?n.initializer.call(l):void 0})}function o(e,t,n,l,i){var r={}
return Object.keys(l).forEach((function(e){r[e]=l[e]})),r.enumerable=!!r.enumerable,r.configurable=!!r.configurable,("value"in r||r.initializer)&&(r.writable=!0),r=n.slice().reverse().reduce((function(n,l){return l(e,t,n)||n}),r),i&&void 0!==r.initializer&&(r.value=r.initializer?r.initializer.call(i):void 0,r.initializer=void 0),void 0===r.initializer?(Object.defineProperty(e,t,r),null):r}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default=(l=class extends t.default{constructor(...e){super(...e),a(this,"store",i,this),a(this,"router",r,this)}beforeModel(){return this.store.query("oidc/client",{}).then((()=>{this.router.transitionTo("vault.cluster.access.oidc.clients")})).catch((()=>{}))}},i=o(l.prototype,"store",[n.service],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),r=o(l.prototype,"router",[n.service],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),l)})),define("vault/routes/vault/cluster/access/oidc/keys/create",["exports","@ember/routing/route","@ember/service"],(function(e,t,n){var l,i
Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default=(l=class extends t.default{constructor(...e){var t,n,l,r
super(...e),t=this,n="store",r=this,(l=i)&&Object.defineProperty(t,n,{enumerable:l.enumerable,configurable:l.configurable,writable:l.writable,value:l.initializer?l.initializer.call(r):void 0})}model(){return this.store.createRecord("oidc/key")}},r=l.prototype,a="store",o=[n.service],s={configurable:!0,enumerable:!0,writable:!0,initializer:null},c={},Object.keys(s).forEach((function(e){c[e]=s[e]})),c.enumerable=!!c.enumerable,c.configurable=!!c.configurable,("value"in c||c.initializer)&&(c.writable=!0),c=o.slice().reverse().reduce((function(e,t){return t(r,a,e)||e}),c),u&&void 0!==c.initializer&&(c.value=c.initializer?c.initializer.call(u):void 0,c.initializer=void 0),i=void 0===c.initializer?(Object.defineProperty(r,a,c),null):c,l)
var r,a,o,s,u,c})),define("vault/routes/vault/cluster/access/oidc/keys/index",["exports","@ember/routing/route","@ember/service"],(function(e,t,n){var l,i
Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default=(l=class extends t.default{constructor(...e){var t,n,l,r
super(...e),t=this,n="store",r=this,(l=i)&&Object.defineProperty(t,n,{enumerable:l.enumerable,configurable:l.configurable,writable:l.writable,value:l.initializer?l.initializer.call(r):void 0})}model(){return this.store.query("oidc/key",{}).catch((e=>{if(404===e.httpStatus)return[]
throw e}))}},r=l.prototype,a="store",o=[n.service],s={configurable:!0,enumerable:!0,writable:!0,initializer:null},c={},Object.keys(s).forEach((function(e){c[e]=s[e]})),c.enumerable=!!c.enumerable,c.configurable=!!c.configurable,("value"in c||c.initializer)&&(c.writable=!0),c=o.slice().reverse().reduce((function(e,t){return t(r,a,e)||e}),c),u&&void 0!==c.initializer&&(c.value=c.initializer?c.initializer.call(u):void 0,c.initializer=void 0),i=void 0===c.initializer?(Object.defineProperty(r,a,c),null):c,l)
var r,a,o,s,u,c})),define("vault/routes/vault/cluster/access/oidc/keys/key",["exports","@ember/routing/route","@ember/service"],(function(e,t,n){var l,i
Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default=(l=class extends t.default{constructor(...e){var t,n,l,r
super(...e),t=this,n="store",r=this,(l=i)&&Object.defineProperty(t,n,{enumerable:l.enumerable,configurable:l.configurable,writable:l.writable,value:l.initializer?l.initializer.call(r):void 0})}model({name:e}){return this.store.findRecord("oidc/key",e)}},r=l.prototype,a="store",o=[n.service],s={configurable:!0,enumerable:!0,writable:!0,initializer:null},c={},Object.keys(s).forEach((function(e){c[e]=s[e]})),c.enumerable=!!c.enumerable,c.configurable=!!c.configurable,("value"in c||c.initializer)&&(c.writable=!0),c=o.slice().reverse().reduce((function(e,t){return t(r,a,e)||e}),c),u&&void 0!==c.initializer&&(c.value=c.initializer?c.initializer.call(u):void 0,c.initializer=void 0),i=void 0===c.initializer?(Object.defineProperty(r,a,c),null):c,l)
var r,a,o,s,u,c})),define("vault/routes/vault/cluster/access/oidc/keys/key/clients",["exports","@ember/routing/route","@ember/service"],(function(e,t,n){var l,i
Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default=(l=class extends t.default{constructor(...e){var t,n,l,r
super(...e),t=this,n="store",r=this,(l=i)&&Object.defineProperty(t,n,{enumerable:l.enumerable,configurable:l.configurable,writable:l.writable,value:l.initializer?l.initializer.call(r):void 0})}async model(){const{allowedClientIds:e}=this.modelFor("vault.cluster.access.oidc.keys.key")
return await this.store.query("oidc/client",{paramKey:"client_id",filterFor:e})}},r=l.prototype,a="store",o=[n.service],s={configurable:!0,enumerable:!0,writable:!0,initializer:null},c={},Object.keys(s).forEach((function(e){c[e]=s[e]})),c.enumerable=!!c.enumerable,c.configurable=!!c.configurable,("value"in c||c.initializer)&&(c.writable=!0),c=o.slice().reverse().reduce((function(e,t){return t(r,a,e)||e}),c),u&&void 0!==c.initializer&&(c.value=c.initializer?c.initializer.call(u):void 0,c.initializer=void 0),i=void 0===c.initializer?(Object.defineProperty(r,a,c),null):c,l)
var r,a,o,s,u,c})),define("vault/routes/vault/cluster/access/oidc/keys/key/details",["exports","@ember/routing/route"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
class n extends t.default{}e.default=n})),define("vault/routes/vault/cluster/access/oidc/keys/key/edit",["exports","@ember/routing/route"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
class n extends t.default{}e.default=n})),define("vault/routes/vault/cluster/access/oidc/providers/create",["exports","@ember/routing/route","@ember/service"],(function(e,t,n){var l,i
Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default=(l=class extends t.default{constructor(...e){var t,n,l,r
super(...e),t=this,n="store",r=this,(l=i)&&Object.defineProperty(t,n,{enumerable:l.enumerable,configurable:l.configurable,writable:l.writable,value:l.initializer?l.initializer.call(r):void 0})}model(){return this.store.createRecord("oidc/provider")}},r=l.prototype,a="store",o=[n.service],s={configurable:!0,enumerable:!0,writable:!0,initializer:null},c={},Object.keys(s).forEach((function(e){c[e]=s[e]})),c.enumerable=!!c.enumerable,c.configurable=!!c.configurable,("value"in c||c.initializer)&&(c.writable=!0),c=o.slice().reverse().reduce((function(e,t){return t(r,a,e)||e}),c),u&&void 0!==c.initializer&&(c.value=c.initializer?c.initializer.call(u):void 0,c.initializer=void 0),i=void 0===c.initializer?(Object.defineProperty(r,a,c),null):c,l)
var r,a,o,s,u,c})),define("vault/routes/vault/cluster/access/oidc/providers/index",["exports","@ember/routing/route","@ember/service"],(function(e,t,n){var l,i
Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default=(l=class extends t.default{constructor(...e){var t,n,l,r
super(...e),t=this,n="store",r=this,(l=i)&&Object.defineProperty(t,n,{enumerable:l.enumerable,configurable:l.configurable,writable:l.writable,value:l.initializer?l.initializer.call(r):void 0})}model(){return this.store.query("oidc/provider",{}).catch((e=>{if(404===e.httpStatus)return[]
throw e}))}},r=l.prototype,a="store",o=[n.service],s={configurable:!0,enumerable:!0,writable:!0,initializer:null},c={},Object.keys(s).forEach((function(e){c[e]=s[e]})),c.enumerable=!!c.enumerable,c.configurable=!!c.configurable,("value"in c||c.initializer)&&(c.writable=!0),c=o.slice().reverse().reduce((function(e,t){return t(r,a,e)||e}),c),u&&void 0!==c.initializer&&(c.value=c.initializer?c.initializer.call(u):void 0,c.initializer=void 0),i=void 0===c.initializer?(Object.defineProperty(r,a,c),null):c,l)
var r,a,o,s,u,c})),define("vault/routes/vault/cluster/access/oidc/providers/provider",["exports","@ember/routing/route","@ember/service"],(function(e,t,n){var l,i
Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default=(l=class extends t.default{constructor(...e){var t,n,l,r
super(...e),t=this,n="store",r=this,(l=i)&&Object.defineProperty(t,n,{enumerable:l.enumerable,configurable:l.configurable,writable:l.writable,value:l.initializer?l.initializer.call(r):void 0})}model({name:e}){return this.store.findRecord("oidc/provider",e)}},r=l.prototype,a="store",o=[n.service],s={configurable:!0,enumerable:!0,writable:!0,initializer:null},c={},Object.keys(s).forEach((function(e){c[e]=s[e]})),c.enumerable=!!c.enumerable,c.configurable=!!c.configurable,("value"in c||c.initializer)&&(c.writable=!0),c=o.slice().reverse().reduce((function(e,t){return t(r,a,e)||e}),c),u&&void 0!==c.initializer&&(c.value=c.initializer?c.initializer.call(u):void 0,c.initializer=void 0),i=void 0===c.initializer?(Object.defineProperty(r,a,c),null):c,l)
var r,a,o,s,u,c})),define("vault/routes/vault/cluster/access/oidc/providers/provider/clients",["exports","@ember/routing/route","@ember/service"],(function(e,t,n){var l,i
Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default=(l=class extends t.default{constructor(...e){var t,n,l,r
super(...e),t=this,n="store",r=this,(l=i)&&Object.defineProperty(t,n,{enumerable:l.enumerable,configurable:l.configurable,writable:l.writable,value:l.initializer?l.initializer.call(r):void 0})}async model(){const{allowedClientIds:e}=this.modelFor("vault.cluster.access.oidc.providers.provider")
return await this.store.query("oidc/client",{paramKey:"client_id",filterFor:e})}},r=l.prototype,a="store",o=[n.service],s={configurable:!0,enumerable:!0,writable:!0,initializer:null},c={},Object.keys(s).forEach((function(e){c[e]=s[e]})),c.enumerable=!!c.enumerable,c.configurable=!!c.configurable,("value"in c||c.initializer)&&(c.writable=!0),c=o.slice().reverse().reduce((function(e,t){return t(r,a,e)||e}),c),u&&void 0!==c.initializer&&(c.value=c.initializer?c.initializer.call(u):void 0,c.initializer=void 0),i=void 0===c.initializer?(Object.defineProperty(r,a,c),null):c,l)
var r,a,o,s,u,c})),define("vault/routes/vault/cluster/access/oidc/providers/provider/details",["exports","@ember/routing/route"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
class n extends t.default{}e.default=n}))
define("vault/routes/vault/cluster/access/oidc/providers/provider/edit",["exports","@ember/routing/route"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
class n extends t.default{}e.default=n})),define("vault/routes/vault/cluster/access/oidc/scopes/create",["exports","@ember/routing/route","@ember/service"],(function(e,t,n){var l,i
Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default=(l=class extends t.default{constructor(...e){var t,n,l,r
super(...e),t=this,n="store",r=this,(l=i)&&Object.defineProperty(t,n,{enumerable:l.enumerable,configurable:l.configurable,writable:l.writable,value:l.initializer?l.initializer.call(r):void 0})}model(){return this.store.createRecord("oidc/scope")}},r=l.prototype,a="store",o=[n.service],s={configurable:!0,enumerable:!0,writable:!0,initializer:null},c={},Object.keys(s).forEach((function(e){c[e]=s[e]})),c.enumerable=!!c.enumerable,c.configurable=!!c.configurable,("value"in c||c.initializer)&&(c.writable=!0),c=o.slice().reverse().reduce((function(e,t){return t(r,a,e)||e}),c),u&&void 0!==c.initializer&&(c.value=c.initializer?c.initializer.call(u):void 0,c.initializer=void 0),i=void 0===c.initializer?(Object.defineProperty(r,a,c),null):c,l)
var r,a,o,s,u,c})),define("vault/routes/vault/cluster/access/oidc/scopes/index",["exports","@ember/routing/route","@ember/service"],(function(e,t,n){var l,i
Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default=(l=class extends t.default{constructor(...e){var t,n,l,r
super(...e),t=this,n="store",r=this,(l=i)&&Object.defineProperty(t,n,{enumerable:l.enumerable,configurable:l.configurable,writable:l.writable,value:l.initializer?l.initializer.call(r):void 0})}model(){return this.store.query("oidc/scope",{}).catch((e=>{if(404===e.httpStatus)return[]
throw e}))}},r=l.prototype,a="store",o=[n.service],s={configurable:!0,enumerable:!0,writable:!0,initializer:null},c={},Object.keys(s).forEach((function(e){c[e]=s[e]})),c.enumerable=!!c.enumerable,c.configurable=!!c.configurable,("value"in c||c.initializer)&&(c.writable=!0),c=o.slice().reverse().reduce((function(e,t){return t(r,a,e)||e}),c),u&&void 0!==c.initializer&&(c.value=c.initializer?c.initializer.call(u):void 0,c.initializer=void 0),i=void 0===c.initializer?(Object.defineProperty(r,a,c),null):c,l)
var r,a,o,s,u,c})),define("vault/routes/vault/cluster/access/oidc/scopes/scope",["exports","@ember/routing/route","@ember/service"],(function(e,t,n){var l,i
Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default=(l=class extends t.default{constructor(...e){var t,n,l,r
super(...e),t=this,n="store",r=this,(l=i)&&Object.defineProperty(t,n,{enumerable:l.enumerable,configurable:l.configurable,writable:l.writable,value:l.initializer?l.initializer.call(r):void 0})}model({name:e}){return this.store.findRecord("oidc/scope",e)}},r=l.prototype,a="store",o=[n.service],s={configurable:!0,enumerable:!0,writable:!0,initializer:null},c={},Object.keys(s).forEach((function(e){c[e]=s[e]})),c.enumerable=!!c.enumerable,c.configurable=!!c.configurable,("value"in c||c.initializer)&&(c.writable=!0),c=o.slice().reverse().reduce((function(e,t){return t(r,a,e)||e}),c),u&&void 0!==c.initializer&&(c.value=c.initializer?c.initializer.call(u):void 0,c.initializer=void 0),i=void 0===c.initializer?(Object.defineProperty(r,a,c),null):c,l)
var r,a,o,s,u,c})),define("vault/routes/vault/cluster/access/oidc/scopes/scope/details",["exports","@ember/routing/route"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
class n extends t.default{}e.default=n})),define("vault/routes/vault/cluster/access/oidc/scopes/scope/edit",["exports","@ember/routing/route"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
class n extends t.default{}e.default=n})),define("vault/routes/vault/cluster/access/reset-password",["exports","@ember/routing/route","@ember/service","vault/utils/path-encoding-helpers"],(function(e,t,n,l){var i,r,a
function o(e,t,n,l){n&&Object.defineProperty(e,t,{enumerable:n.enumerable,configurable:n.configurable,writable:n.writable,value:n.initializer?n.initializer.call(l):void 0})}function s(e,t,n,l,i){var r={}
return Object.keys(l).forEach((function(e){r[e]=l[e]})),r.enumerable=!!r.enumerable,r.configurable=!!r.configurable,("value"in r||r.initializer)&&(r.writable=!0),r=n.slice().reverse().reduce((function(n,l){return l(e,t,n)||n}),r),i&&void 0!==r.initializer&&(r.value=r.initializer?r.initializer.call(i):void 0,r.initializer=void 0),void 0===r.initializer?(Object.defineProperty(e,t,r),null):r}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
const u="Password reset is not available for your current auth mount."
e.default=(i=class extends t.default{constructor(...e){super(...e),o(this,"auth",r,this),o(this,"store",a,this)}async model(){if("userpass"!==this.auth.authData?.backend?.type)throw new Error(u)
const{backend:e,displayName:t}=this.auth.authData
if(!e.mountPath||!t)throw new Error(u)
try{if(!(await this.store.findRecord("capabilities",`auth/${(0,l.encodePath)(e.mountPath)}/users/${(0,l.encodePath)(t)}/password`)).canUpdate)throw new Error("You do not have permissions to update your password. If you think this is a mistake ask your administrator to update your policy.")}catch(n){}return{backend:e.mountPath,username:t}}},r=s(i.prototype,"auth",[n.service],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),a=s(i.prototype,"store",[n.service],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),i)})),define("vault/routes/vault/cluster/auth",["exports","@ember/service","vault/routes/vault/cluster/cluster-route-base","vault/config/environment"],(function(e,t,n,l){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default=n.default.extend({queryParams:{authMethod:{replace:!0}},flashMessages:(0,t.service)(),version:(0,t.service)(),beforeModel(){return this._super().then((()=>this.version.fetchFeatures()))},model(){return this._super(...arguments)},resetController(e){e.set("wrappedToken",""),e.set("authMethod","token")},afterModel(){l.default.welcomeMessage&&this.flashMessages.info(l.default.welcomeMessage,{sticky:!0,priority:300})}})})),define("vault/routes/vault/cluster/clients",["exports","@ember/routing/route","rsvp","@ember/service"],(function(e,t,n,l){var i,r
Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default=(i=class extends t.default{constructor(...e){var t,n,l,i
super(...e),t=this,n="store",i=this,(l=r)&&Object.defineProperty(t,n,{enumerable:l.enumerable,configurable:l.configurable,writable:l.writable,value:l.initializer?l.initializer.call(i):void 0})}getVersionHistory(){return this.store.findAll("clients/version-history").then((e=>e.map((({version:e,previousVersion:t,timestampInstalled:n})=>({version:e,previousVersion:t,timestampInstalled:n}))))).catch((()=>[]))}model(){return(0,n.hash)({config:this.store.queryRecord("clients/config",{}).catch((()=>({}))),versionHistory:this.getVersionHistory()})}},a=i.prototype,o="store",s=[l.service],u={configurable:!0,enumerable:!0,writable:!0,initializer:null},d={},Object.keys(u).forEach((function(e){d[e]=u[e]})),d.enumerable=!!d.enumerable,d.configurable=!!d.configurable,("value"in d||d.initializer)&&(d.writable=!0),d=s.slice().reverse().reduce((function(e,t){return t(a,o,e)||e}),d),c&&void 0!==d.initializer&&(d.value=d.initializer?d.initializer.call(c):void 0,d.initializer=void 0),r=void 0===d.initializer?(Object.defineProperty(a,o,d),null):d,i)
var a,o,s,u,c,d})),define("vault/routes/vault/cluster/clients/config",["exports","@ember/routing/route","@ember/service"],(function(e,t,n){var l,i
Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default=(l=class extends t.default{constructor(...e){var t,n,l,r
super(...e),t=this,n="store",r=this,(l=i)&&Object.defineProperty(t,n,{enumerable:l.enumerable,configurable:l.configurable,writable:l.writable,value:l.initializer?l.initializer.call(r):void 0})}model(){return this.store.queryRecord("clients/config",{})}},r=l.prototype,a="store",o=[n.service],s={configurable:!0,enumerable:!0,writable:!0,initializer:null},c={},Object.keys(s).forEach((function(e){c[e]=s[e]})),c.enumerable=!!c.enumerable,c.configurable=!!c.configurable,("value"in c||c.initializer)&&(c.writable=!0),c=o.slice().reverse().reduce((function(e,t){return t(r,a,e)||e}),c),u&&void 0!==c.initializer&&(c.value=c.initializer?c.initializer.call(u):void 0,c.initializer=void 0),i=void 0===c.initializer?(Object.defineProperty(r,a,c),null):c,l)
var r,a,o,s,u,c})),define("vault/routes/vault/cluster/clients/counts",["exports","@ember/routing/route","@ember/service","date-fns"],(function(e,t,n,l){var i,r,a,o,s
function u(e,t,n,l){n&&Object.defineProperty(e,t,{enumerable:n.enumerable,configurable:n.configurable,writable:n.writable,value:n.initializer?n.initializer.call(l):void 0})}function c(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e
var n=e[Symbol.toPrimitive]
if(void 0!==n){var l=n.call(e,t||"default")
if("object"!=typeof l)return l
throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string")
return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function d(e,t,n,l,i){var r={}
return Object.keys(l).forEach((function(e){r[e]=l[e]})),r.enumerable=!!r.enumerable,r.configurable=!!r.configurable,("value"in r||r.initializer)&&(r.writable=!0),r=n.slice().reverse().reduce((function(n,l){return l(e,t,n)||n}),r),i&&void 0!==r.initializer&&(r.value=r.initializer?r.initializer.call(i):void 0,r.initializer=void 0),void 0===r.initializer?(Object.defineProperty(e,t,r),null):r}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default=(i=class extends t.default{constructor(...e){super(...e),u(this,"flags",r,this),u(this,"namespace",a,this),u(this,"store",o,this),u(this,"version",s,this),c(this,"queryParams",{start_time:{refreshModel:!0,replace:!0},end_time:{refreshModel:!0,replace:!0},ns:{refreshModel:!0,replace:!0},mountPath:{refreshModel:!1,replace:!0}})}beforeModel(){return this.flags.fetchActivatedFlags()}paramOrResponseTimestamp(e,t){let n
const i=Number(e)
return isNaN(i)||(n=(0,l.fromUnixTime)(i).toISOString()),!n&&t&&(n=t),n}async getActivity(e){let t,n
if(this.version.isEnterprise||e.start_time){const i={start_time:this.formatTimeQuery(e?.start_time),end_time:this.formatTimeQuery(e?.end_time)}
e?.ns&&(i.namespace=e.ns)
try{t=await this.store.queryRecord("clients/activity",i)}catch(l){n=l}}return{activity:t,activityError:n}}formatTimeQuery(e){let t
const n=Number(e)
return isNaN(n)||(t={timestamp:n}),t}async model(e){const{config:t,versionHistory:n}=this.modelFor("vault.cluster.clients"),{activity:l,activityError:i}=await this.getActivity(e)
return{activity:l,activityError:i,config:t,startTimestamp:this.paramOrResponseTimestamp(e?.start_time,l?.byMonth[0]?.timestamp||l?.startTime),endTimestamp:this.paramOrResponseTimestamp(e?.end_time,l?.endTime),versionHistory:n}}resetController(e,t){t&&e.setProperties({start_time:void 0,end_time:void 0,ns:void 0,mountPath:void 0})}},r=d(i.prototype,"flags",[n.service],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),a=d(i.prototype,"namespace",[n.service],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),o=d(i.prototype,"store",[n.service],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),s=d(i.prototype,"version",[n.service],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),i)})),define("vault/routes/vault/cluster/clients/counts/acme",["exports","@ember/routing/route"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
class n extends t.default{}e.default=n})),define("vault/routes/vault/cluster/clients/counts/index",["exports","@ember/routing/route","@ember/service"],(function(e,t,n){var l,i
Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default=(l=class extends t.default{constructor(...e){var t,n,l,r
super(...e),t=this,n="router",r=this,(l=i)&&Object.defineProperty(t,n,{enumerable:l.enumerable,configurable:l.configurable,writable:l.writable,value:l.initializer?l.initializer.call(r):void 0})}redirect(){this.router.transitionTo("vault.cluster.clients.counts.overview")}},r=l.prototype,a="router",o=[n.service],s={configurable:!0,enumerable:!0,writable:!0,initializer:null},c={},Object.keys(s).forEach((function(e){c[e]=s[e]})),c.enumerable=!!c.enumerable,c.configurable=!!c.configurable,("value"in c||c.initializer)&&(c.writable=!0),c=o.slice().reverse().reduce((function(e,t){return t(r,a,e)||e}),c),u&&void 0!==c.initializer&&(c.value=c.initializer?c.initializer.call(u):void 0,c.initializer=void 0),i=void 0===c.initializer?(Object.defineProperty(r,a,c),null):c,l)
var r,a,o,s,u,c})),define("vault/routes/vault/cluster/clients/counts/overview",["exports","@ember/routing/route"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
class n extends t.default{}e.default=n})),define("vault/routes/vault/cluster/clients/counts/sync",["exports","@ember/routing/route"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
class n extends t.default{}e.default=n})),define("vault/routes/vault/cluster/clients/counts/token",["exports","@ember/routing/route"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
class n extends t.default{}e.default=n})),define("vault/routes/vault/cluster/clients/edit",["exports","@ember/routing/route","@ember/service"],(function(e,t,n){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default=t.default.extend({store:(0,n.service)(),model(){return this.store.queryRecord("clients/config",{})}})})),define("vault/routes/vault/cluster/clients/index",["exports","@ember/routing/route","@ember/service"],(function(e,t,n){var l,i
Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default=(l=class extends t.default{constructor(...e){var t,n,l,r
super(...e),t=this,n="router",r=this,(l=i)&&Object.defineProperty(t,n,{enumerable:l.enumerable,configurable:l.configurable,writable:l.writable,value:l.initializer?l.initializer.call(r):void 0})}redirect(){this.router.transitionTo("vault.cluster.clients.counts.overview")}},r=l.prototype,a="router",o=[n.service],s={configurable:!0,enumerable:!0,writable:!0,initializer:null},c={},Object.keys(s).forEach((function(e){c[e]=s[e]})),c.enumerable=!!c.enumerable,c.configurable=!!c.configurable,("value"in c||c.initializer)&&(c.writable=!0),c=o.slice().reverse().reduce((function(e,t){return t(r,a,e)||e}),c),u&&void 0!==c.initializer&&(c.value=c.initializer?c.initializer.call(u):void 0,c.initializer=void 0),i=void 0===c.initializer?(Object.defineProperty(r,a,c),null):c,l)
var r,a,o,s,u,c})),define("vault/routes/vault/cluster/cluster-route-base",["exports","@ember/routing/route","vault/mixins/cluster-route"],(function(e,t,n){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default=t.default.extend(n.default,{model(){return this.modelFor("vault.cluster")},resetController(e){e.reset&&e.reset()}})})),define("vault/routes/vault/cluster/dashboard",["exports","@ember/routing/route","@ember/service","rsvp","vault/mixins/cluster-route","@ember/object"],(function(e,t,n,l,i,r){var a,o,s,u
function c(e,t,n,l){n&&Object.defineProperty(e,t,{enumerable:n.enumerable,configurable:n.configurable,writable:n.writable,value:n.initializer?n.initializer.call(l):void 0})}function d(e,t,n,l,i){var r={}
return Object.keys(l).forEach((function(e){r[e]=l[e]})),r.enumerable=!!r.enumerable,r.configurable=!!r.configurable,("value"in r||r.initializer)&&(r.writable=!0),r=n.slice().reverse().reduce((function(n,l){return l(e,t,n)||n}),r),i&&void 0!==r.initializer&&(r.value=r.initializer?r.initializer.call(i):void 0,r.initializer=void 0),void 0===r.initializer?(Object.defineProperty(e,t,r),null):r}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default=(a=class extends(t.default.extend(i.default)){constructor(...e){super(...e),c(this,"store",o,this),c(this,"namespace",s,this),c(this,"version",u,this)}async getVaultConfiguration(){try{if(!this.namespace.inRootNamespace)return null
const e=this.store.adapterFor("application")
return(await e.ajax("/v1/sys/config/state/sanitized","GET")).data}catch(e){return null}}model(){const e=this.modelFor("vault.cluster"),t=e?.hasChrootNamespace,n=t||e.replicationRedacted?null:{dr:e.dr,performance:e.performance}
return(0,l.hash)({replication:n,secretsEngines:this.store.query("secret-engine",{}),isRootNamespace:this.namespace.inRootNamespace&&!t,version:this.version,vaultConfiguration:t?null:this.getVaultConfiguration()})}refreshRoute(){this.refresh()}},o=d(a.prototype,"store",[n.service],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),s=d(a.prototype,"namespace",[n.service],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),u=d(a.prototype,"version",[n.service],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),d(a.prototype,"refreshRoute",[r.action],Object.getOwnPropertyDescriptor(a.prototype,"refreshRoute"),a.prototype),a)})),define("vault/routes/vault/cluster/index",["exports","@ember/routing/route","@ember/service"],(function(e,t,n){var l,i
Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default=(l=class extends t.default{constructor(...e){var t,n,l,r
super(...e),t=this,n="router",r=this,(l=i)&&Object.defineProperty(t,n,{enumerable:l.enumerable,configurable:l.configurable,writable:l.writable,value:l.initializer?l.initializer.call(r):void 0})}beforeModel(){return this.router.transitionTo("vault.cluster.dashboard")}},r=l.prototype,a="router",o=[n.service],s={configurable:!0,enumerable:!0,writable:!0,initializer:null},c={},Object.keys(s).forEach((function(e){c[e]=s[e]})),c.enumerable=!!c.enumerable,c.configurable=!!c.configurable,("value"in c||c.initializer)&&(c.writable=!0),c=o.slice().reverse().reduce((function(e,t){return t(r,a,e)||e}),c),u&&void 0!==c.initializer&&(c.value=c.initializer?c.initializer.call(u):void 0,c.initializer=void 0),i=void 0===c.initializer?(Object.defineProperty(r,a,c),null):c,l)
var r,a,o,s,u,c})),define("vault/routes/vault/cluster/init",["exports","vault/routes/vault/cluster/cluster-route-base"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default=t.default.extend({})})),define("vault/routes/vault/cluster/license",["exports","@ember/routing/route","vault/mixins/cluster-route","@ember/service"],(function(e,t,n,l){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default=t.default.extend(n.default,{store:(0,l.service)(),version:(0,l.service)(),router:(0,l.service)(),beforeModel(){this.version.isCommunity&&this.router.transitionTo("vault.cluster")},model(){return this.store.queryRecord("license",{})}})})),define("vault/routes/vault/cluster/logout",["exports","ember","@ember/object","@ember/service","@ember/routing/route","vault/mixins/model-boundary-route"],(function(e,t,n,l,i,r){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default=i.default.extend(r.default,{auth:(0,l.service)(),controlGroup:(0,l.service)(),flashMessages:(0,l.service)(),console:(0,l.service)(),permissions:(0,l.service)(),namespaceService:(0,l.service)("namespace"),router:(0,l.service)(),version:(0,l.service)(),customMessages:(0,l.service)(),modelTypes:(0,n.computed)((function(){return["secret","secret-engine"]})),beforeModel({to:{queryParams:e}}){const n=this.auth.getAuthType(),l=this.namespaceService.path
if(this.auth.deleteCurrentToken(),this.controlGroup.deleteTokens(),this.namespaceService.reset(),this.console.set("isOpen",!1),this.console.clearLog(!0),this.flashMessages.clearMessages(),this.permissions.reset(),this.version.version=null,this.version.isEnterprise&&this.customMessages.clearCustomMessages(),e.with=n,l&&(e.namespace=l),t.default.testing)this.router.replaceWith("vault.cluster.auth",{queryParams:e})
else{const{cluster_name:t}=this.paramsFor("vault.cluster")
location.assign(this.router.urlFor("vault.cluster.auth",t,{queryParams:e}))}}})})),define("vault/routes/vault/cluster/mfa-setup",["exports","@ember/routing/route"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
class n extends t.default{}e.default=n})),define("vault/routes/vault/cluster/oidc-callback",["exports","@ember/routing/route"],(function(e,t){function n(e,t){const n=decodeURIComponent(t)
let{path:l,code:i,state:r,namespace:a}=e
r?.includes(",ns=")&&([r,a]=r.split(",ns="))
const o=new URLSearchParams(n).get("state")
o?.includes(",ns=")&&([r,a]=o.split(",ns=")),l=window.decodeURIComponent(l)
const s={source:"oidc-callback",path:l||"",code:i||"",state:r||""}
return a&&(s.namespace=a),s}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,e.getParamsForCallback=n
e.default=t.default.extend({templateName:"vault/cluster/oidc-callback",model(){},afterModel(){const{auth_path:e,code:t,state:l}=this.paramsFor(this.routeName),{namespaceQueryParam:i}=this.paramsFor("vault.cluster"),r=n({path:e,code:t,state:l,namespace:i},window.location.search)
window.opener.postMessage(r,window.origin)},setupController(e){this._super(...arguments),e.set("pageContainer",document.querySelector(".page-container"))}})})),define("vault/routes/vault/cluster/oidc-provider-ns",["exports","vault/routes/vault/cluster/oidc-provider"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
class n extends t.default{}e.default=n})),define("vault/routes/vault/cluster/oidc-provider",["exports","ember","@ember/routing/route","@ember/service"],(function(e,t,n,l){var i,r,a
function o(e,t,n,l){n&&Object.defineProperty(e,t,{enumerable:n.enumerable,configurable:n.configurable,writable:n.writable,value:n.initializer?n.initializer.call(l):void 0})}function s(e,t,n,l,i){var r={}
return Object.keys(l).forEach((function(e){r[e]=l[e]})),r.enumerable=!!r.enumerable,r.configurable=!!r.configurable,("value"in r||r.initializer)&&(r.writable=!0),r=n.slice().reverse().reduce((function(n,l){return l(e,t,n)||n}),r),i&&void 0!==r.initializer&&(r.value=r.initializer?r.initializer.call(i):void 0,r.initializer=void 0),void 0===r.initializer?(Object.defineProperty(e,t,r),null):r}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default=(i=class extends n.default{constructor(...e){super(...e),o(this,"auth",r,this),o(this,"router",a,this)}get win(){return this.window||window}_redirect(e,n){if(!e)return
const l=this._buildUrl(e,n)
if(t.default.testing)return l
this.win.location.replace(l)}beforeModel(e){const t=this.auth.currentTokenName,n=e.to.queryParams
if(n.redirect_to=null,t||"none"!==n.prompt?.toLowerCase()){if(!t||"login"===n.prompt?.toLowerCase()){const l=!!t
return"login"===n.prompt?.toLowerCase()&&(n.prompt=null),this._redirectToAuth({...e.to.params,qp:n,logout:l})}}else this._redirect(n.redirect_uri,{state:n.state,error:"login_required"})}_redirectToAuth({provider_name:e,namespace:t=null,qp:n,logout:l=!1}){const{cluster_name:i}=this.paramsFor("vault.cluster")
let r=t?this.router.urlFor("vault.cluster.oidc-provider-ns",i,t,e,{queryParams:n}):this.router.urlFor("vault.cluster.oidc-provider",i,e,{queryParams:n})
r=r.replace(/^(\/?ui)/,""),l&&this.auth.deleteCurrentToken()
const a={redirect_to:r,o:e}
return t&&(a.namespace=t),this.router.transitionTo("vault.cluster.auth",i,{queryParams:a})}_buildUrl(e,t){try{const n=new URL(e)
return Object.keys(t).forEach((e=>{t[e]&&n.searchParams.append(e,t[e])})),n}catch(n){throw console.debug("DEBUG: parsing url failed for",e),new Error("Invalid URL")}}_handleSuccess(e,n,l){const{code:i}=e,r=this._buildUrl(n,{code:i,state:l})
return t.default.testing||this.win.location.replace(r),{redirectUrl:r}}_handleError(e,n){const l=this._buildUrl(n,{...e})
return t.default.testing||this.win.location.replace(l),{redirectUrl:l}}_getInfoFromParams(e){const{provider_name:t,namespace:n,...l}=e
return{provider_name:t,qp:l,decodedRedirect:decodeURI(l.redirect_uri),namespace:n}}async model(e){const t=this._getInfoFromParams(e),{qp:n,decodedRedirect:l,...i}=t,r=this._buildUrl(`${this.win.origin}/v1/identity/oidc/provider/${i.provider_name}/authorize`,n)
if(!n.redirect_uri)throw new Error("Missing required query params")
try{const e=await this.auth.ajax(r,"GET",{namespace:i.namespace})
return"consent"===n.prompt?.toLowerCase()?{consent:{code:e.code,redirect:l,state:n.state}}:this._handleSuccess(e,l,n.state)}catch(a){const e=await a.json(),t=e.error
if("max_age_violation"!==t&&!e?.errors?.includes("permission denied"))return"invalid_redirect_uri"===t?{error:{title:"Redirect URI mismatch",message:"The provided redirect_uri is not in the list of allowed redirect URIs. Please make sure you are sending a valid redirect URI from your application."}}:"invalid_client_id"===t?{error:{title:"Invalid client ID",message:"Your client ID is invalid. Please update your configuration and try again."}}:this._handleError(e,l)
this._redirectToAuth({...i,qp:n,logout:!0})}}},r=s(i.prototype,"auth",[l.service],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),a=s(i.prototype,"router",[l.service],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),i)})),define("vault/routes/vault/cluster/policies",["exports","@ember/service","@ember/routing/route","vault/mixins/cluster-route"],(function(e,t,n,l){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
const i=["acl","egp","rgp"]
e.default=n.default.extend(l.default,{version:(0,t.service)(),beforeModel(){return this.version.fetchFeatures().then((()=>this._super(...arguments)))},model(e){const t=e.type
return i.includes(t)?{}:this.router.transitionTo(this.routeName,i[0])}})})),define("vault/routes/vault/cluster/policies/create",["exports","@ember/service","@ember/routing/route","vault/mixins/unsaved-model-route"],(function(e,t,n,l){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default=n.default.extend(l.default,{router:(0,t.service)(),store:(0,t.service)(),version:(0,t.service)(),model(){const e=this.policyType()
return this.version.hasSentinel||"acl"===e?this.store.createRecord(`policy/${e}`,{}):this.router.transitionTo("vault.cluster.policies",e)},setupController(e){this._super(...arguments),e.set("policyType",this.policyType())},policyType(){return this.paramsFor("vault.cluster.policies").type}})}))
define("vault/routes/vault/cluster/policies/index",["exports","@ember/service","@ember/routing/route","vault/mixins/cluster-route","core/mixins/list-route"],(function(e,t,n,l,i){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default=n.default.extend(l.default,i.default,{store:(0,t.service)(),version:(0,t.service)(),shouldReturnEmptyModel:(e,t)=>"acl"!==e&&(t.isCommunity||!t.hasSentinel),model(e){const t=this.policyType()
if(!this.shouldReturnEmptyModel(t,this.version))return this.store.lazyPaginatedQuery(`policy/${t}`,{page:e.page,pageFilter:e.pageFilter,responsePath:"data.keys"}).catch((e=>{if(404===e.httpStatus&&"acl"!==this.policyType())return[]
throw e}))},setupController(e,t){const n=this.paramsFor(this.routeName)
t?e.setProperties({model:t,filter:n.pageFilter||"",page:t.meta?.currentPage||1,policyType:this.policyType()}):e.setProperties({model:null,policyType:this.policyType()})},resetController(e,t){this._super(...arguments),t&&e.set("filter","")},actions:{willTransition(e){return window.scrollTo(0,0),e&&e.targetName===this.routeName||this.store.clearAllDatasets(),!0},reload(){this.store.clearAllDatasets(),this.refresh()}},policyType(){return this.paramsFor("vault.cluster.policies").type}})})),define("vault/routes/vault/cluster/policy",["exports","@ember/service","@ember/routing/route","vault/mixins/cluster-route"],(function(e,t,n,l){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
const i=["acl","egp","rgp"]
e.default=n.default.extend(l.default,{version:(0,t.service)(),beforeModel(){return this.version.fetchFeatures().then((()=>this._super(...arguments)))},model(e){const t=e.type
return i.includes(t)?this.version.hasSentinel||"acl"===t?{}:this.router.transitionTo("vault.cluster.policies",t):this.router.transitionTo("vault.cluster.policies",i[0])}})})),define("vault/routes/vault/cluster/policy/edit",["exports","vault/mixins/unsaved-model-route","vault/routes/vault/cluster/policy/show"],(function(e,t,n){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default=n.default.extend(t.default,{})})),define("vault/routes/vault/cluster/policy/index",["exports","@ember/routing/route","@ember/service"],(function(e,t,n){var l,i
Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default=(l=class extends t.default{constructor(...e){var t,n,l,r
super(...e),t=this,n="router",r=this,(l=i)&&Object.defineProperty(t,n,{enumerable:l.enumerable,configurable:l.configurable,writable:l.writable,value:l.initializer?l.initializer.call(r):void 0})}beforeModel(){return this.router.transitionTo("vault.cluster.policies","acl")}},r=l.prototype,a="router",o=[n.service],s={configurable:!0,enumerable:!0,writable:!0,initializer:null},c={},Object.keys(s).forEach((function(e){c[e]=s[e]})),c.enumerable=!!c.enumerable,c.configurable=!!c.configurable,("value"in c||c.initializer)&&(c.writable=!0),c=o.slice().reverse().reduce((function(e,t){return t(r,a,e)||e}),c),u&&void 0!==c.initializer&&(c.value=c.initializer?c.initializer.call(u):void 0,c.initializer=void 0),i=void 0===c.initializer?(Object.defineProperty(r,a,c),null):c,l)
var r,a,o,s,u,c})),define("vault/routes/vault/cluster/policy/show",["exports","rsvp","@ember/routing/route","vault/mixins/unload-model-route","@ember/service"],(function(e,t,n,l,i){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default=n.default.extend(l.default,{router:(0,i.service)(),store:(0,i.service)(),beforeModel(){const e=this.paramsFor(this.routeName)
if("acl"===this.policyType()&&"root"===e.policy_name)return this.router.transitionTo("vault.cluster.policies","acl")},model(e){const n=this.policyType()
return(0,t.hash)({policy:this.store.findRecord(`policy/${n}`,e.policy_name),capabilities:this.store.findRecord("capabilities",`sys/policies/${n}/${e.policy_name}`)})},setupController(e,t){e.setProperties({model:t.policy,capabilities:t.capabilities,policyType:this.policyType()})},policyType(){return this.paramsFor("vault.cluster.policy").type}})})),define("vault/routes/vault/cluster/redirect",["exports","@ember/routing/route","@ember/service","vault/lib/route-paths"],(function(e,t,n,l){var i,r,a
function o(e,t,n,l){n&&Object.defineProperty(e,t,{enumerable:n.enumerable,configurable:n.configurable,writable:n.writable,value:n.initializer?n.initializer.call(l):void 0})}function s(e,t,n,l,i){var r={}
return Object.keys(l).forEach((function(e){r[e]=l[e]})),r.enumerable=!!r.enumerable,r.configurable=!!r.configurable,("value"in r||r.initializer)&&(r.writable=!0),r=n.slice().reverse().reduce((function(n,l){return l(e,t,n)||n}),r),i&&void 0!==r.initializer&&(r.value=r.initializer?r.initializer.call(i):void 0,r.initializer=void 0),void 0===r.initializer?(Object.defineProperty(e,t,r),null):r}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default=(i=class extends t.default{constructor(...e){super(...e),o(this,"auth",r,this),o(this,"router",a,this)}beforeModel({to:{queryParams:e}}){let t
const n=this.auth.currentToken,i=this.controllerFor("vault"),{redirect_to:r,...a}=e
t=n&&r?this.router.replaceWith(r):n?this.router.replaceWith(l.CLUSTER,{queryParams:a}):this.router.replaceWith(l.AUTH,{queryParams:a}),t.followRedirects().then((()=>{i.set("redirectTo","")}))}},r=s(i.prototype,"auth",[n.service],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),a=s(i.prototype,"router",[n.service],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),i)})),define("vault/routes/vault/cluster/replication-dr-promote/details",["exports","@ember/service","vault/routes/vault/cluster/cluster-route-base"],(function(e,t,n){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default=n.default.extend({replicationMode:(0,t.service)(),beforeModel(){this._super(...arguments),this.replicationMode.setMode("dr")}})})),define("vault/routes/vault/cluster/replication-dr-promote/index",["exports","@ember/service","vault/routes/vault/cluster/cluster-route-base"],(function(e,t,n){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default=n.default.extend({replicationMode:(0,t.service)(),beforeModel(){this._super(...arguments),this.replicationMode.setMode("dr")}})})),define("vault/routes/vault/cluster/secrets",["exports","@ember/routing/route","vault/mixins/cluster-route"],(function(e,t,n){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default=t.default.extend(n.default)})),define("vault/routes/vault/cluster/secrets/backend",["exports","@ember/service","@ember/routing/route"],(function(e,t,n){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default=n.default.extend({flashMessages:(0,t.service)(),router:(0,t.service)(),secretMountPath:(0,t.service)(),store:(0,t.service)(),oldModel:null,model(e){const{backend:t}=e
return this.secretMountPath.update(t),this.store.query("secret-engine",{path:t}).then((e=>{if(e)return e[0]}))},afterModel(e,t){const n=e&&e.path
if(t.targetName===this.routeName)return this.router.replaceWith("vault.cluster.secrets.backend.list-root",n)}})})),define("vault/routes/vault/cluster/secrets/backend/actions",["exports","core/utils/key-utils","vault/routes/vault/cluster/secrets/backend/secret-edit"],(function(e,t,n){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default=n.default.extend({queryParams:{selectedAction:{replace:!0}},templateName:"vault/cluster/secrets/backend/transitActionsLayout",beforeModel(){const{secret:e}=this.paramsFor(this.routeName),n=(0,t.parentKeyForKey)(e),{backend:l}=this.paramsFor("vault.cluster.secrets.backend")
if("transit"!==this.backendType(l))return n?this.router.transitionTo("vault.cluster.secrets.backend.show",n):this.router.transitionTo("vault.cluster.secrets.backend.show-root")},setupController(e,t){this._super(...arguments)
const{selectedAction:n}=this.paramsFor(this.routeName)
e.set("selectedAction",n||t.secret.supportedActions[0]),e.set("breadcrumbs",[{label:"Secrets",route:"vault.cluster.secrets"},{label:t.secret.backend,route:"vault.cluster.secrets.backend.list-root",model:t.secret.backend},{label:t.secret.id,route:"vault.cluster.secrets.backend.show",models:[t.secret.backend,t.secret.id]},{label:"Actions"}])}})})),define("vault/routes/vault/cluster/secrets/backend/configuration/edit",["exports","@ember-data/adapter/error","@ember/object","@ember/routing/route","@ember/service","vault/helpers/mountable-secret-engines","vault/utils/error-message"],(function(e,t,n,l,i,r,a){var o,s,u
function c(e,t,n,l){n&&Object.defineProperty(e,t,{enumerable:n.enumerable,configurable:n.configurable,writable:n.writable,value:n.initializer?n.initializer.call(l):void 0})}function d(e,t,n,l,i){var r={}
return Object.keys(l).forEach((function(e){r[e]=l[e]})),r.enumerable=!!r.enumerable,r.configurable=!!r.configurable,("value"in r||r.initializer)&&(r.writable=!0),r=n.slice().reverse().reduce((function(n,l){return l(e,t,n)||n}),r),i&&void 0!==r.initializer&&(r.value=r.initializer?r.initializer.call(i):void 0,r.initializer=void 0),void 0===r.initializer?(Object.defineProperty(e,t,r),null):r}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
const p={aws:["aws/lease-config","aws/root-config"],ssh:["ssh/ca-config"]}
e.default=(o=class extends l.default{constructor(...e){super(...e),c(this,"store",s,this),c(this,"version",u,this)}async model(){const{backend:e}=this.paramsFor("vault.cluster.secrets.backend"),l=this.modelFor("vault.cluster.secrets.backend"),i=l.type
if(!l||!r.CONFIGURABLE_SECRET_ENGINES.includes(i)){const e=new t.default
throw(0,n.set)(e,"httpStatus",404),e}const o={type:i,id:e}
for(const t of p[i]){const n=t.replace(/\//g,"-")
try{o[n]=await this.store.queryRecord(t,{backend:e,type:i})}catch(s){if(404!==s.httpStatus&&("ssh"!==i||400!==s.httpStatus||"keys haven't been configured yet"!==(0,a.default)(s)))throw s
o[n]=await this.store.createRecord(t,{backend:e,type:i})}}if("aws"===i&&this.version.isEnterprise)try{const e=await this.store.queryRecord("identity/oidc/config",{})
o["identity-oidc-config"]=e}catch(s){o["identity-oidc-config"]={queryIssuerError:!0}}return o}willTransition(){this.refresh()}},s=d(o.prototype,"store",[i.service],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),u=d(o.prototype,"version",[i.service],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),d(o.prototype,"willTransition",[n.action],Object.getOwnPropertyDescriptor(o.prototype,"willTransition"),o.prototype),o)})),define("vault/routes/vault/cluster/secrets/backend/configuration/index",["exports","@ember/service","@ember/routing/route","vault/helpers/mountable-secret-engines","rsvp"],(function(e,t,n,l,i){var r,a,o
function s(e,t,n,l){n&&Object.defineProperty(e,t,{enumerable:n.enumerable,configurable:n.configurable,writable:n.writable,value:n.initializer?n.initializer.call(l):void 0})}function u(e,t,n,l,i){var r={}
return Object.keys(l).forEach((function(e){r[e]=l[e]})),r.enumerable=!!r.enumerable,r.configurable=!!r.configurable,("value"in r||r.initializer)&&(r.writable=!0),r=n.slice().reverse().reduce((function(n,l){return l(e,t,n)||n}),r),i&&void 0!==r.initializer&&(r.value=r.initializer?r.initializer.call(i):void 0,r.initializer=void 0),void 0===r.initializer?(Object.defineProperty(e,t,r),null):r}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default=(r=class extends n.default{constructor(...e){super(...e),s(this,"store",a,this),s(this,"version",o,this)}async model(){const e=this.modelFor("vault.cluster.secrets.backend")
if(e.isV2KV){await this.store.findRecord("capabilities",`${e.id}/config`).then((e=>e.canRead))?(e.casRequired=e.casRequired?e.casRequired:"False",e.deleteVersionAfter=e.deleteVersionAfter?e.deleteVersionAfter:"Never delete"):(e.set("casRequired",null),e.set("deleteVersionAfter",null),e.set("maxVersions",null))}if(l.CONFIGURABLE_SECRET_ENGINES.includes(e.type)){let t=await this.fetchConfig(e.type,e.id)
return t=this.standardizeConfigModels(t),{secretEngineModel:e,configModels:t}}return{secretEngineModel:e}}standardizeConfigModels(e){return Array.isArray(e)||(e=[e]),e.filter((e=>!!e))}fetchConfig(e,t){switch(e){case"aws":return this.fetchAwsConfigs(t)
case"ssh":return this.fetchSshCaConfig(t)
default:return(0,i.reject)({httpStatus:404,message:"not found",path:t})}}async fetchAwsConfigs(e){const t=[],n=await this.fetchAwsConfig(e,"aws/root-config"),l=await this.fetchAwsConfig(e,"aws/lease-config")
let i=null
if(this.version.isEnterprise&&n){["roleArn","identityTokenAudience","identityTokenTtl"].some((e=>n[e]))&&(i=await this.fetchIssuer())}return t.push(n,l,i),t}async fetchAwsConfig(e,t){try{return await this.store.queryRecord(t,{backend:e})}catch(n){if(404===n.httpStatus)return
throw n}}async fetchIssuer(){try{return await this.store.queryRecord("identity/oidc/config",{})}catch(e){return}}async fetchSshCaConfig(e){try{return await this.store.queryRecord("ssh/ca-config",{backend:e})}catch(t){if(400===t.httpStatus&&"keys haven't been configured yet"===t.errors[0])return
throw t}}setupController(e,t){super.setupController(e,t),e.typeDisplay=(0,l.allEngines)().find((e=>e.type===t.secretEngineModel.type))?.displayName,e.isConfigurable=l.CONFIGURABLE_SECRET_ENGINES.includes(t.secretEngineModel.type),e.modelId=t.secretEngineModel.id}},a=u(r.prototype,"store",[t.service],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),o=u(r.prototype,"version",[t.service],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),r)})),define("vault/routes/vault/cluster/secrets/backend/create-root",["exports","rsvp","@ember/service","vault/routes/vault/cluster/secrets/backend/secret-edit"],(function(e,t,n,l){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default=l.default.extend({store:(0,n.service)(),createModel(e){const{backend:t}=this.paramsFor("vault.cluster.secrets.backend")
let n=this.modelType(t,null,{queryParams:e.to.queryParams})
return"role-ssh"===n?this.store.createRecord(n,{keyType:"ca"}):("transform"===n&&(n=(e=>{const t="transform"
return e&&e.itemType?`${t}/${e.itemType}`:t})(e.to.queryParams)),"database/connection"===n&&"role"===e.to?.queryParams?.itemType&&(n="database/role"),"secret"!==n?this.store.createRecord(n):(l=this.store,i=e.to.queryParams.initialKey,l.createRecord("secret",{path:i})))
var l,i},model(e,n){return(0,t.hash)({secret:this.createModel(n),capabilities:{}})}})})),define("vault/routes/vault/cluster/secrets/backend/create",["exports","@ember/routing/route","@ember/service"],(function(e,t,n){var l,i
Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default=(l=class extends t.default{constructor(...e){var t,n,l,r
super(...e),t=this,n="router",r=this,(l=i)&&Object.defineProperty(t,n,{enumerable:l.enumerable,configurable:l.configurable,writable:l.writable,value:l.initializer?l.initializer.call(r):void 0})}beforeModel(){const{secret:e,initialKey:t}=this.paramsFor(this.routeName),n=t||e
return this.router.transitionTo("vault.cluster.secrets.backend.create-root",{queryParams:{initialKey:n}})}},r=l.prototype,a="router",o=[n.service],s={configurable:!0,enumerable:!0,writable:!0,initializer:null},c={},Object.keys(s).forEach((function(e){c[e]=s[e]})),c.enumerable=!!c.enumerable,c.configurable=!!c.configurable,("value"in c||c.initializer)&&(c.writable=!0),c=o.slice().reverse().reduce((function(e,t){return t(r,a,e)||e}),c),u&&void 0!==c.initializer&&(c.value=c.initializer?c.initializer.call(u):void 0,c.initializer=void 0),i=void 0===c.initializer?(Object.defineProperty(r,a,c),null):c,l)
var r,a,o,s,u,c})),define("vault/routes/vault/cluster/secrets/backend/credentials-root",["exports","vault/routes/vault/cluster/secrets/backend/credentials"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.default}})})),define("vault/routes/vault/cluster/secrets/backend/credentials",["exports","rsvp","@ember/routing/route","@ember/service","vault/lib/control-group-error"],(function(e,t,n,l,i){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
const r=["database","ssh","aws"]
e.default=n.default.extend({templateName:"vault/cluster/secrets/backend/credentials",pathHelp:(0,l.service)("path-help"),router:(0,l.service)(),store:(0,l.service)(),beforeModel(){const{id:e,type:t}=this.modelFor("vault.cluster.secrets.backend")
if(!r.includes(t))return this.router.transitionTo("vault.cluster.secrets.backend.list-root",e)
"ssh"===t&&this.pathHelp.hydrateModel("ssh-otp-credential",e)},getDatabaseCredential(e,t,n=""){return this.store.queryRecord("database/credential",{backend:e,secret:t,roleType:n}).catch((e=>{if(e instanceof i.default)throw e
const t=e?.httpStatus
let n,l=`We ran into a problem and could not continue: ${e?.errors?e.errors[0]:"See Vault logs for details."}`
return 403===t&&(n="You are not authorized",l="Role wasn't found or you do not have permissions. Ask your administrator if you think you should have access."),{errorHttpStatus:t,errorTitle:n,errorMessage:l}}))},async getAwsRole(e,t){try{return await this.store.queryRecord("role-aws",{backend:e,id:t})}catch(n){return}},async model(e){const n=e.secret,{id:l,type:i}=this.modelFor("vault.cluster.secrets.backend"),r=e.roleType
let a,o
return"database"===i?a=await this.getDatabaseCredential(l,n,r):"aws"===i&&(o=await this.getAwsRole(l,n)),(0,t.resolve)({backendPath:l,backendType:i,roleName:n,roleType:r,dbCred:a,awsRoleType:o?.credentialType})},resetController(e){e.reset()},actions:{willTransition(){this.store.unloadAll("database/credential")}}})})),define("vault/routes/vault/cluster/secrets/backend/edit-root",["exports","vault/routes/vault/cluster/secrets/backend/edit"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.default}})})),define("vault/routes/vault/cluster/secrets/backend/edit",["exports","vault/routes/vault/cluster/secrets/backend/secret-edit"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default=t.default.extend({queryParams:{version:{refreshModel:!0}}})})),define("vault/routes/vault/cluster/secrets/backend/index",["exports","@ember/routing/route","@ember/service"],(function(e,t,n){var l,i
Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default=(l=class extends t.default{constructor(...e){var t,n,l,r
super(...e),t=this,n="router",r=this,(l=i)&&Object.defineProperty(t,n,{enumerable:l.enumerable,configurable:l.configurable,writable:l.writable,value:l.initializer?l.initializer.call(r):void 0})}beforeModel(){return this.router.replaceWith("vault.cluster.secrets.backend.list-root")}},r=l.prototype,a="router",o=[n.service],s={configurable:!0,enumerable:!0,writable:!0,initializer:null},c={},Object.keys(s).forEach((function(e){c[e]=s[e]})),c.enumerable=!!c.enumerable,c.configurable=!!c.configurable,("value"in c||c.initializer)&&(c.writable=!0),c=o.slice().reverse().reduce((function(e,t){return t(r,a,e)||e}),c),u&&void 0!==c.initializer&&(c.value=c.initializer?c.initializer.call(u):void 0,c.initializer=void 0),i=void 0===c.initializer?(Object.defineProperty(r,a,c),null):c,l)
var r,a,o,s,u,c})),define("vault/routes/vault/cluster/secrets/backend/list-root",["exports","vault/routes/vault/cluster/secrets/backend/list"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.default}})})),define("vault/routes/vault/cluster/secrets/backend/list",["exports","@ember/object","rsvp","@ember/routing/route","vault/helpers/supported-secret-backends","vault/helpers/mountable-secret-engines","@ember/service","vault/utils/path-encoding-helpers","@ember/debug","kv/utils/kv-breadcrumbs"],(function(e,t,n,l,i,r,a,o,s,u){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
const c=(0,i.supportedSecretBackends)()
function d(e){if("number"==typeof e)return e
if("string"==typeof e)try{return parseInt(e,10)||1}catch(t){return 1}return 1}e.default=l.default.extend({store:(0,a.service)(),templateName:"vault/cluster/secrets/backend/list",pathHelp:(0,a.service)("path-help"),router:(0,a.service)(),queryParams:{page:{refreshModel:!0},pageFilter:{refreshModel:!0},tab:{refreshModel:!0}},modelTypeForTransform(e){let t
switch(e){case"role":t="transform/role"
break
case"template":t="transform/template"
break
case"alphabet":t="transform/alphabet"
break
default:t="transform"}return t},secretParam(){const{secret:e}=this.paramsFor(this.routeName)
return e?(0,o.normalizePath)(e):""},enginePathParam(){const{backend:e}=this.paramsFor("vault.cluster.secrets.backend")
return e},beforeModel(){const e=this.secretParam(),t=this.enginePathParam(),{tab:n}=this.paramsFor("vault.cluster.secrets.backend.list-root"),l=this.store.peekRecord("secret-engine",t),i=l?.engineType,a=(0,r.allEngines)().find((e=>e.type===i))?.engineRoute
if(!i||!c.includes(i))return this.router.transitionTo("vault.cluster.secrets")
if("vault.cluster.secrets.backend.list"===this.routeName&&!e.endsWith("/"))return this.router.replaceWith("vault.cluster.secrets.backend.list",e+"/")
if((0,r.isAddonEngine)(i,l.version))return"kv.list"===a&&(0,u.pathIsDirectory)(e)?this.router.transitionTo("vault.cluster.secrets.backend.kv.list-directory",t,e):this.router.transitionTo(`vault.cluster.secrets.backend.${a}`,t)
if(l.isV2KV)return this.router.transitionTo("vault.cluster.secrets.backend.kv.list",t)
const o=this.getModelType(t,n)
return this.pathHelp.hydrateModel(o,t).then((()=>{this.store.unloadAll("capabilities")}))},getModelType(e,t){const n=this.store.peekRecord("secret-engine",e).engineType
return{database:"role"===t?"database/role":"database/connection",transit:"transit-key",ssh:"role-ssh",transform:this.modelTypeForTransform(t),aws:"role-aws",cubbyhole:"secret",kv:"secret",keymgmt:`keymgmt/${t||"key"}`,generic:"secret"}[n]},async model(e){const t=this.secretParam()||"",l=this.enginePathParam(),i=this.modelFor("vault.cluster.secrets.backend"),r=this.getModelType(l,e.tab)
return(0,n.hash)({secret:t,secrets:this.store.lazyPaginatedQuery(r,{id:t,backend:l,responsePath:"data.keys",page:d(e.page),pageFilter:e.pageFilter}).then((e=>(this.set("has404",!1),e))).catch((e=>{if(i&&404===e.httpStatus)return[]
throw e}))})},setupController(e,t){const n=this.paramsFor(this.routeName),l=t.secret,i=t.secrets,r=this.enginePathParam(),a=this.store.peekRecord("secret-engine",r),o=this.has404
if(l!==e?.baseKey?.id&&this.store.clearAllDatasets(),e.set("hasModel",!0),e.setProperties({model:i,has404:o,backend:r,backendModel:a,baseKey:{id:l},backendType:a.engineType}),!o){const t=n.pageFilter
let r
l?r=l+(t||""):t&&(r=t),e.setProperties({filter:r||"",page:i.meta?.currentPage||1})}},resetController(e,t){this._super(...arguments),t&&(e.set("pageFilter",null),e.set("filter",null))},actions:{error(e,n){const l=this.secretParam(),i=this.enginePathParam(),r=404===e.httpStatus,a=this.controllerFor(this.routeName).hasModel
return(0,t.set)(e,"secret",l),(0,t.set)(e,"isRoot",!0),(0,t.set)(e,"backend",i),!a||!r||(this.set("has404",!0),n.abort(),!1)},willTransition(e){return window.scrollTo(0,0),e.targetName!==this.routeName&&this.store.clearAllDatasets(),!0},reload(){this.store.clearAllDatasets(),this.refresh()}}})})),define("vault/routes/vault/cluster/secrets/backend/overview",["exports","@ember/routing/route","rsvp","@ember/service"],(function(e,t,n,l){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default=t.default.extend({store:(0,l.service)(),type:"",enginePathParam(){const{backend:e}=this.paramsFor("vault.cluster.secrets.backend")
return e},async fetchConnection(e){try{return await this.store.query("database/connection",e)}catch(t){return t.httpStatus}},async fetchAllRoles(e){try{return await this.store.query("database/role",e)}catch(t){return t.httpStatus}},pathQuery:(e,t)=>({id:`${e}/${t}/`}),async fetchCapabilitiesRole(e){return this.store.queryRecord("capabilities",this.pathQuery(e.backend,"roles"))},async fetchCapabilitiesStaticRole(e){return this.store.queryRecord("capabilities",this.pathQuery(e.backend,"static-roles"))},async fetchCapabilitiesConnection(e){return this.store.queryRecord("capabilities",this.pathQuery(e.backend,"config"))},model(){const e=this.enginePathParam(),t={backend:e,id:""},l=this.fetchConnection(t),i=this.fetchAllRoles(t),r=this.fetchCapabilitiesRole(t),a=this.fetchCapabilitiesStaticRole(t),o=this.fetchCapabilitiesConnection(t)
return(0,n.hash)({backend:e,connections:l,roles:i,engineType:"database",id:e,roleCapabilities:r,staticRoleCapabilities:a,connectionCapabilities:o,icon:"database"})},setupController(e,t){this._super(...arguments)
const n=404===t.connections&&404===t.roles,l=!t.connectionCapabilities.canList&&!t.connectionCapabilities.canCreate&&!t.connectionCapabilities.canUpdate
e.set("showEmptyState",n),e.set("emptyStateMessage",l?"You cannot yet generate credentials.  Ask your administrator if you think you should have access.":"You can connect an external database to Vault.  We recommend that you create a user for Vault rather than using the database root user.")}})})),define("vault/routes/vault/cluster/secrets/backend/secret-edit",["exports","@ember/object","ember","rsvp","@ember/service","@ember/routing/route","vault/utils/path-encoding-helpers","core/utils/key-utils"],(function(e,t,n,l,i,r,a,o){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default=r.default.extend({store:(0,i.service)(),router:(0,i.service)(),pathHelp:(0,i.service)("path-help"),secretParam(){const{secret:e}=this.paramsFor(this.routeName)
return e?(0,a.normalizePath)(e):""},enginePathParam(){const{backend:e}=this.paramsFor("vault.cluster.secrets.backend")
return e},capabilities(e,t){const n=this.enginePathParam(),l=this.modelFor("vault.cluster.secrets.backend").engineType
let i
return i="transit"===l?n+"/keys/"+e:"ssh"===l||"aws"===l?n+"/roles/"+e:t.startsWith("transform/")?this.buildTransformPath(n,e,t):n+"/"+e,this.store.findRecord("capabilities",i)},buildTransformPath:(e,t,n)=>`${e}/${n.split("/")[1]}/${t}`,modelTypeForTransform:e=>e?e.startsWith("role/")?"transform/role":e.startsWith("template/")?"transform/template":e.startsWith("alphabet/")?"transform/alphabet":"transform":"transform",transformSecretName(e,t){const n=t.split("/")[1]
return e.replace(`${n}/`,"")},backendType(){return this.modelFor("vault.cluster.secrets.backend").engineType},templateName:"vault/cluster/secrets/backend/secretEditLayout",beforeModel({to:{queryParams:e}}){const t=this.secretParam(),n=this.modelFor("vault.cluster.secrets.backend")
return this.buildModel(t,e).then((()=>{const e=(0,o.parentKeyForKey)(t),l=this.routeName.split(".").pop()
if("kv"!==n.type||2!==n.version)"edit"===l&&(0,o.keyIsFolder)(t)&&(e?this.router.transitionTo("vault.cluster.secrets.backend.list",(0,a.encodePath)(e)):this.router.transitionTo("vault.cluster.secrets.backend.list-root"))
else{let e,l
switch(!0){case!t:e="vault.cluster.secrets.backend.kv.create",l=[n.id]
break
case"vault.cluster.secrets.backend.show"===this.routeName:e="vault.cluster.secrets.backend.kv.secret.index",l=[n.id,t]
break
case"vault.cluster.secrets.backend.edit"===this.routeName:e="vault.cluster.secrets.backend.kv.secret.details.edit",l=[n.id,t]
break
default:e="vault.cluster.secrets.backend.kv.secret.index",l=[n.id,t]}this.router.transitionTo(e,...l)}}))},buildModel(e,t){const n=this.enginePathParam(),i=this.modelType(n,e,{queryParams:t})
return"secret"===i?(0,l.resolve)():this.pathHelp.hydrateModel(i,n)},modelType(e,t,n={}){const l=this.modelFor("vault.cluster.secrets.backend",e),{engineType:i}=l
return{database:t&&t.startsWith("role/")?"database/role":"database/connection",transit:"transit-key",ssh:"role-ssh",transform:this.modelTypeForTransform(t),aws:"role-aws",cubbyhole:"secret",kv:"secret",keymgmt:`keymgmt/${n.queryParams?.itemType||"key"}`,generic:"secret"}[i]},handleSecretModelError(e,t,n,l){if(!e.canUpdate&&"secret"===n)throw l
this.store.push({data:{id:t,type:n,attributes:{failedServerRead:!0}}})
return this.store.peekRecord(n,t)},async model(e,{to:{queryParams:t}}){let n=this.secretParam()
const l=this.enginePathParam(),i=this.modelType(l,n,{queryParams:t}),r=e.type||""
let a
n||(n=" "),i.startsWith("transform/")&&(n=this.transformSecretName(n,i)),"database/role"===i&&(n=n.replace("role/",""))
const o=this.capabilities(n,i)
try{a=await this.store.queryRecord(i,{id:n,backend:l,type:r})}catch(s){if(403!==s.httpStatus||"secret"!==i)throw s
await o,a=this.handleSecretModelError(o,n,i,s)}return await o,{secret:a,capabilities:o}},setupController(e,t){this._super(...arguments)
const n=this.secretParam(),l=this.enginePathParam(),i=this.controllerFor("vault.cluster.secrets.backend").preferAdvancedEdit||!1,r=this.backendType()
t.secret.setProperties({backend:l}),e.setProperties({model:t.secret,capabilities:t.capabilities,baseKey:{id:n},mode:this.routeName.split(".").pop().replace("-root",""),backend:l,preferAdvancedEdit:i,backendType:r})},resetController(e){e.reset&&"function"==typeof e.reset&&e.reset()},actions:{error(e){const n=this.secretParam(),l=this.enginePathParam()
return(0,t.set)(e,"keyId",l+"/"+n),(0,t.set)(e,"backend",l),!0},refreshModel(){this.refresh()},willTransition(e){const{mode:t,model:l}=this.controller
if(!l.hasDirtyAttributes||l.isDeleted)return!0
const i=l.changedAttributes(),r=Object.keys(i)
return"show"!==t&&r.length&&"backend"!==r[0]?n.default.testing||window.confirm("You have unsaved changes. Navigating away will discard these changes. Are you sure you want to discard your changes?")?(l&&l.rollbackAttributes(),!0):(e.abort(),!1):this._super(...arguments)}}})})),define("vault/routes/vault/cluster/secrets/backend/show-root",["exports","vault/routes/vault/cluster/secrets/backend/show"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.default}})})),define("vault/routes/vault/cluster/secrets/backend/show",["exports","vault/routes/vault/cluster/secrets/backend/secret-edit"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default=t.default.extend({queryParams:{version:{refreshModel:!0}}})})),define("vault/routes/vault/cluster/secrets/backend/sign-root",["exports","vault/routes/vault/cluster/secrets/backend/sign"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.default}})})),define("vault/routes/vault/cluster/secrets/backend/sign",["exports","@ember/routing/route","vault/mixins/unload-model-route","@ember/service"],(function(e,t,n,l){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default=t.default.extend(n.default,{router:(0,l.service)(),store:(0,l.service)(),templateName:"vault/cluster/secrets/backend/sign",backendModel(){return this.modelFor("vault.cluster.secrets.backend")},pathQuery:(e,t)=>({id:`${t}/sign/${e}`}),pathForType:()=>"sign",model(e){const t=e.secret,n=this.backendModel(),l=n.id
return"ssh"!==n.type?this.router.transitionTo("vault.cluster.secrets.backend.list-root",l):this.store.queryRecord("capabilities",this.pathQuery(t,l)).then((e=>e.canUpdate?this.store.createRecord("ssh-sign",{role:{backend:l,id:t,name:t},id:`${l}-${t}`}):this.router.transitionTo("vault.cluster.secrets.backend.list-root",l)))},setupController(e){this._super(...arguments),e.set("backend",this.backendModel())}})})),define("vault/routes/vault/cluster/secrets/backends",["exports","@ember/routing/route","@ember/service"],(function(e,t,n){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default=t.default.extend({store:(0,n.service)(),model(){return this.store.query("secret-engine",{})}})})),define("vault/routes/vault/cluster/settings",["exports","@ember/routing/route","vault/mixins/cluster-route"],(function(e,t,n){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default=t.default.extend(n.default,{model:()=>({})})}))
define("vault/routes/vault/cluster/settings/auth/configure",["exports","@ember/routing/route","@ember/service"],(function(e,t,n){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default=t.default.extend({store:(0,n.service)(),model(){const{method:e}=this.paramsFor(this.routeName)
return this.store.findAll("auth-method").then((()=>this.store.peekRecord("auth-method",e)))}})})),define("vault/routes/vault/cluster/settings/auth/configure/index",["exports","@ember/routing/route","@ember/service","vault/helpers/tabs-for-auth-section"],(function(e,t,n,l){var i,r
Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default=(i=class extends t.default{constructor(...e){var t,n,l,i
super(...e),t=this,n="router",i=this,(l=r)&&Object.defineProperty(t,n,{enumerable:l.enumerable,configurable:l.configurable,writable:l.writable,value:l.initializer?l.initializer.call(i):void 0})}beforeModel(){const e=this.modelFor("vault.cluster.settings.auth.configure"),t=(0,l.tabsForAuthSection)([e])[0].routeParams.slice().pop()
return this.router.transitionTo("vault.cluster.settings.auth.configure.section",t)}},a=i.prototype,o="router",s=[n.service],u={configurable:!0,enumerable:!0,writable:!0,initializer:null},d={},Object.keys(u).forEach((function(e){d[e]=u[e]})),d.enumerable=!!d.enumerable,d.configurable=!!d.configurable,("value"in d||d.initializer)&&(d.writable=!0),d=s.slice().reverse().reduce((function(e,t){return t(a,o,e)||e}),d),c&&void 0!==d.initializer&&(d.value=d.initializer?d.initializer.call(c):void 0,d.initializer=void 0),r=void 0===d.initializer?(Object.defineProperty(a,o,d),null):d,i)
var a,o,s,u,c,d})),define("vault/routes/vault/cluster/settings/auth/configure/section",["exports","@ember-data/adapter/error","@ember/service","@ember/object","@ember/routing/route","rsvp","vault/mixins/unload-model-route","vault/utils/openapi-helpers"],(function(e,t,n,l,i,r,a,o){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default=i.default.extend(a.default,{modelPath:"model.model",pathHelp:(0,n.service)("path-help"),store:(0,n.service)(),modelType:(e,t)=>({"aws-client":"auth-config/aws/client","aws-identity-accesslist":"auth-config/aws/identity-accesslist","aws-roletag-denylist":"auth-config/aws/roletag-denylist","azure-configuration":"auth-config/azure","github-configuration":"auth-config/github","gcp-configuration":"auth-config/gcp","jwt-configuration":"auth-config/jwt","oidc-configuration":"auth-config/oidc","kubernetes-configuration":"auth-config/kubernetes","ldap-configuration":"auth-config/ldap","okta-configuration":"auth-config/okta","radius-configuration":"auth-config/radius"}[`${e}-${t}`]),beforeModel(){const{section_name:e}=this.paramsFor(this.routeName)
if("options"===e)return
const{method:t}=this.paramsFor("vault.cluster.settings.auth.configure"),n=this.modelFor("vault.cluster.settings.auth.configure"),l=this.modelType(n.type,e)
return(0,o.getHelpUrlForModel)(l)?this.pathHelp.hydrateModel(l,t):this.pathHelp.getNewModel(l,t,n.apiPath)},model(e){const n=this.modelFor("vault.cluster.settings.auth.configure"),{section_name:i}=e
if("options"===i)return r.default.hash({model:n,section:i})
const a=this.modelType(n.type,i)
if(!a){const e=new t.default
throw(0,l.set)(e,"httpStatus",404),e}const o=this.store.peekRecord(a,n.id)
return o?r.default.hash({model:o,section:i}):this.store.findRecord(a,n.id).then((e=>(e.set("backend",n),r.default.hash({model:e,section:i})))).catch((e=>{let t
if(404===e.httpStatus)return t=this.store.createRecord(a,{id:n.id}),t.set("backend",n),r.default.hash({model:t,section:i})
throw e}))},actions:{willTransition(){if("auth-method"!==this.currentModel.model.constructor.modelName)return this.unloadModel(),!0}}})})),define("vault/routes/vault/cluster/settings/auth/enable",["exports","@ember/routing/route","@ember/service"],(function(e,t,n){var l,i
Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default=(l=class extends t.default{constructor(...e){var t,n,l,r
super(...e),t=this,n="store",r=this,(l=i)&&Object.defineProperty(t,n,{enumerable:l.enumerable,configurable:l.configurable,writable:l.writable,value:l.initializer?l.initializer.call(r):void 0})}model(){const e=this.store.createRecord("auth-method")
return e.set("config",this.store.createRecord("mount-config")),e}},r=l.prototype,a="store",o=[n.service],s={configurable:!0,enumerable:!0,writable:!0,initializer:null},c={},Object.keys(s).forEach((function(e){c[e]=s[e]})),c.enumerable=!!c.enumerable,c.configurable=!!c.configurable,("value"in c||c.initializer)&&(c.writable=!0),c=o.slice().reverse().reduce((function(e,t){return t(r,a,e)||e}),c),u&&void 0!==c.initializer&&(c.value=c.initializer?c.initializer.call(u):void 0,c.initializer=void 0),i=void 0===c.initializer?(Object.defineProperty(r,a,c),null):c,l)
var r,a,o,s,u,c})),define("vault/routes/vault/cluster/settings/auth/index",["exports","@ember/routing/route","@ember/service"],(function(e,t,n){var l,i
Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default=(l=class extends t.default{constructor(...e){var t,n,l,r
super(...e),t=this,n="router",r=this,(l=i)&&Object.defineProperty(t,n,{enumerable:l.enumerable,configurable:l.configurable,writable:l.writable,value:l.initializer?l.initializer.call(r):void 0})}beforeModel(){return this.router.replaceWith("vault.cluster.settings.auth.enable")}},r=l.prototype,a="router",o=[n.service],s={configurable:!0,enumerable:!0,writable:!0,initializer:null},c={},Object.keys(s).forEach((function(e){c[e]=s[e]})),c.enumerable=!!c.enumerable,c.configurable=!!c.configurable,("value"in c||c.initializer)&&(c.writable=!0),c=o.slice().reverse().reduce((function(e,t){return t(r,a,e)||e}),c),u&&void 0!==c.initializer&&(c.value=c.initializer?c.initializer.call(u):void 0,c.initializer=void 0),i=void 0===c.initializer?(Object.defineProperty(r,a,c),null):c,l)
var r,a,o,s,u,c})),define("vault/routes/vault/cluster/settings/index",["exports","@ember/routing/route","@ember/service"],(function(e,t,n){var l,i
Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default=(l=class extends t.default{constructor(...e){var t,n,l,r
super(...e),t=this,n="router",r=this,(l=i)&&Object.defineProperty(t,n,{enumerable:l.enumerable,configurable:l.configurable,writable:l.writable,value:l.initializer?l.initializer.call(r):void 0})}beforeModel(e){if(e.targetName===this.routeName)return e.abort(),this.router.replaceWith("vault.cluster.settings.mount-secret-backend")}},r=l.prototype,a="router",o=[n.service],s={configurable:!0,enumerable:!0,writable:!0,initializer:null},c={},Object.keys(s).forEach((function(e){c[e]=s[e]})),c.enumerable=!!c.enumerable,c.configurable=!!c.configurable,("value"in c||c.initializer)&&(c.writable=!0),c=o.slice().reverse().reduce((function(e,t){return t(r,a,e)||e}),c),u&&void 0!==c.initializer&&(c.value=c.initializer?c.initializer.call(u):void 0,c.initializer=void 0),i=void 0===c.initializer?(Object.defineProperty(r,a,c),null):c,l)
var r,a,o,s,u,c})),define("vault/routes/vault/cluster/settings/mount-secret-backend",["exports","@ember/routing/route","@ember/service"],(function(e,t,n){var l,i
Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default=(l=class extends t.default{constructor(...e){var t,n,l,r
super(...e),t=this,n="store",r=this,(l=i)&&Object.defineProperty(t,n,{enumerable:l.enumerable,configurable:l.configurable,writable:l.writable,value:l.initializer?l.initializer.call(r):void 0})}model(){const e=this.store.createRecord("secret-engine")
return e.set("config",this.store.createRecord("mount-config")),e}},r=l.prototype,a="store",o=[n.service],s={configurable:!0,enumerable:!0,writable:!0,initializer:null},c={},Object.keys(s).forEach((function(e){c[e]=s[e]})),c.enumerable=!!c.enumerable,c.configurable=!!c.configurable,("value"in c||c.initializer)&&(c.writable=!0),c=o.slice().reverse().reduce((function(e,t){return t(r,a,e)||e}),c),u&&void 0!==c.initializer&&(c.value=c.initializer?c.initializer.call(u):void 0,c.initializer=void 0),i=void 0===c.initializer?(Object.defineProperty(r,a,c),null):c,l)
var r,a,o,s,u,c})),define("vault/routes/vault/cluster/settings/seal",["exports","rsvp","@ember/routing/route","@ember/service"],(function(e,t,n,l){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default=n.default.extend({store:(0,l.service)(),model(){return(0,t.hash)({cluster:this.modelFor("vault.cluster"),seal:this.store.findRecord("capabilities","sys/seal")})}})})),define("vault/routes/vault/cluster/storage",["exports","@ember/routing/route","vault/mixins/cluster-route","@ember/service"],(function(e,t,n,l){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default=t.default.extend(n.default,{store:(0,l.service)(),model(){return this.store.query("server",{})},actions:{doRefresh(){this.refresh()}}})})),define("vault/routes/vault/cluster/tools",["exports","@ember/routing/route","vault/mixins/cluster-route"],(function(e,t,n){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default=t.default.extend(n.default,{model(){return this.modelFor("vault.cluster")}})})),define("vault/routes/vault/cluster/tools/index",["exports","@ember/service","@ember/routing/route","vault/helpers/tools-actions"],(function(e,t,n,l){var i,r,a
function o(e,t,n,l){n&&Object.defineProperty(e,t,{enumerable:n.enumerable,configurable:n.configurable,writable:n.writable,value:n.initializer?n.initializer.call(l):void 0})}function s(e,t,n,l,i){var r={}
return Object.keys(l).forEach((function(e){r[e]=l[e]})),r.enumerable=!!r.enumerable,r.configurable=!!r.configurable,("value"in r||r.initializer)&&(r.writable=!0),r=n.slice().reverse().reduce((function(n,l){return l(e,t,n)||n}),r),i&&void 0!==r.initializer&&(r.value=r.initializer?r.initializer.call(i):void 0,r.initializer=void 0),void 0===r.initializer?(Object.defineProperty(e,t,r),null):r}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default=(i=class extends n.default{constructor(...e){super(...e),o(this,"currentCluster",r,this),o(this,"router",a,this)}beforeModel(e){const t=this.currentCluster.cluster.name,n=(0,l.toolsActions)()
if(e.targetName===this.routeName)return e.abort(),this.router.replaceWith("vault.cluster.tools.tool",t,n[0])}},r=s(i.prototype,"currentCluster",[t.service],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),a=s(i.prototype,"router",[t.service],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),i)})),define("vault/routes/vault/cluster/tools/tool",["exports","@ember/routing/route","vault/helpers/tools-actions"],(function(e,t,n){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default=t.default.extend({model(e){if((0,n.toolsActions)().includes(e.selected_action))return e.selected_action
throw new Error("Given param is not a supported tool action")},setupController(e,t){this._super(...arguments),e.set("selectedAction",t)},actions:{didTransition(){const e=this.paramsFor(this.routeName)
return this.controller.setProperties(e),!0}}})})),define("vault/routes/vault/cluster/unseal",["exports","vault/routes/vault/cluster/cluster-route-base"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default=t.default.extend({})})),define("vault/serializers/-default",["exports","@ember-data/serializer/json"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.default}})})),define("vault/serializers/-json-api",["exports","@ember-data/serializer/json-api"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.default}})})),define("vault/serializers/-rest",["exports","@ember-data/serializer/rest"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.default}})})),define("vault/serializers/application",["exports","@ember-data/serializer/json","@ember/utils","@ember/string"],(function(e,t,n,l){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default=t.default.extend({keyForAttribute:function(e){return(0,l.decamelize)(e)},normalizeItems(e){if(e.data&&e.data.keys&&Array.isArray(e.data.keys)){return e.data.keys.map((t=>{if("string"!=typeof t)return t
const n=this.primaryKey||"id"
let l={[n]:t}
return e._requestQuery&&(l={...l,...e._requestQuery}),l}))}return Object.assign(e,e.data),delete e.data,e},pushPayload(e,t){const n=this.normalizeResponse(e,e.modelFor(t.modelName),t,t.id,"findRecord")
return e.push(n)},normalizeResponse(e,t,n,l,i){const r=this.normalizeItems(n,i)
delete n._requestQuery,l&&!r.id&&(r.id=l)
let a=this._super(e,t,r,l,i)
return t.relatedCapabilities&&(a=t.relatedCapabilities(a)),a},serializeAttribute(e,t,l,i){const r=e.attr(l),a=(0,n.isNone)(e.changedAttributes()[l]),o=(0,n.isBlank)(r)
i.options.readOnly||o&&a||this._super(e,t,l,i)},serializeBelongsTo:(e,t)=>t})})),define("vault/serializers/auth-method",["exports","vault/serializers/application","@ember-data/serializer/rest"],(function(e,t,n){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default=t.default.extend(n.EmbeddedRecordsMixin,{attrs:{config:{embedded:"always"}},normalize(e,t){return t.config&&!t.config.id&&(t.config.id=t.uuid),this._super(e,t)},normalizeBackend(e,t){const n={...t}
return n.id=e.slice(0,-1),n.path=e,n},normalizeResponse(e,t,n,l,i){const r="createRecord"===i?n.data:Object.keys(n.data).map((e=>this.normalizeBackend(e,n.data[e])))
return this._super(e,t,r,l,i)}})})),define("vault/serializers/aws/root-config",["exports","vault/serializers/application"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
class n extends t.default{normalizeResponse(e,t,n,l,i){if(!n.data)return super.normalizeResponse(...arguments)
0===n.data.identity_token_ttl&&delete n.data.identity_token_ttl,-1===n.data.max_retries&&delete n.data.max_retries
const r={id:n.id,backend:n.backend,data:{...n.data}}
return super.normalizeResponse(e,t,r,l,i)}}e.default=n})),define("vault/serializers/capabilities",["exports","vault/serializers/application"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default=t.default.extend({primaryKey:"path",normalizeResponse(e,t,n,l,i){let r
return l&&(n.path=l),r="query"===i?Object.keys(n.data).map((e=>{const t=n.pathMap?n.pathMap[e]:e
return{capabilities:n.data[e],path:t}})):{...n.data,path:n.path},this._super(e,t,r,l,i)},modelNameFromPayloadKey:()=>"capabilities"})})),define("vault/serializers/clients/activity",["exports","vault/serializers/application","date-fns","core/utils/client-count-utils","core/utils/timestamp"],(function(e,t,n,l,i){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
class r extends t.default{normalizeResponse(e,t,r,a,o){if("no-data"===r.id)return super.normalizeResponse(e,t,r,a,o)
const s=(0,n.formatISO)(i.default.now()),u={...r,response_timestamp:s,by_namespace:(0,l.formatByNamespace)(r.data.by_namespace),by_month:(0,l.formatByMonths)(r.data.months),total:(0,l.destructureClientCounts)(r.data.total)}
return delete r.data.by_namespace,delete r.data.months,delete r.data.total,super.normalizeResponse(e,t,u,a,o)}}e.default=r})),define("vault/serializers/clients/config",["exports","vault/serializers/application"],(function(e,t){function n(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e
var n=e[Symbol.toPrimitive]
if(void 0!==n){var l=n.call(e,t||"default")
if("object"!=typeof l)return l
throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string")
return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
class l extends t.default{constructor(...e){super(...e),n(this,"attrs",{billingStartTimestamp:{serialize:!1},minimumRetentionMonths:{serialize:!1},reportingEnabled:{serialize:!1}})}normalizeResponse(e,t,n,l,i){if(!n.data)return super.normalizeResponse(...arguments)
const r={id:n.id,data:{...n.data,enabled:n.data.enabled?.includes("enable")?"On":"Off"}}
return super.normalizeResponse(e,t,r,l,i)}serialize(){const e=super.serialize(...arguments)
if("On"===e.enabled||"Off"===e.enabled){const t=e.enabled
e.enabled="On"===t?"enable":"disable"}if(e.retention_months=parseInt(e.retention_months,10),isNaN(e.retention_months))throw new Error("Invalid number value")
return delete e.queries_available,e}}e.default=l})),define("vault/serializers/clients/version-history",["exports","vault/serializers/application"],(function(e,t){function n(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e
var n=e[Symbol.toPrimitive]
if(void 0!==n){var l=n.call(e,t||"default")
if("object"!=typeof l)return l
throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string")
return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
class l extends t.default{constructor(...e){super(...e),n(this,"primaryKey","version")}normalizeItems(e){if(e.data.keys&&Array.isArray(e.data.keys))return e.data.keys.map((t=>({version:t,...e.data.key_info[t]})))}}e.default=l})),define("vault/serializers/cluster",["exports","@ember-data/serializer/rest","@ember/string","vault/utils/identity-manager"],(function(e,t,n,l){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
const i=new l.default
e.default=t.default.extend(t.EmbeddedRecordsMixin,{keyForAttribute:function(e){return(0,n.decamelize)(e)},attrs:{nodes:{embedded:"always"},dr:{embedded:"always"},performance:{embedded:"always"}},setReplicationId(e){e&&(e.id=e.cluster_id||i.fetch())},normalize(e,t){return this.setReplicationId(t.dr),this.setReplicationId(t.performance),this._super(e,t)},pushPayload(e,t){const n=this.normalizeResponse(e,e.modelFor("cluster"),t,null,"findAll")
return e.push(n)},normalizeResponse(e,t,n,l,i){const r={clusters:Object.assign({id:"1"},n.data||n)}
return this._super(e,t,r,l,i)}})})),define("vault/serializers/config-ui/message",["exports","core/utils/b64","vault/serializers/application"],(function(e,t,n){function l(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e
var n=e[Symbol.toPrimitive]
if(void 0!==n){var l=n.call(e,t||"default")
if("object"!=typeof l)return l
throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string")
return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
class i extends n.default{constructor(...e){super(...e),l(this,"attrs",{active:{serialize:!1}})}normalizeResponse(e,n,l,i,r){if("query"===r&&!l.meta){const t=this.mapPayload(l)
return super.normalizeResponse(e,n,t,i,r)}if("queryRecord"===r){const a={...l.data,message:(0,t.decodeString)(l.data.message)}
return super.normalizeResponse(e,n,a,i,r)}return super.normalizeResponse(e,n,l,i,r)}serialize(){const e=super.serialize(...arguments)
return e.message=(0,t.encodeString)(e.message),e}mapPayload(e){if(e.data){if(e.data?.keys&&Array.isArray(e.data.keys))return e.data.keys.map((n=>{const l={id:n,...e.data.key_info[n]}
return l.message&&(l.message=(0,t.decodeString)(l.message)),l}))
Object.assign(e,e.data),delete e.data}return e}extractLazyPaginatedData(e){return this.mapPayload(e)}}e.default=i})),define("vault/serializers/config",["exports","@ember-data/serializer/rest","@ember/string"],(function(e,t,n){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default=t.default.extend({keyForAttribute:function(e){return(0,n.decamelize)(e)},normalizeAll(e){if(e.data){return[{...e,...e.data}]}return[e]},normalizeResponse(e,t,n,l,i){const r=this.normalizeAll(n),{modelName:a}=t
let o={[a]:r}
return"queryRecord"===i&&(o={[a]:r[0]}),this._super(e,t,o,l,i)}})})),define("vault/serializers/control-group",["exports","@ember-data/serializer/rest","vault/serializers/application"],(function(e,t,n){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default=n.default.extend(t.EmbeddedRecordsMixin,{attrs:{requestEntity:{embedded:"always"},authorizations:{embedded:"always"}},normalizeResponse(e,t,n){const l=n?.data?.request_entity
if(Array.isArray(n.data.authorizations))for(const i of n.data.authorizations)i.id=i.entity_id,i.name=i.entity_name
return l&&0===Object.keys(l).length&&(n.data.request_entity=null),this._super(...arguments)},serialize:e=>({accessor:e.id})})})),define("vault/serializers/database/connection",["exports","@ember-data/serializer/rest","vault/utils/database-helpers"],(function(e,t,n){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default=t.default.extend({primaryKey:"name",serializeAttribute(e,t,n,l){void 0!==e.attr(n)&&this._super(e,t,n,l)},normalizeSecrets(e){if(e.data.keys&&Array.isArray(e.data.keys)){return e.data.keys.map((t=>({name:t,backend:e.backend})))}const t={id:e.id,name:e.id,backend:e.backend,...e.data,...e.data.connection_details}
return e.data.root_credentials_rotate_statements&&(t.root_rotation_statements=e.data.root_credentials_rotate_statements),t},normalizeResponse(e,t,n,l,i){const r=["updateRecord","createRecord","deleteRecord"].includes(i)?{name:n.data.name,backend:n.data.backend}:this.normalizeSecrets(n),{modelName:a}=t
let o={[a]:r}
return"queryRecord"===i&&(o={[a]:{id:l,...r}}),this._super(e,t,o,l,i)},serialize(e,t){const l=this._super(e,t)
if(!l.plugin_name)return l
const i=n.AVAILABLE_PLUGIN_TYPES.find((e=>e.value===l.plugin_name))
if(!i)return l
const r=i.fields.map((e=>e.attr)).concat("backend"),a=Object.keys(l).filter((e=>r.includes(e)))
for(const n in l)"allowed_roles"===n||a.includes(n)||delete l[n]
return l}})})),define("vault/serializers/database/credential",["exports","@ember-data/serializer/rest"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default=t.default.extend({primaryKey:"username",normalizePayload(e){if(e.data)return{username:e.data.username,password:e.data.password,leaseId:e.lease_id,leaseDuration:e.lease_duration,lastVaultRotation:e.data.last_vault_rotation,rotationPeriod:e.data.rotation_period,ttl:e.data.ttl,roleType:e.roleType}},normalizeResponse(e,t,n,l,i){const r=this.normalizePayload(n),{modelName:a}=t,o={[a]:r}
return this._super(e,t,o,l,i)}})})),define("vault/serializers/database/role",["exports","@ember-data/serializer/rest"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default=t.default.extend({primaryKey:"name",normalizeSecrets(e){if(e.data.keys&&Array.isArray(e.data.keys)){const t=e.data.keys.map((t=>{let n="dynamic",l="roles"
return e.data.staticRoles.includes(t)&&(n="static",l="static-roles"),{name:t,backend:e.backend,type:n,path:l}}))
return t}let t="roles"
"static"===e.type&&(t="static-roles")
let n=[]
e.data.db_name&&(n=[e.data.db_name])
let l="",i=""
return e.data.creation_statements&&(l=e.data.creation_statements[0]),e.data.revocation_statements&&(i=e.data.revocation_statements[0]),{id:e.id,backend:e.backend,name:e.id,type:e.type,database:n,path:t,creation_statement:l,revocation_statement:i,...e.data}},normalizeResponse(e,t,n,l,i){const r=["updateRecord","createRecord","deleteRecord"].includes(i)?{name:l,backend:n.backend}:this.normalizeSecrets(n),{modelName:a}=t
let o={[a]:r}
return"queryRecord"===i&&(o={[a]:r}),this._super(e,t,o,l,i)},serializeAttribute(e,t,n,l){void 0!==e.attr(n)&&(e.record.isNew||e.changedAttributes()[n])&&this._super(e,t,n,l)},serialize(e,t){const n=this._super(e,t)
if(n.database){const e=n.database[0]
n.db_name=e,delete n.database}if(n.creation_statement){const e=n.creation_statement
n.creation_statements=[e],delete n.creation_statement}if(n.revocation_statement){const e=n.revocation_statement
n.revocation_statements=[e],delete n.revocation_statement}return n}})}))
define("vault/serializers/identity/_base",["exports","vault/serializers/application"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default=t.default.extend({normalizeItems:e=>e.data.keys&&Array.isArray(e.data.keys)?"string"!=typeof e.data.keys[0]?e.data.keys:e.data.keys.map((t=>{const n=e.data.key_info[t]
return n.id=t,n})):(Object.assign(e,e.data),delete e.data,e)})})),define("vault/serializers/identity/entity-alias",["exports","vault/serializers/identity/_base"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default=t.default.extend({extractLazyPaginatedData:e=>e.data.keys.map((t=>{const n=e.data.key_info[t]
return n.id=t,e.backend&&(n.backend=e.backend),n}))})})),define("vault/serializers/identity/entity",["exports","@ember-data/serializer/rest","vault/serializers/identity/_base"],(function(e,t,n){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default=n.default.extend(t.EmbeddedRecordsMixin,{serializeHasMany(){},attrs:{aliases:{embedded:"always"}},extractLazyPaginatedData:e=>e.data.keys.map((t=>{const n=e.data.key_info[t]
return n.id=t,e.backend&&(n.backend=e.backend),n}))})})),define("vault/serializers/identity/group-alias",["exports","vault/serializers/identity/_base"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default=t.default.extend()})),define("vault/serializers/identity/group",["exports","@ember-data/serializer/rest","vault/serializers/identity/_base"],(function(e,t,n){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default=n.default.extend(t.EmbeddedRecordsMixin,{attrs:{alias:{embedded:"always"}},normalizeFindRecordResponse(e,t,n){return n.alias&&0===Object.keys(n.alias).length&&delete n.alias,this._super(...arguments)},serialize(){const e=this._super(...arguments)
return delete e.alias,"external"===e.type&&(delete e.member_entity_ids,delete e.member_group_ids),e}})})),define("vault/serializers/keymgmt/key",["exports","vault/serializers/application"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
class n extends t.default{normalizeItems(e){const t=super.normalizeItems(e)
if(t.versions){let e,n
const l=[]
return Object.keys(t.versions).forEach(((i,r,a)=>{l.push({id:parseInt(i,10),...t.versions[i]}),0===r?n=t.versions[i].creation_time:a.length-1===r&&(e=t.versions[i].creation_time)})),t.versions=l,{...t,last_rotated:e,created:n}}return Array.isArray(t)?t.map((t=>({id:t.id,name:t.id,backend:e.backend}))):t}}e.default=n})),define("vault/serializers/keymgmt/provider",["exports","vault/serializers/application"],(function(e,t){function n(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e
var n=e[Symbol.toPrimitive]
if(void 0!==n){var l=n.call(e,t||"default")
if("object"!=typeof l)return l
throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string")
return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
class l extends t.default{constructor(...e){super(...e),n(this,"primaryKey","name")}normalizeItems(e){const t=super.normalizeItems(e)
return Array.isArray(t)&&t.forEach((t=>{t.id=t.name,t.backend=e.backend})),t}serialize(e){return{...super.serialize(...arguments),credentials:e.record.credentials}}}e.default=l})),define("vault/serializers/kubernetes/config",["exports","vault/serializers/application"],(function(e,t){function n(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e
var n=e[Symbol.toPrimitive]
if(void 0!==n){var l=n.call(e,t||"default")
if("object"!=typeof l)return l
throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string")
return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
class l extends t.default{constructor(...e){super(...e),n(this,"primaryKey","backend")}serialize(){const e=super.serialize(...arguments)
return delete e.backend,!1===e.disable_local_ca_jwt&&(e.kubernetes_ca_cert=null,e.kubernetes_host=null,e.service_account_jwt=null),e}}e.default=l})),define("vault/serializers/kubernetes/role",["exports","vault/serializers/application"],(function(e,t){function n(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e
var n=e[Symbol.toPrimitive]
if(void 0!==n){var l=n.call(e,t||"default")
if("object"!=typeof l)return l
throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string")
return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
class l extends t.default{constructor(...e){super(...e),n(this,"primaryKey","name"),n(this,"attrs",{backend:{serialize:!1}})}}e.default=l})),define("vault/serializers/kv/data",["exports","vault/serializers/application"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
class n extends t.default{serialize(e){const{secretData:t,casVersion:n}=e.record
return"number"==typeof n?{data:t,options:{cas:n}}:{data:t}}normalizeKvData(e){const{data:t,metadata:n}=e.data
return{...e,data:{...e.data,secret_data:t,...n}}}normalizeResponse(e,t,n,l,i){if("queryRecord"===i){const r=this.normalizeKvData(n)
return super.normalizeResponse(e,t,r,l,i)}return super.normalizeResponse(e,t,n,l,i)}}e.default=n})),define("vault/serializers/kv/metadata",["exports","@ember/debug","vault/serializers/application","vault/utils/kv-path"],(function(e,t,n,l){function i(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e
var n=e[Symbol.toPrimitive]
if(void 0!==n){var l=n.call(e,t||"default")
if("object"!=typeof l)return l
throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string")
return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
class r extends n.default{constructor(...e){super(...e),i(this,"attrs",{backend:{serialize:!1},path:{serialize:!1},oldestVersion:{serialize:!1},createdTime:{serialize:!1},updatedTime:{serialize:!1},currentVersion:{serialize:!1},versions:{serialize:!1}})}normalizeItems(e){return e.data.keys?e.data.keys.map((t=>{const n=e.path?e.path+t:t
return{id:(0,l.kvMetadataPath)(e.backend,n),path:t,backend:e.backend,full_secret_path:n}})):super.normalizeItems(e)}}e.default=r})),define("vault/serializers/ldap/config",["exports","vault/serializers/application"],(function(e,t){function n(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e
var n=e[Symbol.toPrimitive]
if(void 0!==n){var l=n.call(e,t||"default")
if("object"!=typeof l)return l
throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string")
return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
class l extends t.default{constructor(...e){super(...e),n(this,"primaryKey","backend")}}e.default=l})),define("vault/serializers/ldap/library",["exports","vault/serializers/application"],(function(e,t){function n(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e
var n=e[Symbol.toPrimitive]
if(void 0!==n){var l=n.call(e,t||"default")
if("object"!=typeof l)return l
throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string")
return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
class l extends t.default{constructor(...e){super(...e),n(this,"primaryKey","name"),n(this,"attrs",{backend:{serialize:!1},name:{serialize:!1}})}normalize(e,t){return t.disable_check_in_enforcement=t.disable_check_in_enforcement?"Disabled":"Enabled",super.normalize(e,t)}serialize(){const e=super.serialize(...arguments)
return e.disable_check_in_enforcement="Enabled"!==e.disable_check_in_enforcement,e}}e.default=l})),define("vault/serializers/ldap/role",["exports","vault/serializers/application"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
class n extends t.default{serialize(e){const{fieldsForType:t}=e.record,n=super.serialize(...arguments)
return Object.keys(n).forEach((e=>{t.includes(e)||delete n[e]})),n}}e.default=n})),define("vault/serializers/lease",["exports","@ember-data/serializer/rest","@ember/string"],(function(e,t,n){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default=t.default.extend({keyForAttribute:function(e){return(0,n.decamelize)(e)},normalizeAll(e){if(e.data.keys&&Array.isArray(e.data.keys)){return e.data.keys.map((t=>({id:e.prefix?e.prefix+t:t})))}return[e.data]},normalizeResponse(e,t,n,l,i){const r=this.normalizeAll(n),{modelName:a}=t
let o={[a]:r}
return"queryRecord"===i&&(o={[a]:r[0]}),this._super(e,t,o,l,i)}})})),define("vault/serializers/license",["exports","vault/serializers/application"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default=t.default.extend({normalizeResponse(e,t,n,l,i){let r={autoloaded:n.data.autoloading_used,license_id:"no-license"}
return n.data.autoloaded&&(r={...r,...n.data.autoloaded}),r.id=r.license_id,this._super(e,t,r,l,i)}})})),define("vault/serializers/mfa-login-enforcement",["exports","vault/serializers/application"],(function(e,t){function n(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e
var n=e[Symbol.toPrimitive]
if(void 0!==n){var l=n.call(e,t||"default")
if("object"!=typeof l)return l
throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string")
return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
class l extends t.default{constructor(...e){super(...e),n(this,"primaryKey","name")}transformHasManyKeys(e,t){const n={model:["mfa_methods","identity_entities","identity_groups"],server:["mfa_method_ids","identity_entity_ids","identity_group_ids"]}
return n[t].forEach(((l,i)=>{const r="model"===t?n.server[i]:n.model[i]
delete Object.assign(e,{[l]:e[r]})[r]})),e}normalize(e,t){return this.transformHasManyKeys(t,"model"),super.normalize(e,t)}normalizeItems(e){if(e.data){if(e.data?.keys&&Array.isArray(e.data.keys))return e.data.keys.map((t=>e.data.key_info[t]))
Object.assign(e,e.data),delete e.data}return e}serialize(){const e=super.serialize(...arguments)
return e.auth_method_accessors=e.auth_method_accessors||[],e.auth_method_types=e.auth_method_types||[],this.transformHasManyKeys(e,"server")}}e.default=l})),define("vault/serializers/mfa-method",["exports","vault/serializers/application"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
class n extends t.default{normalizeItems(e){if(!e?.data)return e
if(e.data.keys&&Array.isArray(e.data.keys)){return e.data.keys.map((t=>{const n=e.data.key_info[t]
return n.id=t,n}))}return Object.assign(e,e.data),delete e.data,e}serialize(){const e=super.serialize(...arguments)
return delete e.type,e}}e.default=n})),define("vault/serializers/namespace",["exports","vault/serializers/application"],(function(e,t){function n(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e
var n=e[Symbol.toPrimitive]
if(void 0!==n){var l=n.call(e,t||"default")
if("object"!=typeof l)return l
throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string")
return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
class l extends t.default{constructor(...e){super(...e),n(this,"attrs",{path:{serialize:!1}})}normalizeList(e){return e.data.keys?e.data.keys.map((e=>({path:e,id:e.replace(/\/$/,"")}))):e.data}normalizeResponse(e,t,n,l,i){const r=(l||n.id||"").replace(/\/$/,""),a=["deleteRecord","createRecord"].includes(i)?{id:r,path:r}:this.normalizeList(n)
return super.normalizeResponse(e,t,a,l,i)}}e.default=l})),define("vault/serializers/node",["exports","@ember-data/serializer/rest","@ember/string"],(function(e,t,n){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default=t.default.extend(t.EmbeddedRecordsMixin,{keyForAttribute:function(e){return(0,n.decamelize)(e)},pushPayload(e,t){const n=this.normalizeResponse(e,e.modelFor("node"),t,null,"findAll")
return e.push(n)},nodeFromObject(e,t){const n=t.nodes[e]
return Object.assign(n,{name:e,id:e})},normalizeResponse(e,t,n,l,i){const r={nodes:n.nodes?Object.keys(n.nodes).map((e=>this.nodeFromObject(e,n))):[Object.assign(n,{id:"1"})]}
return this._super(e,t,r,l,i)},normalize(e,t,n){return t.id="1",this._super(e,t,n)}})})),define("vault/serializers/oidc/assignment",["exports","vault/serializers/application"],(function(e,t){function n(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e
var n=e[Symbol.toPrimitive]
if(void 0!==n){var l=n.call(e,t||"default")
if("object"!=typeof l)return l
throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string")
return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
class l extends t.default{constructor(...e){super(...e),n(this,"primaryKey","name")}}e.default=l})),define("vault/serializers/oidc/client",["exports","vault/serializers/application"],(function(e,t){function n(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e
var n=e[Symbol.toPrimitive]
if(void 0!==n){var l=n.call(e,t||"default")
if("object"!=typeof l)return l
throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string")
return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
class l extends t.default{constructor(...e){super(...e),n(this,"primaryKey","name")}normalizeItems(e){if(e.data){if(e.data?.keys&&Array.isArray(e.data.keys))return e.data.keys.map((t=>({name:t,...e.data.key_info[t]})))
Object.assign(e,e.data),delete e.data}return e}}e.default=l})),define("vault/serializers/oidc/key",["exports","vault/serializers/application"],(function(e,t){function n(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e
var n=e[Symbol.toPrimitive]
if(void 0!==n){var l=n.call(e,t||"default")
if("object"!=typeof l)return l
throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string")
return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
class l extends t.default{constructor(...e){super(...e),n(this,"primaryKey","name")}}e.default=l})),define("vault/serializers/oidc/provider",["exports","vault/serializers/application"],(function(e,t){function n(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e
var n=e[Symbol.toPrimitive]
if(void 0!==n){var l=n.call(e,t||"default")
if("object"!=typeof l)return l
throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string")
return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
class l extends t.default{constructor(...e){super(...e),n(this,"primaryKey","name")}normalizeItems(e){if(e.data){if(e.data?.keys&&Array.isArray(e.data.keys))return e.data.keys.map((t=>({name:t,...e.data.key_info[t]})))
Object.assign(e,e.data),delete e.data}return e}}e.default=l})),define("vault/serializers/oidc/scope",["exports","vault/serializers/application"],(function(e,t){function n(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e
var n=e[Symbol.toPrimitive]
if(void 0!==n){var l=n.call(e,t||"default")
if("object"!=typeof l)return l
throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string")
return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
class l extends t.default{constructor(...e){super(...e),n(this,"primaryKey","name")}}e.default=l})),define("vault/serializers/path-filter-config",["exports","@ember-data/serializer/rest","@ember/string"],(function(e,t,n){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default=t.default.extend({keyForAttribute:function(e){return(0,n.decamelize)(e)},normalizeResponse(e,t,n,l,i){const{modelName:r}=t
n.data.id=l
const a={[r]:n.data}
return this._super(e,t,a,l,i)}})})),define("vault/serializers/pki/action",["exports","@ember/string","pki/utils/action-params","vault/serializers/application","vault/utils/parse-pki-cert"],(function(e,t,n,l,i){function r(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e
var n=e[Symbol.toPrimitive]
if(void 0!==n){var l=n.call(e,t||"default")
if("object"!=typeof l)return l
throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string")
return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
class a extends l.default{constructor(...e){super(...e),r(this,"attrs",{customTtl:{serialize:!1},type:{serialize:!1}})}normalizeResponse(e,t,n,l,r){if(n.data.certificate){const a=(0,i.parseCertificate)(n.data.certificate),o={...n.data,common_name:a.common_name,parsed_certificate:a}
return super.normalizeResponse(e,t,{...n,data:o},l,r)}return super.normalizeResponse(...arguments)}serialize(e,t){const n=super.serialize(e),l=this._allowedParamsByType(t,e.record.type)
if(!l)return n
n.serial_number=n.subject_serial_number
const i={}
return l.forEach((e=>{void 0!==n[e]&&(i[e]=n[e])})),i}_allowedParamsByType(e,l){const i=["alt_names","common_name","country","exclude_cn_from_sans","format","ip_sans","locality","organization","other_sans","ou","postal_code","province","serial_number","street_address","type","uri_sans",...(0,n.keyParamsByType)(l).map((e=>(0,t.underscore)(e).toLowerCase()))]
switch(e){case"import":return["pem_bundle"]
case"generate-root":case"rotate-root":return[...i,"issuer_name","max_path_length","not_after","not_before_duration","permitted_dns_domains","private_key_format","ttl"]
case"generate-csr":return[...i,"add_basic_constraints"]
case"sign-intermediate":return["common_name","issuer_name","csr"]
default:return null}}}e.default=a})),define("vault/serializers/pki/certificate",["exports","vault/serializers/pki/certificate/base"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
class n extends t.default{}e.default=n})),define("vault/serializers/pki/certificate/base",["exports","vault/utils/parse-pki-cert","vault/serializers/application"],(function(e,t,n){function l(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e
var n=e[Symbol.toPrimitive]
if(void 0!==n){var l=n.call(e,t||"default")
if("object"!=typeof l)return l
throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string")
return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
class i extends n.default{constructor(...e){super(...e),l(this,"primaryKey","serial_number"),l(this,"attrs",{role:{serialize:!1}})}normalizeResponse(e,n,l,i,r){if(l.data.certificate){const a=(0,t.parseCertificate)(l.data.certificate)
return super.normalizeResponse(e,n,{...l,parsed_certificate:a,common_name:a.common_name},i,r)}return super.normalizeResponse(...arguments)}}e.default=i})),define("vault/serializers/pki/certificate/generate",["exports","vault/serializers/pki/certificate/base"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
class n extends t.default{}e.default=n}))
define("vault/serializers/pki/certificate/sign",["exports","vault/serializers/pki/certificate/base"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
class n extends t.default{}e.default=n})),define("vault/serializers/pki/issuer",["exports","vault/utils/parse-pki-cert","vault/serializers/application"],(function(e,t,n){function l(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e
var n=e[Symbol.toPrimitive]
if(void 0!==n){var l=n.call(e,t||"default")
if("object"!=typeof l)return l
throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string")
return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
class i extends n.default{constructor(...e){super(...e),l(this,"primaryKey","issuer_id"),l(this,"attrs",{caChain:{serialize:!1},certificate:{serialize:!1},commonName:{serialize:!1},isDefault:{serialize:!1},isRoot:{serialize:!1},issuerId:{serialize:!1},keyId:{serialize:!1},parsedCertificate:{serialize:!1},serialNumber:{serialize:!1}})}normalizeResponse(e,n,l,i,r){if(l.data.certificate){const a=(0,t.parseCertificate)(l.data.certificate),o={...l.data,parsed_certificate:a,common_name:a.common_name}
return super.normalizeResponse(e,n,{...l,data:o},i,r)}return super.normalizeResponse(...arguments)}normalizeItems(e){if(e.data){if(e.data?.keys&&Array.isArray(e.data.keys))return e.data.keys.map((t=>({issuer_id:t,...e.data.key_info[t]})))
Object.assign(e,e.data),delete e.data}return e}}e.default=i})),define("vault/serializers/pki/key",["exports","vault/serializers/application"],(function(e,t){function n(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e
var n=e[Symbol.toPrimitive]
if(void 0!==n){var l=n.call(e,t||"default")
if("object"!=typeof l)return l
throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string")
return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
class l extends t.default{constructor(...e){super(...e),n(this,"primaryKey","key_id"),n(this,"attrs",{type:{serialize:!1}})}normalizeItems(e){if(e.data){if(e.data?.keys&&Array.isArray(e.data.keys))return e.data.keys.map((t=>({key_id:t,...e.data.key_info[t]})))
Object.assign(e,e.data),delete e.data}return e}}e.default=l})),define("vault/serializers/pki/role",["exports","vault/serializers/application"],(function(e,t){function n(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e
var n=e[Symbol.toPrimitive]
if(void 0!==n){var l=n.call(e,t||"default")
if("object"!=typeof l)return l
throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string")
return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
class l extends t.default{constructor(...e){super(...e),n(this,"attrs",{name:{serialize:!1}})}serialize(){const e=super.serialize(...arguments)
return e.key_usage=e.key_usage||[],e}}e.default=l})),define("vault/serializers/pki/tidy",["exports","vault/serializers/application"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
class n extends t.default{serialize(e,t){const n=super.serialize(e)
return"manual"===t&&(delete n?.enabled,delete n?.intervalDuration,delete n?.minStartupBackoffDuration,delete n?.maxStartupBackoffDuration),n}}e.default=n})),define("vault/serializers/policy",["exports","vault/serializers/application"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default=t.default.extend({primaryKey:"name",normalizePolicies:e=>e.data.keys?e.data.keys.map((e=>({name:e}))):e.data,normalizeResponse(e,t,n,l,i){const r=["deleteRecord"].includes(i)?{name:l}:this.normalizePolicies(n)
return this._super(e,t,r,l,i)}})})),define("vault/serializers/policy/acl",["exports","vault/serializers/policy"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default=t.default.extend()})),define("vault/serializers/policy/egp",["exports","vault/serializers/policy"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default=t.default.extend()})),define("vault/serializers/policy/rgp",["exports","vault/serializers/policy"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default=t.default.extend()})),define("vault/serializers/replication-attributes",["exports","@ember-data/serializer/rest","@ember/string"],(function(e,t,n){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default=t.default.extend({keyForAttribute:function(e){return(0,n.decamelize)(e)}})})),define("vault/serializers/replication-mode",["exports","vault/serializers/application"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default=t.default.extend({normalizeResponse(e,t,n,l,i){const r={id:n.id,status:n.data}
return this._super(e,t,r,l,i)}})})),define("vault/serializers/role-aws",["exports","vault/serializers/application"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default=t.default.extend({primaryKey:"name",extractLazyPaginatedData:e=>e.data.keys.map((t=>{const n={name:t}
return e.backend&&(n.backend=e.backend),n})),normalizeItems(){const e=this._super(...arguments)
return e.credential_types&&(e.credential_type=e.credential_types[0]),e}})})),define("vault/serializers/role-ssh",["exports","vault/serializers/role"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default=t.default.extend()})),define("vault/serializers/role",["exports","vault/serializers/application"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default=t.default.extend({primaryKey:"name",extractLazyPaginatedData(e){if(e.zero_address_roles&&e.zero_address_roles.forEach((t=>{e.data.key_info[t].zero_address=!0})),!e.data.key_info)return e.data.keys.map((t=>{const n={name:t}
return e.backend&&(n.backend=e.backend),n}))
const t=e.data.keys.map((t=>{const n={name:t,key_type:e.data.key_info[t].key_type,zero_address:e.data.key_info[t].zero_address}
return e.backend&&(n.backend=e.backend),n}))
return delete e.data.key_info,t}})})),define("vault/serializers/secret-engine",["exports","vault/serializers/application","@ember-data/serializer/rest","vault/helpers/mountable-secret-engines"],(function(e,t,n,l){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default=t.default.extend(n.EmbeddedRecordsMixin,{attrs:{config:{embedded:"always"}},normalize(e,t){return t.config&&!t.config.id&&(t.config.id=t.uuid),t.version=t.options?t.options.version:null,this._super(e,t)},normalizeBackend(e,t){let n={}
for(const l in t)n[l]=t[l]
return null===e||n.path||(n.path=e),n.data&&(n={...n,...n.data},delete n.data),n.id=n.path.slice(0,-1),"kv"!==t?.type||t?.options?.version||(n.options={version:"1",...n.options}),n},normalizeResponse(e,t,n,l,i){const r="findRecord"===i,a="queryRecord"===i
let o
return o="createRecord"===i?n.data:r?this.normalizeBackend(l+"/",n.data):a?this.normalizeBackend(null,n):n.data.secret?Object.keys(n.data.secret).map((e=>this.normalizeBackend(e,n.data.secret[e]))):n.data.path?[this.normalizeBackend(n.data.path,n.data)]:Object.keys(n.data).map((e=>this.normalizeBackend(e,n[e]))),this._super(e,t,o,l,i)},serialize(e){const t=e.record.engineType,n=this._super(...arguments)
return n.options=n.version?{version:n.version}:{},delete n.version,l.WIF_ENGINES.includes(t)||delete n.config.identity_token_key,"kv"===t&&1!==n.options.version||(delete n.max_versions,delete n.cas_required,delete n.delete_version_after),"kv"!==t&&"generic"!==t?delete n.options:n.options.version||(n.options.version=2),n}})})),define("vault/serializers/secret",["exports","@ember/object","vault/serializers/application"],(function(e,t,n){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default=n.default.extend({secretDataPath:"data",normalizeItems(e,n){if("queryRecord"!==n&&e.data&&e.data.keys&&Array.isArray(e.data.keys))return e.data.keys.map((t=>{let n=e.id?e.id+t:t
return n||(n=" "),{id:n,backend:e.backend}}))
const l=this.secretDataPath
return e.secret_data=(0,t.get)(e,l),delete e[l],e},serialize:e=>e.attr("secretData")})})),define("vault/serializers/server",["exports","vault/serializers/application"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default=t.default.extend({primaryKey:"node_id",normalizeItems(e){return e.data&&e.data.config?e.data.config.servers.slice(0):this._super(e)}})})),define("vault/serializers/ssh",["exports","@ember-data/serializer/rest","@ember/utils","@ember/string"],(function(e,t,n,l){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default=t.default.extend({keyForAttribute:function(e){return(0,l.decamelize)(e)},pushPayload(e,t){const n=this.normalizeResponse(e,e.modelFor(t.modelName),t,t.id,"findRecord")
return e.push(n)},normalizeItems:e=>(Object.assign(e,e.data),delete e.data,e),normalizeResponse(e,t,n,l,i){const r=this.normalizeItems(n),{modelName:a}=t,o={[a]:r}
return this._super(e,t,o,l,i)},serializeAttribute(e,t,l,i){const r=e.attr(l)
i.options.readOnly||"object"===i.type&&r&&Object.keys(r).length>0&&(0,n.isNone)(e.changedAttributes()[l])||(0,n.isBlank)(r)&&(0,n.isNone)(e.changedAttributes()[l])||this._super(e,t,l,i)}})})),define("vault/serializers/sync/association",["exports","vault/serializers/application","core/helpers/sync-destinations"],(function(e,t,n){function l(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e
var n=e[Symbol.toPrimitive]
if(void 0!==n){var l=n.call(e,t||"default")
if("object"!=typeof l)return l
throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string")
return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
class i extends t.default{constructor(...e){super(...e),l(this,"attrs",{destinationName:{serialize:!1},destinationType:{serialize:!1},syncStatus:{serialize:!1},updatedAt:{serialize:!1},subKey:{serialize:!1}})}generateId(e){let t=`${e.mount}/${e.secret_name}`
return e.sub_key&&(t+=`/${e.sub_key}`),t}extractLazyPaginatedData(e){if(e){const{store_name:t,store_type:n,associated_secrets:l}=e.data,i=[]
for(const e in l){const r=l[e]
r.id=this.generateId(r)
const a={destinationName:t,destinationType:n,...r}
i.push(a)}return i}return e}normalizeFetchByDestinations(e){const{store_name:t,store_type:l,associated_secrets:i}=e.data,r=[]
let a
for(const n in i){const e=i[n]
"SYNCED"!==e.sync_status&&r.push(e.sync_status)
const t=new Date(e.updated_at);(!a||t>a)&&(a=t)}const o=Object.entries(i).length
return{icon:(0,n.findDestination)(l).icon,name:t,type:l,associationCount:o,status:o?r.length?`${r.length} Unsynced`:"All synced":null,lastUpdated:a}}}e.default=i})),define("vault/serializers/sync/destination",["exports","vault/serializers/application","@ember/string"],(function(e,t,n){function l(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e
var n=e[Symbol.toPrimitive]
if(void 0!==n){var l=n.call(e,t||"default")
if("object"!=typeof l)return l
throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string")
return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
class i extends t.default{constructor(...e){super(...e),l(this,"attrs",{name:{serialize:!1},type:{serialize:!1},purgeInitiatedAt:{serialize:!1},purgeError:{serialize:!1}})}serialize(e){const t=super.serialize(e)
if(e.isNew)return t
const l=Object.keys(e.changedAttributes()).map((e=>(0,n.decamelize)(e)))
return l.reduce(((n,i)=>{if(l.includes("custom_tags")){const[t,l]=e.changedAttributes().customTags
if(t&&l){const e=Object.keys(t).filter((e=>!Object.keys(l).includes(e)))
e.length>0&&(n.tags_to_remove=e)}}return n[i]=t[i],n}),{})}normalizeResponse(e,t,n,l,i){const r=this._normalizePayload(n,i)
return super.normalizeResponse(e,t,r,l,i)}extractLazyPaginatedData(e){const t=[]
for(const n in e.data.key_info)e.data.key_info[n].forEach((e=>{const l=n.replace(/\/$/,""),i=`${l}/${e}`
t.push({id:i,name:e,type:l})}))
return t}_normalizePayload(e,t){if("query"===t)return e.meta?e:this.extractLazyPaginatedData(e)
if(e?.data){const{data:t}=e,{connection_details:n,options:l}=t
return t.id=t.name,delete t.connection_details,delete t.options,l&&(l.granularity=l.granularity_level,delete l.granularity_level),{data:{...t,...n,...l}}}return e}}e.default=i})),define("vault/serializers/sync/destinations/aws-sm",["exports","vault/serializers/sync/destination"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
class n extends t.default{}e.default=n})),define("vault/serializers/sync/destinations/azure-kv",["exports","vault/serializers/sync/destination"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
class n extends t.default{}e.default=n})),define("vault/serializers/sync/destinations/gcp-sm",["exports","vault/serializers/sync/destination"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
class n extends t.default{}e.default=n})),define("vault/serializers/sync/destinations/gh",["exports","vault/serializers/sync/destination"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
class n extends t.default{}e.default=n})),define("vault/serializers/sync/destinations/vercel-project",["exports","vault/serializers/sync/destination"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
class n extends t.default{}e.default=n})),define("vault/serializers/transform",["exports","vault/serializers/application"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default=t.default.extend({normalizeResponse(e,t,n,l,i){return n.data?.masking_character&&(n.data.masking_character=String.fromCharCode(n.data.masking_character)),this._super(e,t,n,l,i)},serialize(){const e=this._super(...arguments)
return e.template&&Array.isArray(e.template)&&(e.template=e.template[0]),e},extractLazyPaginatedData:e=>e.data.keys.map((t=>{const n={id:t,name:t}
return e.backend&&(n.backend=e.backend),n}))})})),define("vault/serializers/transform/alphabet",["exports","vault/serializers/application"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default=t.default.extend({primaryKey:"name",extractLazyPaginatedData:e=>e.data.keys.map((t=>{const n={id:t,name:t}
return e.backend&&(n.backend=e.backend),n}))})})),define("vault/serializers/transform/role",["exports","vault/serializers/application"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default=t.default.extend({primaryKey:"name",extractLazyPaginatedData:e=>e.data.keys.map((t=>{const n={id:t,name:t}
return e.backend&&(n.backend=e.backend),n}))})})),define("vault/serializers/transform/template",["exports","vault/serializers/application"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default=t.default.extend({primaryKey:"name",normalizeResponse(e,t,n,l,i){return n.data?.alphabet&&(n.data.alphabet=[n.data.alphabet]),n.data?.pattern&&this._formatNamedCaptureGroups(n.data,"?P","?"),this._super(e,t,n,l,i)},serialize(){const e=this._super(...arguments)
return e.alphabet&&Array.isArray(e.alphabet)&&(e.alphabet=e.alphabet[0]),e.pattern&&this._formatNamedCaptureGroups(e,"?","?P"),e},_formatNamedCaptureGroups(e,t,n){const l=new RegExp(/\?P?(<(.+?)>)/,"g"),i=e.pattern.match(l)
i&&i.forEach((l=>{e.pattern=e.pattern.replace(l,l.replace(t,n))}))},extractLazyPaginatedData:e=>e.data.keys.map((t=>{const n={id:t,name:t}
return e.backend&&(n.backend=e.backend),n}))})})),define("vault/serializers/transit-key",["exports","@ember-data/serializer/rest","@ember/string"],(function(e,t,n){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default=t.default.extend({primaryKey:"name",keyForAttribute:function(e){return(0,n.decamelize)(e)},normalizeSecrets(e){if(e.data.keys&&Array.isArray(e.data.keys)){return e.data.keys.map((t=>({name:t,backend:e.backend})))}if(Object.assign(e,e.data),delete e.data,"aes256-gcm96"===e.type||"chacha20-poly1305"===e.type||"aes128-gcm96"===e.type)for(const t in e.keys)e.keys[t]=1e3*e.keys[t]
return e.id=e.name,[e]},normalizeResponse(e,t,n,l,i){const r=["updateRecord","createRecord","deleteRecord"].includes(i)?{name:l,backend:n.backend}:this.normalizeSecrets(n),{modelName:a}=t
let o={[a]:r}
return"queryRecord"===i&&(o={[a]:r[0]}),this._super(e,t,o,l,i)},serialize(e,t){if("update"===t){return{min_decryption_version:e.attr("minDecryptionVersion"),min_encryption_version:e.attr("minEncryptionVersion"),deletion_allowed:e.attr("deletionAllowed"),auto_rotate_period:e.attr("autoRotatePeriod")}}return e.id=e.attr("name"),this._super(e,t)}})}))
define("vault/services/-ensure-registered",["exports","@embroider/util/services/ensure-registered"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.default}})})),define("vault/services/-portal",["exports","ember-stargate/services/-portal"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.default}})})),define("vault/services/asset-loader",["exports","ember-asset-loader/services/asset-loader"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.default}})})),define("vault/services/auth",["exports","ember","ember-concurrency","@ember/owner","@ember/array","@ember/object","@ember/object/computed","@ember/service","@ember/string","rsvp","vault/lib/token-storage","vault/config/environment","vault/helpers/supported-auth-backends","vault/helpers/add-to-array"],(function(e,t,n,l,i,r,a,o,s,u,c,d,p,f){Object.defineProperty(e,"__esModule",{value:!0}),e.default=e.TOKEN_SEPARATOR=e.TOKEN_PREFIX=e.ROOT_PREFIX=void 0
const m=e.TOKEN_SEPARATOR="☃",h=e.TOKEN_PREFIX="vault-",b=e.ROOT_PREFIX="_root_",y=(0,p.allSupportedAuthBackends)()
e.default=o.default.extend({permissions:(0,o.inject)(),currentCluster:(0,o.inject)(),router:(0,o.inject)(),namespaceService:(0,o.inject)("namespace"),IDLE_TIMEOUT:18e4,expirationCalcTS:null,isRenewing:!1,mfaErrors:null,isRootToken:!1,get tokenExpired(){const e=this.tokenExpirationDate
return e?this.now()>=e:null},activeCluster:(0,a.alias)("currentCluster.cluster"),tokens:(0,r.computed)({get(){return this._tokens||this.getTokensFromStorage()||[]},set(e,t){return this._tokens=t}}),isActiveSession:(0,r.computed)("router.currentRouteName","currentToken","activeCluster.{dr.isSecondary,needsInit,sealed,name}",(function(){if(this.activeCluster){if(this.activeCluster.dr?.isSecondary||this.activeCluster.needsInit||this.activeCluster.sealed)return!1
if(this.activeCluster.name&&this.currentToken&&"vault.cluster.auth"!==this.router.currentRouteName)return!0}return!1})),tokenExpirationDate:(0,r.computed)("currentTokenName","expirationCalcTS",(function(){const e=this.currentTokenName
if(!e)return
const{tokenExpirationEpoch:t}=this.getTokenData(e),n=new Date(0)
return t?n.setUTCMilliseconds(t):null})),renewAfterEpoch:(0,r.computed)("currentTokenName","expirationCalcTS",(function(){const e=this.currentTokenName,{expirationCalcTS:t}=this,n=this.getTokenData(e)
if(!e||!n||!t)return null
const{ttl:l,renewable:i}=n
return i?Math.floor(1e3*l/2)+t:null})),currentTokenName:(0,r.computed)("activeClusterId","tokens","tokens.[]",(function(){const e=new RegExp(this.activeClusterId)
return this.tokens.find((t=>e.test(t)))})),currentToken:(0,r.computed)("currentTokenName",(function(){const e=this.currentTokenName,t=e&&this.getTokenData(e)
return e&&t?t.token:null})),authData:(0,r.computed)("currentTokenName",(function(){const e=this.currentTokenName
if(!e)return
const t=this.backendFromTokenName(e),n=this.getTokenData(e)
return Object.assign(n,{backend:{mountPath:n.backend.mountPath,...y.find((e=>e.type===t))}})})),init(){this._super(...arguments),this.checkForRootToken()},clusterAdapter(){return(0,l.getOwner)(this).lookup("adapter:cluster")},generateTokenName:({backend:e,clusterId:t},n)=>(n||[]).includes("root")?`${h}${b}${m}${t}`:`${h}${e}${m}${t}`,backendFromTokenName:e=>e.includes(`${h}${b}`)?"token":e.slice(h.length).split(m)[0],storage(e){return e&&0===e.indexOf(`${h}${b}`)&&"development"!==this.environment()?(0,c.default)("memory"):(0,c.default)()},environment:()=>d.default.environment,now:()=>Date.now(),setCluster(e){this.set("activeClusterId",e)},ajax(e,t,n){const l={url:e,method:t,dataType:"json",headers:{"X-Vault-Token":this.currentToken}},i=void 0===n.namespace?this.namespaceService.path:n.namespace
i&&(l.headers["X-Vault-Namespace"]=i)
const r=Object.assign(l,n)
return fetch(e,{method:r.method||"GET",headers:r.headers||{}}).then((e=>204===e.status?(0,u.resolve)():e.status>=200&&e.status<300?(0,u.resolve)(e.json()):(0,u.reject)(e)))},renewCurrentToken(){const e=this.authData.userRootNamespace
return this.ajax("/v1/auth/token/renew-self","POST",{namespace:e})},revokeCurrentToken(){const e=this.authData.userRootNamespace
return this.ajax("/v1/auth/token/revoke-self","POST",{namespace:e})},calculateExpiration(e,t){const n=e.ttl||e.lease_duration
return{ttl:n,tokenExpirationEpoch:e.expire_time?new Date(e.expire_time).getTime():t+1e3*n}},setExpirationSettings(e,t){e.renewable?(this.set("expirationCalcTS",t),this.set("allowExpiration",!1)):this.set("allowExpiration",!0)},calculateRootNamespace(e,t,n){let l=t&&t.replace(/\/$/,"")
return"token"!==n||l||(l=""),void 0===l&&this.authData&&(l=this.authData.userRootNamespace),void 0===l&&(l=e),l},persistAuthData(){const[e,n]=arguments,l=this.namespaceService.path||"",a=e?.data?.path||e?.selectedAuth
let o,s,c
"string"==typeof e?(o=e,c=this.backendFromTokenName(o)):(s=e,c=s.backend)
const d={mountPath:a,...y.find((e=>e.type===c))}
let p
p=(0,i.isArray)(d.displayNamePath)?d.displayNamePath.map((e=>(0,r.get)(n,e))).join("/"):(0,r.get)(n,d.displayNamePath)
const{entity_id:m,policies:h,renewable:b,namespace_path:v}=n,g={userRootNamespace:this.calculateRootNamespace(l,v,c),displayName:p,backend:d,token:n.client_token||(0,r.get)(n,d.tokenPath),policies:h,renewable:b,entity_id:m}
o=this.generateTokenName({backend:c,clusterId:s&&s.clusterId||this.activeClusterId},n.policies)
const w=this.now()
return Object.assign(g,this.calculateExpiration(n,w)),this.setExpirationSettings(n,w),t.default.testing&&this.set("allowExpiration",!1),g.displayName||(g.displayName=(this.getTokenData(o)||{}).displayName),this.set("tokens",(0,f.addToArray)(this.tokens,o)),this.setTokenData(o,g),(0,u.resolve)({namespace:l||g.userRootNamespace,token:o,isRoot:h.includes("root")})},setTokenData(e,t){this.storage(e).setItem(e,t)},getTokenData(e){return this.storage(e).getItem(e)},removeTokenData(e){return this.storage(e).removeItem(e)},renew(){const e=this.currentTokenName
if(!this.isRenewing)return this.isRenewing=!0,this.renewCurrentToken().then((t=>(this.isRenewing=!1,this.persistAuthData(e,t.data||t.auth))),(e=>{throw this.isRenewing=!1,e}))},checkShouldRenew:(0,n.task)((function*(){for(;;){if(t.default.testing)return
yield(0,n.timeout)(5e3),this.shouldRenew()&&(yield this.renew())}})).on("init"),shouldRenew(){const e=this.now(),t=this.lastFetch,n=this.renewAfterEpoch
return!(!this.currentTokenName||this.tokenExpired||this.allowExpiration||!n)&&(t&&e-t>=this.IDLE_TIMEOUT?(this.set("allowExpiration",!0),!1):e>=n)},setLastFetch(e){const t=this.now()
this.set("lastFetch",e),this.allowExpiration&&this.renewAfterEpoch&&t>=this.renewAfterEpoch&&this.renew(),this.set("allowExpiration",!1)},getTokensFromStorage(e){return this.storage().keys().reject((t=>0!==t.indexOf(h)||e&&e(t)))},checkForRootToken(){"development"!==this.environment()&&this.getTokensFromStorage().forEach((e=>{const t=this.getTokenData(e)
t&&t.policies&&t.policies.includes("root")&&this.removeTokenData(e)}))},_parseMfaResponse(e){if(e){const{mfa_request_id:t,mfa_constraints:n}=e,l=[]
for(const e in n){const t=n[e].any,i=t.length>1
t.forEach((e=>{const t="totp"===e.type?e.type.toUpperCase():(0,s.capitalize)(e.type)
e.label=`${t} ${e.uses_passcode?"passcode":"push notification"}`})),l.push({name:e,methods:t,selectedMethod:i?null:t[0]})}return{mfa_requirement:{mfa_request_id:t,mfa_constraints:l}}}return{}},async authenticate(){const[e]=arguments,t=this.clusterAdapter(),n=await t.authenticate(e)
return n.auth?.mfa_requirement?this._parseMfaResponse(n.auth?.mfa_requirement):this.authSuccess(e,n.auth||n.data)},async totpValidate({mfa_requirement:e,...t}){const n=await this.clusterAdapter().mfaValidate(e)
return this.authSuccess(t,n.auth||n.data)},async authSuccess(e,t){localStorage.setItem("selectedAuth",e.selectedAuth)
const n=await this.persistAuthData(e,t,this.namespaceService.path)
return await this.permissions.getPaths.perform(),n},handleError:e=>e.errors?e.errors.map((e=>e.detail?e.detail:e)):[e],getAuthType(){const e=localStorage.getItem("selectedAuth")
return e||(this.authData?this.authData.backend.type:null)},deleteCurrentToken(){const e=this.currentTokenName
this.deleteToken(e),this.removeTokenData(e)},deleteToken(e){const t=this.tokens.without(e)
this.removeTokenData(e),this.set("tokens",t)},getOktaNumberChallengeAnswer(e,t){const n=`/v1/auth/${t}/verify/${e}`
return this.ajax(n,"GET",{}).then((e=>e.data.correct_answer),(e=>{if(404===e.status)return null
throw e}))}})})),define("vault/services/capabilities",["exports","@ember/service","@ember/debug"],(function(e,t,n){var l,i
Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default=(l=class extends t.default{constructor(...e){var t,n,l,r
super(...e),t=this,n="store",r=this,(l=i)&&Object.defineProperty(t,n,{enumerable:l.enumerable,configurable:l.configurable,writable:l.writable,value:l.initializer?l.initializer.call(r):void 0})}async request(e){if(e?.paths){const{paths:t}=e
return this.store.query("capabilities",{paths:t})}if(e?.path){const{path:t}=e,n=await this.store.peekRecord("capabilities",t)
return n||this.store.findRecord("capabilities",t)}return(0,n.assert)('query object must contain "paths" or "path" key',!1)}async fetchMultiplePaths(e){const t=await this.request({paths:e}).catch((()=>[]))
return e.reduce(((e,n)=>{const l=t.find((e=>e.path===n))
if(l){const{canCreate:t,canDelete:i,canList:r,canPatch:a,canRead:o,canSudo:s,canUpdate:u}=l
e[n]={canCreate:t,canDelete:i,canList:r,canPatch:a,canRead:o,canSudo:s,canUpdate:u}}else e[n]={canCreate:!0,canDelete:!0,canList:!0,canPatch:!0,canRead:!0,canSudo:!0,canUpdate:!0}
return e}),{})}fetchPathCapabilities(e){try{return this.request({path:e})}catch(t){return t}}async _fetchSpecificCapability(e,t){try{return(await this.request({path:e}))[t]}catch(a){return a}}canRead(e){try{return this._fetchSpecificCapability(e,"canRead")}catch(a){return a}}canUpdate(e){try{return this._fetchSpecificCapability(e,"canUpdate")}catch(a){return a}}canPatch(e){try{return this._fetchSpecificCapability(e,"canPatch")}catch(a){return a}}},r=l.prototype,a="store",o=[t.service],s={configurable:!0,enumerable:!0,writable:!0,initializer:null},c={},Object.keys(s).forEach((function(e){c[e]=s[e]})),c.enumerable=!!c.enumerable,c.configurable=!!c.configurable,("value"in c||c.initializer)&&(c.writable=!0),c=o.slice().reverse().reduce((function(e,t){return t(r,a,e)||e}),c),u&&void 0!==c.initializer&&(c.value=c.initializer?c.initializer.call(u):void 0,c.initializer=void 0),i=void 0===c.initializer?(Object.defineProperty(r,a,c),null):c,l)
var r,a,o,s,u,c})),define("vault/services/console",["exports","@ember/service","@ember/owner","vault/lib/console-helpers","vault/utils/path-encoding-helpers","core/utils/sanitize-path","@glimmer/tracking","vault/helpers/add-to-array"],(function(e,t,n,l,i,r,a,o){var s,u,c,d
function p(e,t,n,l){n&&Object.defineProperty(e,t,{enumerable:n.enumerable,configurable:n.configurable,writable:n.writable,value:n.initializer?n.initializer.call(l):void 0})}function f(e,t,n,l,i){var r={}
return Object.keys(l).forEach((function(e){r[e]=l[e]})),r.enumerable=!!r.enumerable,r.configurable=!!r.configurable,("value"in r||r.initializer)&&(r.writable=!0),r=n.slice().reverse().reduce((function(n,l){return l(e,t,n)||n}),r),i&&void 0!==r.initializer&&(r.value=r.initializer?r.initializer.call(i):void 0,r.initializer=void 0),void 0===r.initializer?(Object.defineProperty(e,t,r),null):r}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
const m={read:"GET",list:"GET",write:"POST",delete:"DELETE"}
e.default=(s=class extends t.default{constructor(...e){super(...e),p(this,"isOpen",u,this),p(this,"commandIndex",c,this),p(this,"log",d,this)}get commandHistory(){return this.log.filter((e=>"command"===e.type))}adapter(){return(0,n.getOwner)(this).lookup("adapter:console")}shiftCommandIndex(e,t=()=>{}){const[n,i]=(0,l.shiftCommandIndex)(e,this.commandHistory,this.commandIndex)
void 0!==i&&void 0!==n&&(this.commandIndex=n,t(i))}clearLog(e=!1){let t
e||(t=this.commandHistory.slice(),t.setEach("hidden",!0)),this.log=[],t&&(this.log=(0,o.addManyToArray)(this.log,t))}logAndOutput(e,t){const n=this.log.slice()
e&&(n.push({type:"command",content:e}),this.commandIndex=null),t&&n.push(t),this.log=n}ajax(e,t,n={}){const l=m[e],r=this.adapter(),a=r.buildURL((0,i.encodePath)(t)),{data:o,wrapTTL:s}=n
return r.ajax(a,l,{data:o,wrapTTL:s})}kvGet(e,t,n={}){const{wrapTTL:l,metadata:i}=n,a=i?"metadata":"data",[o,s]=e.split(/\/(.+)?/),u=`${o}/${a}/${s}`
return this.ajax("read",(0,r.sanitizePath)(u),{wrapTTL:l})}read(e,t,n){const l=n?.wrapTTL
return this.ajax("read",(0,r.sanitizePath)(e),{wrapTTL:l})}write(e,t,n){const l=n?.wrapTTL
return this.ajax("write",(0,r.sanitizePath)(e),{data:t,wrapTTL:l})}delete(e){return this.ajax("delete",(0,r.sanitizePath)(e))}list(e,t,n){const l=n?.wrapTTL,i=(0,r.ensureTrailingSlash)((0,r.sanitizePath)(e))
return this.ajax("list",i,{data:{list:!0},wrapTTL:l})}},u=f(s.prototype,"isOpen",[a.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),c=f(s.prototype,"commandIndex",[a.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),d=f(s.prototype,"log",[a.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return[]}}),s)})),define("vault/services/control-group",["exports","@ember/service","rsvp","vault/lib/control-group-error","vault/lib/token-storage","core/utils/parse-url"],(function(e,t,n,l,i,r){Object.defineProperty(e,"__esModule",{value:!0}),e.storageKey=e.default=e.TOKEN_SEPARATOR=e.CONTROL_GROUP_PREFIX=void 0
const a=e.CONTROL_GROUP_PREFIX="vault:cg-",o=e.TOKEN_SEPARATOR="☃",s=["sys/wrapping/rewrap","sys/wrapping/wrap","sys/replication/performance/primary/secondary-token","sys/replication/dr/primary/secondary-token"],u=(e,t)=>`${a}${e}${o}${t}`
e.storageKey=u
e.default=t.default.extend({version:(0,t.inject)(),router:(0,t.inject)(),storage:()=>(0,i.default)(),keyFromAccessor(e){const t=(this.storage().keys()||[]).filter((e=>e.startsWith(a))).find((t=>t.replace(a,"").startsWith(e)))
return t||null},storeControlGroupToken(e){const t=u(e.accessor,e.creation_path)
this.storage().setItem(t,e)},deleteControlGroupToken(e){this.unmarkTokenForUnwrap()
const t=this.keyFromAccessor(e)
this.storage().removeItem(t)},deleteTokens(){(this.storage().keys()||[]).filter((e=>e.startsWith(a))).forEach((e=>this.storage().removeItem(e)))},wrapInfoForAccessor(e){const t=this.keyFromAccessor(e)
return t?this.storage().getItem(t):null},tokenToUnwrap:null,markTokenForUnwrap(e){this.set("tokenToUnwrap",this.wrapInfoForAccessor(e))},unmarkTokenForUnwrap(){this.set("tokenToUnwrap",null)},tokenForUrl(e){if(this.version.isCommunity)return null
let t=(0,r.default)(e).pathname
t=t.replace("/v1/","")
const n=this.tokenToUnwrap
if(n&&n.creation_path===t){const{token:e,accessor:t,creation_time:l}=n
return{token:e,accessor:t,creationTime:l}}return null},checkForControlGroup(e,t,i){const r=t&&t?.wrap_info?.creation_path
if(this.version.isCommunity||i||!t||r&&s.includes(r)||!t.wrap_info)return n.default.resolve(...e)
const a=new l.default(t.wrap_info)
return n.default.reject(a)},handleError(e){const{accessor:t,token:n,creation_path:l,creation_time:i,ttl:r}=e,a={accessor:t,token:n,creation_path:l,creation_time:i,ttl:r}
return a.uiParams={url:this.router.currentURL},this.storeControlGroupToken(a),this.router.transitionTo("vault.cluster.access.control-group-accessor",t)},saveTokenFromError(e){const{accessor:t,token:n,creation_path:l,creation_time:i,ttl:r}=e,a={accessor:t,token:n,creation_path:l,creation_time:i,ttl:r}
this.storeControlGroupToken(a),this.markTokenForUnwrap(t)},logFromError(e){const{accessor:t,token:n,creation_path:l,creation_time:i,ttl:r}=e,a={accessor:t,token:n,creation_path:l,creation_time:i,ttl:r}
this.storeControlGroupToken(a)
const o=this.router.urlFor("vault.cluster.access.control-group-accessor",t)
return{type:"error-with-html",content:[`A Control Group was encountered at ${e.creation_path}.`,`The Control Group Token is ${e.token}.`,`The Accessor is ${e.accessor}.`,`Visit <a href='${o}'>${o}</a> for more details.`].join("\n"),href:o,token:n,accessor:t,creation_path:l}}})})),define("vault/services/csp-event",["exports","@ember/service","@glimmer/tracking","ember-concurrency","vault/helpers/add-to-array"],(function(e,t,n,l,i){var r,a
function o(e,t,n,l,i){var r={}
return Object.keys(l).forEach((function(e){r[e]=l[e]})),r.enumerable=!!r.enumerable,r.configurable=!!r.configurable,("value"in r||r.initializer)&&(r.writable=!0),r=n.slice().reverse().reduce((function(n,l){return l(e,t,n)||n}),r),i&&void 0!==r.initializer&&(r.value=r.initializer?r.initializer.call(i):void 0,r.initializer=void 0),void 0===r.initializer?(Object.defineProperty(e,t,r),null):r}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default=(r=class extends t.default{constructor(...e){var t,n,l,i
super(...e),t=this,n="connectionViolations",i=this,(l=a)&&Object.defineProperty(t,n,{enumerable:l.enumerable,configurable:l.configurable,writable:l.writable,value:l.initializer?l.initializer.call(i):void 0})}attach(){this.monitor.perform()}remove(){this.monitor.cancelAll()}handleEvent(e){e.violatedDirective.startsWith("connect-src")&&(this.connectionViolations=(0,i.addToArray)(this.connectionViolations,e))}*monitor(){for(this.connectionViolations=[];;){const e=yield(0,l.waitForEvent)(window.document,"securitypolicyviolation")
this.handleEvent(e)}}},a=o(r.prototype,"connectionViolations",[n.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return[]}}),o(r.prototype,"monitor",[l.task],Object.getOwnPropertyDescriptor(r.prototype,"monitor"),r.prototype),r)})),define("vault/services/current-cluster",["exports","@ember/service","@glimmer/tracking"],(function(e,t,n){var l,i
Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default=(l=class extends t.default{constructor(...e){var t,n,l,r
super(...e),t=this,n="cluster",r=this,(l=i)&&Object.defineProperty(t,n,{enumerable:l.enumerable,configurable:l.configurable,writable:l.writable,value:l.initializer?l.initializer.call(r):void 0})}setCluster(e){this.cluster=e}},r=l.prototype,a="cluster",o=[n.tracked],s={configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}},c={},Object.keys(s).forEach((function(e){c[e]=s[e]})),c.enumerable=!!c.enumerable,c.configurable=!!c.configurable,("value"in c||c.initializer)&&(c.writable=!0),c=o.slice().reverse().reduce((function(e,t){return t(r,a,e)||e}),c),u&&void 0!==c.initializer&&(c.value=c.initializer?c.initializer.call(u):void 0,c.initializer=void 0),i=void 0===c.initializer?(Object.defineProperty(r,a,c),null):c,l)
var r,a,o,s,u,c})),define("vault/services/custom-messages",["exports","@ember/object","@ember/service","@glimmer/tracking","tracked-built-ins"],(function(e,t,n,l,i){var r,a,o,s,u,c
function d(e,t,n,l){n&&Object.defineProperty(e,t,{enumerable:n.enumerable,configurable:n.configurable,writable:n.writable,value:n.initializer?n.initializer.call(l):void 0})}function p(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e
var n=e[Symbol.toPrimitive]
if(void 0!==n){var l=n.call(e,t||"default")
if("object"!=typeof l)return l
throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string")
return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function f(e,t,n,l,i){var r={}
return Object.keys(l).forEach((function(e){r[e]=l[e]})),r.enumerable=!!r.enumerable,r.configurable=!!r.configurable,("value"in r||r.initializer)&&(r.writable=!0),r=n.slice().reverse().reduce((function(n,l){return l(e,t,n)||n}),r),i&&void 0!==r.initializer&&(r.value=r.initializer?r.initializer.call(i):void 0,r.initializer=void 0),void 0===r.initializer?(Object.defineProperty(e,t,r),null):r}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default=(r=class extends n.default{constructor(){super(...arguments),d(this,"store",a,this),d(this,"namespace",o,this),d(this,"auth",s,this),d(this,"messages",u,this),d(this,"showMessageModal",c,this),p(this,"bannerState",new i.TrackedObject),this.fetchMessages(this.namespace.path)}get bannerMessages(){return this.messages&&this.messages.length?this.messages?.filter((e=>"banner"===e?.type)):[]}get modalMessages(){return this.messages&&this.messages.length?this.messages?.filter((e=>"modal"===e?.type)):[]}async fetchMessages(e){try{const t=this.auth.currentToken?"/v1/sys/internal/ui/authenticated-messages":"/v1/sys/internal/ui/unauthenticated-messages",n={method:"GET",headers:{}}
this.auth.currentToken&&(n.headers["X-Vault-Token"]=this.auth.currentToken),e&&(n.headers["X-Vault-Namespace"]=e)
const l=await fetch(t,n),i=await l.json()
if(i.errors)return this.messages=[]
const r=this.store.serializerFor("config-ui/message")
this.messages=r.mapPayload(i),this.bannerMessages?.forEach((e=>this.bannerState[e.id]=!0))}catch(t){return t}}clearCustomMessages(){this.messages=[]}onBannerDismiss(e){this.bannerState[e]=!1}},a=f(r.prototype,"store",[n.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),o=f(r.prototype,"namespace",[n.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),s=f(r.prototype,"auth",[n.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),u=f(r.prototype,"messages",[l.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return[]}}),c=f(r.prototype,"showMessageModal",[l.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!0}}),f(r.prototype,"onBannerDismiss",[t.action],Object.getOwnPropertyDescriptor(r.prototype,"onBannerDismiss"),r.prototype),r)})),define("vault/services/docfy",["exports","@docfy/ember/services/docfy"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.default}})})),define("vault/services/download",["exports","@ember/service","core/utils/timestamp"],(function(e,t,n){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
const l={csv:"txt/csv",hcl:"text/plain",sentinel:"text/plain",json:"application/json",jsonl:"application/json",pem:"application/x-pem-file",txt:"text/plain"}
class i extends t.default{download(e,t,i){const r=`${e?.replace(/\s+/g,"-")}.${i}`||`vault-data-${n.default.now().toISOString()}.${i}`,a=l[i]||"text/plain",{document:o,URL:s}=window,u=o.createElement("a"),c=new File([t],r,{type:a})
return u.download=r,u.href=s.createObjectURL(c),o.body.appendChild(u),u.click(),s.revokeObjectURL(u.href),u.remove(),r}csv(e,t){this.download(e,t,"csv")}pem(e,t){this.download(e,t,"pem")}miscExtension(e,t,n){this.download(e,t,n)}}e.default=i})),define("vault/services/flags",["exports","ember-concurrency/async-arrow-runtime","@ember/service","@glimmer/tracking","ember-concurrency","vault/macros/lazy-capabilities"],(function(e,t,n,l,i,r){var a,o,s,u,c,d,p,f
function m(e,t,n,l){n&&Object.defineProperty(e,t,{enumerable:n.enumerable,configurable:n.configurable,writable:n.writable,value:n.initializer?n.initializer.call(l):void 0})}function h(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e
var n=e[Symbol.toPrimitive]
if(void 0!==n){var l=n.call(e,t||"default")
if("object"!=typeof l)return l
throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string")
return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function b(e,t,n,l,i){var r={}
return Object.keys(l).forEach((function(e){r[e]=l[e]})),r.enumerable=!!r.enumerable,r.configurable=!!r.configurable,("value"in r||r.initializer)&&(r.writable=!0),r=n.slice().reverse().reduce((function(n,l){return l(e,t,n)||n}),r),i&&void 0!==r.initializer&&(r.value=r.initializer?r.initializer.call(i):void 0,r.initializer=void 0),void 0===r.initializer?(Object.defineProperty(e,t,r),null):r}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
const y="VAULT_CLOUD_ADMIN_NAMESPACE"
e.default=(a=(0,r.default)(r.apiPath`sys/activation-flags/secrets-sync/activate`),o=class extends n.default{constructor(...e){super(...e),m(this,"version",s,this),m(this,"store",u,this),m(this,"permissions",c,this),m(this,"activatedFlags",d,this),m(this,"featureFlags",p,this),h(this,"getFeatureFlags",(0,t.buildTask)((()=>({context:this,generator:function*(){try{const e=yield fetch("/v1/sys/internal/ui/feature-flags",{method:"GET"})
if(200===e.status){const t=yield e.json()
this.featureFlags=t.feature_flags||[]}}catch(e){0}}})),null,"getFeatureFlags","keepLatest")),h(this,"getActivatedFlags",(0,t.buildTask)((()=>({context:this,generator:function*(){if(!this.version.isCommunity)try{const e=yield this.store.adapterFor("application").ajax("/v1/sys/activation-flags","GET",{unauthenticated:!0,namespace:null})
return void(this.activatedFlags=e.data?.activated)}catch(e){0}}})),null,"getActivatedFlags","keepLatest")),m(this,"secretsSyncActivatePath",f,this)}get isHvdManaged(){return this.featureFlags?.includes(y)}get hvdManagedNamespaceRoot(){return this.isHvdManaged?"admin":null}fetchFeatureFlags(){return this.getFeatureFlags.perform()}get secretsSyncIsActivated(){return this.activatedFlags.includes("secrets-sync")}fetchActivatedFlags(){return this.getActivatedFlags.perform()}get canActivateSecretsSync(){return!1!==this.secretsSyncActivatePath.get("canCreate")||!1!==this.secretsSyncActivatePath.get("canUpdate")}get showSecretsSync(){const e=this.isHvdManaged,t=this.version.hasSecretsSync,n=this.version.isEnterprise,l=this.secretsSyncIsActivated
return!!n&&(!!e||!(n&&!t)&&(!l||this.permissions.hasNavPermission("sync")))}},s=b(o.prototype,"version",[n.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),u=b(o.prototype,"store",[n.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),c=b(o.prototype,"permissions",[n.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),d=b(o.prototype,"activatedFlags",[l.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return[]}}),p=b(o.prototype,"featureFlags",[l.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return[]}}),f=b(o.prototype,"secretsSyncActivatePath",[a],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),o)})),define("vault/services/flash-messages",["exports","ember-cli-flash/services/flash-messages"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
class n extends t.default{}e.default=n})),define("vault/services/keyboard",["exports","ember-keyboard/services/keyboard.js"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.default}})})),define("vault/services/media",["exports","ember-responsive/services/media"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default=t.default})),define("vault/services/modal-dialog",["exports","@ember/object","@ember/service","vault/config/environment","ember-modal-dialog/utils/config-utils"],(function(e,t,n,l,i){function r(e){return(0,t.computed)((function(){return l.default["ember-modal-dialog"]&&l.default["ember-modal-dialog"][e]}))}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default=n.default.extend({hasEmberTether:r("hasEmberTether"),hasLiquidWormhole:r("hasLiquidWormhole"),hasLiquidTether:r("hasLiquidTether"),destinationElementId:(0,t.computed)((function(){return(0,i.getDestinationElementIdFromConfig)(l.default)}))})})),define("vault/services/namespace",["exports","@ember/service","ember-concurrency","core/utils/sanitize-path","@glimmer/tracking","@ember/test-waiters"],(function(e,t,n,l,i,r){var a,o,s,u,c,d
function p(e,t,n,l){n&&Object.defineProperty(e,t,{enumerable:n.enumerable,configurable:n.configurable,writable:n.writable,value:n.initializer?n.initializer.call(l):void 0})}function f(e,t,n,l,i){var r={}
return Object.keys(l).forEach((function(e){r[e]=l[e]})),r.enumerable=!!r.enumerable,r.configurable=!!r.configurable,("value"in r||r.initializer)&&(r.writable=!0),r=n.slice().reverse().reduce((function(n,l){return l(e,t,n)||n}),r),i&&void 0!==r.initializer&&(r.value=r.initializer?r.initializer.call(i):void 0,r.initializer=void 0),void 0===r.initializer?(Object.defineProperty(e,t,r),null):r}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
const m=(0,r.buildWaiter)("namespaces")
e.default=(a=(0,n.task)({drop:!0}),o=class extends t.default{constructor(...e){super(...e),p(this,"store",s,this),p(this,"auth",u,this),p(this,"path",c,this),p(this,"accessibleNamespaces",d,this)}get userRootNamespace(){return this.auth.authData?.userRootNamespace}get inRootNamespace(){return""===this.path}get currentNamespace(){if(this.inRootNamespace)return"root"
const e=this.path?.split("/")
return e[e.length-1]}get relativeNamespace(){return(0,l.getRelativePath)(this.path,this.userRootNamespace)}setNamespace(e){this.path=e||""}*findNamespacesForUser(){const e=m.beginAsync(),t=this.store,n=t.adapterFor("namespace"),l=this.auth.authData.userRootNamespace
try{const e=(yield n.findAll(t,"namespace",null,{adapterOptions:{forUser:!0,namespace:l}})).data.keys||[]
this.accessibleNamespaces=e.map((e=>{let t=e
return l&&(t=`${l}/${e}`),t.replace(/\/$/,"")}))}catch(i){}finally{m.endAsync(e)}}reset(){this.accessibleNamespaces=null}},s=f(o.prototype,"store",[t.service],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),u=f(o.prototype,"auth",[t.service],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),c=f(o.prototype,"path",[i.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return""}}),d=f(o.prototype,"accessibleNamespaces",[i.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),f(o.prototype,"findNamespacesForUser",[a],Object.getOwnPropertyDescriptor(o.prototype,"findNamespacesForUser"),o.prototype),o)})),define("vault/services/page-title",["exports","ember-page-title/services/page-title"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.default}})})),define("vault/services/path-help",["exports","@ember-data/model","@ember/service","vault/utils/path-encoding-helpers","@ember/owner","vault/utils/openapi-to-attrs","vault/utils/field-to-attrs","rsvp","@ember/debug","@ember/string","@ember/object","vault/decorators/model-validations","vault/adapters/generated-item-list","core/utils/sanitize-path","vault/utils/openapi-helpers","@ember/utils"],(function(e,t,n,l,i,r,a,o,s,u,c,d,p,f,m,h){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default=n.default.extend({attrs:null,dynamicApiPath:"",ajax(e,t={}){const n=(0,i.getOwner)(this).lookup("adapter:application"),{data:l}=t
return n.ajax(e,"GET",{data:l})},hydrateModel(e,t){const n=`model:${e}`,l=(0,i.getOwner)(this).factoryFor(n),r=(0,m.getHelpUrlForModel)(e,t)
if(!l)throw new Error(`modelFactory for ${e} not found -- use getNewModel instead.`);(0,s.debug)(`Model factory found for ${e}`)
const a=l.class
return a.merged||!r?(0,o.resolve)():this.registerNewModelWithProps(r,t,a,n)},getNewModel(e,n,l,r){const a=(0,i.getOwner)(this),u=`model:${e}`,c=a.factoryFor(u)
if(c)return c.class.merged||(0,s.debug)(`Model exists for ${e} -- use hydrateModel instead`),(0,o.resolve)();(0,s.debug)(`Creating new Model for ${e}`)
let d=t.default.extend({})
return this.getPaths(l,n,r).then((t=>{if(!a.factoryFor(`adapter:${e}`)){(0,s.debug)(`Creating new adapter for ${e}`)
const n=this.getNewAdapter(t,r)
a.register(`adapter:${e}`,n)}const i=r?(0,m.filterPathsByItemType)(t,r):t.paths,c=i.find((e=>e.operations.includes("post")&&"Delete"!==e.action)),p=(0,m.pathToHelpUrlSegment)(c.path)
if(!p)return(0,o.reject)()
const f=`/v1/${l}${p.slice(1)}?help=true`
return t.paths=i,d=d.extend({paths:t}),this.registerNewModelWithProps(f,n,d,u)})).catch((e=>{console.error(e)}))},getPaths(e,t,n,l){const i=l&&n?`Fetching relevant paths for ${t} ${n} ${l} from ${e}`:`Fetching relevant paths for ${t} ${n} from ${e}`
return(0,s.debug)(i),this.ajax(`/v1/${e}?help=1`,t).then((t=>{const i=t.openapi.paths
return Object.entries(i).reduce(m.reducePathsByPathName,{apiPath:e,itemType:n,itemTypes:[],paths:[],itemID:l})}))},getProps(e,t){return(0,s.debug)(`Fetching schema properties for ${t} from ${e}`),this.ajax(e,t).then((e=>{const t=Object.keys(e.openapi.paths)[0],n=e.openapi.paths[t],l=n.parameters,i={}
if(l){const{name:e,schema:t,description:n}=l[0],r=(0,u.capitalize)(e.split("_").join(" "))
i[e]={"x-vault-displayAttrs":{name:r,group:"default"},type:t.type,description:n,isId:!0}}let a={}
const o=n?.post?.requestBody?.content["application/json"].schema
if(o.$ref){a=o.$ref.replace("#/","").split("/").reduce(((e,t)=>e[t]||{}),e.openapi).properties}else o.properties&&(a=o.properties)
const s={...i,...a}
return(0,r.expandOpenApiProps)(s)}))},getNewAdapter(e,t){const n=(0,m.filterPathsByItemType)(e,t)
let{apiPath:i}=e
const r=n.find((e=>e.operations.includes("get"))),a=n.find((e=>"Create"===e.action||e.operations.includes("post"))),o=n.find((e=>e.operations.includes("delete")))
return p.default.extend({urlForItem(e,t,n){const a=(0,f.sanitizePath)(r.path)
let o
return e=(0,l.encodePath)(e),n&&(i=n),o=t?`${this.buildURL()}/${i}${a}/`:`${this.buildURL()}/${i}${a}/${e}`,o},urlForQueryRecord(e,t){return this.urlForItem(e,t)},urlForUpdateRecord(e){const t=a.path.slice(1,a.path.indexOf("{")-1)
return`${this.buildURL()}/${i}${t}/${e}`},urlForCreateRecord(e,t){const n=t.record.mutableId,l=a.path.slice(1,a.path.indexOf("{")-1)
return`${this.buildURL()}/${i}${l}/${n}`},urlForDeleteRecord(e){const t=o.path.slice(1,o.path.indexOf("{")-1)
return`${this.buildURL()}/${i}${t}/${e}`},createRecord(e,t,n){return this._super(...arguments).then((e=>(e?.id||n.record.id||(n.record.id=n.record.mutableId,n.id=n.record.id),e)))}})},registerNewModelWithProps(e,t,n,l){return this.getProps(e,t).then((e=>{const{attrs:a,newFields:o}=(0,r.combineAttributes)(n.attributes,e),u=(0,i.getOwner)(this)
n=n.extend(a,{newFields:o})
try{let e=n.proto().fieldGroups
if(!e&&((0,s.debug)(`Constructing fieldGroups for ${t}`),e=this.getFieldGroups(n),n=n.extend({fieldGroups:e}),"userpass"===t)){var p
const e={password:[{validator:e=>!((0,h.isPresent)(e.password)&&(0,h.isPresent)(e.passwordHash))&&((0,h.isPresent)(e.password)||(0,h.isPresent)(e.passwordHash)),message:"You must provide either password or password hash, but not both."}]}
let t=(0,d.withModelValidations)(e)(p=class extends n{})||p
n=t}}catch(f){}n.reopen({mutableId:(0,c.computed)("id","_id",{get(){return this._id||this.id},set(e,t){return this._id=t}})}),n.merged=!0,u.unregister(l),u.register(l,n)}))},getFieldGroups(e){const t={default:[]},n=[]
e.attributes.forEach((e=>{e.options.fieldGroup?t[e.options.fieldGroup]?t[e.options.fieldGroup].push(e.name):t[e.options.fieldGroup]=[e.name]:t.default.push(e.name)}))
for(const l in t)n.push({[l]:t[l]})
return(0,a.default)(e,n)}})})),define("vault/services/permissions",["exports","@ember/service","@glimmer/tracking","core/utils/sanitize-path","ember-concurrency"],(function(e,t,n,l,i){var r,a,o,s,u,c,d,p
function f(e,t,n,l){n&&Object.defineProperty(e,t,{enumerable:n.enumerable,configurable:n.configurable,writable:n.writable,value:n.initializer?n.initializer.call(l):void 0})}function m(e,t,n,l,i){var r={}
return Object.keys(l).forEach((function(e){r[e]=l[e]})),r.enumerable=!!r.enumerable,r.configurable=!!r.configurable,("value"in r||r.initializer)&&(r.writable=!0),r=n.slice().reverse().reduce((function(n,l){return l(e,t,n)||n}),r),i&&void 0!==r.initializer&&(r.value=r.initializer?r.initializer.call(i):void 0,r.initializer=void 0),void 0===r.initializer?(Object.defineProperty(e,t,r),null):r}Object.defineProperty(e,"__esModule",{value:!0}),e.default=e.PERMISSIONS_BANNER_STATES=void 0
const h=e.PERMISSIONS_BANNER_STATES={readFailed:"read-failed",noAccess:"no-ns-access"},b={access:{methods:"sys/auth",mfa:"identity/mfa/method",oidc:"identity/oidc/client",entities:"identity/entity/id",groups:"identity/group/id",leases:"sys/leases/lookup",namespaces:"sys/namespaces","control-groups":"sys/control-group/"},policies:{acl:"sys/policies/acl",rgp:"sys/policies/rgp",egp:"sys/policies/egp"},tools:{wrap:"sys/wrapping/wrap",lookup:"sys/wrapping/lookup",unwrap:"sys/wrapping/unwrap",rewrap:"sys/wrapping/rewrap",random:"sys/tools/random",hash:"sys/tools/hash"},status:{replication:"sys/replication",license:"sys/license",seal:"sys/seal",raft:"sys/storage/raft/configuration"},clients:{activity:"sys/internal/counters/activity",config:"sys/internal/counters/config"},settings:{customMessages:"sys/config/ui/custom-messages"},sync:{destinations:"sys/sync/destinations",associations:"sys/sync/associations",config:"sys/sync/config",github:"sys/sync/github-apps"}},y={"sys/auth":{route:"vault.cluster.access.methods",models:[]},"identity/entity/id":{route:"vault.cluster.access.identity",models:["entities"]},"identity/group/id":{route:"vault.cluster.access.identity",models:["groups"]},"sys/leases/lookup":{route:"vault.cluster.access.leases",models:[]},"sys/namespaces":{route:"vault.cluster.access.namespaces",models:[]},"sys/control-group/":{route:"vault.cluster.access.control-groups",models:[]},"identity/mfa/method":{route:"vault.cluster.access.mfa",models:[]},"identity/oidc/client":{route:"vault.cluster.access.oidc",models:[]}}
e.default=(r=class extends t.default{constructor(...e){super(...e),f(this,"exactPaths",a,this),f(this,"globPaths",o,this),f(this,"canViewAll",s,this),f(this,"permissionsBanner",u,this),f(this,"chrootNamespace",c,this),f(this,"store",d,this),f(this,"namespace",p,this)}get fullCurrentNamespace(){const e=this.namespace.path
return this.chrootNamespace?`${(0,l.sanitizePath)(this.chrootNamespace)}/${(0,l.sanitizePath)(e)}`:(0,l.sanitizePath)(e)}*getPaths(){if(!this.paths)try{const e=yield this.store.adapterFor("permissions").query()
return void this.setPaths(e)}catch(e){this.canViewAll=!0,this.permissionsBanner=h.readFailed}}hasWildcardNsAccess(e,t={}){const n=(0,l.sanitizePath)(e).split("/")
let i=null
for(;n.length>0;){const e=`${n.join("/")}/`
if(Object.keys(t).includes(e)){i=e
break}n.pop()}return!i&&Object.keys(t).includes("")&&(i=""),null!==i&&!this.isDenied(t[i])}calcNsAccess(){if(this.canViewAll)return void(this.permissionsBanner=null)
const e=this.fullCurrentNamespace,t=this.hasWildcardNsAccess(e,this.globPaths)||Object.keys(this.globPaths).any((t=>t.startsWith(e)&&!this.isDenied(this.globPaths[t])))||Object.keys(this.exactPaths).any((t=>t.startsWith(e)&&!this.isDenied(this.exactPaths[t])))
this.permissionsBanner=t?null:h.noAccess}setPaths(e){this.exactPaths=e.data.exact_paths,this.globPaths=e.data.glob_paths,this.canViewAll=e.data.root,this.chrootNamespace=e.data.chroot_namespace,this.calcNsAccess()}reset(){this.exactPaths=null,this.globPaths=null,this.canViewAll=null,this.chrootNamespace=null,this.permissionsBanner=null}hasNavPermission(e,t,n){if(t){return(Array.isArray(t)?t:[t])[!Array.isArray(t)||n?"every":"some"]((t=>{const n="entities"===t||"groups"===t?["list"]:[null]
return this.hasPermission(b[e][t],n)}))}return Object.values(b[e]).some((e=>this.hasPermission(e)))}navPathParams(e){const t=Object.values(b[e]).find((e=>this.hasPermission(e)))
return["policies","tools"].includes(e)?{models:[t.split("/").lastObject]}:y[t]}pathNameWithNamespace(e){const t=this.fullCurrentNamespace
return t?`${(0,l.sanitizePath)(t)}/${(0,l.sanitizeStart)(e)}`:e}hasPermission(e,t=[null]){if(this.canViewAll)return!0
const n=this.pathNameWithNamespace(e)
return t.every((e=>this.hasMatchingExactPath(n,e)||this.hasMatchingGlobPath(n,e)))}hasMatchingExactPath(e,t){const n=this.exactPaths
if(n){const l=Object.keys(n).find((t=>t.startsWith(e))),i=l&&!this.isDenied(n[l])
return l&&t?this.hasCapability(n[l],t)&&i:i}return!1}hasMatchingGlobPath(e,t){const n=this.globPaths
if(n){const l=Object.keys(n).find((t=>e.includes(t)||e.includes(t.replace(/\/$/,"")))),i=l&&!this.isDenied(n[l])||Object.prototype.hasOwnProperty.call(n,"")
return l&&t?this.hasCapability(n[l],t)&&i:i}return!1}hasCapability(e,t){return e.capabilities.includes(t)}isDenied(e){return e.capabilities.includes("deny")}},a=m(r.prototype,"exactPaths",[n.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),o=m(r.prototype,"globPaths",[n.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),s=m(r.prototype,"canViewAll",[n.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),u=m(r.prototype,"permissionsBanner",[n.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),c=m(r.prototype,"chrootNamespace",[n.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),d=m(r.prototype,"store",[t.service],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),p=m(r.prototype,"namespace",[t.service],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),m(r.prototype,"getPaths",[i.task],Object.getOwnPropertyDescriptor(r.prototype,"getPaths"),r.prototype),r)})),define("vault/services/replication-mode",["exports","@ember/service","@glimmer/tracking"],(function(e,t,n){var l,i
Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default=(l=class extends t.default{constructor(...e){var t,n,l,r
super(...e),t=this,n="mode",r=this,(l=i)&&Object.defineProperty(t,n,{enumerable:l.enumerable,configurable:l.configurable,writable:l.writable,value:l.initializer?l.initializer.call(r):void 0})}getMode(){return this.mode}setMode(e){this.mode=e}},r=l.prototype,a="mode",o=[n.tracked],s={configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}},c={},Object.keys(s).forEach((function(e){c[e]=s[e]})),c.enumerable=!!c.enumerable,c.configurable=!!c.configurable,("value"in c||c.initializer)&&(c.writable=!0),c=o.slice().reverse().reduce((function(e,t){return t(r,a,e)||e}),c),u&&void 0!==c.initializer&&(c.value=c.initializer?c.initializer.call(u):void 0,c.initializer=void 0),i=void 0===c.initializer?(Object.defineProperty(r,a,c),null):c,l)
var r,a,o,s,u,c})),define("vault/services/secret-mount-path",["exports","@ember/service"],(function(e,t){function n(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e
var n=e[Symbol.toPrimitive]
if(void 0!==n){var l=n.call(e,t||"default")
if("object"!=typeof l)return l
throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string")
return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
class l extends t.default{constructor(...e){super(...e),n(this,"currentPath","")}update(e){this.currentPath=e}}e.default=l})),define("vault/services/store",["exports","@ember-data/store","@ember-data/request","@ember-data/legacy-compat","@ember/runloop","rsvp","@ember/string","@ember/debug","@ember/object","vault/utils/clamp","vault/config/environment","vault/utils/sort-objects"],(function(e,t,n,l,i,r,a,o,s,u,c,d){function p(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e
var n=e[Symbol.toPrimitive]
if(void 0!==n){var l=n.call(e,t||"default")
if("object"!=typeof l)return l
throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string")
return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,e.keyForCache=h,e.normalizeModelName=m
const{DEFAULT_PAGE_SIZE:f}=c.default.APP
function m(e){return(0,a.dasherize)(e)}function h(e){const{size:t,page:n,responsePath:l,pageFilter:i,...r}=e,a=Object.keys(r).sort().reduce(((e,t)=>(e[t]=r[t],e)),{})
return JSON.stringify(a)}class b extends t.default{constructor(e){super(e),p(this,"requestManager",new n.default),p(this,"lazyCaches",new Map),this.requestManager.use([l.LegacyNetworkHandler]),this.requestManager.useCache(t.CacheHandler)}setLazyCacheForModel(e,t,n){const l=h(t),i=this.lazyCacheForModel(e)||new Map
i.set(l,n)
const r=m(e)
this.lazyCaches.set(r,i)}getLazyCacheForModel(e,t){const n=h(t),l=this.lazyCacheForModel(e)
if(l)return l.get(n)}lazyCacheForModel(e){return this.lazyCaches.get(m(e))}lazyPaginatedQuery(e,t,n){const l=t.skipCache
delete t.skipCache
const i=this.adapterFor(e),a=m(e),o=l?this.clearDataset(a):this.getDataset(a,t),u=t.responsePath
return t.size||(t.size=f),o?(0,r.resolve)(this.fetchPage(a,t)):i.query(this,{modelName:a},t,null,n).then((e=>{const n=this.serializerFor(a),l=n.extractLazyPaginatedData,i=l?l.call(n,e):(0,s.get)(e,u)
return(0,s.set)(e,u,null),this.storeDataset(a,t,e,i),this.fetchPage(a,t)})).catch((function(e){throw e}))}filterData(e,t){let n=t||[]
return e&&(n=e instanceof Function?e(t):t.filter((t=>(t.id||t.name||t).toLowerCase().includes(e.toLowerCase())))),n}constructResponse(e,t){const{pageFilter:n,responsePath:l,size:i,page:r}=t,{response:a,dataset:o}=this.getDataset(e,t),c={...a},d=this.filterData(n,o),p=Math.ceil(d.length/i),f=(0,u.default)(r,1,p),m=f*i,h=m-i,b=d.slice(h,m)
return(0,s.set)(c,l||"",b),c.meta={currentPage:f,lastPage:p,nextPage:(0,u.default)(f+1,1,p),prevPage:(0,u.default)(f-1,1,p),total:o.length||0,filteredTotal:d.length||0,pageSize:i},c}forceUnload(e){this.peekAll(e).length,(0,i.run)((()=>this.unloadAll(e)))}fetchPage(e,t){const n=this.constructResponse(e,t)
return this.forceUnload(e),this.peekAll(e).length,new r.Promise((t=>{(0,i.schedule)("destroy",(()=>{this.push(this.serializerFor(e).normalizeResponse(this,this.modelFor(e),n,null,"query")),this.peekAll(e).length
const l=this.peekAll(e).slice()
l.set("meta",n.meta),t(l)}))}))}getDataset(e,t){return this.getLazyCacheForModel(e,t)}storeDataset(e,t,n,l){const i={response:n,dataset:t.sortBy?(0,d.default)(l,t.sortBy):l}
this.setLazyCacheForModel(e,t,i)}clearDataset(e){this.lazyCaches.size&&(e&&this.lazyCaches.has(e)?this.lazyCaches.delete(e):this.lazyCaches.clear())}clearAllDatasets(){this.clearDataset()}unloadAll(e){["auth-method","secret-engine"].includes(e)?this.peekAll(e).forEach((e=>this.unloadRecord(e))):super.unloadAll(e)}unloadRecord(e){e&&["auth-method","secret-engine"].includes(e.constructor.modelName)&&e.config&&super.unloadRecord(e.config),super.unloadRecord(e)}}e.default=b})),define("vault/services/version",["exports","@ember/service","ember-concurrency","@glimmer/tracking"],(function(e,t,n,l){var i,r,a,o,s,u,c
function d(e,t,n,l){n&&Object.defineProperty(e,t,{enumerable:n.enumerable,configurable:n.configurable,writable:n.writable,value:n.initializer?n.initializer.call(l):void 0})}function p(e,t,n,l,i){var r={}
return Object.keys(l).forEach((function(e){r[e]=l[e]})),r.enumerable=!!r.enumerable,r.configurable=!!r.configurable,("value"in r||r.initializer)&&(r.writable=!0),r=n.slice().reverse().reduce((function(n,l){return l(e,t,n)||n}),r),i&&void 0!==r.initializer&&(r.value=r.initializer?r.initializer.call(i):void 0,r.initializer=void 0),void 0===r.initializer?(Object.defineProperty(e,t,r),null):r}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default=(i=(0,n.task)({drop:!0}),r=class extends t.default{constructor(...e){super(...e),d(this,"store",a,this),d(this,"flags",o,this),d(this,"features",s,this),d(this,"version",u,this),d(this,"type",c,this)}get isEnterprise(){return"enterprise"===this.type}get isCommunity(){return!this.isEnterprise}get hasPerfReplication(){return this.features.includes("Performance Replication")}get hasDRReplication(){return this.features.includes("DR Replication")}get hasSentinel(){return this.features.includes("Sentinel")}get hasNamespaces(){return this.features.includes("Namespaces")}get hasControlGroups(){return this.features.includes("Control Groups")}get hasSecretsSync(){return this.features.includes("Secrets Sync")}get versionDisplay(){return this.version?this.isEnterprise?`v${this.version.slice(0,this.version.indexOf("+"))}`:`v${this.version}`:""}*getVersion(){if(this.version)return
const e=yield this.store.adapterFor("cluster").sealStatus(!1)
this.version=e?.version}*getType(){if(null!==this.type)return
const e=yield this.store.adapterFor("cluster").health()
e.has_chroot_namespace?this.type="enterprise":this.type=e.enterprise?"enterprise":"community"}*getFeatures(){if(!this.features?.length&&!this.isCommunity)try{const e=yield this.store.adapterFor("cluster").features()
return void(this.features=e.features)}catch(e){}}fetchVersion(){return this.getVersion.perform()}fetchType(){return this.getType.perform()}fetchFeatures(){return this.getFeatures.perform()}},a=p(r.prototype,"store",[t.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),o=p(r.prototype,"flags",[t.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),s=p(r.prototype,"features",[l.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return[]}}),u=p(r.prototype,"version",[l.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),c=p(r.prototype,"type",[l.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),p(r.prototype,"getVersion",[i],Object.getOwnPropertyDescriptor(r.prototype,"getVersion"),r.prototype),p(r.prototype,"getType",[n.task],Object.getOwnPropertyDescriptor(r.prototype,"getType"),r.prototype),p(r.prototype,"getFeatures",[n.keepLatestTask],Object.getOwnPropertyDescriptor(r.prototype,"getFeatures"),r.prototype),r)})),define("vault/templates/application",["exports","@ember/template-factory"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default=(0,t.createTemplateFactory)({id:"4Xi7gx3r",block:'[[[8,[39,0],null,[["@showSidebar"],[[30,0,["auth","isActiveSession"]]]],[["default"],[[[[1,"\\n  "],[10,0],[14,0,"page-container"],[12],[1,"\\n    "],[46,[28,[37,2],null,null],null,null,null],[1,"\\n  "],[13],[1,"\\n  "],[8,[39,3],null,null,null],[1,"\\n"]],[]]]]]],[],false,["sidebar/frame","component","-outlet","basic-dropdown-wormhole"]]',moduleName:"vault/templates/application.hbs",isStrictMode:!1})})),define("vault/templates/components/auth-form-options",["exports","@ember/template-factory"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default=(0,t.createTemplateFactory)({id:"4fV3Sd+S",block:'[[[41,[51,[30,0,["selectedAuthIsPath"]]],[[[1,"  "],[10,0],[14,0,"box has-slim-padding is-shadowless"],[12],[1,"\\n    "],[8,[39,1],null,[["@isOpen","@onClick"],[[30,0,["isOpen"]],[28,[37,2],[[28,[37,3],[[30,0,["isOpen"]]],null]],null]]],null],[1,"\\n"],[41,[30,0,["isOpen"]],[[[1,"      "],[10,0],[14,0,"field"],[12],[1,"\\n        "],[10,"label"],[14,"for","custom-path"],[14,0,"is-label"],[12],[1,"\\n          Mount path\\n        "],[13],[1,"\\n        "],[10,0],[14,0,"control"],[12],[1,"\\n          "],[10,"input"],[14,3,"custom-path"],[14,1,"custom-path"],[14,0,"input"],[15,2,[30,1]],[15,"oninput",[28,[37,5],[[30,0],[30,2]],[["value"],["target.value"]]]],[14,4,"text"],[12],[13],[1,"\\n        "],[13],[1,"\\n        "],[8,[39,6],[[24,0,"has-top-padding-s"]],[["@type","@message"],["info","If this backend was mounted using a non-default path, enter it here."]],null],[1,"\\n      "],[13],[1,"\\n"]],[]],null],[1,"  "],[13],[1,"\\n"]],[]],null]],["@customPath","@onPathChange"],false,["unless","toggle-button","fn","mut","if","action","alert-inline"]]',moduleName:"vault/templates/components/auth-form-options.hbs",isStrictMode:!1})})),define("vault/templates/components/auth-form",["exports","@ember/template-factory"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default=(0,t.createTemplateFactory)({id:"z5WByE3s",block:'[[[10,0],[14,0,"auth-form"],[12],[1,"\\n"],[41,[30,0,["hasMethodsWithPath"]],[[[1,"    "],[10,"nav"],[14,0,"tabs is-marginless"],[12],[1,"\\n      "],[10,"ul"],[12],[1,"\\n"],[42,[28,[37,2],[[28,[37,2],[[30,0,["methodsToShow"]]],null]],null],null,[[[44,[[28,[37,4],[[30,1,["path"]],[30,1,["type"]]],null]],[[[1,"            "],[10,"li"],[15,0,[52,[28,[37,5],[[30,0,["selectedAuthIsPath"]],[28,[37,6],[[28,[37,4],[[30,0,["selectedAuthBackend","path"]],[30,0,["selectedAuthBackend","type"]]],null],[30,2]],null]],null],"is-active",""]],[12],[1,"\\n              "],[8,[39,7],null,[["@route","@model","@query"],["vault.cluster.auth",[30,0,["cluster","name"]],[28,[37,8],null,[["with"],[[30,2]]]]]],[["default"],[[[[1,"\\n                "],[1,[28,[35,4],[[30,1,["id"]],[28,[37,9],[[30,1,["type"]]],null]],null]],[1,"\\n              "]],[]]]]],[1,"\\n            "],[13],[1,"\\n"]],[2]]]],[1]],null],[1,"        "],[10,"li"],[15,0,[52,[51,[30,0,["selectedAuthIsPath"]]],"is-active",""]],[12],[1,"\\n          "],[8,[39,7],null,[["@route","@model","@query"],["vault.cluster.auth",[30,0,["cluster","name"]],[28,[37,8],null,[["with"],["token"]]]]],[["default"],[[[[1,"\\n            Other\\n          "]],[]]]]],[1,"\\n        "],[13],[1,"\\n      "],[13],[1,"\\n    "],[13],[1,"\\n"]],[]],null],[1,"  "],[10,0],[14,0,"box is-marginless is-shadowless"],[12],[1,"\\n    "],[8,[39,11],null,[["@errorMessage"],[[52,[28,[37,5],[[30,0,["cluster","standby"]],[30,0,["cspError"]]],null],[30,0,["cspError"]],[30,0,["error"]]]]],null],[1,"\\n"],[41,[30,0,["selectedAuthBackend","path"]],[[[1,"      "],[10,0],[14,0,"has-bottom-margin-s"],[12],[1,"\\n        "],[10,2],[14,0,"is-label"],[12],[1,[30,0,["selectedAuthBackend","path"]]],[13],[1,"\\n        "],[10,1],[14,0,"description has-text-grey"],[12],[1,"\\n          "],[1,[30,0,["selectedAuthBackend","mountDescription"]]],[1,"\\n        "],[13],[1,"\\n      "],[13],[1,"\\n"]],[]],null],[41,[28,[37,4],[[28,[37,12],[[30,0,["hasMethodsWithPath"]]],null],[28,[37,12],[[30,0,["selectedAuthIsPath"]]],null]],null],[[[1,"      "],[8,[39,13],null,[["@label","@name","@options","@valueAttribute","@labelAttribute","@isFullwidth","@selectedValue","@onChange"],["Method","auth-method",[30,0,["authMethods"]],"type","typeDisplay",true,[30,0,["selectedAuth"]],[28,[37,14],[[30,0],[28,[37,15],[[30,0,["selectedAuth"]]],null]],null]]],null],[1,"\\n"]],[]],null],[41,[28,[37,4],[[28,[37,6],[[30,0,["selectedAuthBackend","type"]],"jwt"],null],[28,[37,6],[[30,0,["selectedAuthBackend","type"]],"oidc"],null]],null],[[[1,"      "],[8,[39,16],null,[["@onError","@onLoading","@namespace","@onNamespace","@onSubmit","@onRoleName","@roleName","@selectedAuthType","@selectedAuthPath","@disabled"],[[28,[37,14],[[30,0],"handleError"],null],[28,[37,14],[[30,0],[28,[37,15],[[30,0,["isLoading"]]],null]],null],[30,0,["namespace"]],[28,[37,14],[[30,0],[28,[37,15],[[30,0,["namespace"]]],null]],null],[28,[37,14],[[30,0],"doSubmit"],null],[28,[37,14],[[30,0],[28,[37,15],[[30,0,["roleName"]]],null]],null],[30,0,["roleName"]],[30,0,["selectedAuthBackend","type"]],[28,[37,4],[[30,0,["customPath"]],[30,0,["selectedAuthBackend","id"]]],null],[28,[37,4],[[30,0,["authIsRunning"]],[30,0,["isLoading"]]],null]]],[["default"],[[[[1,"\\n        "],[8,[39,17],null,[["@customPath","@onPathChange","@selectedAuthIsPath"],[[30,0,["customPath"]],[28,[37,14],[[30,0],[28,[37,15],[[30,0,["customPath"]]],null]],null],[30,0,["selectedAuthIsPath"]]]],null],[1,"\\n      "]],[]]]]],[1,"\\n"]],[]],[[[41,[28,[37,6],[[30,0,["selectedAuthBackend","type"]],"saml"],null],[[[1,"      "],[8,[39,18],null,[["@onError","@onLoading","@namespace","@onNamespace","@onSubmit","@onRoleName","@roleName","@selectedAuthType","@selectedAuthPath","@disabled"],[[28,[37,14],[[30,0],"handleError"],null],[28,[37,14],[[30,0],[28,[37,15],[[30,0,["isLoading"]]],null]],null],[30,0,["namespace"]],[28,[37,14],[[30,0],[28,[37,15],[[30,0,["namespace"]]],null]],null],[28,[37,14],[[30,0],"doSubmit"],null],[28,[37,14],[[30,0],[28,[37,15],[[30,0,["roleName"]]],null]],null],[30,0,["roleName"]],[30,0,["selectedAuthBackend","type"]],[28,[37,4],[[30,0,["customPath"]],[30,0,["selectedAuthBackend","id"]]],null],[28,[37,4],[[30,0,["authIsRunning"]],[30,0,["isLoading"]]],null]]],[["default"],[[[[1,"\\n        "],[8,[39,17],null,[["@customPath","@onPathChange","@selectedAuthIsPath"],[[30,0,["customPath"]],[28,[37,14],[[30,0],[28,[37,15],[[30,0,["customPath"]]],null]],null],[30,0,["selectedAuthIsPath"]]]],null],[1,"\\n      "]],[]]]]],[1,"\\n"]],[]],[[[1,"      "],[10,"form"],[14,1,"auth-form"],[15,"onsubmit",[28,[37,14],[[30,0],"doSubmit",null],null]],[12],[1,"\\n"],[41,[28,[37,6],[[30,0,["providerName"]],"github"],null],[[[1,"          "],[10,0],[14,0,"field"],[12],[1,"\\n            "],[10,"label"],[14,"for","token"],[14,0,"is-label"],[12],[1,"GitHub token"],[13],[1,"\\n            "],[10,0],[14,0,"control"],[12],[1,"\\n              "],[8,[39,19],[[24,3,"token"],[24,1,"token"],[24,0,"input"],[24,"autocomplete","off"],[24,"spellcheck","false"]],[["@type","@value"],["password",[30,0,["token"]]]],null],[1,"\\n            "],[13],[1,"\\n          "],[13],[1,"\\n"]],[]],[[[41,[28,[37,6],[[30,0,["providerName"]],"token"],null],[[[1,"          "],[10,0],[14,0,"field"],[12],[1,"\\n            "],[10,"label"],[14,"for","token"],[14,0,"is-label"],[12],[1,"Token"],[13],[1,"\\n            "],[10,0],[14,0,"control"],[12],[1,"\\n              "],[8,[39,19],[[24,3,"token"],[24,0,"input"],[24,"autocomplete","off"],[24,"spellcheck","false"],[24,1,"token"]],[["@type","@value"],["password",[30,0,["token"]]]],null],[1,"\\n            "],[13],[1,"\\n          "],[13],[1,"\\n"]],[]],[[[1,"          "],[10,0],[14,0,"field"],[12],[1,"\\n            "],[10,"label"],[14,"for","username"],[14,0,"is-label"],[12],[1,"Username"],[13],[1,"\\n            "],[10,0],[14,0,"control"],[12],[1,"\\n              "],[8,[39,19],[[24,3,"username"],[24,1,"username"],[24,0,"input"],[24,"autocomplete","off"],[24,"spellcheck","false"]],[["@value"],[[30,0,["username"]]]],null],[1,"\\n            "],[13],[1,"\\n          "],[13],[1,"\\n          "],[10,0],[14,0,"field"],[12],[1,"\\n            "],[10,"label"],[14,"for","password"],[14,0,"is-label"],[12],[1,"Password"],[13],[1,"\\n            "],[10,0],[14,0,"control"],[12],[1,"\\n              "],[8,[39,19],[[24,3,"password"],[24,1,"password"],[24,0,"input"],[24,"autocomplete","off"],[24,"spellcheck","false"]],[["@value","@type"],[[30,0,["password"]],"password"]],null],[1,"\\n            "],[13],[1,"\\n          "],[13],[1,"\\n        "]],[]]]],[]]],[41,[28,[37,20],[[30,0,["selectedAuthBackend","type"]],"token"],null],[[[1,"          "],[8,[39,17],null,[["@customPath","@onPathChange","@selectedAuthIsPath"],[[30,0,["customPath"]],[28,[37,14],[[30,0],[28,[37,15],[[30,0,["customPath"]]],null]],null],[30,0,["selectedAuthIsPath"]]]],null],[1,"\\n"]],[]],null],[1,"        "],[8,[39,21],[[16,"disabled",[30,0,["authIsRunning"]]],[24,1,"auth-submit"],[24,4,"submit"]],[["@text","@icon"],["Sign in",[52,[30,0,["authIsRunning"]],"loading"]]],null],[1,"\\n"],[41,[28,[37,5],[[30,0,["delayIsIdle"]],[30,0,["showLoading"]]],null],[[[1,"          "],[8,[39,22],[[24,0,"has-top-padding-s"]],[["@type","@message"],["info","If login takes longer than usual, you may need to check your device for an MFA notification, or contact your administrator if login times out."]],null],[1,"\\n"]],[]],null],[1,"      "],[13],[1,"\\n    "]],[]]]],[]]],[1,"  "],[13],[1,"\\n"],[13]],["method","methodKey"],false,["if","each","-track-array","let","or","and","eq","link-to","hash","capitalize","unless","message-error","not","select","action","mut","auth-jwt","auth-form-options","auth-saml","input","not-eq","hds/button","alert-inline"]]',moduleName:"vault/templates/components/auth-form.hbs",isStrictMode:!1})})),define("vault/templates/components/auth-jwt",["exports","@ember/template-factory"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default=(0,t.createTemplateFactory)({id:"1vcPf4Kb",block:'[[[11,"form"],[24,1,"auth-form"],[4,[38,0],["submit",[28,[37,1],[[30,0],"signIn"],null]],null],[12],[1,"\\n  "],[10,0],[14,0,"field"],[12],[1,"\\n    "],[10,"label"],[14,"for","role"],[14,0,"is-label"],[12],[1,"Role"],[13],[1,"\\n    "],[10,0],[14,0,"control"],[12],[1,"\\n      "],[11,"input"],[16,2,[30,0,["roleName"]]],[24,"placeholder","Default"],[24,"autocomplete","off"],[24,"spellcheck","false"],[24,3,"role"],[24,1,"role"],[24,0,"input"],[24,4,"text"],[4,[38,0],["input",[28,[37,1],[[30,0],"onRoleChange"],null]],null],[12],[13],[1,"\\n    "],[13],[1,"\\n    "],[8,[39,2],[[24,0,"has-top-padding-s"]],[["@type","@message"],["info","Leave blank to sign in with the default role if one is configured"]],null],[1,"\\n  "],[13],[1,"\\n"],[41,[51,[30,0,["isOIDC"]]],[[[1,"    "],[10,0],[14,0,"field"],[12],[1,"\\n      "],[10,"label"],[14,"for","jwt-token"],[14,0,"is-label"],[12],[1,"JWT Token"],[13],[1,"\\n      "],[10,0],[14,0,"control"],[12],[1,"\\n        "],[8,[39,4],[[24,1,"jwt-token"],[24,3,"jwt"],[24,0,"input"],[24,"autocomplete","off"],[24,"spellcheck","false"]],[["@type","@value"],["password",[30,0,["jwt"]]]],null],[1,"\\n      "],[13],[1,"\\n    "],[13],[1,"\\n"]],[]],null],[1,"  "],[10,0],[12],[1,"\\n    "],[18,2,null],[1,"\\n  "],[13],[1,"\\n\\n"],[41,[30,0,["isOIDC"]],[[[1,"    "],[8,[39,7],[[16,"disabled",[30,1]],[24,1,"auth-submit"],[24,4,"submit"]],[["@text","@icon"],[[28,[37,8],["Sign in with ",[28,[37,9],[[30,0,["role","providerName"]],"OIDC Provider"],null]],null],[52,[30,1],"loading",[30,0,["role","providerIcon"]]]]],null],[1,"\\n"]],[]],[[[1,"    "],[8,[39,7],[[16,"disabled",[30,1]],[24,1,"auth-submit"],[24,4,"submit"]],[["@text","@icon"],["Sign in",[52,[30,1],"loading"]]],null],[1,"\\n"]],[]]],[13]],["@disabled","&default"],false,["on","action","alert-inline","unless","input","yield","if","hds/button","concat","or"]]',moduleName:"vault/templates/components/auth-jwt.hbs",isStrictMode:!1})})),define("vault/templates/components/auth-method/configuration",["exports","@ember/template-factory"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default=(0,t.createTemplateFactory)({id:"L9eh0vcy",block:'[[[10,0],[14,0,"box is-fullwidth is-sideless is-paddingless is-marginless"],[12],[1,"\\n"],[42,[28,[37,1],[[28,[37,1],[[30,1,["attrs"]]],null]],null],null,[[[41,[28,[37,3],[[30,2,["type"]],"object"],null],[[[1,"      "],[8,[39,4],null,[["@alwaysRender","@label","@value","@formatTtl"],[[28,[37,5],[[28,[37,6],[[28,[37,7],[[30,1],[30,2,["name"]]],null]],null]],null],[28,[37,8],[[30,2,["options","label"]],[28,[37,9],[[30,2,["name"]]],null]],null],[28,[37,10],[[28,[37,7],[[30,1],[30,2,["name"]]],null]],null],[28,[37,3],[[30,2,["options","editType"]],"ttl"],null]]],null],[1,"\\n"]],[]],[[[1,"      "],[8,[39,4],null,[["@alwaysRender","@label","@value","@formatTtl"],[[28,[37,5],[[28,[37,6],[[28,[37,7],[[30,1],[30,2,["name"]]],null]],null]],null],[28,[37,8],[[30,2,["options","label"]],[28,[37,9],[[30,2,["name"]]],null]],null],[28,[37,7],[[30,1],[30,2,["name"]]],null],[28,[37,3],[[30,2,["options","editType"]],"ttl"],null]]],null],[1,"\\n"]],[]]]],[2]],null],[13]],["@model","attr"],false,["each","-track-array","if","eq","info-table-row","not","is-empty-value","get","or","to-label","stringify"]]',moduleName:"vault/templates/components/auth-method/configuration.hbs",isStrictMode:!1})}))
define("vault/templates/components/b64-toggle",["exports","@ember/template-factory"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default=(0,t.createTemplateFactory)({id:"ecVBNJMr",block:'[[[41,[30,0,["isBase64"]],[[[1,"  Decode from base64\\n"]],[]],[[[1,"  Encode to base64\\n"]],[]]]],[],false,["if"]]',moduleName:"vault/templates/components/b64-toggle.hbs",isStrictMode:!1})})),define("vault/templates/components/calendar-widget",["exports","@ember/template-factory"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default=(0,t.createTemplateFactory)({id:"+PxWmB0d",block:'[[[8,[39,0],null,[["@class","@horizontalPosition","@verticalPosition"],["popup-menu","auto-right","below"]],[["default"],[[[[1,"\\n  "],[8,[30,1,["Trigger"]],[[16,0,[28,[37,1],["toolbar-link",[52,[30,1,["isOpen"]]," is-active"]],null]]],[["@htmlTag"],["button"]],[["default"],[[[[1,"\\n    "],[1,[28,[35,3],[[30,0,["startDate"]],"MMM yyyy"],null]],[1,"\\n    -\\n    "],[1,[28,[35,3],[[30,0,["endDate"]],"MMM yyyy"],null]],[1,"\\n    "],[8,[39,4],null,[["@direction","@isButton"],["down",true]],null],[1,"\\n  "]],[]]]]],[1,"\\n  "],[8,[30,1,["Content"]],null,[["@defaultClass"],[[28,[37,1],["popup-menu-content calendar-content",[52,[30,0,["showCalendar"]]," calendar-open"]],null]]],[["default"],[[[[1,"\\n    "],[10,"nav"],[14,0,"box menu"],[14,"aria-label","calendar date selector navigation"],[12],[1,"\\n      "],[8,[39,5],[[24,0,"calendar-title"]],[["@color"],["faint"]],[["default"],[[[[1,"DATE OPTIONS"]],[]]]]],[1,"\\n"],[1,"      "],[10,"ul"],[14,0,"menu-list"],[12],[1,"\\n        "],[10,"li"],[12],[1,"\\n          "],[11,"button"],[24,0,"link is-no-underline has-text-weight-semibold is-ghost"],[24,3,"currentMonth"],[24,4,"button"],[4,[38,6],["click",[28,[37,7],[[30,0,["handleDateShortcut"]],[30,1,["actions"]]],null]],null],[12],[1,"\\n            Current month\\n          "],[13],[1,"\\n        "],[13],[1,"\\n        "],[10,"li"],[12],[1,"\\n          "],[11,"button"],[24,0,"link is-no-underline has-text-weight-semibold is-ghost"],[24,3,"reset"],[24,4,"button"],[4,[38,6],["click",[28,[37,7],[[30,0,["handleDateShortcut"]],[30,1,["actions"]]],null]],null],[12],[1,"\\n            Current billing period\\n          "],[13],[1,"\\n        "],[13],[1,"\\n        "],[10,"li"],[12],[1,"\\n          "],[11,"button"],[16,0,[28,[37,1],["link is-no-underline has-text-weight-semibold is-ghost",[52,[30,0,["showCalendar"]]," is-active"]],null]],[24,4,"button"],[4,[38,6],["click",[30,0,["toggleShowCalendar"]]],null],[12],[1,"\\n            "],[10,0],[14,0,"level is-mobile"],[12],[1,"\\n              "],[10,1],[14,0,"level-left"],[12],[1,"\\n                Custom end month\\n              "],[13],[1,"\\n              "],[8,[39,4],[[24,0,"has-text-grey-light level-right"]],null,null],[1,"\\n            "],[13],[1,"\\n          "],[13],[1,"\\n        "],[13],[1,"\\n      "],[13],[1,"\\n    "],[13],[1,"\\n"],[41,[30,0,["showCalendar"]],[[[1,"      "],[10,0],[14,0,"calendar-widget-container"],[12],[1,"\\n        "],[10,0],[14,0,"select-year"],[12],[1,"\\n"],[41,[30,0,["disablePastYear"]],[[[1,"            "],[8,[39,8],[[24,"aria-label","More information about why previous year is disabled"]],[["@text"],[[28,[37,1],[[28,[37,9],[[30,0,["displayYear"]],1],null]," is unavailable because it is before your start date. Change your start month to a date in ",[28,[37,9],[[30,0,["displayYear"]],1],null]," to see data for this year."],null]]],[["default"],[[[[1,"\\n              "],[8,[39,10],[[24,1,"previous-year"],[16,"disabled",true],[4,[38,6],["click",[30,0,["subYear"]]],null]],[["@color","@text","@icon","@isIconOnly"],["secondary","previous year","chevron-left",true]],null],[1,"\\n            "]],[]]]]],[1,"\\n"]],[]],[[[1,"            "],[8,[39,10],[[24,1,"previous-year"],[4,[38,6],["click",[30,0,["subYear"]]],null]],[["@color","@text","@icon","@isIconOnly"],["secondary","previous year","chevron-left",true]],null],[1,"\\n"]],[]]],[1,"\\n          "],[8,[39,11],null,null,[["default"],[[[[1,"\\n            "],[1,[30,0,["displayYear"]]],[1,"\\n          "]],[]]]]],[1,"\\n\\n"],[41,[30,0,["disableFutureYear"]],[[[1,"            "],[8,[39,8],[[24,"aria-label","More information about why next year is disabled"]],[["@text"],[[28,[37,1],[[28,[37,12],[[30,0,["displayYear"]],1],null]," is unavailable because data is only available up to the current month."],null]]],[["default"],[[[[1,"\\n              "],[8,[39,10],[[24,1,"next-year"],[16,"disabled",true],[4,[38,6],["click",[30,0,["addYear"]]],null]],[["@color","@text","@icon","@isIconOnly"],["secondary","next year","chevron-right",true]],null],[1,"\\n            "]],[]]]]],[1,"\\n"]],[]],[[[1,"            "],[8,[39,10],[[24,1,"next-year"],[4,[38,6],["click",[30,0,["addYear"]]],null]],[["@color","@text","@icon","@isIconOnly"],["secondary","next year","chevron-right",true]],null],[1,"\\n"]],[]]],[1,"        "],[13],[1,"\\n        "],[10,0],[14,0,"calendar-widget-grid calendar-widget"],[12],[1,"\\n"],[42,[28,[37,14],[[28,[37,14],[[30,0,["widgetMonths"]]],null]],null],null,[[[1,"            "],[8,[39,10],[[16,"disabled",[30,2,["readonly"]]],[16,1,[30,2,["index"]]],[4,[38,6],["click",[28,[37,7],[[30,0,["selectMonth"]],[30,2],[30,1,["actions"]]],null]],null]],[["@text","@color","@size"],[[30,2,["name"]],"secondary","small"]],null],[1,"\\n"]],[2]],null],[1,"        "],[13],[1,"\\n      "],[13],[1,"\\n"]],[]],null],[1,"  "]],[]]]]],[1,"\\n"]],[1]]]]]],["D","month"],false,["basic-dropdown","concat","if","date-format","chevron","hds/text/body","on","fn","hds/tooltip-button","sub","hds/button","hds/text/display","add","each","-track-array"]]',moduleName:"vault/templates/components/calendar-widget.hbs",isStrictMode:!1})})),define("vault/templates/components/console/command-input",["exports","@ember/template-factory"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default=(0,t.createTemplateFactory)({id:"JI6ryrgu",block:'[[[10,0],[14,0,"console-ui-input"],[12],[1,"\\n"],[41,[30,0,["isRunning"]],[[[1,"    "],[10,0],[14,0,"control console-spinner is-loading"],[12],[13],[1,"\\n"]],[]],[[[1,"    "],[8,[39,1],null,null,null],[1,"\\n"]],[]]],[1,"  "],[10,"input"],[14,"aria-label","web R.E.P.L."],[14,"aria-describedby","namespace-reminder"],[15,"onkeyup",[28,[37,2],[[30,0],"handleKeyUp"],null]],[15,2,[30,0,["value"]]],[14,"autocomplete","off"],[14,"spellcheck","false"],[14,1,"console-input"],[12],[13],[1,"\\n  "],[8,[39,3],[[24,0,"hds-side-nav__icon-button"],[4,[38,4],["click",[28,[37,2],[[30,0],"fullscreen"],null]],null]],[["@icon","@text","@isIconOnly"],[[52,[30,0,["isFullscreen"]],"minimize","maximize"],[52,[30,0,["isFullscreen"]],"Minimize window","Maximize window"],true]],null],[1,"\\n"],[13],[1,"\\n"],[8,[39,5],null,[["@class","@mode","@noun"],["console-reminder","execute","command"]],null]],[],false,["if","chevron","action","hds/button","on","namespace-reminder"]]',moduleName:"vault/templates/components/console/command-input.hbs",isStrictMode:!1})})),define("vault/templates/components/console/log-command",["exports","@ember/template-factory"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default=(0,t.createTemplateFactory)({id:"PJLWlKP+",block:'[[[10,0],[14,0,"is-flex-center"],[12],[1,"\\n  "],[8,[39,0],null,[["@name"],["chevron-right"]],null],[1,"\\n  "],[10,"pre"],[14,0,"console-ui-command"],[12],[1,[30,1]],[13],[1,"\\n"],[13]],["@content"],false,["icon"]]',moduleName:"vault/templates/components/console/log-command.hbs",isStrictMode:!1})})),define("vault/templates/components/console/log-error-with-html",["exports","@ember/template-factory"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default=(0,t.createTemplateFactory)({id:"0oGKc3SX",block:'[[[10,0],[14,0,"console-ui-alert console-ui-alert--error"],[12],[1,"\\n  "],[8,[39,0],null,[["@name"],["x-circle-fill"]],null],[1,"\\n  "],[10,"pre"],[12],[2,[30,1]],[13],[1,"\\n"],[13]],["@content"],false,["icon"]]',moduleName:"vault/templates/components/console/log-error-with-html.hbs",isStrictMode:!1})})),define("vault/templates/components/console/log-error",["exports","@ember/template-factory"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default=(0,t.createTemplateFactory)({id:"Qi4HWWSy",block:'[[[10,0],[14,0,"console-ui-alert console-ui-alert--error"],[12],[1,"\\n  "],[8,[39,0],null,[["@name"],["x-circle-fill"]],null],[1,"\\n  "],[10,"pre"],[12],[1,[30,1]],[13],[1,"\\n"],[13]],["@content"],false,["icon"]]',moduleName:"vault/templates/components/console/log-error.hbs",isStrictMode:!1})})),define("vault/templates/components/console/log-help",["exports","@ember/template-factory"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default=(0,t.createTemplateFactory)({id:"LLM95+6X",block:'[[[10,0],[14,0,"console-ui-alert"],[12],[1,"\\n"],[8,[39,0],null,[["@name"],["info"]],null],[1,"\\n"],[10,"pre"],[12],[1,"Usage: vault <command> [args]\\n\\nCommands:\\n  read        Read data and retrieves secrets\\n  kv-get      Read data for kv v2 secret engines. Use -metadata flag to read metadata\\n  write       Write data, configuration, and secrets\\n  delete      Delete secrets and configuration\\n  list        List data or secrets\\n\\nWeb REPL Commands:\\n  api         Navigate to the Vault API explorer. Use \'api [filter]\' to prefilter the list.\\n  clear       Clear output from the log\\n  clearall    Clear output and command history\\n  fullscreen  Toggle fullscreen display\\n  refresh     Refresh the data on the current screen under the CLI window\\n\\n"],[13],[1,"\\n  "],[10,2],[14,0,"console-ui-panel-intro is-font-mono has-bottom-margin-s"],[12],[1,"\\n    For more detailed documentation, see the "],[8,[39,1],null,[["@href"],[[28,[37,2],["/vault/docs/commands/web"],null]]],[["default"],[[[[1,"HashiCorp Developer site"]],[]]]]],[1,".\\n  "],[13],[1,"\\n"],[13]],[],false,["icon","hds/link/inline","doc-link"]]',moduleName:"vault/templates/components/console/log-help.hbs",isStrictMode:!1})})),define("vault/templates/components/console/log-json",["exports","@ember/template-factory"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default=(0,t.createTemplateFactory)({id:"4P2K1+9P",block:'[[[10,0],[14,0,"console-ui-output"],[12],[1,"\\n  "],[8,[39,0],null,[["@showToolbar","@value","@readOnly","@viewportMargin","@gutters","@theme"],[false,[28,[37,1],[[30,0,["content"]]],null],true,"Infinity",false,"hashi auto-height"]],null],[1,"\\n  "],[8,[39,2],[[24,0,"transparent icon-grey-500 top-right-absolute"]],[["@text","@isIconOnly","@textToCopy","@onError"],["Copy",true,[28,[37,1],[[30,0,["content"]]],null],[28,[37,3],[[28,[37,4],["Clipboard copy failed. The Clipboard API requires a secure context.","danger"],null]],null]]],null],[1,"\\n"],[13]],[],false,["json-editor","stringify","hds/copy/button","fn","set-flash-message"]]',moduleName:"vault/templates/components/console/log-json.hbs",isStrictMode:!1})})),define("vault/templates/components/console/log-list",["exports","@ember/template-factory"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default=(0,t.createTemplateFactory)({id:"gSx3Ibmm",block:'[[[10,0],[14,0,"console-ui-output"],[12],[1,"\\n  "],[10,"pre"],[12],[1,"    Keys\\n"],[42,[28,[37,1],[[28,[37,1],[[30,0,["list"]]],null]],null],null,[[[1,"      "],[1,[30,1]],[1,"\\n"]],[1]],null],[1,"  "],[13],[1,"\\n  "],[8,[39,2],[[24,0,"transparent icon-grey-500 top-right-absolute"]],[["@text","@isIconOnly","@textToCopy","@onError"],["Copy",true,[28,[37,3],[[30,0,["list"]]],null],[28,[37,4],[[28,[37,5],["Clipboard copy failed. The Clipboard API requires a secure context.","danger"],null]],null]]],null],[1,"\\n"],[13]],["item"],false,["each","-track-array","hds/copy/button","multi-line-join","fn","set-flash-message"]]',moduleName:"vault/templates/components/console/log-list.hbs",isStrictMode:!1})})),define("vault/templates/components/console/log-object",["exports","@ember/template-factory"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default=(0,t.createTemplateFactory)({id:"U7+MLXc+",block:'[[[10,0],[14,0,"console-ui-output"],[12],[1,"\\n  "],[10,"pre"],[12],[1,[30,0,["columns"]]],[13],[1,"\\n  "],[8,[39,0],[[24,0,"transparent icon-grey-500 top-right-absolute"]],[["@text","@isIconOnly","@textToCopy","@onError"],["Copy",true,[30,0,["columns"]],[28,[37,1],[[28,[37,2],["Clipboard copy failed. The Clipboard API requires a secure context.","danger"],null]],null]]],null],[1,"\\n"],[13]],[],false,["hds/copy/button","fn","set-flash-message"]]',moduleName:"vault/templates/components/console/log-object.hbs",isStrictMode:!1})})),define("vault/templates/components/console/log-success",["exports","@ember/template-factory"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default=(0,t.createTemplateFactory)({id:"Lp4KHrui",block:'[[[10,0],[14,0,"console-ui-alert console-ui-alert--success"],[12],[1,"\\n  "],[8,[39,0],null,[["@name"],["check-circle-fill"]],null],[1,"\\n  "],[10,"pre"],[12],[1,[30,1]],[13],[1,"\\n"],[13]],["@content"],false,["icon"]]',moduleName:"vault/templates/components/console/log-success.hbs",isStrictMode:!1})})),define("vault/templates/components/console/log-text",["exports","@ember/template-factory"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default=(0,t.createTemplateFactory)({id:"4R7XyyX4",block:'[[[10,0],[14,0,"console-ui-output"],[12],[1,"\\n  "],[10,"pre"],[12],[1,[30,1]],[13],[1,"\\n  "],[8,[39,0],[[24,0,"transparent icon-grey-500 top-right-absolute"]],[["@text","@isIconOnly","@textToCopy","@onError"],["Copy",true,[30,1],[28,[37,1],[[28,[37,2],["Clipboard copy failed. The Clipboard API requires a secure context.","danger"],null]],null]]],null],[1,"\\n"],[13]],["@content"],false,["hds/copy/button","fn","set-flash-message"]]',moduleName:"vault/templates/components/console/log-text.hbs",isStrictMode:!1})})),define("vault/templates/components/console/output-log",["exports","@ember/template-factory"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default=(0,t.createTemplateFactory)({id:"BS407b1c",block:'[[[42,[28,[37,1],[[28,[37,1],[[30,0,["outputLog"]]],null]],null],null,[[[41,[51,[30,1,["hidden"]]],[[[1,"    "],[46,[28,[37,4],["console/log-",[30,1,["type"]]],null],null,[["content"],[[30,1,["content"]]]],null],[1,"\\n"]],[]],null]],[1]],null]],["message"],false,["each","-track-array","unless","component","concat"]]',moduleName:"vault/templates/components/console/output-log.hbs",isStrictMode:!1})})),define("vault/templates/components/console/ui-panel",["exports","@ember/template-factory"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default=(0,t.createTemplateFactory)({id:"et96X5tR",block:'[[[10,0],[14,0,"console-ui-panel-content"],[12],[1,"\\n  "],[10,0],[14,0,"content has-bottom-margin-s"],[12],[1,"\\n    "],[10,0],[14,0,"console-close-button"],[12],[1,"\\n      "],[8,[39,0],[[24,0,"hds-side-nav__icon-button"],[4,[38,1],["click",[28,[37,2],[[30,0],"closeConsole"],null]],null]],[["@text","@icon","@isIconOnly"],["Close console","x",true]],null],[1,"\\n    "],[13],[1,"\\n  "],[13],[1,"\\n  "],[10,0],[14,0,"content has-bottom-margin-l"],[12],[1,"\\n    "],[10,2],[14,0,"console-ui-panel-intro is-font-mono has-bottom-margin-s"],[12],[1,"\\n      The Vault Web REPL provides an easy way to execute common Vault CLI commands, such as write, read, delete, and list. It\\n      does not include KV version 2 write or put commands. For guidance, type `help`. For more detailed documentation, see\\n      the\\n      "],[8,[39,3],null,[["@href"],[[28,[37,4],["/vault/docs/command/web"],null]]],[["default"],[[[[1,"HashiCorp Developer site"]],[]]]]],[1,".\\n    "],[13],[1,"\\n    "],[10,2],[14,0,"console-ui-panel-intro is-font-mono has-bottom-margin-s"],[12],[1,"Examples:"],[13],[1,"\\n    "],[10,2],[14,0,"console-ui-panel-intro is-font-mono"],[12],[1,"\\n      "],[10,1],[14,"aria-hidden","true"],[12],[1,"→ "],[13],[1,"Write secrets to kv v1: write <mount>/my-secret foo=bar"],[13],[1,"\\n    "],[10,2],[14,0,"console-ui-panel-intro is-font-mono"],[12],[1,"\\n      "],[10,1],[14,"aria-hidden","true"],[12],[1,"→ "],[13],[1,"List kv v1 secret keys: list <mount>/"],[13],[1,"\\n    "],[10,2],[14,0,"console-ui-panel-intro is-font-mono"],[12],[1,"\\n      "],[10,1],[14,"aria-hidden","true"],[12],[1,"→ "],[13],[1,"Read a kv v1 secret: read <mount>/my-secret"],[13],[1,"\\n    "],[10,2],[14,0,"console-ui-panel-intro is-font-mono"],[12],[1,"\\n      "],[10,1],[14,"aria-hidden","true"],[12],[1,"→ "],[13],[1,"Mount a kv v2 secret engine: write sys/mounts/<mount> type=kv options=version=2"],[13],[1,"\\n    "],[10,2],[14,0,"console-ui-panel-intro is-font-mono"],[12],[1,"\\n      "],[10,1],[14,"aria-hidden","true"],[12],[1,"→ "],[13],[1,"Read a kv v2 secret: kv-get <mount>/secret-path"],[13],[1,"\\n    "],[10,2],[14,0,"console-ui-panel-intro is-font-mono"],[12],[1,"\\n      "],[10,1],[14,"aria-hidden","true"],[12],[1,"→ "],[13],[1,"Read a kv v2 secret\'s metadata: kv-get <mount>/secret-path-metadata"],[13],[1,"\\n  "],[13],[1,"\\n  "],[8,[39,5],null,[["@outputLog"],[[30,0,["cliLog"]]]],null],[1,"\\n  "],[8,[39,6],null,[["@isFullscreen","@isRunning","@value","@onValueUpdate","@onFullscreen","@onExecuteCommand","@onShiftCommand"],[[30,0,["isFullscreen"]],[30,0,["isRunning"]],[30,0,["inputValue"]],[28,[37,2],[[30,0],[28,[37,7],[[30,0,["inputValue"]]],null]],null],[28,[37,2],[[30,0],"toggleFullscreen"],null],[28,[37,2],[[30,0],"executeCommand"],null],[28,[37,2],[[30,0],"shiftCommandIndex"],null]]],null],[1,"\\n"],[13]],[],false,["hds/button","on","action","hds/link/inline","doc-link","console/output-log","console/command-input","mut"]]',moduleName:"vault/templates/components/console/ui-panel.hbs",isStrictMode:!1})})),define("vault/templates/components/control-group-success",["exports","@ember/template-factory"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default=(0,t.createTemplateFactory)({id:"048hp51P",block:'[[[41,[28,[37,1],[[30,0,["controlGroupResponse","token"]],[30,0,["controlGroupResponse","uiParams","url"]]],null],[[[1,"  "],[10,0],[14,0,"control-group-success"],[12],[1,"\\n    You have been granted access to\\n    "],[10,"code"],[12],[1,[30,0,["model","requestPath"]]],[13],[1,". Be careful, you can only access this data once. If you need access again in the\\n    future you will need to get authorized again.\\n    "],[10,0],[14,0,"box is-shadowless is-fullwidth is-marginless has-slim-padding"],[12],[1,"\\n      "],[8,[39,2],[[4,[38,3],["click",[28,[37,4],[[30,0],[28,[37,5],[[30,0,["markAndNavigate"]]],null]],null]],null]],[["@text"],["Visit"]],null],[1,"\\n    "],[13],[1,"\\n  "],[13],[1,"\\n"]],[]],[[[41,[30,0,["unwrapData"]],[[[1,"    "],[10,0],[14,0,"control-group-success is-editor"],[12],[1,"\\n      "],[10,0],[14,0,"is-relative"],[12],[1,"\\n        "],[8,[39,6],null,[["@showToolbar","@value","@readOnly","@viewportMargin","@gutters","@theme"],[false,[28,[37,7],[[30,0,["unwrapData"]]],null],true,"Infinity",false,"hashi-read-only auto-height"]],null],[1,"\\n        "],[8,[39,8],[[24,0,"transparent top-right-absolute"]],[["@text","@isIconOnly","@textToCopy","@onError"],["Copy",true,[28,[37,7],[[30,0,["unwrapData"]]],null],[28,[37,9],[[28,[37,10],["Clipboard copy failed. The Clipboard API requires a secure context.","danger"],null]],null]]],null],[1,"\\n      "],[13],[1,"\\n    "],[13],[1,"\\n    "],[10,0],[14,0,"field is-grouped box is-fullwidth is-bottomless"],[12],[1,"\\n      "],[8,[39,2],null,[["@text","@color","@route","@icon","@iconPosition"],["Back","secondary","vault.cluster.access.control-groups","chevron-left","leading"]],null],[1,"\\n    "],[13],[1,"\\n"]],[]],[[[1,"    "],[10,0],[14,0,"control-group-success"],[12],[1,"\\n      "],[11,"form"],[4,[38,4],[[30,0],[28,[37,5],[[30,0,["unwrap"]],[30,0,["token"]]],null]],[["on"],["submit"]]],[12],[1,"\\n        "],[8,[39,11],null,[["@errorMessage"],[[30,0,["error"]]]],null],[1,"\\n        "],[10,2],[12],[1,"\\n          If you have the token, you can now can access\\n          "],[10,"code"],[12],[1,[30,0,["model","requestPath"]]],[13],[1,"\\n        "],[13],[1,"\\n        "],[10,"label"],[14,"for","token"],[14,0,"is-label"],[12],[1,"\\n          Token to access data\\n        "],[13],[1,"\\n        "],[10,0],[14,0,"control"],[12],[1,"\\n          "],[8,[39,12],[[24,0,"input"],[24,"autocomplete","off"],[24,"spellcheck","false"],[24,3,"token"],[24,1,"token"]],[["@value"],[[30,0,["token"]]]],null],[1,"\\n        "],[13],[1,"\\n        "],[10,0],[14,0,"field is-grouped box is-fullwidth is-bottomless"],[12],[1,"\\n          "],[8,[39,2],[[16,"disabled",[28,[37,13],[[30,0,["token"]]],null]],[24,4,"submit"]],[["@text"],["Access"]],null],[1,"\\n        "],[13],[1,"\\n      "],[13],[1,"\\n    "],[13],[1,"\\n"]],[]]]],[]]]],[],false,["if","and","hds/button","on","action","perform","json-editor","stringify","hds/copy/button","fn","set-flash-message","message-error","input","not"]]',moduleName:"vault/templates/components/control-group-success.hbs",isStrictMode:!1})})),define("vault/templates/components/control-group",["exports","@ember/template-factory"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default=(0,t.createTemplateFactory)({id:"1pxbGh0W",block:'[[[10,0],[14,0,"box is-fullwidth is-bottomless is-sideless"],[12],[1,"\\n  "],[8,[39,0],null,[["@model"],[[30,0,["model"]]]],null],[1,"\\n  "],[10,0],[15,0,[29,["control-group-header ",[52,[30,0,["isSuccess"]],"is-success"]]]],[12],[1,"\\n    "],[10,2],[12],[1,"\\n      "],[8,[39,2],null,[["@name"],[[52,[30,0,["isSuccess"]],"check-circle-fill","lock-fill"]]],null],[1,"\\n      "],[10,"strong"],[12],[1,[30,0,["bannerPrefix"]]],[13],[1,"\\n      "],[10,1],[12],[1,[30,0,["bannerText"]]],[13],[1,"\\n    "],[13],[1,"\\n  "],[13],[1,"\\n"],[41,[28,[37,3],[[30,0,["model","approved"]],[28,[37,4],[[30,0,["currentUserHasAuthorized"]]],null],[28,[37,5],[[28,[37,4],[[30,0,["model","requestEntity"]]],null],[30,0,["currentUserIsRequesting"]]],null]],null],[[[1,"    "],[8,[39,6],null,[["@model","@controlGroupResponse"],[[30,0,["model"]],[30,0,["controlGroupResponse"]]]],null],[1,"\\n"]],[]],[[[1,"    "],[10,0],[14,0,"control-group"],[12],[1,"\\n      "],[10,0],[12],[1,"\\n"],[41,[30,0,["model","requestEntity","canRead"]],[[[1,"          "],[8,[39,7],null,[["@route","@models"],["vault.cluster.access.identity.show",[28,[37,8],["entities",[30,0,["model","requestEntity","id"]],"details"],null]]],[["default"],[[[[1,"\\n            "],[1,[30,0,["requestorName"]]],[1,"\\n          "]],[]]]]],[1,"\\n"]],[]],[[[1,"          "],[1,[30,0,["requestorName"]]],[1,"\\n"]],[]]],[1,"        "],[41,[30,0,["currentUserIsRequesting"]],[[[1,"are"]],[]],[[[1,"is"]],[]]],[1,"\\n"],[41,[30,0,["model","approved"]],[[[1,"          authorized to access\\n          "],[10,"code"],[12],[1,[30,0,["model","requestPath"]]],[13],[1,"\\n"]],[]],[[[1,"          requesting access to\\n          "],[10,"code"],[12],[1,[30,0,["model","requestPath"]]],[13],[1,"\\n"]],[]]],[1,"      "],[13],[1,"\\n\\n"],[41,[28,[37,5],[[28,[37,4],[[30,0,["model","requestEntity"]]],null],[30,0,["currentUserIsRequesting"]]],null],[[[1,"        "],[10,0],[14,0,"message is-highlight"],[12],[1,"\\n          "],[8,[39,9],[[24,0,"transparent top-right-absolute"]],[["@text","@isIconOnly","@textToCopy","@onError"],["Copy",true,[30,0,["model","id"]],[28,[37,10],[[28,[37,11],["Clipboard copy failed. The Clipboard API requires a secure context.","danger"],null]],null]]],null],[1,"\\n          "],[10,0],[14,0,"message-body"],[12],[1,"\\n            "],[10,"h4"],[14,0,"title is-7 is-marginless"],[12],[1,"\\n              Accessor\\n            "],[13],[1,"\\n            "],[10,"code"],[14,0,"is-word-break"],[12],[1,[30,0,["model","id"]]],[13],[1,"\\n          "],[13],[1,"\\n        "],[13],[1,"\\n"]],[]],null],[1,"\\n      "],[10,0],[14,0,"authorizations"],[12],[1,"\\n"],[41,[28,[37,12],[[30,0,["model","authorizations","length"]],0],null],[[[1,"          "],[10,1],[14,0,"has-text-success"],[12],[1,"\\n            "],[8,[39,2],null,[["@name"],["check-circle"]],null],[1,"\\n          "],[13],[1,"\\n          Already approved by\\n"],[42,[28,[37,14],[[28,[37,14],[[30,0,["model","authorizations"]]],null]],null],null,[[[41,[30,1,["canRead"]],[[[8,[39,7],null,[["@route","@models"],["vault.cluster.access.identity.show",[28,[37,8],["entities",[30,1,["id"]],"details"],null]]],[["default"],[[[[1,"\\n                "],[1,[30,1,["name"]]],[1,"\\n              "]],[]]]]]],[]],[[[1,[30,1,["name"]]]],[]]],[41,[28,[37,15],[[28,[37,16],[[30,2]],null],[30,0,["model","authorizations","length"]]],null],[[[1,","]],[]],null],[1,"\\n"]],[1,2]],null]],[]],[[[1,"          "],[10,1],[14,0,"has-text-grey"],[12],[1,"\\n            "],[8,[39,2],null,[["@name"],["check-circle"]],null],[1,"\\n          "],[13],[1,"\\n          Awaiting authorization.\\n"]],[]]],[1,"      "],[13],[1,"\\n    "],[13],[1,"\\n"]],[]]],[1,"\\n"],[41,[30,0,["controlGroupResponse","token"]],[[[1,"    "],[10,0],[14,0,"is-flex-row has-bottom-margin-m has-top-margin-m"],[12],[1,"\\n      "],[10,2],[14,0,"has-text-grey has-padding-xxs"],[12],[1,"\\n        We’ve saved your request token, but you may want to copy it just in case:\\n      "],[13],[1,"\\n      "],[10,0],[12],[1,"\\n        "],[8,[39,17],null,[["@textToCopy","@color","@onError"],[[30,0,["controlGroupResponse","token"]],"secondary",[28,[37,10],[[28,[37,11],["Clipboard copy failed. The Clipboard API requires a secure context.","danger"],null]],null]]],null],[1,"\\n      "],[13],[1,"\\n    "],[13],[1,"\\n"]],[]],null],[41,[51,[28,[37,3],[[30,0,["model","approved"]],[28,[37,5],[[28,[37,4],[[30,0,["model","requestEntity"]]],null],[30,0,["currentUserIsRequesting"]]],null]],null]],[[[1,"    "],[10,0],[14,0,"field is-grouped box is-fullwidth is-bottomless"],[12],[1,"\\n"],[41,[30,0,["model","canAuthorize"]],[[[41,[28,[37,5],[[30,0,["model","approved"]],[30,0,["currentUserHasAuthorized"]]],null],[[[1,"          "],[8,[39,19],null,[["@text","@color","@route","@icon","@iconPosition"],["Back","secondary","vault.cluster.access.control-groups","chevron-left","leading"]],null],[1,"\\n"]],[]],[[[1,"          "],[8,[39,19],[[4,[38,20],["click",[28,[37,21],[[30,0],[28,[37,22],[[30,0,["authorize"]]],null]],null]],null]],[["@text","@icon"],["Authorize",[52,[30,0,["authorize","isRunning"]],"loading"]]],null],[1,"\\n"]],[]]]],[]],[[[1,"        "],[8,[39,19],[[4,[38,20],["click",[28,[37,21],[[30,0],[28,[37,22],[[30,0,["refresh"]]],null]],null]],null]],[["@text","@icon"],["Refresh",[52,[30,0,["refresh","isRunning"]],"loading"]]],null],[1,"\\n"]],[]]],[1,"    "],[13],[1,"\\n"]],[]],null],[13]],["authorization","index"],false,["message-error","if","icon","and","not","or","control-group-success","link-to","array","hds/copy/button","fn","set-flash-message","gt","each","-track-array","lt","inc","hds/copy/snippet","unless","hds/button","on","action","perform"]]',moduleName:"vault/templates/components/control-group.hbs",isStrictMode:!1})})),define("vault/templates/components/database-connection",["exports","@ember/template-factory"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default=(0,t.createTemplateFactory)({id:"VK3xWJvJ",block:'[[[8,[39,0],null,null,[["default"],[[[[1,"\\n  "],[8,[30,1,["top"]],null,null,[["default"],[[[[1,"\\n    "],[8,[39,1],null,[["@path","@mode","@root","@showCurrent"],["vault.cluster.secrets.backend.show",[30,0,["mode"]],[30,2],true]],null],[1,"\\n  "]],[]]]]],[1,"\\n  "],[8,[30,1,["levelLeft"]],null,null,[["default"],[[[[1,"\\n    "],[10,"h1"],[14,0,"title is-3"],[12],[1,"\\n"],[41,[28,[37,3],[[30,3],"create"],null],[[[1,"        Create Connection\\n"]],[]],[[[41,[28,[37,3],[[30,3],"edit"],null],[[[1,"        Edit Connection\\n"]],[]],[[[1,"        "],[1,[30,4,["id"]]],[1,"\\n      "]],[]]]],[]]],[1,"    "],[13],[1,"\\n  "]],[]]]]],[1,"\\n"]],[1]]]]],[1,"\\n\\n"],[41,[30,4,["isAvailablePlugin"]],[[[41,[28,[37,3],[[30,3],"show"],null],[[[1,"    "],[8,[39,4],null,null,[["default"],[[[[1,"\\n      "],[8,[39,5],null,null,[["default"],[[[[1,"\\n"],[41,[30,4,["canDelete"]],[[[1,"          "],[8,[39,6],[[24,0,"toolbar-button"],[4,[38,7],["click",[28,[37,8],[[30,0],[28,[37,9],[[30,0,["isDeleteModalActive"]]],null],true],null]],null]],[["@text","@color"],["Delete connection","secondary"]],null],[1,"\\n"]],[]],null],[41,[30,4,["canReset"]],[[[1,"          "],[8,[39,10],[[24,0,"toolbar-button"]],[["@buttonText","@buttonColor","@onConfirmAction","@confirmTitle","@confirmMessage"],["Reset connection","secondary",[28,[37,8],[[30,0],"reset"],null],"Reset connection?","This will close the connection and its underlying plugin and restart it with the configuration stored in the barrier."]],null],[1,"\\n"]],[]],null],[41,[28,[37,11],[[30,4,["canReset"]],[30,4,["canDelete"]]],null],[[[1,"          "],[10,0],[14,0,"toolbar-separator"],[12],[13],[1,"\\n"]],[]],null],[41,[30,4,["canRotateRoot"]],[[[1,"          "],[8,[39,10],[[24,0,"toolbar-button"]],[["@buttonText","@buttonColor","@onConfirmAction","@confirmTitle","@confirmMessage","@modalColor"],["Rotate root credentials","secondary",[30,0,["rotate"]],"Rotate credentials?","This will rotate the \\"root\\" user credentials stored for the database connection. The password will not be accessible once rotated.","warning"]],null],[1,"\\n"]],[]],null],[41,[30,4,["canAddRole"]],[[[1,"          "],[8,[39,12],null,[["@secret","@mode","@backend","@type","@queryParams"],["","create",[30,4,["backend"]],"add",[28,[37,13],null,[["initialKey","itemType"],[[30,4,["name"]],"role"]]]]],[["default"],[[[[1,"\\n            Add role\\n          "]],[]]]]],[1,"\\n"]],[]],null],[41,[30,4,["canEdit"]],[[[1,"          "],[8,[39,12],null,[["@secret","@mode","@backend","@replace"],[[30,4,["id"]],"edit",[30,4,["backend"]],true]],[["default"],[[[[1,"\\n            Edit configuration\\n          "]],[]]]]],[1,"\\n"]],[]],null],[1,"      "]],[]]]]],[1,"\\n    "]],[]]]]],[1,"\\n"]],[]],null]],[]],null],[1,"\\n"],[41,[28,[37,3],[[30,3],"create"],null],[[[1,"\\n"],[41,[28,[37,3],[[30,4,["plugin_name"]],"vault-plugin-database-oracle"],null],[[[1,"    "],[8,[39,14],[[24,0,"has-bottom-margin-s"]],[["@type","@color"],["inline","warning"]],[["default"],[[[[1,"\\n      "],[8,[30,5,["Title"]],null,null,[["default"],[[[[1,"Warning"]],[]]]]],[1,"\\n      "],[8,[30,5,["Description"]],null,null,[["default"],[[[[1,"\\n        Please ensure that your Oracle plugin has the default name of\\n        "],[10,"strong"],[12],[1,"vault-plugin-database-oracle"],[13],[1,". Custom naming is not supported in the UI at this time. If the plugin\\n        is already named vault-plugin-database-oracle, disregard this warning.\\n      "]],[]]]]],[1,"\\n    "]],[5]]]]],[1,"\\n"]],[]],null],[1,"\\n  "],[11,"form"],[24,"aria-label","create connection form"],[4,[38,7],["submit",[28,[37,15],[[30,0,["handleCreateConnection"]]],null]],null],[12],[1,"\\n"],[42,[28,[37,17],[[28,[37,17],[[30,4,["fieldAttrs"]]],null]],null],null,[[[41,[28,[37,18],[[30,6,["options","readOnly"]],true],null],[[[1,"        "],[8,[39,19],null,[["@attr","@model"],[[30,6],[30,4]]],null],[1,"\\n"]],[]],null]],[6]],null],[1,"\\n"],[1,"    "],[10,0],[14,0,"form-section box is-shadowless is-fullwidth"],[12],[1,"\\n      "],[10,"fieldset"],[14,0,"form-fieldset"],[12],[1,"\\n        "],[10,"legend"],[14,0,"title is-5"],[12],[1,"Plugin config"],[13],[1,"\\n"],[41,[30,4,["pluginFieldGroups"]],[[[42,[28,[37,17],[[28,[37,17],[[30,4,["pluginFieldGroups"]]],null]],null],null,[[[42,[28,[37,20],[[30,7]],null],null,[[[41,[28,[37,3],[[30,9],"default"],null],[[[1,"                "],[10,0],[14,0,"columns is-desktop is-multiline"],[12],[1,"\\n"],[42,[28,[37,17],[[28,[37,17],[[30,8]],null]],null],null,[[[41,[28,[37,21],[[30,10,["name"]],[28,[37,22],["max_open_connections","max_idle_connections","max_connection_lifetime"],null]],null],[[[1,"                      "],[10,0],[14,0,"column is-one-third"],[12],[1,"\\n                        "],[8,[39,19],null,[["@attr","@model"],[[30,10],[30,4]]],null],[1,"\\n                      "],[13],[1,"\\n"]],[]],[[[1,"                      "],[10,0],[14,0,"column is-full"],[12],[1,"\\n                        "],[8,[39,19],null,[["@attr","@model"],[[30,10],[30,4]]],null],[1,"\\n                      "],[13],[1,"\\n"]],[]]]],[10]],null],[1,"                "],[13],[1,"\\n"]],[]],[[[44,[[28,[37,24],[[28,[37,25],["show",[30,9]],null]],null]],[[[1,"                  "],[8,[39,26],[[24,0,"is-block"]],[["@isOpen","@openLabel","@closedLabel","@onClick"],[[28,[37,27],[[30,0],[30,11]],null],[28,[37,25],["Hide ",[30,9]],null],[30,9],[28,[37,28],[[28,[37,9],[[28,[37,27],[[30,0],[30,11]],null]],null]],null]]],null],[1,"\\n"],[41,[28,[37,27],[[30,0],[30,11]],null],[[[1,"                    "],[10,0],[14,0,"box is-marginless"],[12],[1,"\\n"],[42,[28,[37,17],[[28,[37,17],[[30,8]],null]],null],null,[[[1,"                        "],[8,[39,19],null,[["@attr","@model"],[[30,12],[30,4]]],null],[1,"\\n"]],[12]],null],[1,"                    "],[13],[1,"\\n"]],[]],null]],[11]]]],[]]]],[8,9]],null]],[7]],null]],[]],[[[1,"          "],[8,[39,29],null,[["@title","@message"],["No plugin selected","Select a plugin type to be able to configure it."]],null],[1,"\\n"]],[]]],[1,"      "],[13],[1,"\\n    "],[13],[1,"\\n\\n"],[41,[51,[28,[37,31],[[30,4,["plugin_name"]],[28,[37,32],[[30,4,["statementFields"]]],null]],null]],[[[1,"      "],[10,0],[14,0,"form-section box is-shadowless is-fullwidth"],[12],[1,"\\n        "],[10,"h3"],[14,0,"title is-5"],[12],[1,"Statements"],[13],[1,"\\n"],[41,[28,[37,3],[[30,4,["statementFields"]],null],null],[[[1,"          "],[8,[39,29],null,[["@title","@message"],["No plugin selected","Select a plugin type to be able to configure it."]],null],[1,"\\n"]],[]],[[[42,[28,[37,17],[[28,[37,17],[[30,4,["statementFields"]]],null]],null],null,[[[1,"            "],[8,[39,19],null,[["@attr","@model"],[[30,13],[30,4]]],null],[1,"\\n"]],[13]],null]],[]]],[1,"      "],[13],[1,"\\n"]],[]],null],[1,"\\n    "],[10,0],[14,0,"field is-grouped is-grouped-split is-fullwidth box is-bottomless"],[12],[1,"\\n      "],[10,0],[14,0,"field is-grouped"],[12],[1,"\\n        "],[8,[39,33],null,null,[["default"],[[[[1,"\\n          "],[8,[39,6],[[24,4,"submit"]],[["@icon","@text"],[[52,[30,0,["handleCreateConnection","isRunning"]],"loading"],"Create database"]],null],[1,"\\n          "],[8,[39,6],null,[["@text","@color","@route","@model"],["Cancel","secondary","vault.cluster.secrets.backend.list-root",[30,4,["backend"]]]],null],[1,"\\n        "]],[]]]]],[1,"\\n      "],[13],[1,"\\n    "],[13],[1,"\\n  "],[13],[1,"\\n"]],[]],[[[41,[28,[37,31],[[28,[37,3],[[30,3],"edit"],null],[30,4,["isAvailablePlugin"]]],null],[[[1,"  "],[11,"form"],[24,"aria-label","plugin config form"],[4,[38,7],["submit",[30,0,["handleUpdateConnection"]]],null],[12],[1,"\\n"],[42,[28,[37,17],[[28,[37,17],[[30,4,["fieldAttrs"]]],null]],null],null,[[[41,[28,[37,11],[[28,[37,3],[[30,14,["name"]],"name"],null],[28,[37,3],[[30,14,["name"]],"plugin_name"],null]],null],[[[1,"        "],[8,[39,34],null,[["@attr","@value"],[[30,14],[28,[37,27],[[30,4],[30,14,["name"]]],null]]],null],[1,"\\n"]],[]],[[[41,[28,[37,18],[[30,14,["options","readOnly"]],true],null],[[[1,"        "],[8,[39,19],null,[["@attr","@model"],[[30,14],[30,4]]],null],[1,"\\n      "]],[]],null]],[]]]],[14]],null],[1,"\\n"],[1,"    "],[10,0],[14,0,"form-section box is-shadowless is-fullwidth"],[12],[1,"\\n      "],[10,"fieldset"],[14,0,"form-fieldset"],[12],[1,"\\n        "],[10,"legend"],[14,0,"title is-5"],[12],[1,"Plugin config"],[13],[1,"\\n"],[42,[28,[37,17],[[28,[37,17],[[30,4,["pluginFieldGroups"]]],null]],null],null,[[[42,[28,[37,20],[[30,15]],null],null,[[[41,[28,[37,3],[[30,17],"default"],null],[[[1,"              "],[10,0],[14,0,"columns is-desktop is-multiline"],[12],[1,"\\n"],[42,[28,[37,17],[[28,[37,17],[[30,16]],null]],null],null,[[[41,[28,[37,21],[[30,18,["name"]],[28,[37,22],["max_open_connections","max_idle_connections","max_connection_lifetime"],null]],null],[[[1,"                    "],[10,0],[14,0,"column is-one-third"],[12],[1,"\\n                      "],[8,[39,19],null,[["@attr","@model"],[[30,18],[30,4]]],null],[1,"\\n                    "],[13],[1,"\\n"]],[]],[[[41,[28,[37,3],[[30,18,["name"]],"password"],null],[[[1,"                    "],[10,0],[14,0,"column is-full"],[12],[1,"\\n                      "],[10,"label"],[15,"for",[30,18,["name"]]],[14,0,"is-label"],[12],[1,"\\n                        "],[1,[28,[35,35],[[28,[37,11],[[30,18,["options","label"]],[30,18,["name"]]],null]],null]],[1,"\\n                      "],[13],[1,"\\n                      "],[10,0],[14,0,"field"],[12],[1,"\\n                        "],[8,[39,36],null,[["@name","@onChange","@checked"],[[29,["show-",[30,18,["name"]]]],[28,[37,28],[[30,0,["updateShowPassword"]],[28,[37,32],[[30,0,["showPasswordField"]]],null]],null],[30,0,["showPasswordField"]]]],[["default"],[[[[1,"\\n                          "],[10,1],[14,0,"ttl-picker-label has-text-grey"],[12],[1,"Update password"],[13],[10,"br"],[12],[13],[1,"\\n                          "],[10,0],[14,0,"description has-text-grey"],[12],[1,"\\n                            "],[10,1],[12],[1,"\\n                              "],[1,[52,[30,0,["showPasswordField"]],"The new password that will be used when connecting to the database","Vault will use the existing password"]],[1,"\\n                            "],[13],[1,"\\n                          "],[13],[1,"\\n"],[41,[30,0,["showPasswordField"]],[[[1,"                            "],[8,[39,37],[[16,3,[30,18,["name"]]],[24,0,"input"],[24,"autocomplete","new-password"],[24,"spellcheck","false"],[4,[38,7],["change",[28,[37,28],[[30,0,["updatePassword"]],[30,18,["name"]]],null]],null]],[["@type","@value"],["password",[28,[37,27],[[30,4],[30,18,["name"]]],null]]],null],[1,"\\n"]],[]],null],[1,"                        "]],[]]]]],[1,"\\n                      "],[13],[1,"\\n                    "],[13],[1,"\\n"]],[]],[[[1,"                    "],[10,0],[14,0,"column is-full"],[12],[1,"\\n                      "],[8,[39,19],null,[["@attr","@model"],[[30,18],[30,4]]],null],[1,"\\n                    "],[13],[1,"\\n                  "]],[]]]],[]]]],[18]],null],[1,"              "],[13],[1,"\\n"]],[]],[[[44,[[28,[37,24],[[28,[37,25],["show",[30,17]],null]],null]],[[[1,"                "],[8,[39,26],[[24,0,"is-block"]],[["@isOpen","@openLabel","@closedLabel","@onClick"],[[28,[37,27],[[30,0],[30,19]],null],[28,[37,25],["Hide ",[30,17]],null],[30,17],[28,[37,28],[[28,[37,9],[[28,[37,27],[[30,0],[30,19]],null]],null]],null]]],null],[1,"\\n"],[41,[28,[37,27],[[30,0],[30,19]],null],[[[1,"                  "],[10,0],[14,0,"box is-marginless"],[12],[1,"\\n"],[42,[28,[37,17],[[28,[37,17],[[30,16]],null]],null],null,[[[1,"                      "],[8,[39,19],null,[["@attr","@model"],[[30,20],[30,4]]],null],[1,"\\n"]],[20]],null],[1,"                  "],[13],[1,"\\n"]],[]],null]],[19]]]],[]]]],[16,17]],null]],[15]],null],[1,"      "],[13],[1,"\\n    "],[13],[1,"\\n\\n"],[41,[28,[37,32],[[28,[37,31],[[30,4,["plugin_name"]],[28,[37,32],[[30,4,["statementFields"]]],null]],null]],null],[[[1,"      "],[10,0],[14,0,"form-section box is-shadowless is-fullwidth"],[12],[1,"\\n        "],[10,"fieldset"],[14,0,"form-fieldset"],[12],[1,"\\n          "],[10,"legend"],[14,0,"title is-5"],[12],[1,"Statements"],[13],[1,"\\n"],[42,[28,[37,17],[[28,[37,17],[[30,4,["statementFields"]]],null]],null],null,[[[1,"            "],[8,[39,19],null,[["@attr","@model"],[[30,21],[30,4]]],null],[1,"\\n"]],[21]],null],[1,"        "],[13],[1,"\\n      "],[13],[1,"\\n"]],[]],null],[1,"\\n    "],[10,0],[14,0,"field is-grouped is-grouped-split is-fullwidth box is-bottomless"],[12],[1,"\\n      "],[10,0],[14,0,"field is-grouped"],[12],[1,"\\n        "],[8,[39,33],null,null,[["default"],[[[[1,"\\n          "],[8,[39,6],[[24,4,"submit"]],[["@text"],["Save"]],null],[1,"\\n          "],[8,[39,6],null,[["@text","@color","@route","@model"],["Cancel","secondary","vault.cluster.secrets.backend.list-root",[30,4,["backend"]]]],null],[1,"\\n        "]],[]]]]],[1,"\\n      "],[13],[1,"\\n    "],[13],[1,"\\n  "],[13],[1,"\\n"]],[]],[[[41,[28,[37,3],[[30,4,["isAvailablePlugin"]],false],null],[[[1,"  "],[8,[39,29],null,[["@title","@subTitle","@icon","@message","@bottomBorder"],["Database type unavailable","Not supported in the UI","skip","This database type cannot be viewed in the UI. You will have to use the API or CLI to perform actions here.",true]],[["default"],[[[[1,"\\n    "],[8,[39,38],null,[["@icon","@text","@route"],["chevron-left","Go back","vault.cluster.secrets.backend.list-root"]],null],[1,"\\n    "],[8,[39,38],null,[["@icon","@iconPosition","@text","@href"],["docs-link","trailing","Database API docs",[28,[37,39],["/vault/api-docs/secret/databases"],null]]],null],[1,"\\n  "]],[]]]]],[1,"\\n"]],[]],[[[42,[28,[37,17],[[28,[37,17],[[30,4,["showAttrs"]]],null]],null],null,[[[44,[[30,22,["options","defaultShown"]]],[[[41,[28,[37,3],[[30,22,["type"]],"object"],null],[[[1,"        "],[8,[39,40],null,[["@alwaysRender","@defaultShown","@label","@value"],[[28,[37,32],[[28,[37,41],[[28,[37,27],[[30,4],[30,22,["name"]]],null]],[["hasDefault"],[[30,23]]]]],null],[30,23],[28,[37,35],[[28,[37,11],[[30,22,["options","label"]],[28,[37,42],[[28,[37,43],[[30,22,["name"]]],null]],null]],null]],null],[28,[37,44],[[28,[37,27],[[30,4],[30,22,["name"]]],null]],null]]],null],[1,"\\n"]],[]],[[[41,[28,[37,3],[[30,22,["type"]],"array"],null],[[[1,"        "],[8,[39,40],null,[["@alwaysRender","@defaultShown","@label","@value","@isLink","@queryParam","@type"],[[28,[37,32],[[28,[37,41],[[28,[37,27],[[30,4],[30,22,["name"]]],null]],[["hasDefault"],[[30,23]]]]],null],[30,23],[28,[37,35],[[28,[37,11],[[30,22,["options","label"]],[28,[37,42],[[28,[37,43],[[30,22,["name"]]],null]],null]],null]],null],[28,[37,27],[[30,4],[30,22,["name"]]],null],true,"role",[30,22,["type"]]]],null],[1,"\\n"]],[]],[[[1,"        "],[8,[39,40],null,[["@alwaysRender","@defaultShown","@label","@value"],[[28,[37,32],[[28,[37,41],[[28,[37,27],[[30,4],[30,22,["name"]]],null]],[["hasDefault"],[[30,23]]]]],null],[30,23],[28,[37,35],[[28,[37,11],[[30,22,["options","label"]],[28,[37,42],[[28,[37,43],[[30,22,["name"]]],null]],null]],null]],null],[52,[28,[37,3],[[30,22,["name"]],"connection_url"],null],[28,[37,45],[[28,[37,27],[[30,4],[30,22,["name"]]],null]],null],[28,[37,27],[[30,4],[30,22,["name"]]],null]]]],null],[1,"\\n      "]],[]]]],[]]]],[23]]]],[22]],null]],[]]]],[]]]],[]]],[1,"\\n"],[41,[30,0,["showSaveModal"]],[[[1,"  "],[8,[39,46],[[24,1,"rotate-credentials-modal"]],[["@onClose"],[[30,0,["continueWithoutRotate"]]]],[["default"],[[[[1,"\\n    "],[8,[30,24,["Header"]],null,[["@icon"],["info"]],[["default"],[[[[1,"\\n      Rotate your root credentials?\\n    "]],[]]]]],[1,"\\n    "],[8,[30,24,["Body"]],null,null,[["default"],[[[[1,"\\n      "],[10,2],[14,0,"has-bottom-margin-s"],[12],[1,"\\n        It’s best practice to rotate the root credential immediately after the initial configuration of each database. Once\\n        rotated,\\n        "],[10,"strong"],[12],[1,"only Vault knows the new root password"],[13],[1,".\\n      "],[13],[1,"\\n      "],[10,2],[12],[1,"Would you like to rotate your new credentials? You can also do this later."],[13],[1,"\\n    "]],[]]]]],[1,"\\n    "],[8,[30,24,["Footer"]],null,null,[["default"],[[[[1,"\\n      "],[8,[39,33],null,null,[["default"],[[[[1,"\\n        "],[8,[39,6],[[4,[38,7],["click",[28,[37,15],[[30,0,["continueWithRotate"]]],null]],null]],[["@icon","@text"],[[52,[30,0,["continueWithRotate","isRunning"]],"loading"],"Rotate and enable"]],null],[1,"\\n        "],[8,[39,6],[[4,[38,7],["click",[30,0,["continueWithoutRotate"]]],null]],[["@text","@color"],["Enable without rotating","secondary"]],null],[1,"\\n      "]],[]]]]],[1,"\\n    "]],[]]]]],[1,"\\n  "]],[24]]]]],[1,"\\n"]],[]],null],[1,"\\n"],[8,[39,47],null,[["@title","@onClose","@isActive","@confirmText","@toConfirmMsg","@onConfirm"],["Delete connection?",[28,[37,8],[[30,0],[28,[37,9],[[30,0,["isDeleteModalActive"]]],null],false],null],[30,0,["isDeleteModalActive"]],[30,4,["name"]],"deleting the connection",[28,[37,8],[[30,0],"delete"],null]]],[["default"],[[[[1,"\\n  "],[10,2],[12],[1,"\\n    Deleting the connection means that any associated roles won\'t be able to generate credentials until the connection is\\n    reconfigured.\\n  "],[13],[1,"\\n  "],[8,[39,48],null,[["@model","@errorMessage"],[[30,0,["model"]],[30,0,["error"]]]],null],[1,"\\n"]],[]]]]]],["p","@root","@mode","@model","A","attr","fieldGroup","fields","group","attr","prop","attr","attr","attr","fieldGroup","fields","group","attr","prop","attr","attr","attr","defaultDisplay","M"],false,["page-header","key-value-header","if","eq","toolbar","toolbar-actions","hds/button","on","action","mut","confirm-action","or","toolbar-secret-link","hash","hds/alert","perform","each","-track-array","not-eq","form-field","-each-in","includes","array","let","camelize","concat","toggle-button","get","fn","empty-state","unless","and","not","hds/button-set","readonly-form-field","capitalize","toggle","input","hds/link/standalone","doc-link","info-table-row","is-empty-value","humanize","dasherize","stringify","decode-uri","hds/modal","confirmation-modal","message-error"]]',moduleName:"vault/templates/components/database-connection.hbs",isStrictMode:!1})})),define("vault/templates/components/database-role-edit",["exports","@ember/template-factory"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default=(0,t.createTemplateFactory)({id:"ahCNGMfj",block:'[[[8,[39,0],null,null,[["default"],[[[[1,"\\n  "],[8,[30,1,["top"]],null,null,[["default"],[[[[1,"\\n    "],[8,[39,1],null,[["@path","@mode","@root","@showCurrent"],["vault.cluster.secrets.backend.show",[30,0,["mode"]],[30,2],true]],null],[1,"\\n  "]],[]]]]],[1,"\\n  "],[8,[30,1,["levelLeft"]],null,null,[["default"],[[[[1,"\\n    "],[10,"h1"],[14,0,"title is-3"],[12],[1,"\\n"],[41,[28,[37,3],[[30,3],"create"],null],[[[1,"        Create Role\\n"]],[]],[[[41,[28,[37,3],[[30,3],"edit"],null],[[[1,"        Edit Role\\n"]],[]],[[[1,"        "],[1,[30,4,["id"]]],[1,"\\n      "]],[]]]],[]]],[1,"    "],[13],[1,"\\n  "]],[]]]]],[1,"\\n"]],[1]]]]],[1,"\\n\\n"],[41,[28,[37,3],[[30,3],"show"],null],[[[1,"  "],[8,[39,4],null,null,[["default"],[[[[1,"\\n    "],[8,[39,5],null,null,[["default"],[[[[1,"\\n"],[41,[30,4,["canDelete"]],[[[1,"        "],[8,[39,6],[[24,0,"toolbar-button"]],[["@buttonText","@buttonColor","@onConfirmAction","@confirmTitle","@confirmMessage"],["Delete role","secondary",[28,[37,7],[[30,0],"delete"],null],"Delete role?","This role will be permanently deleted. You will need to recreate it to use it again."]],null],[1,"\\n        "],[10,0],[14,0,"toolbar-separator"],[12],[13],[1,"\\n"]],[]],null],[41,[28,[37,8],[[30,4,["canRotateRoleCredentials"]],[28,[37,3],[[30,4,["type"]],"static"],null]],null],[[[1,"        "],[8,[39,9],[[24,0,"toolbar-button"],[4,[38,10],["click",[28,[37,11],[[30,0,["rotateRoleCred"]],[30,4,["id"]]],null]],null]],[["@text","@color"],["Rotate credentials","secondary"]],null],[1,"\\n"]],[]],null],[41,[28,[37,12],[[28,[37,8],[[28,[37,3],[[30,4,["type"]],"static"],null],[30,4,["canGetCredentials"]]],null],[28,[37,8],[[28,[37,3],[[30,4,["type"]],"dynamic"],null],[30,4,["canGenerateCredentials"]]],null]],null],[[[1,"        "],[8,[39,9],[[24,0,"toolbar-button"],[4,[38,10],["click",[28,[37,11],[[30,0,["generateCreds"]],[30,4,["id"]],[30,4,["type"]]],null]],null]],[["@text","@color"],[[52,[28,[37,3],[[30,4,["type"]],"static"],null],"Get credentials","Generate credentials"],"secondary"]],null],[1,"\\n"]],[]],null],[41,[30,4,["canEditRole"]],[[[1,"        "],[8,[39,13],null,[["@secret","@mode","@backend","@replace","@queryParams"],[[28,[37,14],["role/",[30,4,["id"]]],null],"edit",[30,4,["backend"]],true,[28,[37,15],null,[["itemType"],["role"]]]]],[["default"],[[[[1,"\\n          Edit role\\n        "]],[]]]]],[1,"\\n"]],[]],null],[1,"    "]],[]]]]],[1,"\\n  "]],[]]]]],[1,"\\n"],[42,[28,[37,17],[[28,[37,17],[[30,4,["showFields"]]],null]],null],null,[[[44,[[30,5,["options","defaultShown"]]],[[[41,[28,[37,3],[[30,5,["type"]],"object"],null],[[[1,"        "],[8,[39,19],null,[["@alwaysRender","@defaultShown","@label","@value"],[true,[30,6],[28,[37,20],[[28,[37,12],[[30,5,["options","label"]],[28,[37,21],[[28,[37,22],[[30,5,["name"]]],null]],null]],null]],null],[28,[37,23],[[28,[37,24],[[30,4],[30,5,["name"]]],null]],null]]],null],[1,"\\n"]],[]],[[[41,[28,[37,3],[[30,5,["options","editType"]],"ttl"],null],[[[1,"        "],[8,[39,19],null,[["@alwaysRender","@defaultShown","@label","@value","@isLink"],[true,[30,6],[28,[37,20],[[28,[37,12],[[30,5,["options","label"]],[28,[37,21],[[28,[37,22],[[30,5,["name"]]],null]],null]],null]],null],[28,[37,25],[[28,[37,24],[[30,4],[30,5,["name"]]],null]],null],[28,[37,3],[[30,5,["name"]],"database"],null]]],null],[1,"\\n"]],[]],[[[1,"        "],[8,[39,19],null,[["@alwaysRender","@defaultShown","@label","@value","@isLink"],[true,[30,6],[28,[37,20],[[28,[37,12],[[30,5,["options","label"]],[28,[37,21],[[28,[37,22],[[30,5,["name"]]],null]],null]],null]],null],[28,[37,24],[[30,4],[30,5,["name"]]],null],[28,[37,3],[[30,5,["name"]],"database"],null]]],null],[1,"\\n      "]],[]]]],[]]]],[6]]]],[5]],null]],[]],[[[1,"  "],[10,0],[14,0,"box is-sideless is-fullwidth is-marginless"],[12],[1,"\\n    "],[11,"form"],[4,[38,10],["submit",[30,0,["handleCreateEditRole"]]],null],[12],[1,"\\n"],[42,[28,[37,17],[[28,[37,17],[[30,4,["fieldAttrs"]]],null]],null],null,[[[41,[28,[37,3],[[30,3],"edit"],null],[[[1,"          "],[8,[39,26],null,[["@attr","@value"],[[30,7],[28,[37,24],[[30,4],[30,7,["name"]]],null]]],null],[1,"\\n"]],[]],[[[41,[28,[37,27],[[30,7,["options","readOnly"]],true],null],[[[1,"          "],[8,[39,28],null,[["@attr","@model"],[[30,7],[30,4]]],null],[1,"\\n"],[41,[28,[37,24],[[30,0,["warningMessages"]],[30,7,["name"]]],null],[[[1,"            "],[8,[39,29],[[24,0,"has-top-margin-negative-s has-bottom-margin-s"]],[["@type","@color"],["inline","warning"]],[["default"],[[[[1,"\\n              "],[8,[30,8,["Title"]],null,null,[["default"],[[[[1,"Warning"]],[]]]]],[1,"\\n              "],[8,[30,8,["Description"]],null,null,[["default"],[[[[1,[28,[35,24],[[30,0,["warningMessages"]],[30,7,["name"]]],null]]],[]]]]],[1,"\\n            "]],[8]]]]],[1,"\\n"]],[]],null],[1,"        "]],[]],null]],[]]]],[7]],null],[1,"\\n      "],[8,[39,30],null,[["@attrs","@roleType","@model","@mode","@dbType"],[[30,4,["roleSettingAttrs"]],[30,4,["type"]],[30,4],[30,3],[28,[37,31],[[30,0,["databaseType"]]],null]]],null],[1,"\\n      "],[10,0],[14,0,"field is-grouped is-grouped-split is-fullwidth box is-bottomless"],[12],[1,"\\n        "],[10,0],[14,0,"field is-grouped"],[12],[1,"\\n          "],[8,[39,32],null,null,[["default"],[[[[1,"\\n            "],[8,[39,9],[[16,"disabled",[30,0,["loading"]]],[24,4,"submit"]],[["@text","@icon"],[[52,[28,[37,3],[[30,3],"create"],null],"Create role","Save"],[52,[30,0,["loading"]],"loading"]]],null],[1,"\\n            "],[8,[39,9],null,[["@text","@color","@route","@model","@query"],["Cancel","secondary","vault.cluster.secrets.backend.list-root",[30,4,["backend"]],[28,[37,15],null,[["tab"],["role"]]]]],null],[1,"\\n          "]],[]]]]],[1,"\\n"],[41,[28,[37,33],[[28,[37,34],[[30,0,["warningMessages"]]],null]],null],[[[1,"            "],[8,[39,29],[[24,0,"has-left-margin-s"]],[["@type","@color"],["compact","warning"]],[["default"],[[[[1,"\\n              "],[8,[30,9,["Title"]],null,null,[["default"],[[[[1,"Warning"]],[]]]]],[1,"\\n              "],[8,[30,9,["Description"]],null,null,[["default"],[[[[1,"\\n                You don\'t have permissions required to\\n                "],[1,[52,[28,[37,3],[[30,3],"create"],null],"create","update"]],[1,"\\n                this role. See form for details.\\n              "]],[]]]]],[1,"\\n            "]],[9]]]]],[1,"\\n"]],[]],null],[1,"        "],[13],[1,"\\n      "],[13],[1,"\\n    "],[13],[1,"\\n  "],[13],[1,"\\n"]],[]]]],["p","@root","@mode","@model","attr","defaultDisplay","attr","A","A"],false,["page-header","key-value-header","if","eq","toolbar","toolbar-actions","confirm-action","action","and","hds/button","on","fn","or","toolbar-secret-link","concat","hash","each","-track-array","let","info-table-row","capitalize","humanize","dasherize","stringify","get","format-duration","readonly-form-field","not-eq","form-field","hds/alert","database-role-setting-form","await","hds/button-set","not","is-empty-value"]]',moduleName:"vault/templates/components/database-role-edit.hbs",isStrictMode:!1})})),define("vault/templates/components/database-role-setting-form",["exports","@ember/template-factory"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default=(0,t.createTemplateFactory)({id:"KfouCYXf",block:'[[[10,0],[14,0,"box is-sideless is-fullwidth is-marginless"],[12],[1,"\\n  "],[10,"h3"],[14,0,"title is-5"],[12],[1,"Role settings"],[13],[1,"\\n"],[41,[30,0,["settingFields"]],[[[1,"    "],[10,0],[14,0,"form-section"],[12],[1,"\\n"],[42,[28,[37,2],[[28,[37,2],[[30,0,["settingFields"]]],null]],null],null,[[[41,[28,[37,3],[[28,[37,4],[[30,2],"edit"],null],[28,[37,4],[[30,1,["name"]],"username"],null]],null],[[[1,"          "],[8,[39,5],null,[["@attr","@value"],[[30,1],[28,[37,6],[[30,3],[30,1,["name"]]],null]]],null],[1,"\\n"]],[]],[[[1,"          "],[8,[39,7],null,[["@attr","@model"],[[30,1],[30,3]]],null],[1,"\\n"]],[]]],[1,"\\n"]],[1]],null],[1,"    "],[13],[1,"\\n"]],[]],[[[1,"    "],[8,[39,8],null,[["@title","@message"],["No role type selected","Select a type of role to be able to configure it"]],null],[1,"\\n"]],[]]],[13],[1,"\\n"],[41,[51,[28,[37,3],[[30,4],[28,[37,10],[[30,0,["statementFields"]]],null]],null]],[[[1,"  "],[10,0],[14,0,"box is-sideless is-fullwidth is-marginless"],[12],[1,"\\n    "],[10,"h3"],[14,0,"title is-5"],[12],[1,"Statements"],[13],[1,"\\n"],[41,[30,0,["statementFields"]],[[[1,"      "],[10,0],[14,0,"form-section"],[12],[1,"\\n"],[42,[28,[37,2],[[28,[37,2],[[30,0,["statementFields"]]],null]],null],null,[[[1,"          "],[8,[39,7],null,[["@attr","@model"],[[30,5],[30,3]]],null],[1,"\\n"]],[5]],null],[1,"      "],[13],[1,"\\n"]],[]],[[[1,"      "],[8,[39,8],null,[["@title","@message"],["No role type selected","Select a type of role to be able to add statements for creation, revocation, and/or rotation."]],null],[1,"\\n"]],[]]],[1,"  "],[13],[1,"\\n"]],[]],null]],["attr","@mode","@model","@roleType","attr"],false,["if","each","-track-array","and","eq","readonly-form-field","get","form-field","empty-state","unless","not"]]',moduleName:"vault/templates/components/database-role-setting-form.hbs",isStrictMode:!1})})),define("vault/templates/components/file-to-array-buffer",["exports","@ember/template-factory"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default=(0,t.createTemplateFactory)({id:"tBIBYfYo",block:'[[[10,0],[14,0,"box is-fullwidth is-marginless is-shadowless"],[12],[1,"\\n  "],[10,0],[14,0,"field"],[12],[1,"\\n    "],[10,0],[14,0,"control is-expanded"],[12],[1,"\\n      "],[10,"label"],[14,0,"is-label"],[12],[1,"\\n        "],[1,[30,1]],[1,"\\n      "],[13],[1,"\\n      "],[10,0],[14,0,"file is-fullwidth"],[12],[1,"\\n        "],[10,0],[14,0,"file-label"],[14,"aria-label","Choose a file"],[12],[1,"\\n          "],[11,"input"],[24,1,"file-input"],[24,0,"file-input"],[24,4,"file"],[4,[38,0],["change",[30,0,["pickedFile"]]],null],[12],[13],[1,"\\n          "],[10,"label"],[14,"for","file-input"],[14,0,"file-cta button"],[12],[1,"\\n            "],[8,[39,1],[[24,0,"has-light-grey-text"]],[["@name"],["upload"]],null],[1,"\\n            Choose a file…\\n          "],[13],[1,"\\n          "],[10,1],[14,0,"file-name has-text-grey-dark"],[12],[1,"\\n            "],[1,[28,[35,2],[[30,0,["filename"]],"No file chosen"],null]],[1,"\\n          "],[13],[1,"\\n"],[41,[30,0,["filename"]],[[[1,"            "],[8,[39,4],[[24,0,"file-delete-button"],[4,[38,0],["click",[30,0,["fileChange"]]],null]],[["@text","@icon","@isIconOnly","@color"],["Clear file selection","x-circle",true,"secondary"]],null],[1,"\\n"]],[]],null],[1,"        "],[13],[1,"\\n      "],[13],[1,"\\n    "],[13],[1,"\\n"],[41,[30,0,["filename"]],[[[1,"      "],[10,2],[14,0,"help has-text-grey"],[12],[1,"\\n        This file is\\n        "],[1,[30,0,["fileSize"]]],[1,"\\n        and was created on\\n        "],[1,[28,[35,5],[[30,0,["fileLastModified"]],"MMM dd, yyyy hh:mm:ss a"],null]],[1,".\\n      "],[13],[1,"\\n"]],[]],null],[41,[30,2],[[[1,"      "],[10,2],[14,0,"help has-text-grey"],[12],[1,"\\n        "],[1,[30,2]],[1,"\\n      "],[13],[1,"\\n"]],[]],null],[1,"  "],[13],[1,"\\n"],[13]],["@label","@fileHelpText"],false,["on","icon","or","if","hds/button","date-format"]]',moduleName:"vault/templates/components/file-to-array-buffer.hbs",isStrictMode:!1})})),define("vault/templates/components/form-field-from-model",["exports","@ember/template-factory"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default=(0,t.createTemplateFactory)({id:"L83LRGIq",block:'[[[10,0],[14,0,"field"],[12],[1,"\\n"],[41,[51,[28,[37,1],[[28,[37,2],[[30,1,["options","editType"]],[28,[37,3],["boolean","searchSelect","mountAccessor","kv","file","ttl","stringArray","json"],null]],null],[28,[37,4],[[30,1,["type"]],"boolean"],null]],null]],[[[41,[51,[28,[37,4],[[30,1,["type"]],"object"],null]],[[[1,"      "],[10,"label"],[15,"for",[30,1,["name"]]],[14,0,"is-label"],[12],[1,"\\n        "],[1,[28,[35,5],[[28,[37,1],[[30,1,["options","label"]],[28,[37,6],[[28,[37,7],[[30,1,["name"]]],null]],null]],null]],null]],[1,"\\n"],[41,[30,1,["options","helpText"]],[[[1,"          "],[8,[39,9],null,null,[["default"],[[[[1,[30,1,["options","helpText"]]]],[]]]]],[1,"\\n"]],[]],null],[1,"      "],[13],[1,"\\n"]],[]],null]],[]],null],[41,[30,1,["options","possibleValues"]],[[[1,"    "],[10,0],[14,0,"control is-expanded"],[12],[1,"\\n      "],[10,0],[14,0,"select is-fullwidth"],[12],[1,"\\n        "],[10,"select"],[15,3,[30,1,["name"]]],[15,1,[30,1,["name"]]],[15,"onchange",[28,[37,10],[[30,0],[28,[37,11],[[28,[37,12],[[30,2],[30,1,["name"]]],null]],null]],[["value"],["target.value"]]]],[12],[1,"\\n"],[42,[28,[37,14],[[28,[37,14],[[30,1,["options","possibleValues"]]],null]],null],null,[[[1,"            "],[10,"option"],[15,"selected",[28,[37,4],[[28,[37,12],[[30,2],[30,1,["name"]]],null],[30,3]],null]],[15,2,[30,3]],[12],[1,"\\n              "],[1,[30,3]],[1,"\\n            "],[13],[1,"\\n"]],[3]],null],[1,"        "],[13],[1,"\\n      "],[13],[1,"\\n    "],[13],[1,"\\n"]],[]],[[[41,[28,[37,4],[[30,1,["options","editType"]],"ttl"],null],[[[1,"    "],[8,[39,15],null,[["@initialValue","@initialEnabled","@label","@helperTextDisabled","@helperTextEnabled","@onChange"],[[28,[37,1],[[28,[37,12],[[30,2],[30,1,["name"]]],null],[30,1,["options","defaultValue"]]],null],[28,[37,1],[[28,[37,12],[[30,2],[30,1,["name"]]],null],false],null],[28,[37,1],[[30,1,["options","label"]],[28,[37,6],[[28,[37,7],[[30,1,["name"]]],null]],null]],null],"If this is not set, the engine default will be used.","Disable lease after",[30,4]]],null],[1,"\\n"]],[]],[[[41,[28,[37,1],[[28,[37,4],[[30,1,["type"]],"number"],null],[28,[37,4],[[30,1,["type"]],"string"],null]],null],[[[1,"    "],[10,0],[14,0,"control"],[12],[1,"\\n      "],[8,[39,16],[[16,1,[30,1,["name"]]],[24,0,"input"]],[["@value"],[[28,[37,12],[[30,2],[28,[37,1],[[30,1,["options","fieldValue"]],[30,1,["name"]]],null]],null]]],null],[1,"\\n    "],[13],[1,"\\n"]],[]],[[[41,[28,[37,4],[[30,1,["type"]],"boolean"],null],[[[1,"    "],[10,0],[14,0,"b-checkbox"],[12],[1,"\\n      "],[10,"input"],[15,1,[30,1,["name"]]],[14,0,"styled"],[15,"checked",[28,[37,12],[[30,0,["model"]],[30,1,["name"]]],null]],[15,"onchange",[28,[37,10],[[30,0],[28,[37,11],[[28,[37,12],[[30,0,["model"]],[30,1,["name"]]],null]],null]],[["value"],["target.checked"]]]],[14,4,"checkbox"],[12],[13],[1,"\\n\\n      "],[10,"label"],[15,"for",[30,1,["name"]]],[14,0,"is-label"],[12],[1,"\\n        "],[1,[28,[35,5],[[28,[37,1],[[30,1,["options","label"]],[28,[37,6],[[28,[37,7],[[30,1,["name"]]],null]],null]],null]],null]],[1,"\\n"],[41,[30,1,["options","helpText"]],[[[1,"          "],[8,[39,9],null,null,[["default"],[[[[1,[30,1,["options","helpText"]]]],[]]]]],[1,"\\n"]],[]],null],[1,"      "],[13],[1,"\\n    "],[13],[1,"\\n"]],[]],[[[41,[28,[37,4],[[30,1,["type"]],"object"],null],[[[1,"    "],[8,[39,17],null,[["@title","@helpText","@value","@valueUpdated"],[[28,[37,5],[[28,[37,1],[[30,1,["options","label"]],[28,[37,6],[[28,[37,7],[[30,1,["name"]]],null]],null]],null]],null],[30,1,["options","helpText"]],[52,[28,[37,12],[[30,2],[30,1,["name"]]],null],[28,[37,18],[[28,[37,12],[[30,2],[30,1,["name"]]],null]],null],[30,5]],[30,6]]],null],[1,"\\n  "]],[]],null]],[]]]],[]]]],[]]]],[]]],[13]],["@attr","@model","val","@updateTtl","@emptyData","@codemirrorUpdated"],false,["unless","or","includes","array","eq","capitalize","humanize","dasherize","if","info-tooltip","action","mut","get","each","-track-array","ttl-picker","input","json-editor","stringify"]]',moduleName:"vault/templates/components/form-field-from-model.hbs",isStrictMode:!1})})),define("vault/templates/components/generate-credentials-database",["exports","@ember/template-factory"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default=(0,t.createTemplateFactory)({id:"eKK9QPDG",block:'[[[8,[39,0],null,null,[["default"],[[[[1,"\\n  "],[8,[30,1,["top"]],null,null,[["default"],[[[[1,"\\n    "],[8,[39,1],null,null,[["default"],[[[[1,"\\n      "],[8,[39,2],null,[["@text","@route","@model"],[[30,2],"vault.cluster.secrets.backend.overview",[30,2]]],null],[1,"\\n      "],[8,[39,2],null,[["@text","@current"],[[30,3],true]],null],[1,"\\n    "]],[]]]]],[1,"\\n  "]],[]]]]],[1,"\\n  "],[8,[30,1,["levelLeft"]],null,null,[["default"],[[[[1,"\\n    "],[10,"h1"],[14,0,"title is-3"],[12],[1,"\\n      "],[1,[30,3]],[1,"\\n    "],[13],[1,"\\n  "]],[]]]]],[1,"\\n"]],[1]]]]],[1,"\\n\\n"],[10,0],[15,0,[52,[30,4],"box is-fullwidth is-sideless is-marginless"]],[12],[1,"\\n"],[41,[51,[30,4]],[[[1,"    "],[8,[39,5],null,[["@title","@subTitle","@icon","@bottomBorder","@message"],[[30,0,["errorTitle"]],[29,["Error ",[30,5,["errorHttpStatus"]]]],"alert-circle",true,[30,5,["errorMessage"]]]],[["default"],[[[[1,"\\n      "],[8,[39,6],null,[["@iconPosition","@icon","@text","@href"],["trailing","docs-link","Database documentation",[28,[37,7],["/vault/api-docs/secret/databases"],null]]],null],[1,"\\n    "]],[]]]]],[1,"\\n"]],[]],null],[41,[28,[37,8],[[28,[37,9],[[30,5,["errorMessage"]]],null],[28,[37,10],[[30,4],"dynamic"],null]],null],[[[1,"    "],[8,[39,11],[[24,0,"has-top-bottom-margin"]],[["@type","@color"],["inline","warning"]],[["default"],[[[[1,"\\n      "],[8,[30,6,["Title"]],null,null,[["default"],[[[[1,"Warning"]],[]]]]],[1,"\\n      "],[8,[30,6,["Description"]],null,null,[["default"],[[[[1,"\\n        You will not be able to access these credentials later, so please copy them now.\\n      "]],[]]]]],[1,"\\n    "]],[6]]]]],[1,"\\n"]],[]],null],[41,[28,[37,8],[[28,[37,10],[[30,4],"dynamic"],null],[30,5,["username"]]],null],[[[1,"    "],[8,[39,12],null,[["@label","@value"],["Username",[30,5,["username"]]]],[["default"],[[[[1,"\\n      "],[8,[39,13],null,[["@value","@name","@displayOnly","@allowCopy"],[[30,5,["username"]],"Username",true,true]],null],[1,"\\n    "]],[]]]]],[1,"\\n    "],[8,[39,12],null,[["@label","@value"],["Password",[30,5,["password"]]]],[["default"],[[[[1,"\\n      "],[8,[39,13],null,[["@value","@name","@displayOnly","@allowCopy"],[[30,5,["password"]],"Password",true,true]],null],[1,"\\n    "]],[]]]]],[1,"\\n    "],[8,[39,12],null,[["@label","@value"],["Lease ID",[30,5,["leaseId"]]]],null],[1,"\\n    "],[8,[39,12],null,[["@label","@value"],["Lease Duration",[28,[37,14],[[30,5,["leaseDuration"]]],null]]],null],[1,"\\n"]],[]],null],[41,[28,[37,8],[[28,[37,10],[[30,4],"static"],null],[30,5,["username"]]],null],[[[1,"    "],[8,[39,12],null,[["@label","@value","@tooltipText","@isTooltipCopyable"],["Last Vault rotation",[28,[37,15],[[30,5,["lastVaultRotation"]],"MMMM d yyyy, h:mm:ss a"],null],[30,5,["lastVaultRotation"]],true]],null],[1,"\\n    "],[8,[39,12],null,[["@label","@value"],["Password",[30,5,["password"]]]],[["default"],[[[[1,"\\n      "],[8,[39,13],null,[["@value","@name","@displayOnly","@allowCopy"],[[30,5,["password"]],"Password",true,true]],null],[1,"\\n    "]],[]]]]],[1,"\\n    "],[8,[39,12],null,[["@label","@value"],["Username",[30,5,["username"]]]],null],[1,"\\n    "],[8,[39,12],null,[["@label","@value"],["Rotation Period",[28,[37,14],[[30,5,["rotationPeriod"]]],null]]],null],[1,"\\n    "],[8,[39,12],null,[["@label","@value"],["Time Remaining",[28,[37,14],[[30,5,["ttl"]]],null]]],null],[1,"\\n"]],[]],null],[13],[1,"\\n"],[10,0],[14,0,"has-top-bottom-margin"],[12],[1,"\\n  "],[8,[39,16],[[4,[38,17],["click",[28,[37,18],[[30,0],"redirectPreviousPage"],null]],null]],[["@text"],["Back"]],null],[1,"\\n"],[13]],["p","@backendPath","@roleName","@roleType","@model","A"],false,["page-header","hds/breadcrumb","hds/breadcrumb/item","if","unless","empty-state","hds/link/standalone","doc-link","and","not","eq","hds/alert","info-table-row","masked-input","format-duration","date-format","hds/button","on","action"]]',moduleName:"vault/templates/components/generate-credentials-database.hbs",isStrictMode:!1})})),define("vault/templates/components/generated-item-list",["exports","@ember/template-factory"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default=(0,t.createTemplateFactory)({id:"0hV+cdQo",block:'[[[8,[39,0],null,null,[["default"],[[[[1,"\\n  "],[8,[30,1,["top"]],null,null,[["default"],[[[[1,"\\n    "],[8,[39,1],null,null,[["default"],[[[[1,"\\n      "],[8,[39,2],null,[["@text","@route"],["Auth Methods","vault.cluster.access.methods"]],null],[1,"\\n      "],[8,[39,2],null,[["@text","@current"],[[30,2,["id"]],true]],null],[1,"\\n    "]],[]]]]],[1,"\\n  "]],[]]]]],[1,"\\n  "],[8,[30,1,["levelLeft"]],null,null,[["default"],[[[[1,"\\n    "],[10,"h1"],[14,0,"title is-3"],[12],[1,"\\n      "],[1,[30,2,["id"]]],[1,"\\n    "],[13],[1,"\\n  "]],[]]]]],[1,"\\n"]],[1]]]]],[1,"\\n"],[44,[[28,[37,4],[[30,2],"authConfig",[30,3]],null]],[[[41,[30,4,["length"]],[[[1,"    "],[10,0],[14,0,"tabs-container box is-sideless is-fullwidth is-paddingless is-marginless"],[12],[1,"\\n      "],[10,"nav"],[14,0,"tabs"],[15,"aria-label",[29,["navigation to manage ",[30,2,["id"]]]]],[12],[1,"\\n        "],[10,"ul"],[12],[1,"\\n"],[42,[28,[37,7],[[28,[37,7],[[30,4]],null]],null],null,[[[1,"            "],[10,"li"],[12],[1,"\\n              "],[8,[39,8],null,[["@route","@models"],[[30,5,["route"]],[30,5,["routeParams"]]]],[["default"],[[[[1,"\\n                "],[1,[30,5,["label"]]],[1,"\\n              "]],[]]]]],[1,"\\n            "],[13],[1,"\\n"]],[5]],null],[1,"        "],[13],[1,"\\n      "],[13],[1,"\\n    "],[13],[1,"\\n"]],[]],null]],[4]]],[8,[39,9],null,null,[["default"],[[[[1,"\\n  "],[8,[39,10],null,null,[["default"],[[[[1,"\\n    "],[8,[39,11],null,[["@route","@models","@type"],["vault.cluster.access.method.item.create",[28,[37,12],[[30,2,["id"]],[30,6]],null],"add"]],[["default"],[[[[1,"\\n      Create\\n      "],[1,[28,[35,13],[[30,6]],null]],[1,"\\n    "]],[]]]]],[1,"\\n  "]],[]]]]],[1,"\\n"]],[]]]]],[1,"\\n"],[8,[39,14],null,[["@items","@itemNoun","@paginationRouteName","@paginationRouteParams"],[[30,7],[30,6],"vault.cluster.access.method.item.list",[28,[37,12],[[30,2,["id"]],[30,6]],null]]],[["default"],[[[[1,"\\n"],[41,[30,8,["empty"]],[[[1,"    "],[8,[30,8,["empty"]],null,[["@title","@message"],[[29,["No ",[28,[37,15],[[30,6]],null]," yet"]],[29,["A list of ",[28,[37,15],[[30,6]],null]," will be listed here. Create your first ",[30,6]," to get started."]]]],[["default"],[[[[1,"\\n      "],[8,[39,16],null,[["@icon","@text","@route","@models"],["plus",[29,["Create ",[28,[37,13],[[30,6]],null]]],"vault.cluster.access.method.item.create",[28,[37,12],[[30,2,["id"]],[30,6]],null]]],null],[1,"\\n    "]],[]]]]],[1,"\\n"]],[]],[[[41,[30,8,["item"]],[[[1,"    "],[8,[39,17],null,[["@linkParams"],[[28,[37,12],["vault.cluster.access.method.item.show",[30,2,["id"]],[30,6],[30,8,["item","id"]]],null]]],[["default"],[[[[1,"\\n      "],[8,[30,9,["content"]],null,null,[["default"],[[[[1,"\\n        "],[8,[39,18],[[24,0,"has-text-grey-light"]],[["@name"],["folder"]],null],[1,[30,8,["item","id"]]],[1,"\\n      "]],[]]]]],[1,"\\n      "],[8,[30,9,["menu"]],null,null,[["default"],[[[[1,"\\n        "],[8,[39,19],null,[["@isInline","@listPosition"],[true,"bottom-right"]],[["default"],[[[[1,"\\n          "],[8,[30,10,["ToggleIcon"]],null,[["@icon","@text","@hasChevron"],["more-horizontal","Overflow options",false]],null],[1,"\\n          "],[8,[30,10,["Interactive"]],null,[["@text","@route","@models"],[[29,["View ",[28,[37,13],[[30,6]],null]]],"vault.cluster.access.method.item.show",[28,[37,12],[[30,2,["id"]],[30,6],[30,8,["item","id"]]],null]]],null],[1,"\\n          "],[8,[30,10,["Interactive"]],null,[["@text","@route","@models"],[[29,["Edit ",[28,[37,13],[[30,6]],null]]],"vault.cluster.access.method.item.edit",[28,[37,12],[[30,2,["id"]],[30,6],[30,8,["item","id"]]],null]]],null],[1,"\\n          "],[8,[30,10,["Interactive"]],[[4,[38,20],["click",[28,[37,21],[[28,[37,22],[[30,0,["itemToDelete"]]],null],[30,8,["item"]]],null]],null]],[["@text","@color"],[[29,["Delete ",[28,[37,13],[[30,6]],null]]],"critical"]],null],[1,"\\n        "]],[10]]]]],[1,"\\n      "]],[]]]]],[1,"\\n"],[41,[28,[37,23],[[30,8,["item"]],[30,0,["itemToDelete"]]],null],[[[1,"        "],[8,[39,24],null,[["@color","@onClose","@onConfirm","@confirmTitle","@confirmMessage"],["critical",[28,[37,21],[[28,[37,22],[[30,0,["itemToDelete"]]],null],null],null],[28,[37,25],[[30,0],[28,[37,26],[[30,9,["callMethod"]],"destroyRecord",[30,0,["itemToDelete"]],[28,[37,27],["Successfully deleted ",[28,[37,13],[[30,6]],null]," ",[30,0,["itemToDelete","id"]],"."],null],[28,[37,27],["There was an error deleting this ",[28,[37,13],[[30,6]],null]],null],[28,[37,25],[[30,0],"refreshItemList"],null]],null]],null],[29,["Delete ",[28,[37,13],[[30,6]],null],"?"]],[29,["Are you sure you want to delete ",[28,[37,13],[[30,6]],null]," ",[30,0,["itemToDelete","id"]],"?"]]]],null],[1,"\\n"]],[]],null],[1,"    "]],[9]]]]],[1,"\\n  "]],[]],null]],[]]]],[8]]]]]],["p","@methodModel","@paths","tabs","tab","@itemType","@model","list","Item","dd"],false,["page-header","hds/breadcrumb","hds/breadcrumb/item","let","tabs-for-auth-section","if","each","-track-array","link-to","toolbar","toolbar-actions","toolbar-link","array","singularize","list-view","pluralize","hds/link/standalone","list-item","icon","hds/dropdown","on","fn","mut","eq","confirm-modal","action","perform","concat"]]',moduleName:"vault/templates/components/generated-item-list.hbs",isStrictMode:!1})})),define("vault/templates/components/generated-item",["exports","@ember/template-factory"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default=(0,t.createTemplateFactory)({id:"TQAXrZ8T",block:'[[[8,[39,0],null,null,[["default"],[[[[1,"\\n  "],[8,[30,1,["top"]],null,null,[["default"],[[[[1,"\\n    "],[8,[39,1],null,null,[["default"],[[[[1,"\\n      "],[8,[39,2],null,[["@text","@route","@models"],[[28,[37,3],[[30,0,["itemType"]]],null],"vault.cluster.access.method.item.list",[28,[37,4],[[30,0,["mountPath"]],[30,0,["itemType"]]],null]]],null],[1,"\\n      "],[8,[39,2],null,[["@text","@current"],[[52,[28,[37,6],[[30,0,["mode"]],"show"],null],[30,0,["model","id"]],[28,[37,7],[[30,0,["mode"]]],null]],true]],null],[1,"\\n    "]],[]]]]],[1,"\\n  "]],[]]]]],[1,"\\n  "],[8,[30,1,["levelLeft"]],null,null,[["default"],[[[[1,"\\n"],[41,[28,[37,6],[[30,0,["mode"]],"show"],null],[[[1,"      "],[10,"h1"],[14,0,"title is-3"],[12],[1,"\\n        "],[1,[30,0,["model","id"]]],[1,"\\n      "],[13],[1,"\\n"]],[]],[[[1,"      "],[10,"h1"],[14,0,"title is-3"],[12],[1,"\\n        "],[1,[28,[35,7],[[30,0,["mode"]]],null]],[1,"\\n        "],[1,[28,[35,8],[[30,0,["itemType"]]],null]],[1,"\\n"],[41,[28,[37,6],[[30,0,["mode"]],"edit"],null],[[[1,"          "],[1,[30,0,["model","id"]]],[1,"\\n"]],[]],null],[1,"      "],[13],[1,"\\n"]],[]]],[1,"  "]],[]]]]],[1,"\\n"]],[1]]]]],[1,"\\n"],[41,[28,[37,6],[[30,0,["mode"]],"show"],null],[[[1,"  "],[8,[39,9],null,null,[["default"],[[[[1,"\\n    "],[8,[39,10],null,null,[["default"],[[[[1,"\\n      "],[8,[39,11],[[24,0,"toolbar-button"]],[["@buttonText","@buttonColor","@onConfirmAction","@confirmMessage"],[[29,["Delete ",[30,0,["itemType"]]]],"secondary",[28,[37,12],[[30,0],"deleteItem"],null],[29,["Are you sure you want to delete ",[30,0,["itemType"]]," ",[30,0,["model","id"]],"?"]]]],null],[1,"\\n      "],[10,0],[14,0,"toolbar-separator"],[12],[13],[1,"\\n      "],[8,[39,13],null,[["@route","@models"],["vault.cluster.access.method.item.edit",[28,[37,4],[[30,0,["mountPath"]],[30,0,["itemType"]],[30,0,["model","id"]]],null]]],[["default"],[[[[1,"\\n        Edit\\n        "],[1,[28,[35,8],[[30,0,["itemType"]]],null]],[1,"\\n      "]],[]]]]],[1,"\\n    "]],[]]]]],[1,"\\n  "]],[]]]]],[1,"\\n"]],[]],null],[41,[28,[37,6],[[30,0,["mode"]],"show"],null],[[[1,"  "],[8,[39,14],null,[["@model","@showAllFields"],[[30,0,["model"]],true]],null],[1,"\\n"]],[]],[[[1,"  "],[11,"form"],[4,[38,12],[[30,0],[28,[37,15],[[30,0,["saveModel"]]],null]],[["on"],["submit"]]],[12],[1,"\\n    "],[10,0],[14,0,"box is-sideless is-fullwidth is-marginless"],[12],[1,"\\n      "],[8,[39,16],null,[["@mode","@noun"],["save",[30,0,["itemType"]]]],null],[1,"\\n      "],[8,[39,17],null,[["@model"],[[30,0,["model"]]]],null],[1,"\\n      "],[8,[39,18],null,[["@model","@mode","@modelValidations"],[[30,0,["model"]],[30,0,["mode"]],[30,0,["modelValidations"]]]],null],[1,"\\n    "],[13],[1,"\\n    "],[10,0],[14,0,"field is-grouped-split box is-fullwidth is-bottomless"],[12],[1,"\\n      "],[8,[39,19],null,null,[["default"],[[[[1,"\\n        "],[8,[39,20],[[16,"disabled",[30,0,["saveModel","isRunning"]]],[24,4,"submit"]],[["@text","@icon"],["Save",[52,[30,0,["saveModel","isRunning"]],"loading"]]],null],[1,"\\n"],[41,[28,[37,6],[[30,0,["mode"]],"create"],null],[[[1,"          "],[8,[39,20],null,[["@text","@color","@route","@models"],["Cancel","secondary","vault.cluster.access.method.item.list",[28,[37,4],[[30,0,["mountPath"]],[30,0,["itemType"]]],null]]],null],[1,"\\n"]],[]],[[[1,"          "],[8,[39,20],null,[["@text","@color","@route","@models"],["Cancel","secondary","vault.cluster.access.method.item.show",[28,[37,4],[[30,0,["mountPath"]],[30,0,["itemType"]],[30,0,["model","id"]]],null]]],null],[1,"\\n"]],[]]],[1,"      "]],[]]]]],[1,"\\n    "],[13],[1,"\\n  "],[13],[1,"\\n"]],[]]]],["p"],false,["page-header","hds/breadcrumb","hds/breadcrumb/item","pluralize","array","if","eq","capitalize","singularize","toolbar","toolbar-actions","confirm-action","action","toolbar-link","field-group-show","perform","namespace-reminder","message-error","form-field-groups","hds/button-set","hds/button"]]',moduleName:"vault/templates/components/generated-item.hbs",isStrictMode:!1})})),define("vault/templates/components/identity/edit-form",["exports","@ember/template-factory"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default=(0,t.createTemplateFactory)({id:"3gNykbfy",block:'[[[41,[28,[37,1],[[28,[37,2],[[30,0,["mode"]],"edit"],null],[30,0,["model","canDelete"]]],null],[[[1,"  "],[8,[39,3],null,null,[["default"],[[[[1,"\\n    "],[8,[39,4],null,null,[["default"],[[[[1,"\\n      "],[8,[39,5],[[24,0,"toolbar-button"]],[["@buttonColor","@buttonText","@confirmTitle","@onConfirmAction"],["secondary",[29,["Delete ",[30,0,["model","identityType"]]]],[29,["Delete this ",[30,0,["model","identityType"]],"?"]],[28,[37,6],[[30,0],"deleteItem",[30,0,["model"]]],null]]],null],[1,"\\n    "]],[]]]]],[1,"\\n  "]],[]]]]],[1,"\\n"]],[]],null],[1,"\\n"],[11,"form"],[4,[38,6],[[30,0],[28,[37,7],[[30,0,["save"]]],null]],[["on"],["submit"]]],[12],[1,"\\n  "],[10,0],[14,0,"box is-sideless is-fullwidth is-marginless"],[12],[1,"\\n    "],[8,[39,8],null,[["@mode","@noun"],[[30,0,["mode"]],[28,[37,9],[[28,[37,10],[[30,0,["model","identityType"]]],null]],null]]],null],[1,"\\n    "],[8,[39,11],null,[["@model"],[[30,0,["model"]]]],null],[1,"\\n"],[41,[28,[37,2],[[30,0,["mode"]],"merge"],null],[[[1,"      "],[8,[39,12],[[24,0,"has-bottom-margin-s"]],[["@type","@color"],["inline","warning"]],[["default"],[[[[1,"\\n        "],[8,[30,1,["Title"]],null,null,[["default"],[[[[1,"Warning"]],[]]]]],[1,"\\n        "],[8,[30,1,["Description"]],null,null,[["default"],[[[[1,"Metadata on merged entities is not preserved, you will need to recreate it on the entity you merge to."]],[]]]]],[1,"\\n      "]],[1]]]]],[1,"\\n"]],[]],null],[42,[28,[37,14],[[28,[37,14],[[30,0,["model","fields"]]],null]],null],null,[[[1,"      "],[8,[39,15],null,[["@attr","@model"],[[30,2],[30,3]]],[["default"],[[[[1,"\\n        "],[10,0],[14,0,"form-section"],[12],[1,"\\n"],[41,[30,0,["model","canCreatePolicies"]],[[[1,"            "],[8,[39,16],null,[["@id","@label","@labelClass","@models","@inputValue","@onChange","@fallbackComponent","@modalFormTemplate","@excludeOptions"],["policies","Policies","title is-4",[28,[37,17],["policy/acl","policy/rgp"],null],[30,3,["policies"]],[28,[37,6],[[30,0],[28,[37,18],[[30,0,["model","policies"]]],null]],null],"string-list","modal-form/policy-template",[28,[37,17],["root"],null]]],null],[1,"\\n"]],[]],[[[1,"            "],[8,[39,19],null,[["@id","@label","@labelClass","@models","@inputValue","@onChange","@fallbackComponent","@disallowNewItems"],["policies","Policies","title is-4",[28,[37,17],["policy/acl","policy/rgp"],null],[30,3,["policies"]],[28,[37,6],[[30,0],[28,[37,18],[[30,0,["model","policies"]]],null]],null],"string-list",true]],null],[1,"\\n"]],[]]],[1,"        "],[13],[1,"\\n      "]],[]]]]],[1,"\\n"]],[2]],null],[1,"  "],[13],[1,"\\n\\n  "],[10,0],[14,0,"field is-grouped is-grouped-split is-fullwidth box is-bottomless"],[12],[1,"\\n    "],[10,0],[14,0,"field is-grouped"],[12],[1,"\\n      "],[8,[39,20],null,null,[["default"],[[[[1,"\\n        "],[8,[39,21],[[16,"disabled",[30,0,["save","isRunning"]]],[24,4,"submit"]],[["@text","@icon"],[[52,[28,[37,2],[[30,0,["mode"]],"create"],null],"Create","Save"],[52,[30,0,["save","isRunning"]],"loading"]]],null],[1,"\\n"],[41,[28,[37,22],[[28,[37,2],[[30,0,["mode"]],"merge"],null],[28,[37,2],[[30,0,["mode"]],"create"],null]],null],[[[1,"          "],[8,[39,21],null,[["@text","@color","@route"],["Cancel","secondary",[30,0,["cancelLink"]]]],null],[1,"\\n"]],[]],[[[1,"          "],[8,[39,21],null,[["@text","@color","@route","@models"],["Cancel","secondary",[30,0,["cancelLink"]],[28,[37,17],[[30,0,["model","id"]],"details"],null]]],null],[1,"\\n"]],[]]],[1,"      "]],[]]]]],[1,"\\n    "],[13],[1,"\\n  "],[13],[1,"\\n"],[13]],["A","attr","@model"],false,["if","and","eq","toolbar","toolbar-actions","confirm-action","action","perform","namespace-reminder","lowercase","humanize","message-error","hds/alert","each","-track-array","form-field","search-select-with-modal","array","mut","search-select","hds/button-set","hds/button","or"]]',moduleName:"vault/templates/components/identity/edit-form.hbs",isStrictMode:!1})})),define("vault/templates/components/identity/entity-nav",["exports","@ember/template-factory"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default=(0,t.createTemplateFactory)({id:"6u7ssB1Q",block:'[[[8,[39,0],null,null,[["default"],[[[[1,"\\n  "],[8,[30,1,["levelLeft"]],null,null,[["default"],[[[[1,"\\n    "],[10,"h1"],[14,0,"title is-3"],[12],[1,"\\n      "],[1,[28,[35,1],[[28,[37,2],[[30,0,["identityType"]]],null]],null]],[1,"\\n    "],[13],[1,"\\n  "]],[]]]]],[1,"\\n"]],[1]]]]],[1,"\\n"],[10,0],[14,0,"tabs-container box is-sideless is-fullwidth is-paddingless is-marginless"],[12],[1,"\\n  "],[10,"nav"],[14,0,"tabs"],[14,"aria-label","navigation for entities"],[12],[1,"\\n    "],[10,"ul"],[12],[1,"\\n      "],[10,"li"],[12],[1,"\\n        "],[8,[39,3],null,[["@route","@model"],["vault.cluster.access.identity.index",[28,[37,2],[[30,0,["identityType"]]],null]]],[["default"],[[[[1,"\\n          "],[1,[28,[35,4],[[28,[37,2],[[30,0,["identityType"]]],null]],null]],[1,"\\n        "]],[]]]]],[1,"\\n      "],[13],[1,"\\n      "],[10,"li"],[12],[1,"\\n        "],[8,[39,3],null,[["@route","@model"],["vault.cluster.access.identity.aliases.index",[28,[37,2],[[30,0,["identityType"]]],null]]],[["default"],[[[[1,"\\n          Aliases\\n        "]],[]]]]],[1,"\\n      "],[13],[1,"\\n    "],[13],[1,"\\n  "],[13],[1,"\\n"],[13],[1,"\\n"],[8,[39,5],null,null,[["default"],[[[[1,"\\n"],[41,[30,0,["model","meta","total"]],[[[1,"    "],[8,[39,7],null,null,[["default"],[[[[1,"\\n      "],[8,[39,8],null,[["@type"],[[30,0,["identityType"]]]],null],[1,"\\n    "]],[]]]]],[1,"\\n"]],[]],null],[1,"  "],[8,[39,9],null,null,[["default"],[[[[1,"\\n"],[41,[28,[37,10],[[30,0,["identityType"]],"entity"],null],[[[1,"      "],[8,[39,11],null,[["@route","@model"],["vault.cluster.access.identity.merge",[28,[37,2],[[30,0,["identityType"]]],null]]],[["default"],[[[[1,"\\n        Merge\\n        "],[1,[28,[35,2],[[30,0,["identityType"]]],null]],[1,"\\n      "]],[]]]]],[1,"\\n"]],[]],null],[1,"    "],[8,[39,11],null,[["@route","@model","@type"],["vault.cluster.access.identity.create",[28,[37,2],[[30,0,["identityType"]]],null],"add"]],[["default"],[[[[1,"\\n      Create\\n      "],[1,[30,0,["identityType"]]],[1,"\\n    "]],[]]]]],[1,"\\n  "]],[]]]]],[1,"\\n"]],[]]]]]],["p"],false,["page-header","titleize","pluralize","link-to","capitalize","toolbar","if","toolbar-filters","identity/lookup-input","toolbar-actions","eq","toolbar-link"]]',moduleName:"vault/templates/components/identity/entity-nav.hbs",isStrictMode:!1})})),define("vault/templates/components/identity/item-alias/alias-details",["exports","@ember/template-factory"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default=(0,t.createTemplateFactory)({id:"aQPS6j/K",block:'[[[8,[39,0],null,[["@label","@value"],["Name",[30,1,["name"]]]],null],[1,"\\n"],[8,[39,0],null,[["@label","@value","@addCopyButton"],["ID",[30,1,["id"]],true]],null],[1,"\\n"],[8,[39,0],null,[["@label","@value"],[[52,[28,[37,2],[[30,1,["identityType"]],"entity-alias"],null],"Entity ID","Group ID"],[30,0,["model","canonicalId"]]]],[["default"],[[[[1,"\\n  "],[8,[39,3],null,[["@route","@models"],["vault.cluster.access.identity.show",[28,[37,4],[[52,[28,[37,2],[[30,1,["identityType"]],"entity-alias"],null],"entities","groups"],[30,1,["canonicalId"]],"details"],null]]],[["default"],[[[[1,"\\n    "],[1,[30,1,["canonicalId"]]],[1,"\\n  "]],[]]]]],[1,"\\n"]],[]]]]],[1,"\\n"],[8,[39,0],null,[["@label","@value"],["Merged from Entity ID",[30,1,["mergedFromCanonicalIds"]]]],null],[1,"\\n"],[8,[39,0],null,[["@label","@value"],["Mount",[30,1,["mountAccessor"]]]],[["default"],[[[[1,"\\n  "],[10,0],[12],[1,"\\n    "],[1,[30,1,["mountPath"]]],[1,"\\n    "],[10,0],[12],[1,"\\n      "],[10,1],[14,0,"tag"],[12],[1,[30,1,["mountType"]]],[13],[1,"\\n      "],[10,"code"],[14,0,"has-text-grey is-size-8"],[12],[1,[30,1,["mountAccessor"]]],[13],[1,"\\n    "],[13],[1,"\\n  "],[13],[1,"\\n"]],[]]]]],[1,"\\n"],[8,[39,0],null,[["@label","@value"],["Created",[30,1,["creationTime"]]]],[["default"],[[[[1,"\\n  "],[10,"time"],[15,"datetime",[30,1,["creationTime"]]],[15,"title",[30,1,["creationTime"]]],[12],[1,"\\n    "],[1,[28,[35,5],[[30,1,["creationTime"]],"MMM dd, yyyy h:mm a"],null]],[1,"\\n  "],[13],[1,"\\n"]],[]]]]],[1,"\\n"],[8,[39,0],null,[["@label","@value"],["Last Updated",[30,1,["lastUpdateTime"]]]],[["default"],[[[[1,"\\n  "],[10,"time"],[15,"datetime",[30,1,["lastUpdateTime"]]],[15,"title",[30,1,["lastUpdateTime"]]],[12],[1,"\\n    "],[1,[28,[35,5],[[30,1,["lastUpdateTime"]],"MMM dd, yyyy h:mm a"],null]],[1,"\\n  "],[13],[1,"\\n"]],[]]]]]],["@model"],false,["info-table-row","if","eq","link-to","array","date-format"]]',moduleName:"vault/templates/components/identity/item-alias/alias-details.hbs",isStrictMode:!1})})),define("vault/templates/components/identity/item-alias/alias-metadata",["exports","@ember/template-factory"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default=(0,t.createTemplateFactory)({id:"bqW/ppAz",block:'[[[42,[28,[37,1],[[30,1,["metadata"]]],null],null,[[[1,"  "],[10,0],[14,0,"info-table-row is-mobile"],[12],[1,"\\n    "],[10,0],[14,0,"is-flex is-fullwidth"],[12],[1,"\\n      "],[10,0],[14,0,"column is-one-quarter"],[12],[1,"\\n        "],[10,1],[14,0,"is-label has-text-grey-dark"],[12],[1,"\\n          "],[1,[30,3]],[1,"\\n        "],[13],[1,"\\n      "],[13],[1,"\\n      "],[10,0],[14,0,"column is-flex"],[12],[1,"\\n        "],[1,[30,2]],[1,"\\n      "],[13],[1,"\\n      "],[10,0],[14,0,"column has-text-right"],[12],[1,"\\n      "],[13],[1,"\\n    "],[13],[1,"\\n  "],[13],[1,"\\n"]],[2,3]],[[[1,"  "],[8,[39,2],null,[["@title"],[[29,["No metadata associated with ",[30,1,["name"]]," yet"]]]],null],[1,"\\n"]],[]]]],["@model","value","key"],false,["each","-each-in","empty-state"]]',moduleName:"vault/templates/components/identity/item-alias/alias-metadata.hbs",isStrictMode:!1})})),define("vault/templates/components/identity/item-aliases",["exports","@ember/template-factory"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default=(0,t.createTemplateFactory)({id:"bgYMfhIX",block:'[[[42,[28,[37,1],[[28,[37,1],[[52,[30,1,["alias","id"]],[28,[37,3],[[30,1,["alias"]]],null],[30,1,["aliases"]]]],null]],null],null,[[[1,"  "],[8,[39,4],[[24,0,"list-item-row"]],[["@params"],[[28,[37,3],["vault.cluster.access.identity.aliases.show",[30,2,["id"]],"details"],null]]],[["default"],[[[[1,"\\n    "],[10,0],[14,0,"columns is-mobile"],[12],[1,"\\n      "],[10,0],[14,0,"column is-10"],[12],[1,"\\n        "],[8,[39,5],[[24,0,"has-text-black has-text-weight-semibold"]],[["@route","@models"],["vault.cluster.access.identity.aliases.show",[28,[37,3],[[30,2,["id"]],"details"],null]]],[["default"],[[[[1,"\\n          "],[8,[39,6],[[24,0,"has-text-grey-light"]],[["@name"],["user"]],null],[1,"\\n          "],[10,1],[14,0,"has-text-weight-semibold"],[12],[1,[30,2,["name"]]],[13],[1,"\\n        "]],[]]]]],[1,"\\n        "],[10,0],[14,0,"has-text-grey"],[12],[1,"\\n          "],[1,[30,2,["id"]]],[1,"\\n        "],[13],[1,"\\n        "],[10,1],[14,0,"tag"],[12],[1,[30,2,["mountType"]]],[13],[1,"\\n        "],[10,1],[14,0,"has-text-grey is-size-8"],[12],[1,"\\n          "],[1,[30,2,["mountAccessor"]]],[1,"\\n        "],[13],[1,"\\n      "],[13],[1,"\\n      "],[10,0],[14,0,"column has-text-right"],[12],[1,"\\n        "],[8,[39,7],null,[["@item"],[[30,2]]],null],[1,"\\n      "],[13],[1,"\\n    "],[13],[1,"\\n  "]],[]]]]],[1,"\\n"]],[2]],[[[1,"  "],[8,[39,8],null,[["@title"],[[29,["No ",[30,1,["identityType"]]," aliases for ",[30,1,["name"]]," yet"]]]],null],[1,"\\n"]],[]]]],["@model","item"],false,["each","-track-array","if","array","linked-block","link-to","icon","identity/popup-alias","empty-state"]]',moduleName:"vault/templates/components/identity/item-aliases.hbs",isStrictMode:!1})})),define("vault/templates/components/identity/item-details",["exports","@ember/template-factory"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default=(0,t.createTemplateFactory)({id:"p4+DRz6+",block:'[[[10,0],[14,0,"box is-shadowless is-marginless is-fullwidth"],[12],[1,"\\n"],[41,[30,1,["disabled"]],[[[1,"    "],[8,[39,1],[[24,0,"has-bottom-margin-s"]],[["@type","@color"],["inline","warning"]],[["default"],[[[[1,"\\n      "],[8,[30,2,["Title"]],null,null,[["default"],[[[[1,"Attention"]],[]]]]],[1,"\\n      "],[8,[30,2,["Description"]],null,null,[["default"],[[[[1,"\\n        This\\n        "],[1,[30,1,["identityType"]]],[1,"\\n        is disabled. All associated tokens cannot be used, but are not revoked.\\n      "]],[]]]]],[1,"\\n"],[41,[30,1,["canEdit"]],[[[1,"        "],[8,[30,2,["Button"]],[[4,[38,2],["click",[28,[37,3],[[30,0],"enable",[30,1]],null]],null]],[["@text","@color"],["Enable","secondary"]],null],[1,"\\n"]],[]],null],[1,"    "]],[2]]]]],[1,"\\n"]],[]],null],[1,"  "],[8,[39,4],null,[["@label","@value"],["Name",[30,1,["name"]]]],null],[1,"\\n  "],[8,[39,4],null,[["@label","@value"],["Type",[30,1,["type"]]]],null],[1,"\\n  "],[8,[39,4],null,[["@label","@value","@addCopyButton"],["ID",[30,1,["id"]],true]],null],[1,"\\n  "],[8,[39,4],null,[["@label","@value"],["Merged Ids",[30,1,["mergedEntityIds"]]]],[["default"],[[[[1,"\\n    "],[10,0],[12],[1,"\\n"],[42,[28,[37,6],[[28,[37,6],[[30,1,["mergedEntityIds"]]],null]],null],null,[[[1,"        "],[10,0],[12],[1,"\\n          "],[10,"code"],[14,0,"has-text-black"],[12],[1,[30,3]],[13],[1,"\\n        "],[13],[1,"\\n"]],[3]],null],[1,"    "],[13],[1,"\\n  "]],[]]]]],[1,"\\n  "],[8,[39,4],null,[["@label","@value"],["Created",[30,1,["creationTime"]]]],[["default"],[[[[1,"\\n    "],[10,"time"],[15,"datetime",[30,1,["creationTime"]]],[15,"title",[30,1,["creationTime"]]],[12],[1,"\\n      "],[1,[28,[35,7],[[30,1,["creationTime"]],"MMM dd, yyyy h:mm a"],null]],[1,"\\n    "],[13],[1,"\\n  "]],[]]]]],[1,"\\n  "],[8,[39,4],null,[["@label","@value"],["Last Updated",[30,0,["model","lastUpdateTime"]]]],[["default"],[[[[1,"\\n    "],[10,"time"],[15,"datetime",[30,0,["model","lastUpdateTime"]]],[15,"title",[30,0,["model","lastUpdateTime"]]],[12],[1,"\\n      "],[1,[28,[35,7],[[30,0,["model","lastUpdateTime"]],"MMM dd, yyyy h:mm a"],null]],[1,"\\n    "],[13],[1,"\\n  "]],[]]]]],[1,"\\n"],[13]],["@model","A","id"],false,["if","hds/alert","on","action","info-table-row","each","-track-array","date-format"]]',moduleName:"vault/templates/components/identity/item-details.hbs",isStrictMode:!1})}))
define("vault/templates/components/identity/item-groups",["exports","@ember/template-factory"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default=(0,t.createTemplateFactory)({id:"g3mZSC46",block:'[[[41,[30,1,["groupIds"]],[[[42,[28,[37,2],[[28,[37,2],[[30,1,["directGroupIds"]]],null]],null],null,[[[1,"    "],[8,[39,3],[[24,0,"list-item-row"]],[["@route","@models"],["vault.cluster.access.identity.show",[28,[37,4],["groups",[30,2],"details"],null]]],[["default"],[[[[1,"\\n      "],[8,[39,5],[[24,0,"has-text-grey-light"]],[["@name"],["folder"]],null],[1,[30,2]],[1,"\\n    "]],[]]]]],[1,"\\n"]],[2]],null],[42,[28,[37,2],[[28,[37,2],[[30,1,["inheritedGroupIds"]]],null]],null],null,[[[1,"    "],[8,[39,6],[[24,0,"list-item-row"]],[["@params"],[[28,[37,4],["vault.cluster.access.identity.show","groups",[30,3],"details"],null]]],[["default"],[[[[1,"\\n      "],[8,[39,3],[[24,0,"has-text-black"]],[["@route","@models"],["vault.cluster.access.identity.show",[28,[37,4],["groups",[30,3],"details"],null]]],[["default"],[[[[1,"\\n        "],[8,[39,5],[[24,0,"has-text-grey-light"]],[["@name"],["folder"]],null],[1,[30,3]],[1,"\\n      "]],[]]]]],[1,"\\n      "],[10,1],[14,0,"tag has-text-grey is-size-8"],[12],[1,"inherited"],[13],[1,"\\n    "]],[]]]]],[1,"\\n"]],[3]],null]],[]],[[[1,"  "],[8,[39,7],null,[["@title"],[[29,[[30,1,["name"]]," is not a member of any groups."]]]],null],[1,"\\n"]],[]]]],["@model","gid","gid"],false,["if","each","-track-array","link-to","array","icon","linked-block","empty-state"]]',moduleName:"vault/templates/components/identity/item-groups.hbs",isStrictMode:!1})})),define("vault/templates/components/identity/item-members",["exports","@ember/template-factory"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default=(0,t.createTemplateFactory)({id:"dO4m4O2d",block:'[[[41,[30,1,["hasMembers"]],[[[42,[28,[37,2],[[28,[37,2],[[30,1,["memberGroupIds"]]],null]],null],null,[[[1,"    "],[8,[39,3],[[24,0,"list-item-row"]],[["@params"],[[28,[37,4],["vault.cluster.access.identity.show","groups",[30,2],[30,0,["details"]]],null]]],[["default"],[[[[1,"\\n      "],[10,0],[14,0,"columns is-mobile"],[12],[1,"\\n        "],[10,0],[14,0,"column is-10"],[12],[1,"\\n          "],[8,[39,5],[[24,0,"is-block has-text-black has-text-weight-semibold"]],[["@route","@models"],["vault.cluster.access.identity.show",[28,[37,4],["groups",[30,2],"details"],null]]],[["default"],[[[[1,"\\n            "],[8,[39,6],[[24,0,"has-text-grey-light"]],[["@name"],["folder"]],null],[1,[30,2]],[1,"\\n          "]],[]]]]],[1,"\\n        "],[13],[1,"\\n        "],[10,0],[14,0,"column has-text-right"],[12],[1,"\\n"],[41,[30,1,["canEdit"]],[[[1,"            "],[8,[39,7],null,[["@model","@groupArray","@memberId"],[[30,1],"memberGroupIds",[30,2]]],null],[1,"\\n"]],[]],null],[1,"        "],[13],[1,"\\n      "],[13],[1,"\\n    "]],[]]]]],[1,"\\n"]],[2]],null],[42,[28,[37,2],[[28,[37,2],[[30,1,["memberEntityIds"]]],null]],null],null,[[[1,"    "],[8,[39,3],[[24,0,"list-item-row"]],[["@params"],[[28,[37,4],["vault.cluster.access.identity.show","groups",[30,3],[30,0,["details"]]],null]]],[["default"],[[[[1,"\\n      "],[10,0],[14,0,"columns"],[12],[1,"\\n        "],[10,0],[14,0,"column is-10"],[12],[1,"\\n          "],[8,[39,5],[[24,0,"is-block has-text-black has-text-weight-semibold"]],[["@route","@models"],["vault.cluster.access.identity.show",[28,[37,4],["entities",[30,3],"details"],null]]],[["default"],[[[[1,"\\n            "],[8,[39,6],[[24,0,"has-text-grey-light"]],[["@name"],["user"]],null],[1,[30,3]],[1,"\\n          "]],[]]]]],[1,"\\n        "],[13],[1,"\\n        "],[10,0],[14,0,"column has-text-right"],[12],[1,"\\n"],[41,[30,1,["canEdit"]],[[[1,"            "],[8,[39,7],null,[["@model","@groupArray","@memberId"],[[30,1],"memberEntityIds",[30,3]]],null],[1,"\\n"]],[]],null],[1,"        "],[13],[1,"\\n      "],[13],[1,"\\n    "]],[]]]]],[1,"\\n"]],[3]],null]],[]],[[[1,"  "],[8,[39,8],null,[["@title"],["No members in this group yet"]],null],[1,"\\n"]],[]]]],["@model","gid","gid"],false,["if","each","-track-array","linked-block","array","link-to","icon","identity/popup-members","empty-state"]]',moduleName:"vault/templates/components/identity/item-members.hbs",isStrictMode:!1})})),define("vault/templates/components/identity/item-metadata",["exports","@ember/template-factory"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default=(0,t.createTemplateFactory)({id:"FLpZOlUR",block:'[[[42,[28,[37,1],[[30,1,["metadata"]]],null],null,[[[1,"  "],[10,0],[14,0,"info-table-row is-mobile"],[12],[1,"\\n    "],[10,0],[14,0,"is-flex is-fullwidth"],[12],[1,"\\n      "],[10,0],[14,0,"column is-one-quarter"],[12],[1,"\\n        "],[10,1],[14,0,"is-label has-text-grey-dark"],[12],[1,"\\n          "],[1,[30,3]],[1,"\\n        "],[13],[1,"\\n      "],[13],[1,"\\n      "],[10,0],[14,0,"column is-5"],[12],[1,"\\n        "],[1,[30,2]],[1,"\\n      "],[13],[1,"\\n      "],[10,0],[14,0,"column has-text-right"],[12],[1,"\\n"],[41,[30,1,["canEdit"]],[[[1,"          "],[8,[39,3],null,[["@key","@model"],[[30,3],[30,1]]],null],[1,"\\n"]],[]],null],[1,"      "],[13],[1,"\\n    "],[13],[1,"\\n  "],[13],[1,"\\n"]],[2,3]],[[[1,"  "],[8,[39,4],null,[["@title","@message"],[[29,["No metadata for ",[30,1,["name"]]]],[29,["You can store custom data that you want to associate with this ",[28,[37,5],[[28,[37,6],[[30,1,["identityType"]]],null]],null],". Click \\"Edit ",[28,[37,5],[[28,[37,6],[[30,1,["identityType"]]],null]],null],"\\" to get started."]]]],[["default"],[[[[1,"\\n    "],[8,[39,7],null,[["@text","@href","@icon","@iconPosition"],["Identity: entities and groups tutorial",[28,[37,8],["/vault/tutorials/auth-methods/identity"],null],"learn-link","trailing"]],null],[1,"\\n  "]],[]]]]],[1,"\\n"]],[]]]],["@model","value","key"],false,["each","-each-in","if","identity/popup-metadata","empty-state","lowercase","humanize","hds/link/standalone","doc-link"]]',moduleName:"vault/templates/components/identity/item-metadata.hbs",isStrictMode:!1})})),define("vault/templates/components/identity/item-parent-groups",["exports","@ember/template-factory"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default=(0,t.createTemplateFactory)({id:"LqizV5s+",block:'[[[41,[30,1,["parentGroupIds","length"]],[[[42,[28,[37,2],[[28,[37,2],[[30,1,["parentGroupIds"]]],null]],null],null,[[[1,"    "],[8,[39,3],[[24,0,"list-item-row"]],[["@params"],[[28,[37,4],["vault.cluster.access.identity.show","groups",[30,2],[30,0,["details"]]],null]]],[["default"],[[[[1,"\\n      "],[10,0],[14,0,"columns is-mobile"],[12],[1,"\\n        "],[10,0],[14,0,"column is-10"],[12],[1,"\\n          "],[8,[39,5],[[24,0,"is-block has-text-black has-text-weight-semibold"]],[["@route","@models"],["vault.cluster.access.identity.show",[28,[37,4],["groups",[30,2],"details"],null]]],[["default"],[[[[1,"\\n            "],[8,[39,6],[[24,0,"has-text-grey-light"]],[["@name"],["folder"]],null],[1,[30,2]],[1,"\\n          "]],[]]]]],[1,"\\n        "],[13],[1,"\\n        "],[10,0],[14,0,"column has-text-right"],[12],[1,"\\n        "],[13],[1,"\\n      "],[13],[1,"\\n    "]],[]]]]],[1,"\\n"]],[2]],null]],[]],[[[1,"  "],[8,[39,7],null,[["@title"],["This group has no parent groups yet"]],null],[1,"\\n"]],[]]]],["@model","gid"],false,["if","each","-track-array","linked-block","array","link-to","icon","empty-state"]]',moduleName:"vault/templates/components/identity/item-parent-groups.hbs",isStrictMode:!1})})),define("vault/templates/components/identity/item-policies",["exports","@ember/template-factory"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default=(0,t.createTemplateFactory)({id:"tqCQ7BCQ",block:'[[[42,[28,[37,1],[[28,[37,1],[[30,1,["policies"]]],null]],null],null,[[[1,"  "],[8,[39,2],[[24,0,"list-item-row"]],[["@params"],[[28,[37,3],["vault.cluster.policy.show","acl",[30,2]],null]]],[["default"],[[[[1,"\\n    "],[10,0],[14,0,"columns is-mobile"],[12],[1,"\\n      "],[10,0],[14,0,"column is-10"],[12],[1,"\\n        "],[8,[39,4],[[24,0,"is-block has-text-black has-text-weight-semibold"]],[["@route","@models"],["vault.cluster.policy.show",[28,[37,3],["acl",[30,2]],null]]],[["default"],[[[[1,"\\n          "],[10,1],[14,0,"is-underline"],[12],[1,[30,2]],[13],[1,"\\n        "]],[]]]]],[1,"\\n      "],[13],[1,"\\n      "],[10,0],[14,0,"column has-text-right"],[12],[1,"\\n"],[41,[30,1,["canEdit"]],[[[1,"          "],[8,[39,6],null,[["@model","@policyName"],[[30,1],[30,2]]],null],[1,"\\n"]],[]],null],[1,"      "],[13],[1,"\\n    "],[13],[1,"\\n  "]],[]]]]],[1,"\\n"]],[2]],[[[1,"  "],[8,[39,7],null,[["@title"],[[29,["No policies associated with ",[30,1,["name"]]," yet"]]]],null],[1,"\\n"]],[]]]],["@model","policyName"],false,["each","-track-array","linked-block","array","link-to","if","identity/popup-policy","empty-state"]]',moduleName:"vault/templates/components/identity/item-policies.hbs",isStrictMode:!1})})),define("vault/templates/components/identity/lookup-input",["exports","@ember/template-factory"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default=(0,t.createTemplateFactory)({id:"tVmaNn29",block:'[[[11,"form"],[4,[38,0],[[30,0],[28,[37,1],[[30,0,["lookup"]]],null]],[["on"],["submit"]]],[12],[1,"\\n  "],[10,0],[14,0,"field is-flex"],[12],[1,"\\n    "],[10,0],[14,0,"control"],[12],[1,"\\n      "],[10,0],[14,0,"select is-fullwidth"],[12],[1,"\\n        "],[10,"select"],[14,3,"param"],[14,1,"param"],[15,"onchange",[28,[37,0],[[30,0],[28,[37,2],[[30,0,["param"]]],null]],[["value"],["target.value"]]]],[12],[1,"\\n"],[42,[28,[37,4],[[28,[37,4],[[28,[37,5],["alias name","name","id","alias id"],null]],null]],null],null,[[[1,"            "],[10,"option"],[15,"selected",[28,[37,6],[[30,0,["param"]],[30,1]],null]],[15,2,[30,1]],[12],[1,"\\n              Lookup by\\n              "],[1,[30,1]],[1,"\\n            "],[13],[1,"\\n"]],[1]],null],[1,"        "],[13],[1,"\\n      "],[13],[1,"\\n    "],[13],[1,"\\n    "],[10,0],[14,0,"control"],[12],[1,"\\n"],[41,[28,[37,6],[[30,0,["param"]],"alias name"],null],[[[1,"        "],[8,[39,8],null,[["@value","@onChange"],[[30,0,["aliasMountAccessor"]],[28,[37,0],[[30,0],[28,[37,2],[[30,0,["aliasMountAccessor"]]],null]],null]]],null],[1,"\\n"]],[]],null],[1,"    "],[13],[1,"\\n    "],[10,0],[14,0,"control is-expanded"],[12],[1,"\\n      "],[8,[39,9],[[24,0,"input"],[16,"placeholder",[28,[37,10],[[30,0,["param"]]],null]]],[["@value"],[[30,0,["paramValue"]]]],null],[1,"\\n    "],[13],[1,"\\n    "],[10,0],[14,0,"control"],[12],[1,"\\n      "],[8,[39,11],[[24,0,"is-hidden"],[24,4,"submit"]],[["@text","@color"],["Lookup","secondary"]],null],[1,"\\n    "],[13],[1,"\\n  "],[13],[1,"\\n"],[13]],["paramOption"],false,["action","perform","mut","each","-track-array","array","eq","if","mount-accessor-select","input","capitalize","hds/button"]]',moduleName:"vault/templates/components/identity/lookup-input.hbs",isStrictMode:!1})})),define("vault/templates/components/identity/popup-alias",["exports","@ember/template-factory"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default=(0,t.createTemplateFactory)({id:"rPEFqmLV",block:'[[[10,0],[14,0,"has-text-right"],[12],[1,"\\n  "],[8,[39,0],null,[["@isInline","@listPosition"],[true,"bottom-right"]],[["default"],[[[[1,"\\n    "],[8,[30,1,["ToggleIcon"]],null,[["@icon","@text","@hasChevron"],["more-horizontal","Alias management options",false]],null],[1,"\\n    "],[8,[30,1,["Interactive"]],null,[["@text","@route","@models"],["Details","vault.cluster.access.identity.aliases.show",[28,[37,1],[[28,[37,2],[[30,2,["parentType"]]],null],[30,2,["id"]],"details"],null]]],null],[1,"\\n"],[41,[30,2,["updatePath","isPending"]],[[[1,"      "],[8,[30,1,["Generic"]],[[24,0,"has-text-center"]],null,[["default"],[[[[1,"\\n        "],[8,[39,4],null,null,null],[1,"\\n      "]],[]]]]],[1,"\\n"]],[]],[[[41,[30,2,["canEdit"]],[[[1,"        "],[8,[30,1,["Interactive"]],null,[["@text","@route","@models"],["Edit","vault.cluster.access.identity.aliases.edit",[28,[37,1],[[28,[37,2],[[30,2,["parentType"]]],null],[30,2,["id"]]],null]]],null],[1,"\\n"]],[]],null],[41,[30,2,["canDelete"]],[[[1,"        "],[8,[30,1,["Interactive"]],[[4,[38,5],["click",[28,[37,6],[[28,[37,7],[[30,0,["showConfirmModal"]]],null],true],null]],null]],[["@text","@color"],["Remove","critical"]],null],[1,"\\n"]],[]],null]],[]]],[1,"  "]],[1]]]]],[1,"\\n"],[13],[1,"\\n\\n"],[41,[30,0,["showConfirmModal"]],[[[1,"  "],[8,[39,8],null,[["@color","@onClose","@onConfirm"],["critical",[28,[37,6],[[28,[37,7],[[30,0,["showConfirmModal"]]],null],false],null],[30,0,["deleteAlias"]]]],null],[1,"\\n"]],[]],null]],["dd","@item"],false,["hds/dropdown","array","pluralize","if","loading-dropdown-option","on","fn","mut","confirm-modal"]]',moduleName:"vault/templates/components/identity/popup-alias.hbs",isStrictMode:!1})})),define("vault/templates/components/identity/popup-members",["exports","@ember/template-factory"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default=(0,t.createTemplateFactory)({id:"sC/cApcI",block:'[[[10,0],[14,0,"has-text-right"],[12],[1,"\\n  "],[8,[39,0],null,[["@isInline","@listPosition"],[true,"bottom-right"]],[["default"],[[[[1,"\\n    "],[8,[30,1,["ToggleIcon"]],null,[["@icon","@text","@hasChevron"],["more-horizontal","Identity member options",false]],null],[1,"\\n    "],[8,[30,1,["Interactive"]],[[4,[38,1],["click",[28,[37,2],[[28,[37,3],[[30,0,["showConfirmModal"]]],null],true],null]],null]],[["@text","@color"],["Remove","critical"]],null],[1,"\\n  "]],[1]]]]],[1,"\\n"],[13],[1,"\\n\\n"],[41,[30,0,["showConfirmModal"]],[[[1,"  "],[8,[39,5],null,[["@color","@onClose","@onConfirm","@confirmTitle","@confirmMessage"],["critical",[28,[37,2],[[28,[37,3],[[30,0,["showConfirmModal"]]],null],false],null],[30,0,["removeGroup"]],"Remove this group?","This may affect permissions for this group."]],null],[1,"\\n"]],[]],null]],["dd"],false,["hds/dropdown","on","fn","mut","if","confirm-modal"]]',moduleName:"vault/templates/components/identity/popup-members.hbs",isStrictMode:!1})})),define("vault/templates/components/identity/popup-metadata",["exports","@ember/template-factory"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default=(0,t.createTemplateFactory)({id:"n2Ku8BeU",block:'[[[10,0],[14,0,"has-text-right"],[12],[1,"\\n  "],[8,[39,0],null,[["@isInline","@listPosition"],[true,"bottom-right"]],[["default"],[[[[1,"\\n    "],[8,[30,1,["ToggleIcon"]],null,[["@icon","@text","@hasChevron"],["more-horizontal","Metadata options",false]],null],[1,"\\n    "],[8,[30,1,["Interactive"]],[[4,[38,1],["click",[28,[37,2],[[28,[37,3],[[30,0,["showConfirmModal"]]],null],true],null]],null]],[["@text","@color"],["Remove","critical"]],null],[1,"\\n  "]],[1]]]]],[1,"\\n"],[13],[1,"\\n\\n"],[41,[30,0,["showConfirmModal"]],[[[1,"  "],[8,[39,5],null,[["@color","@onClose","@onConfirm","@confirmTitle","@confirmMessage"],["critical",[28,[37,2],[[28,[37,3],[[30,0,["showConfirmModal"]]],null],false],null],[30,0,["removeMetadata"]],"Remove metadata?","This data may be used outside of Vault."]],null],[1,"\\n"]],[]],null]],["dd"],false,["hds/dropdown","on","fn","mut","if","confirm-modal"]]',moduleName:"vault/templates/components/identity/popup-metadata.hbs",isStrictMode:!1})})),define("vault/templates/components/identity/popup-policy",["exports","@ember/template-factory"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default=(0,t.createTemplateFactory)({id:"+JmrGIgt",block:'[[[10,0],[14,0,"has-text-right"],[12],[1,"\\n  "],[8,[39,0],null,[["@isInline","@listPosition"],[true,"bottom-right"]],[["default"],[[[[1,"\\n    "],[8,[30,1,["ToggleIcon"]],null,[["@icon","@text","@hasChevron"],["more-horizontal","Identity policy management options",false]],null],[1,"\\n    "],[8,[30,1,["Interactive"]],null,[["@text","@route","@models"],["View policy","vault.cluster.policy.show",[28,[37,1],["acl",[30,2]],null]]],null],[1,"\\n    "],[8,[30,1,["Interactive"]],null,[["@text","@route","@models"],["Edit policy","vault.cluster.policy.edit",[28,[37,1],["acl",[30,2]],null]]],null],[1,"\\n    "],[8,[30,1,["Interactive"]],[[4,[38,2],["click",[28,[37,3],[[28,[37,4],[[30,0,["showConfirmModal"]]],null],true],null]],null]],[["@text","@color"],[[29,["Remove from ",[30,3,["identityType"]]]],"critical"]],null],[1,"\\n  "]],[1]]]]],[1,"\\n"],[13],[1,"\\n\\n"],[41,[30,0,["showConfirmModal"]],[[[1,"  "],[8,[39,6],null,[["@color","@onClose","@onConfirm","@confirmTitle","@confirmMessage"],["critical",[28,[37,3],[[28,[37,4],[[30,0,["showConfirmModal"]]],null],false],null],[30,0,["removePolicy"]],"Remove this policy?","This policy may affect permissions to access Vault data."]],null],[1,"\\n"]],[]],null]],["dd","@policyName","@model"],false,["hds/dropdown","array","on","fn","mut","if","confirm-modal"]]',moduleName:"vault/templates/components/identity/popup-policy.hbs",isStrictMode:!1})})),define("vault/templates/components/key-version-select",["exports","@ember/template-factory"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default=(0,t.createTemplateFactory)({id:"xUZHK+q7",block:'[[[41,[28,[37,1],[[30,0,["key","keysForEncryption","length"]],1],null],[[[1,"  "],[10,0],[14,0,"field"],[12],[1,"\\n    "],[10,"label"],[14,"for","key_version"],[14,0,"is-label"],[12],[1,"Key version"],[13],[1,"\\n    "],[10,0],[14,0,"control is-expanded"],[12],[1,"\\n      "],[10,0],[14,0,"select is-fullwidth"],[12],[1,"\\n        "],[10,"select"],[14,3,"key_version"],[14,1,"key_version"],[15,"onchange",[28,[37,2],[[30,0],[30,0,["onVersionChange"]]],[["value"],["target.value"]]]],[12],[1,"\\n"],[42,[28,[37,4],[[28,[37,4],[[30,0,["key","keysForEncryption"]]],null]],null],null,[[[41,[28,[37,5],[[30,1],[30,0,["key","latestVersion"]]],null],[[[1,"              "],[10,"option"],[15,"selected",[52,[30,0,["key_version"]],[28,[37,5],[[30,1],[30,0,["key_version"]]],null],[28,[37,5],[[30,1],[30,0,["key","latestVersion"]]],null]]],[15,2,0],[12],[1,"\\n                "],[1,[30,1]],[1,"\\n                (latest)\\n              "],[13],[1,"\\n"]],[]],[[[1,"              "],[10,"option"],[15,"selected",[52,[30,0,["key_version"]],[28,[37,5],[[30,1],[30,0,["key_version"]]],null],[28,[37,5],[[30,1],[30,0,["key","latestVersion"]]],null]]],[15,2,[30,1]],[12],[1,"\\n                "],[1,[30,1]],[1,"\\n              "],[13],[1,"\\n"]],[]]]],[1]],null],[1,"        "],[13],[1,"\\n      "],[13],[1,"\\n    "],[13],[1,"\\n  "],[13],[1,"\\n"]],[]],null]],["version"],false,["if","gt","action","each","-track-array","eq"]]',moduleName:"vault/templates/components/key-version-select.hbs",isStrictMode:!1})})),define("vault/templates/components/keymgmt/distribute",["exports","@ember/template-factory"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default=(0,t.createTemplateFactory)({id:"lU4iK6ga",block:'[[[41,[30,1],[[[41,[30,0,["formErrors"]],[[[1,"    "],[8,[39,1],null,[["@type","@color"],["inline","critical"]],[["default"],[[[[1,"\\n      "],[8,[30,2,["Title"]],null,null,[["default"],[[[[1,"Error"]],[]]]]],[1,"\\n      "],[8,[30,2,["Description"]],null,null,[["default"],[[[[1,[30,0,["formErrors"]]]],[]]]]],[1,"\\n    "]],[2]]]]],[1,"\\n"]],[]],null],[1,"  "],[11,"form"],[24,0,"form-section"],[4,[38,2],["submit",[28,[37,3],[[30,0,["createDistribution"]]],null]],null],[12],[1,"\\n"],[41,[51,[30,3]],[[[1,"      "],[10,0],[14,0,"field"],[12],[1,"\\n        "],[8,[39,5],null,[["@id","@models","@onChange","@passObject","@inputValue","@subText","@wildcardLabel","@label","@fallbackComponent","@selectLimit","@backend","@disallowNewItems"],["key",[28,[37,6],["keymgmt/key"],null],[30,0,["handleKeySelect"]],true,[30,0,["formData","key"]],"Type to use the name of an existing key that you’d like to add to this provider, or to create one.","key","Key name","string-list","1",[30,1],false]],[["default"],[[[[1,"\\n"],[41,[28,[37,7],[[30,0,["validMatchError","key"]],[28,[37,8],[[30,0,["isNewKey"]]],null]],null],[[[1,"            "],[8,[39,1],[[24,0,"has-top-margin-s"]],[["@type","@color"],["inline","warning"]],[["default"],[[[[1,"\\n              "],[8,[30,4,["Description"]],null,null,[["default"],[[[[1,"\\n                "],[1,[30,0,["validMatchError","key"]]],[1,"\\n                To check compatibility,\\n                "],[8,[39,9],null,[["@icon","@iconPosition","@isHrefExternal","@href"],["docs-link","trailing",true,[28,[37,10],["/vault/docs/secrets/key-management#compatibility"],null]]],[["default"],[[[[1,"\\n                  refer to this table\\n                "]],[]]]]],[1,".\\n              "]],[]]]]],[1,"\\n            "]],[4]]]]],[1,"\\n"]],[]],null],[1,"        "]],[]]]]],[1,"\\n      "],[13],[1,"\\n"]],[]],null],[1,"\\n"],[41,[30,0,["isNewKey"]],[[[1,"      "],[10,0],[14,0,"field"],[12],[1,"\\n        "],[10,"label"],[14,0,"is-label"],[14,"for","keyType"],[12],[1,"Key Type"],[13],[1,"\\n        "],[10,2],[14,0,"sub-text"],[12],[1,"The type of cryptographic key that will be created."],[13],[1,"\\n        "],[10,0],[14,0,"control is-expanded"],[12],[1,"\\n          "],[10,0],[14,0,"select is-fullwidth"],[12],[1,"\\n            "],[11,"select"],[24,3,"keyType"],[24,1,"keyType"],[16,0,[52,[30,0,["validMatchError","key"]],"has-error-border"]],[4,[38,2],["change",[30,0,["handleKeyType"]]],null],[12],[1,"\\n              "],[10,"option"],[14,2,""],[12],[1,"\\n                Select one\\n              "],[13],[1,"\\n"],[42,[28,[37,12],[[28,[37,12],[[30,0,["keyTypes"]]],null]],null],null,[[[1,"                "],[10,"option"],[15,"selected",[28,[37,13],[[30,0,["keyType"]],[30,5]],null]],[15,2,[30,5]],[12],[1,"\\n                  "],[1,[30,5]],[1,"\\n                "],[13],[1,"\\n"]],[5]],null],[1,"            "],[13],[1,"\\n          "],[13],[1,"\\n"],[41,[30,0,["validMatchError","key"]],[[[1,"            "],[8,[39,1],[[24,0,"has-top-margin-s"]],[["@type","@color"],["inline","warning"]],[["default"],[[[[1,"\\n              "],[8,[30,6,["Description"]],null,null,[["default"],[[[[1,"\\n                "],[1,[30,0,["validMatchError","key"]]],[1,"\\n                To check compatibility,\\n                "],[8,[39,9],null,[["@icon","@iconPosition","@isHrefExternal","@href"],["docs-link","trailing",true,[28,[37,10],["/vault/docs/secrets/key-management#compatibility"],null]]],[["default"],[[[[1,"\\n                  refer to this table\\n                "]],[]]]]],[1,".\\n              "]],[]]]]],[1,"\\n            "]],[6]]]]],[1,"\\n"]],[]],null],[1,"        "],[13],[1,"\\n      "],[13],[1,"\\n"]],[]],null],[1,"\\n"],[41,[51,[30,7]],[[[1,"      "],[10,0],[14,0,"field"],[12],[1,"\\n        "],[8,[39,5],null,[["@id","@models","@onChange","@passObject","@inputValue","@subText","@label","@fallbackComponent","@selectLimit","@backend","@disallowNewItems"],["provider",[28,[37,6],["keymgmt/provider"],null],[30,0,["handleProvider"]],false,[30,0,["formData","provider"]],"Select a provider in Vault. If it doesn’t exist yet, you’ll need to add it first.","Provider","input-search","1",[30,1],true]],[["default"],[[[[1,"\\n"],[41,[30,0,["validMatchError","provider"]],[[[1,"            "],[8,[39,1],[[24,0,"has-top-margin-s"]],[["@type","@color"],["inline","warning"]],[["default"],[[[[1,"\\n              "],[8,[30,8,["Description"]],null,null,[["default"],[[[[1,"\\n                "],[1,[30,0,["validMatchError","provider"]]],[1,"\\n                To check compatibility,\\n                "],[8,[39,9],null,[["@icon","@iconPosition","@isHrefExternal","@href"],["docs-link","trailing",true,[28,[37,10],["/vault/docs/secrets/key-management#compatibility"],null]]],[["default"],[[[[1,"\\n                  refer to this table\\n                "]],[]]]]],[1,".\\n              "]],[]]]]],[1,"\\n            "]],[8]]]]],[1,"\\n"]],[]],null],[1,"        "]],[]]]]],[1,"\\n      "],[13],[1,"\\n"]],[]],null],[1,"\\n    "],[10,"fieldset"],[14,0,"field form-fieldset"],[14,1,"operations"],[15,"disabled",[30,0,["disableOperations"]]],[12],[1,"\\n      "],[10,"legend"],[14,0,"is-label"],[12],[1,"Operations"],[13],[1,"\\n      "],[10,2],[14,0,"sub-text"],[12],[1,"The types of operations this key can perform in the provider."],[13],[1,"\\n"],[42,[28,[37,12],[[28,[37,12],[[30,0,["operations"]]],null]],null],null,[[[1,"        "],[10,0],[14,0,"b-checkbox"],[12],[1,"\\n          "],[8,[39,14],[[16,1,[30,9]],[24,0,"styled"],[4,[38,2],["input",[30,0,["handleOperation"]]],null]],[["@type","@checked"],["checkbox",false]],null],[1,"\\n          "],[10,"label"],[15,"for",[30,9]],[12],[1,[28,[35,15],[[30,9]],null]],[13],[1,"\\n        "],[13],[1,"\\n"]],[9]],null],[1,"    "],[13],[1,"\\n\\n    "],[10,"fieldset"],[14,0,"field form-fieldset"],[14,1,"protection"],[12],[1,"\\n      "],[10,"legend"],[14,0,"is-label"],[12],[1,"Protection"],[13],[1,"\\n      "],[10,2],[14,0,"sub-text"],[12],[1,"Specifies the protection of the key."],[13],[1,"\\n      "],[10,0],[12],[1,"\\n        "],[8,[39,16],[[24,1,"protection-hsm"],[24,3,"hsm"],[24,0,"radio"]],[["@value","@groupValue","@onChange"],["hsm",[30,0,["formData","protection"]],[28,[37,17],[[28,[37,18],[[30,0,["formData","protection"]]],null]],null]]],null],[1,"\\n        "],[10,"label"],[14,"for","protection-hsm"],[12],[1,"HSM"],[13],[1,"\\n      "],[13],[1,"\\n      "],[10,0],[12],[1,"\\n        "],[8,[39,16],[[24,1,"protection-software"],[24,3,"software"],[24,0,"radio"]],[["@value","@groupValue","@onChange"],["software",[30,0,["formData","protection"]],[28,[37,17],[[28,[37,18],[[30,0,["formData","protection"]]],null]],null]]],null],[1,"\\n        "],[10,"label"],[14,"for","protection-software"],[12],[1,"Software"],[13],[1,"\\n      "],[13],[1,"\\n    "],[13],[1,"\\n\\n    "],[10,"hr"],[14,0,"has-background-gray-100"],[12],[13],[1,"\\n    "],[8,[39,19],null,null,[["default"],[[[[1,"\\n      "],[8,[39,20],[[16,"disabled",[30,0,["createDistribution","isRunning"]]],[24,4,"submit"]],[["@text","@icon"],[[52,[28,[37,21],[[28,[37,8],[[30,3]],null],[30,0,["isNewKey"]]],null],"Add key","Distribute key"],[52,[30,0,["createDistribution","isRunning"]],"loading"]]],null],[1,"\\n      "],[8,[39,20],[[4,[38,2],["click",[30,10]],null]],[["@text","@color"],["Cancel","secondary"]],null],[1,"\\n    "]],[]]]]],[1,"\\n  "],[13],[1,"\\n"]],[]],null]],["@backend","A","@key","A","val","A","@provider","A","op","@onClose"],false,["if","hds/alert","on","perform","unless","search-select","array","and","not","hds/link/inline","doc-link","each","-track-array","eq","input","capitalize","radio-button","fn","mut","hds/button-set","hds/button","or"]]',moduleName:"vault/templates/components/keymgmt/distribute.hbs",isStrictMode:!1})})),define("vault/templates/components/keymgmt/key-edit",["exports","@ember/template-factory"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default=(0,t.createTemplateFactory)({id:"NEwmIFo/",block:'[[[8,[39,0],null,null,[["default"],[[[[1,"\\n  "],[8,[30,1,["top"]],null,null,[["default"],[[[[1,"\\n    "],[8,[39,1],null,[["@path","@mode","@root","@showCurrent"],["vault.cluster.secrets.backend.show",[30,0,["mode"]],[30,2],true]],null],[1,"\\n  "]],[]]]]],[1,"\\n  "],[8,[30,1,["levelLeft"]],null,null,[["default"],[[[[1,"\\n    "],[10,"h1"],[14,0,"title is-3"],[12],[1,"\\n"],[41,[30,0,["isDistributing"]],[[[1,"        Distribute Key\\n"]],[]],[[[41,[28,[37,3],[[30,3],"create"],null],[[[1,"        Create Key\\n"]],[]],[[[41,[28,[37,3],[[30,3],"edit"],null],[[[1,"        Edit Key\\n"]],[]],[[[1,"        "],[1,[30,4,["id"]]],[1,"\\n      "]],[]]]],[]]]],[]]],[1,"    "],[13],[1,"\\n  "]],[]]]]],[1,"\\n"]],[1]]]]],[1,"\\n\\n"],[41,[30,0,["isDistributing"]],[[[1,"  "],[8,[39,4],null,[["@backend","@key","@onClose"],[[30,4,["backend"]],[30,4,["id"]],[28,[37,5],[[28,[37,6],[[30,0,["isDistributing"]]],null],false],null]]],null],[1,"\\n"]],[]],[[[41,[28,[37,3],[[30,0,["mode"]],"show"],null],[[[1,"    "],[10,0],[14,0,"tabs-container box is-sideless is-fullwidth is-paddingless is-marginless"],[12],[1,"\\n      "],[10,"nav"],[14,0,"tabs"],[14,"aria-label","navigation for managing keys"],[12],[1,"\\n        "],[10,"ul"],[12],[1,"\\n          "],[10,"li"],[15,0,[52,[28,[37,7],[[30,5],"versions"],null],"active"]],[12],[1,"\\n            "],[8,[39,8],null,[["@route","@model","@query"],["vault.cluster.secrets.backend.show",[30,4,["id"]],[28,[37,9],null,[["tab"],[""]]]]],[["default"],[[[[1,"\\n              Details\\n            "]],[]]]]],[1,"\\n          "],[13],[1,"\\n          "],[10,"li"],[15,0,[52,[28,[37,3],[[30,5],"versions"],null],"active"]],[12],[1,"\\n            "],[8,[39,8],null,[["@route","@model","@query"],["vault.cluster.secrets.backend.show",[30,4,["id"]],[28,[37,9],null,[["tab"],["versions"]]]]],[["default"],[[[[1,"\\n              Versions\\n            "]],[]]]]],[1,"\\n          "],[13],[1,"\\n        "],[13],[1,"\\n      "],[13],[1,"\\n    "],[13],[1,"\\n    "],[8,[39,10],null,null,[["default"],[[[[1,"\\n      "],[8,[39,11],null,null,[["default"],[[[[1,"\\n"],[41,[51,[30,4,["distribution"]]],[[[1,"          "],[8,[39,13],[[24,0,"toolbar-button"],[4,[38,14],["click",[28,[37,5],[[28,[37,6],[[30,0,["isDistributing"]]],null],true],null]],null]],[["@text","@color"],["Distribute key","secondary"]],null],[1,"\\n"]],[]],null],[41,[30,4,["canDelete"]],[[[1,"          "],[8,[39,13],[[24,0,"toolbar-button"],[16,"disabled",[28,[37,15],[[30,4,["deletionAllowed"]]],null]],[4,[38,14],["click",[28,[37,5],[[28,[37,6],[[30,0,["isDeleteModalOpen"]]],null],true],null]],null]],[["@text","@color"],["Destroy key","secondary"]],null],[1,"\\n"]],[]],null],[41,[30,4,["provider"]],[[[1,"          "],[8,[39,16],[[24,0,"toolbar-button"]],[["@buttonText","@buttonColor","@onConfirmAction","@confirmTitle","@confirmMessage","@isRunning"],["Remove key","secondary",[28,[37,17],[[30,0,["removeKey"]]],null],"Remove this key?","This will remove all versions of the key from the KMS provider. The key will stay in Vault.",[30,0,["removeKey","isRunning"]]]],null],[1,"\\n"]],[]],null],[41,[28,[37,18],[[30,4,["canDelete"]],[30,4,["provider"]]],null],[[[1,"          "],[10,0],[14,0,"toolbar-separator"],[12],[13],[1,"\\n"]],[]],null],[1,"        "],[8,[39,16],[[24,0,"toolbar-button"]],[["@buttonText","@buttonColor","@modalColor","@onConfirmAction","@confirmTitle","@confirmMessage","@color","@isRunning"],["Rotate key","secondary","warning",[28,[37,17],[[30,0,["rotateKey"]]],null],"Rotate this key?","After rotation, all key actions will default to using the newest version of the key.","warning",[30,0,["rotateKey","isRunning"]]]],null],[1,"\\n"],[41,[30,4,["canEdit"]],[[[1,"          "],[8,[39,19],null,[["@secret","@mode","@replace","@queryParams"],[[30,4,["id"]],"edit",true,[28,[37,9],null,[["itemType"],["key"]]]]],[["default"],[[[[1,"\\n            Edit key\\n          "]],[]]]]],[1,"\\n"]],[]],null],[1,"      "]],[]]]]],[1,"\\n    "]],[]]]]],[1,"\\n"]],[]],null],[1,"\\n"],[41,[30,0,["isMutable"]],[[[1,"    "],[11,"form"],[4,[38,14],["submit",[28,[37,17],[[30,0,["saveKey"]]],null]],null],[12],[1,"\\n      "],[10,0],[14,0,"box is-sideless is-fullwidth is-marginless"],[12],[1,"\\n"],[44,[[52,[28,[37,3],[[30,3],"create"],null],"createFields","updateFields"]],[[[42,[28,[37,22],[[28,[37,22],[[28,[37,23],[[30,4],[30,6]],null]],null]],null],null,[[[1,"            "],[8,[39,24],null,[["@attr","@model"],[[30,7],[30,4]]],null],[1,"\\n"]],[7]],null],[1,"          "],[10,0],[14,0,"field is-grouped box is-fullwidth is-bottomless"],[12],[1,"\\n            "],[8,[39,25],null,null,[["default"],[[[[1,"\\n              "],[8,[39,13],[[16,"disabled",[30,0,["saveTask","isRunning"]]],[24,4,"submit"]],[["@text","@icon"],[[52,[30,0,["isCreating"]],"Create key","Update"],[52,[30,0,["saveTask","isRunning"]],"loading"]]],null],[1,"\\n              "],[8,[39,13],[[16,"disabled",[30,0,["savekey","isRunning"]]]],[["@text","@color","@route","@model","@query"],["Cancel","secondary",[52,[30,0,["isCreating"]],[30,2,["path"]],"vault.cluster.secrets.backend.show"],[52,[30,0,["isCreating"]],[30,2,["model"]],[30,4,["id"]]],[52,[51,[30,0,["isCreating"]]],[28,[37,9],null,[["itemType"],["key"]]],[28,[37,9],null,[["itemType"],[""]]]]]],null],[1,"\\n            "]],[]]]]],[1,"\\n          "],[13],[1,"\\n"]],[6]]],[1,"      "],[13],[1,"\\n    "],[13],[1,"\\n"]],[]],[[[41,[28,[37,3],[[30,5],"versions"],null],[[[42,[28,[37,22],[[28,[37,22],[[30,4,["versions"]]],null]],null],null,[[[1,"      "],[10,0],[14,0,"list-item-row"],[12],[1,"\\n        "],[10,0],[14,0,"columns is-mobile"],[12],[1,"\\n          "],[10,0],[14,0,"column is-3 has-text-weight-bold"],[12],[1,"\\n            "],[8,[39,26],[[24,0,"has-text-grey-light"]],[["@name"],["history"]],null],[1,"\\n            "],[10,1],[12],[1,"Version "],[1,[30,8,["id"]]],[13],[1,"\\n          "],[13],[1,"\\n          "],[10,0],[14,0,"column is-3 has-text-grey"],[12],[1,"\\n            "],[1,[28,[35,27],[[30,8,["creation_time"]]],[["addSuffix"],[true]]]],[1,"\\n          "],[13],[1,"\\n          "],[10,0],[14,0,"column is-6 is-flex-center"],[12],[1,"\\n"],[41,[28,[37,3],[[30,4,["minEnabledVersion"]],[30,8,["id"]]],null],[[[1,"              "],[8,[39,26],[[24,0,"has-text-success"]],[["@name"],["check-circle-fill"]],null],[1,"\\n              "],[10,1],[12],[1,"Current mininum enabled version"],[13],[1,"\\n"]],[]],null],[1,"          "],[13],[1,"\\n        "],[13],[1,"\\n      "],[13],[1,"\\n"]],[8]],null]],[]],[[[1,"    "],[10,0],[14,0,"has-top-margin-xl has-bottom-margin-s"],[12],[1,"\\n      "],[10,"h2"],[14,0,"title is-5 has-border-bottom-light has-bottom-padding-s"],[12],[1,"Key details"],[13],[1,"\\n"],[42,[28,[37,22],[[28,[37,22],[[30,4,["showFields"]]],null]],null],null,[[[1,"        "],[8,[39,28],null,[["@alwaysRender","@label","@value","@defaultShown","@formatDate"],[true,[28,[37,29],[[28,[37,18],[[30,9,["options","label"]],[28,[37,30],[[28,[37,31],[[30,9,["name"]]],null]],null]],null]],null],[28,[37,23],[[30,4],[30,9,["name"]]],null],[30,9,["options","defaultShown"]],[52,[28,[37,3],[[30,9,["type"]],"date"],null],"MMM d yyyy, h:mm:ss aaa"]]],null],[1,"\\n"]],[9]],null],[1,"    "],[13],[1,"\\n    "],[10,0],[14,0,"has-top-margin-xl has-bottom-margin-s"],[12],[1,"\\n      "],[10,"h2"],[15,0,[29,["title is-5 ",[52,[30,4,["distribution"]],"has-border-bottom-light","is-borderless"]]]],[12],[1,"\\n        Distribution details\\n      "],[13],[1,"\\n"],[41,[30,4,["provider","permissionsError"]],[[[1,"        "],[8,[39,32],null,[["@title","@subTitle","@message","@icon"],["You are not authorized","Error 403",[28,[37,33],["You must be granted permissions to see whether this key is distributed. Ask your administrator if you think you should have access to LIST /",[30,4,["backend"]],"/key/",[30,4,["name"]],"/kms."],null],"minus-circle"]],null],[1,"\\n"]],[]],[[[41,[28,[37,34],[[30,4,["provider"]]],null],[[[1,"        "],[8,[39,32],null,[["@title","@message"],["Key not distributed","When this key is distributed to a destination, those details will appear here."]],[["default"],[[[[1,"\\n"],[41,[30,4,["canListProviders"]],[[[1,"            "],[8,[39,13],[[4,[38,14],["click",[28,[37,5],[[28,[37,6],[[30,0,["isDistributing"]]],null],true],null]],null]],[["@text","@icon","@iconPosition","@color"],["Distribute key","chevron-right","trailing","tertiary"]],null],[1,"\\n"]],[]],null],[1,"        "]],[]]]]],[1,"\\n"]],[]],[[[1,"        "],[8,[39,28],null,[["@label","@value"],["Distributed",[30,4,["provider"]]]],[["default"],[[[[1,"\\n          "],[8,[39,8],null,[["@route","@model","@query"],["vault.cluster.secrets.backend.show",[30,4,["provider"]],[28,[37,9],null,[["itemType"],["provider"]]]]],[["default"],[[[[1,"\\n            "],[8,[39,26],[[24,0,"has-text-success"]],[["@name"],["check-circle-fill"]],null],[1,[30,4,["provider"]]],[1,"\\n          "]],[]]]]],[1,"\\n        "]],[]]]]],[1,"\\n"],[41,[30,4,["distribution"]],[[[42,[28,[37,22],[[28,[37,22],[[30,4,["distFields"]]],null]],null],null,[[[1,"            "],[8,[39,28],null,[["@alwaysRender","@label","@value","@defaultShown","@helperText","@formatDate"],[true,[28,[37,29],[[28,[37,18],[[30,10,["label"]],[28,[37,30],[[28,[37,31],[[30,10,["name"]]],null]],null]],null]],null],[52,[28,[37,3],[[30,10,["name"]],"protection"],null],[28,[37,35],[[28,[37,23],[[30,4,["distribution"]],[30,10,["name"]]],null]],null],[28,[37,23],[[30,4,["distribution"]],[30,10,["name"]]],null]],[30,10,["defaultShown"]],[30,10,["subText"]],[52,[28,[37,3],[[30,10,["type"]],"date"],null],"MMM d yyyy, h:mm:ss aaa"]]],null],[1,"\\n"]],[10]],null]],[]],[[[1,"          "],[8,[39,32],null,[["@title","@subTitle","@message","@icon"],["You are not authorized","Error 403",[28,[37,33],["You must be granted permissions to view distribution details for this key. Ask your administrator if you think you should have access to GET /",[30,4,["backend"]],"/key/",[30,4,["name"]],"/kms."],null],"minus-circle"]],null],[1,"\\n"]],[]]],[1,"      "]],[]]]],[]]],[1,"    "],[13],[1,"\\n  "]],[]]]],[]]]],[]]],[1,"\\n"],[8,[39,36],null,[["@title","@onClose","@isActive","@confirmText","@toConfirmMsg","@onConfirm"],["Destroy key?",[28,[37,5],[[28,[37,6],[[30,0,["isDeleteModalOpen"]]],null],false],null],[30,0,["isDeleteModalOpen"]],[30,4,["name"]],"deleting the key",[28,[37,5],[[30,0,["deleteKey"]],[30,4,["id"]]],null]]],[["default"],[[[[1,"\\n  "],[10,2],[12],[1,"\\n    Destroying the\\n    "],[10,"strong"],[12],[1,[30,4,["name"]]],[13],[1,"\\n    key means that the underlying data will be lost and the key will become unusable for cryptographic operations. It is\\n    unrecoverable.\\n  "],[13],[1,"\\n  "],[8,[39,37],null,[["@model","@errorMessage"],[[30,0,["model"]],[30,0,["error"]]]],null],[1,"\\n"]],[]]]]]],["p","@root","@mode","@model","@tab","fieldsKey","attr","version","attr","attr"],false,["page-header","key-value-header","if","eq","keymgmt/distribute","fn","mut","not-eq","link-to","hash","toolbar","toolbar-actions","unless","hds/button","on","not","confirm-action","perform","or","toolbar-secret-link","let","each","-track-array","get","form-field","hds/button-set","icon","date-from-now","info-table-row","capitalize","humanize","dasherize","empty-state","concat","is-empty-value","uppercase","confirmation-modal","message-error"]]',moduleName:"vault/templates/components/keymgmt/key-edit.hbs",isStrictMode:!1})})),define("vault/templates/components/keymgmt/provider-edit",["exports","@ember/template-factory"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default=(0,t.createTemplateFactory)({id:"UmSNnpKJ",block:'[[[8,[39,0],null,null,[["default"],[[[[1,"\\n  "],[8,[30,1,["top"]],null,null,[["default"],[[[[1,"\\n    "],[8,[39,1],null,[["@path","@mode","@root","@showCurrent"],["vault.cluster.secrets.backend.show",[30,2],[30,3],true]],null],[1,"\\n  "]],[]]]]],[1,"\\n  "],[8,[30,1,["levelLeft"]],null,null,[["default"],[[[[1,"\\n    "],[10,"h1"],[14,0,"title is-3"],[12],[1,"\\n"],[41,[30,0,["isDistributing"]],[[[1,"        Distribute Key to Provider\\n"]],[]],[[[41,[30,0,["isShowing"]],[[[1,"        Provider\\n        "],[10,1],[14,0,"has-font-weight-normal"],[12],[1,[30,4,["id"]]],[13],[1,"\\n"]],[]],[[[1,"        "],[1,[52,[30,0,["isCreating"]],"Create Provider","Update Credentials"]],[1,"\\n      "]],[]]]],[]]],[1,"    "],[13],[1,"\\n  "]],[]]]]],[1,"\\n"]],[1]]]]],[1,"\\n\\n"],[41,[30,0,["isDistributing"]],[[[1,"  "],[8,[39,3],null,[["@backend","@provider","@onClose"],[[30,4,["backend"]],[30,4,["id"]],[28,[37,4],[[28,[37,5],[[30,0,["isDistributing"]]],null],false],null]]],null],[1,"\\n"]],[]],[[[41,[30,0,["isShowing"]],[[[1,"    "],[10,0],[14,0,"tabs-container box is-sideless is-fullwidth is-paddingless is-marginless"],[12],[1,"\\n      "],[10,"nav"],[14,0,"tabs"],[14,"aria-label","navigation for managing providers"],[12],[1,"\\n        "],[10,"ul"],[12],[1,"\\n          "],[10,"li"],[15,0,[52,[51,[30,0,["viewingKeys"]]],"active"]],[12],[1,"\\n            "],[8,[39,7],null,[["@route","@model","@query"],["vault.cluster.secrets.backend.show",[30,4,["id"]],[28,[37,8],null,[["tab"],[""]]]]],[["default"],[[[[1,"\\n              Details\\n            "]],[]]]]],[1,"\\n          "],[13],[1,"\\n"],[41,[30,4,["canListKeys"]],[[[1,"            "],[10,"li"],[15,0,[52,[30,0,["viewingKeys"]],"active"]],[12],[1,"\\n              "],[8,[39,7],null,[["@route","@model","@query"],["vault.cluster.secrets.backend.show",[30,4,["id"]],[28,[37,8],null,[["tab"],["keys"]]]]],[["default"],[[[[1,"\\n                Keys\\n              "]],[]]]]],[1,"\\n            "],[13],[1,"\\n"]],[]],null],[1,"        "],[13],[1,"\\n      "],[13],[1,"\\n    "],[13],[1,"\\n"],[41,[51,[30,0,["viewingKeys"]]],[[[1,"      "],[8,[39,9],[[16,"aria-label",[29,["options for managing for key/management provider ",[30,4,["id"]]]]]],null,[["default"],[[[[1,"\\n        "],[8,[39,10],null,null,[["default"],[[[[1,"\\n"],[41,[30,4,["canDelete"]],[[[1,"            "],[8,[39,11],[[24,0,"toolbar-button"]],[["@buttonText","@buttonColor","@confirmTitle","@onConfirmAction","@disabledMessage"],["Delete provider","secondary","Delete this provider?",[30,0,["onDelete"]],[52,[30,4,["keys","length"]],[28,[37,12],["This provider cannot be deleted until all ",[30,4,["keys","length"]]," key(s) distributed to it are revoked. This can be done from the Keys tab."],null]]]],null],[1,"\\n"]],[]],null],[41,[28,[37,13],[[30,4,["canDelete"]],[28,[37,14],[[30,4,["canListKeys"]],[30,4,["canEdit"]]],null]],null],[[[1,"            "],[10,0],[14,0,"toolbar-separator"],[12],[13],[1,"\\n"]],[]],null],[41,[28,[37,14],[[30,4,["canListKeys"]],[30,4,["canCreateKeys"]]],null],[[[1,"            "],[8,[39,15],[[24,0,"toolbar-button"],[4,[38,16],["click",[28,[37,4],[[28,[37,5],[[30,0,["isDistributing"]]],null],true],null]],null]],[["@text","@icon","@iconPosition","@color"],["Distribute key","chevron-right","trailing","secondary"]],null],[1,"\\n"]],[]],null],[41,[30,4,["canEdit"]],[[[1,"            "],[8,[39,17],[[16,"disabled",[28,[37,18],[[30,4,["canEdit"]]],null]]],[["@secret","@mode","@replace","@queryParams"],[[30,4,["id"]],"edit",true,[28,[37,8],null,[["itemType"],["provider"]]]]],[["default"],[[[[1,"\\n              Update credentials\\n            "]],[]]]]],[1,"\\n"]],[]],null],[1,"        "]],[]]]]],[1,"\\n      "]],[]]]]],[1,"\\n"]],[]],null]],[]],[[[1,"    "],[11,"form"],[24,"aria-label","update credentials"],[4,[38,16],["submit",[30,0,["onSave"]]],null],[12],[1,"\\n      "],[10,0],[14,0,"box is-sideless is-fullwidth is-marginless"],[12],[1,"\\n"],[41,[30,0,["isCreating"]],[[[42,[28,[37,20],[[28,[37,20],[[30,4,["createFields"]]],null]],null],null,[[[41,[28,[37,21],[[30,6],2],null],[[[1,"              "],[10,0],[14,0,"has-border-top-light"],[12],[1,"\\n                "],[10,"h2"],[14,0,"title is-5 has-top-margin-l has-bottom-margin-m"],[12],[1,"\\n                  Provider configuration\\n                "],[13],[1,"\\n              "],[13],[1,"\\n"],[41,[30,4,["provider"]],[[[1,"                "],[8,[39,22],null,[["@attr","@model","@modelValidations"],[[30,5],[30,4],[30,0,["modelValidations"]]]],null],[1,"\\n"]],[]],[[[1,"                "],[8,[39,23],null,[["@title","@message"],["No provider selected","Select a provider in order to configure it."]],null],[1,"\\n"]],[]]]],[]],[[[1,"              "],[8,[39,22],null,[["@attr","@model","@modelValidations"],[[30,5],[30,4],[30,0,["modelValidations"]]]],null],[1,"\\n"]],[]]]],[5,6]],null]],[]],null],[41,[51,[30,0,["isCreating"]]],[[[1,"          "],[10,"h2"],[14,0,"title is-5"],[12],[1,"\\n            New credentials\\n          "],[13],[1,"\\n          "],[10,2],[14,0,"sub-text has-bottom-margin-m"],[12],[1,"\\n            Old credentials cannot be read and will be lost as soon as new ones are added. Do this carefully.\\n          "],[13],[1,"\\n"]],[]],null],[42,[28,[37,20],[[28,[37,20],[[30,4,["credentialFields"]]],null]],null],null,[[[1,"          "],[8,[39,22],null,[["@attr","@model","@modelValidations"],[[30,7],[30,4],[30,0,["modelValidations"]]]],null],[1,"\\n"]],[7]],null],[1,"      "],[13],[1,"\\n      "],[10,0],[14,0,"field is-grouped box is-fullwidth is-bottomless"],[12],[1,"\\n        "],[8,[39,24],null,null,[["default"],[[[[1,"\\n          "],[8,[39,15],[[16,"disabled",[30,0,["saveTask","isRunning"]]],[24,4,"submit"]],[["@text","@icon"],[[52,[30,0,["isCreating"]],"Create provider","Update"],[52,[30,0,["saveTask","isRunning"]],"loading"]]],null],[1,"\\n          "],[8,[39,15],[[16,"disabled",[30,0,["saveTask","isRunning"]]]],[["@text","@color","@route","@model","@query"],["Cancel","secondary",[52,[30,0,["isCreating"]],[30,3,["path"]],"vault.cluster.secrets.backend.show"],[52,[30,0,["isCreating"]],[30,3,["model"]],[30,4,["id"]]],[52,[30,0,["isCreating"]],[28,[37,8],null,[["tab"],["provider"]]],[28,[37,8],null,[["itemType"],["provider"]]]]]],null],[1,"\\n        "]],[]]]]],[1,"\\n      "],[13],[1,"\\n    "],[13],[1,"\\n"]],[]]],[1,"\\n"],[41,[30,0,["isShowing"]],[[[1,"    "],[10,0],[14,0,"has-bottom-margin-s"],[12],[1,"\\n"],[41,[30,0,["viewingKeys"]],[[[44,[[28,[37,26],["keymgmt","key"],null]],[[[41,[30,4,["keys","meta","total"]],[[[42,[28,[37,20],[[28,[37,20],[[30,4,["keys"]]],null]],null],null,[[[1,"              "],[8,[39,27],null,[["@item","@backendModel","@backendType","@delete","@itemPath","@itemType","@modelType","@options"],[[30,9],[30,3],"keymgmt",[28,[37,4],[[30,0,["onDeleteKey"]],[30,9]],null],[28,[37,12],[[30,8,["modelPrefix"]],[30,9,["id"]]],null],[30,8,["item"]],[30,10],[30,8]]],null],[1,"\\n"]],[9]],null],[1,"            "],[8,[39,28],null,[["@currentPage","@currentPageSize","@route","@showSizeSelector","@totalItems","@onPageChange"],[[30,4,["keys","meta","currentPage"]],[30,4,["keys","meta","pageSize"]],"vault.cluster.secrets.backend.show",false,[30,4,["keys","meta","total"]],[28,[37,29],[[30,0,["fetchKeys"]]],null]]],null],[1,"\\n\\n"]],[]],[[[1,"            "],[8,[39,23],null,[["@title","@message"],["No keys for this provider","Keys for this provider will be listed here. Add a key to get started."]],[["default"],[[[[1,"\\n              "],[8,[39,30],null,[["@icon","@text","@route","@query"],["plus","Create key","vault.cluster.secrets.backend.create-root",[28,[37,8],null,[["itemType"],["key"]]]]],null],[1,"\\n            "]],[]]]]],[1,"\\n"]],[]]]],[8]]]],[]],[[[42,[28,[37,20],[[28,[37,20],[[30,4,["showFields"]]],null]],null],null,[[[41,[30,11,["hasBlock"]],[[[1,"            "],[8,[39,31],null,[["@label","@value"],[[30,11,["label"]],[30,11,["value"]]]],[["default"],[[[[1,"\\n"],[41,[30,11,["icon"]],[[[1,"                "],[8,[39,32],[[24,0,"icon"]],[["@name"],[[30,11,["icon"]]]],null],[1,"\\n"]],[]],null],[41,[30,11,["isLink"]],[[[1,"                "],[8,[39,7],null,[["@route","@model","@query"],["vault.cluster.secrets.backend.show",[30,4,["id"]],[28,[37,8],null,[["tab"],["keys"]]]]],[["default"],[[[[1,"\\n                  "],[1,[30,11,["value"]]],[1,"\\n                "]],[]]]]],[1,"\\n"]],[]],[[[1,"                "],[1,[30,11,["value"]]],[1,"\\n"]],[]]],[1,"            "]],[]]]]],[1,"\\n"]],[]],[[[1,"            "],[8,[39,31],null,[["@alwaysRender","@label","@value","@defaultShown","@formatDate"],[true,[28,[37,33],[[28,[37,14],[[30,11,["options","label"]],[28,[37,34],[[28,[37,35],[[30,11,["name"]]],null]],null]],null]],null],[28,[37,36],[[30,4],[30,11,["name"]]],null],[30,11,["options","defaultShown"]],[52,[28,[37,21],[[30,11,["type"]],"date"],null],"MMM d yyyy, h:mm:ss aaa"]]],null],[1,"\\n"]],[]]]],[11]],null]],[]]],[1,"    "],[13],[1,"\\n"]],[]],null]],[]]]],["p","@mode","@root","@model","attr","index","cred","options","key","@modelType","attr"],false,["page-header","key-value-header","if","keymgmt/distribute","fn","mut","unless","link-to","hash","toolbar","toolbar-actions","confirm-action","concat","and","or","hds/button","on","toolbar-secret-link","not","each","-track-array","eq","form-field","empty-state","hds/button-set","let","options-for-backend","secret-list/item","hds/pagination/numbered","perform","hds/link/standalone","info-table-row","icon","capitalize","humanize","dasherize","get"]]',moduleName:"vault/templates/components/keymgmt/provider-edit.hbs",isStrictMode:!1})})),define("vault/templates/components/license-banners",["exports","@ember/template-factory"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default=(0,t.createTemplateFactory)({id:"tiN22UcT",block:'[[[41,[28,[37,1],[[30,0,["licenseExpired"]],[28,[37,2],[[30,0,["expiredDismissed"]]],null]],null],[[[1,"  "],[8,[39,3],null,[["@type","@color","@onDismiss"],["inline","critical",[28,[37,4],[[30,0,["dismissBanner"]],"expired"],null]]],[["default"],[[[[1,"\\n    "],[8,[30,1,["Title"]],null,null,[["default"],[[[[1,"License expired"]],[]]]]],[1,"\\n    "],[8,[30,1,["Description"]],null,null,[["default"],[[[[1,"\\n      Your Vault license expired on\\n      "],[1,[28,[35,5],[[30,2],"MMM d, yyyy"],null]],[1,". Add a new license to your configuration and restart Vault.\\n    "]],[]]]]],[1,"\\n    "],[8,[30,1,["Description"]],[[24,0,"has-top-margin-xs"]],null,[["default"],[[[[1,"\\n      "],[8,[39,6],null,[["@path"],["/vault/tutorials/enterprise/hashicorp-enterprise-license"]],[["default"],[[[[1,"\\n        Read documentation\\n        "],[8,[39,7],null,[["@name"],["learn-link"]],null],[1,"\\n      "]],[]]]]],[1,"\\n    "]],[]]]]],[1,"\\n  "]],[1]]]]],[1,"\\n"]],[]],[[[41,[28,[37,1],[[28,[37,8],[[30,0,["licenseExpiringInDays"]],30],null],[28,[37,2],[[30,0,["warningDismissed"]]],null]],null],[[[1,"  "],[8,[39,3],null,[["@type","@color","@onDismiss"],["inline","warning",[28,[37,4],[[30,0,["dismissBanner"]],"warning"],null]]],[["default"],[[[[1,"\\n    "],[8,[30,3,["Title"]],null,null,[["default"],[[[[1,"Vault license expiring"]],[]]]]],[1,"\\n    "],[8,[30,3,["Description"]],null,null,[["default"],[[[[1,"\\n      Your Vault license will expire in\\n      "],[1,[30,0,["licenseExpiringInDays"]]],[1,"\\n      days at\\n      "],[1,[28,[35,5],[[30,2],"hh:mm:ss a"],null]],[1,"\\n      on\\n      "],[1,[28,[35,5],[[30,2],"MMM d, yyyy"],null]],[1,".\\n      "],[1,[52,[30,4],"Add a new license to your configuration.","Keep in mind that your next license will need to be autoloaded."]],[1,"\\n    "]],[]]]]],[1,"\\n    "],[8,[30,3,["Description"]],[[24,0,"has-top-margin-xs"]],null,[["default"],[[[[1,"\\n      "],[8,[39,6],null,[["@path"],["/vault/tutorials/enterprise/hashicorp-enterprise-license"]],[["default"],[[[[1,"\\n        Read documentation\\n        "],[8,[39,7],null,[["@name"],["learn-link"]],null],[1,"\\n      "]],[]]]]],[1,"\\n    "]],[]]]]],[1,"\\n  "]],[3]]]]],[1,"\\n"]],[]],null]],[]]]],["A","@expiry","A","@autoloaded"],false,["if","and","not","hds/alert","fn","date-format","doc-link","icon","lte"]]',moduleName:"vault/templates/components/license-banners.hbs",isStrictMode:!1})})),define("vault/templates/components/link-status",["exports","@ember/template-factory"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default=(0,t.createTemplateFactory)({id:"xq8OFRbG",block:'[[[41,[28,[37,1],[[30,0,["state"]],[30,0,["version","isEnterprise"]]],null],[[[1,"  "],[8,[39,2],null,[["@type","@color"],["page",[52,[28,[37,3],[[30,0,["state"]],"connected"],null],"neutral","warning"]]],[["default"],[[[[1,"\\n    "],[8,[30,1,["Title"]],null,null,[["default"],[[[[1,"\\n"],[41,[28,[37,3],[[30,0,["state"]],"connected"],null],[[[1,"        This self-managed Vault is linked to\\n        "],[8,[39,4],null,[["@href"],["https://portal.cloud.hashicorp.com/sign-in"]],[["default"],[[[[1,"HCP."]],[]]]]],[1,"\\n"]],[]],[[[1,"        Error connecting to HCP\\n"]],[]]],[1,"    "]],[]]]]],[1,"\\n"],[41,[30,0,["error"]],[[[1,"      "],[8,[30,1,["Description"]],null,null,[["default"],[[[[1,"\\n        Since\\n        "],[1,[30,0,["timestamp"]]],[1,",\\n        "],[1,[30,0,["error"]]],[1,". Check the logs for more information.\\n      "]],[]]]]],[1,"\\n"]],[]],null],[1,"  "]],[1]]]]],[1,"\\n"]],[]],null]],["A"],false,["if","and","hds/alert","eq","hds/link/inline"]]',moduleName:"vault/templates/components/link-status.hbs",isStrictMode:!1})})),define("vault/templates/components/logo-splash",["exports","@ember/template-factory"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default=(0,t.createTemplateFactory)({id:"8m5nRyew",block:'[[[10,0],[14,0,"is-flex-v-centered is-flex-grow-1"],[12],[1,"\\n  "],[10,0],[14,0,"columns is-centered"],[12],[1,"\\n    "],[10,0],[14,0,"column is-narrow has-text-centered has-text-grey-dark has-current-color-fill"],[12],[1,"\\n      "],[8,[39,0],null,null,null],[1,"\\n    "],[13],[1,"\\n  "],[13],[1,"\\n"],[13]],[],false,["logo-edition"]]',moduleName:"vault/templates/components/logo-splash.hbs",isStrictMode:!1})})),define("vault/templates/components/mfa/login-enforcement-list-item",["exports","@ember/template-factory"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default=(0,t.createTemplateFactory)({id:"6/jeJg30",block:'[[[8,[39,0],[[24,0,"list-item-row"]],[["@params"],[[28,[37,1],["vault.cluster.access.mfa.enforcements.enforcement",[30,1,["id"]]],null]]],[["default"],[[[[1,"\\n  "],[10,0],[14,0,"level is-mobile"],[12],[1,"\\n    "],[10,0],[14,0,"level-left"],[12],[1,"\\n      "],[10,0],[12],[1,"\\n        "],[8,[39,2],null,[["@name"],["lock"]],null],[1,"\\n        "],[10,1],[14,0,"has-text-weight-semibold has-text-black"],[12],[1,"\\n          "],[1,[30,1,["name"]]],[1,"\\n        "],[13],[1,"\\n      "],[13],[1,"\\n    "],[13],[1,"\\n    "],[10,0],[14,0,"level-right is-flex is-paddingless is-marginless"],[12],[1,"\\n      "],[10,0],[14,0,"level-item"],[12],[1,"\\n        "],[8,[39,3],null,[["@isInline","@listPosition"],[true,"bottom-right"]],[["default"],[[[[1,"\\n          "],[8,[30,2,["ToggleIcon"]],null,[["@icon","@text","@hasChevron"],["more-horizontal","Manage M-F-A enforcement",false]],null],[1,"\\n          "],[8,[30,2,["Interactive"]],null,[["@text","@route","@model"],["Details","vault.cluster.access.mfa.enforcements.enforcement",[30,1,["name"]]]],null],[1,"\\n          "],[8,[30,2,["Interactive"]],null,[["@text","@route","@model"],["Edit","vault.cluster.access.mfa.enforcements.enforcement.edit",[30,1,["name"]]]],null],[1,"\\n        "]],[2]]]]],[1,"\\n      "],[13],[1,"\\n    "],[13],[1,"\\n  "],[13],[1,"\\n"]],[]]]]]],["@model","dd"],false,["linked-block","array","icon","hds/dropdown"]]',moduleName:"vault/templates/components/mfa/login-enforcement-list-item.hbs",isStrictMode:!1})})),define("vault/templates/components/mfa/method-form",["exports","@ember/template-factory"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default=(0,t.createTemplateFactory)({id:"PgvERNR0",block:'[[[11,0],[24,0,"box is-sideless is-fullwidth is-marginless"],[17,1],[12],[1,"\\n"],[42,[28,[37,1],[[28,[37,1],[[30,2,["attrs"]]],null]],null],null,[[[1,"    "],[8,[39,2],null,[["@attr","@model","@modelValidations"],[[30,3],[30,2],[28,[37,3],[[30,4],[30,0,["editValidations"]]],null]]],null],[1,"\\n"]],[3]],null],[13],[1,"\\n"],[41,[30,5],[[[1,"  "],[10,0],[14,0,"field is-grouped-split box is-fullwidth is-bottomless"],[12],[1,"\\n    "],[8,[39,5],null,null,[["default"],[[[[1,"\\n      "],[8,[39,6],[[16,"disabled",[30,0,["save","isRunning"]]],[4,[38,7],["click",[30,0,["initSave"]]],null]],[["@text","@icon"],["Save",[52,[30,0,["save","isRunning"]],"loading"]]],null],[1,"\\n      "],[8,[39,6],[[16,"disabled",[30,0,["save","isRunning"]]],[4,[38,7],["click",[30,0,["cancel"]]],null]],[["@text","@color"],["Cancel","secondary"]],null],[1,"\\n    "]],[]]]]],[1,"\\n  "],[13],[1,"\\n"]],[]],null],[1,"\\n"],[8,[39,8],null,[["@title","@onClose","@isActive","@confirmText","@onConfirm"],[[29,["Edit ",[30,2,["type"]]," configuration?"]],[28,[37,9],[[30,0],[28,[37,10],[[30,0,["isEditModalActive"]]],null],false],null],[30,0,["isEditModalActive"]],[30,2,["type"]],[28,[37,11],[[30,0,["save"]]],null]]],[["default"],[[[[1,"\\n  "],[10,2],[12],[1,"\\n    Editing this configuration will have an impact on all authentication types, methods, groups and entities which make use\\n    of this MFA method. Please make sure you want to make these changes before doing so.\\n  "],[13],[1,"\\n"]],[]]]]]],["&attrs","@model","attr","@validations","@hasActions"],false,["each","-track-array","form-field","or","if","hds/button-set","hds/button","on","confirmation-modal","action","mut","perform"]]',moduleName:"vault/templates/components/mfa/method-form.hbs",isStrictMode:!1})})),define("vault/templates/components/mfa/method-list-item",["exports","@ember/template-factory"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default=(0,t.createTemplateFactory)({id:"s0w5/Y6q",block:'[[[8,[39,0],[[24,0,"list-item-row"]],[["@params"],[[28,[37,1],["vault.cluster.access.mfa.methods.method",[30,1,["id"]]],null]]],[["default"],[[[[1,"\\n  "],[10,0],[14,0,"level is-mobile"],[12],[1,"\\n    "],[10,0],[14,0,"level-left"],[12],[1,"\\n      "],[10,0],[14,0,"is-flex-row"],[12],[1,"\\n        "],[8,[39,2],[[24,0,"has-text-grey"]],[["@size","@name"],["24",[30,1,["icon"]]]],null],[1,"\\n        "],[10,0],[12],[1,"\\n          "],[10,1],[14,0,"has-text-weight-semibold has-text-black"],[12],[1,"\\n            "],[1,[30,1,["name"]]],[1,"\\n          "],[13],[1,"\\n          "],[10,1],[14,0,"tag has-left-margin-xs"],[12],[1,"\\n            "],[1,[30,1,["id"]]],[1,"\\n          "],[13],[1,"\\n          "],[10,0],[14,0,"has-top-margin-xs"],[12],[1,"\\n            "],[10,"code"],[14,0,"is-size-9"],[12],[1,"\\n              Namespace:\\n              "],[1,[30,1,["namespace_id"]]],[1,"\\n            "],[13],[1,"\\n          "],[13],[1,"\\n        "],[13],[1,"\\n      "],[13],[1,"\\n    "],[13],[1,"\\n    "],[10,0],[14,0,"level-right is-flex is-paddingless is-marginless"],[12],[1,"\\n      "],[10,0],[14,0,"level-item"],[12],[1,"\\n        "],[8,[39,3],null,[["@isInline","@listPosition"],[true,"bottom-right"]],[["default"],[[[[1,"\\n          "],[8,[30,2,["ToggleIcon"]],null,[["@icon","@text","@hasChevron"],["more-horizontal","Manage M-F-A method",false]],null],[1,"\\n          "],[8,[30,2,["Interactive"]],null,[["@text","@route","@model"],["Details","vault.cluster.access.mfa.methods.method",[30,1,["id"]]]],null],[1,"\\n          "],[8,[30,2,["Interactive"]],null,[["@text","@route","@model"],["Edit","vault.cluster.access.mfa.methods.method.edit",[30,1,["id"]]]],null],[1,"\\n        "]],[2]]]]],[1,"\\n      "],[13],[1,"\\n    "],[13],[1,"\\n  "],[13],[1,"\\n"]],[]]]]]],["@model","dd"],false,["linked-block","array","icon","hds/dropdown"]]',moduleName:"vault/templates/components/mfa/method-list-item.hbs",isStrictMode:!1})})),define("vault/templates/components/mfa/mfa-form",["exports","@ember/template-factory"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default=(0,t.createTemplateFactory)({id:"ibmyKF2x",block:'[[[10,0],[14,0,"auth-form"],[12],[1,"\\n  "],[10,0],[14,0,"box is-marginless is-shadowless"],[12],[1,"\\n    "],[10,2],[12],[1,"\\n      "],[1,[30,0,["description"]]],[1,"\\n    "],[13],[1,"\\n    "],[11,"form"],[24,1,"auth-form"],[4,[38,0],["submit",[30,0,["submit"]]],null],[12],[1,"\\n      "],[8,[39,1],null,[["@errorMessage"],[[30,0,["error"]]]],null],[1,"\\n      "],[10,0],[14,0,"field has-top-margin-l"],[12],[1,"\\n"],[42,[28,[37,3],[[28,[37,3],[[30,0,["constraints"]]],null]],null],null,[[[41,[30,2],[[[1,"            "],[10,"hr"],[12],[13],[1,"\\n"]],[]],null],[41,[28,[37,5],[[30,1,["methods","length"]],1],null],[[[1,"            "],[8,[39,6],null,[["@label","@options","@valueAttribute","@labelAttribute","@isFullwidth","@noDefault","@selectedValue","@onChange"],["Multi-factor authentication method",[30,1,["methods"]],"id","label",true,true,[30,1,["selectedId"]],[28,[37,7],[[30,0,["onSelect"]],[30,1]],null]]],null],[1,"\\n"]],[]],[[[1,"            "],[10,"label"],[14,"for","passcode"],[14,0,"is-label"],[12],[1,"\\n              "],[1,[30,1,["selectedMethod","label"]]],[1,"\\n            "],[13],[1,"\\n"]],[]]],[41,[30,1,["selectedMethod","uses_passcode"]],[[[1,"            "],[10,0],[14,0,"control"],[12],[1,"\\n"],[1,"              "],[8,[39,8],[[24,1,"passcode"],[24,3,"passcode"],[24,0,"input"],[24,"autocomplete","off"],[16,"placeholder",[52,[28,[37,5],[[30,1,["methods","length"]],1],null],"Enter passcode"]],[24,"spellcheck","false"],[24,"autofocus","true"],[16,"disabled",[28,[37,9],[[30,0,["validate","isRunning"]],[30,0,["countdown"]]],null]]],[["@value"],[[30,1,["passcode"]]]],null],[1,"\\n"],[1,"            "],[13],[1,"\\n"]],[]],[[[41,[28,[37,10],[[30,1,["methods","length"]],1],null],[[[1,"            "],[10,2],[14,0,"has-text-grey-light"],[12],[1,"\\n              Check device for push notification\\n            "],[13],[1,"\\n          "]],[]],null]],[]]]],[1,2]],null],[1,"      "],[13],[1,"\\n"],[41,[30,0,["countdown"]],[[[1,"        "],[8,[39,11],[[24,0,"has-bottom-padding-m"]],[["@type","@message"],["danger",[30,0,["codeDelayMessage"]]]],null],[1,"\\n"]],[]],null],[1,"      "],[8,[39,12],[[24,1,"validate"],[16,"disabled",[28,[37,9],[[30,0,["validate","isRunning"]],[30,0,["countdown"]]],null]],[24,4,"submit"]],[["@text","@icon"],["Verify",[52,[30,0,["validate","isRunning"]],"loading"]]],null],[1,"\\n"],[41,[30,0,["countdown"]],[[[1,"        "],[8,[39,13],[[24,0,"has-text-grey"]],[["@name"],["delay"]],null],[1,"\\n        "],[10,1],[14,0,"has-text-grey is-v-centered"],[12],[1,[30,0,["countdown"]]],[13],[1,"\\n"]],[]],null],[1,"    "],[13],[1,"\\n  "],[13],[1,"\\n"],[13]],["constraint","index"],false,["on","message-error","each","-track-array","if","gt","select","fn","input","or","eq","alert-inline","hds/button","icon"]]',moduleName:"vault/templates/components/mfa/mfa-form.hbs",isStrictMode:!1})})),define("vault/templates/components/mfa/mfa-login-enforcement-form",["exports","@ember/template-factory"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default=(0,t.createTemplateFactory)({id:"kDpp/YdP",block:'[[[11,0],[17,1],[12],[1,"\\n  "],[8,[39,0],[[24,"for","name"]],[["@label","@subText"],["Name","The name for this enforcement. Giving it a name means that you can refer to it again later. This name will not be editable later."]],null],[1,"\\n  "],[11,"input"],[24,"autocomplete","off"],[24,"spellcheck","false"],[16,2,[30,2,["name"]]],[16,"disabled",[28,[37,1],[[30,2,["isNew"]]],null]],[16,0,[29,["input field ",[52,[30,0,["errors","name","errors"]],"has-error-border"]]]],[24,1,"name"],[4,[38,3],["input",[28,[37,4],[[28,[37,5],["target.value"],null],[28,[37,6],[[28,[37,7],[[30,2,["name"]]],null]],null]],null]],null],[12],[13],[1,"\\n"],[41,[30,0,["errors","name","errors"]],[[[1,"    "],[8,[39,8],null,[["@type","@message"],["danger",[28,[37,9],[", ",[30,0,["errors","name","errors"]]],null]]],null],[1,"\\n"]],[]],null],[1,"\\n"],[41,[51,[30,3]],[[[1,"    "],[10,0],[14,0,"field"],[12],[1,"\\n      "],[8,[39,0],[[24,"for","methods"]],[["@label","@subText"],["MFA methods","The MFA method(s) that this enforcement will apply to."]],null],[1,"\\n"],[41,[30,2,["mfa_methods","isFulfilled"]],[[[1,"        "],[8,[39,11],null,[["@id","@placeholder","@inputValue","@shouldRenderName","@disallowNewItems","@models","@onChange"],["methods","Type to search for existing MFA methods",[28,[37,12],["id",[30,2,["mfa_methods"]]],null],true,true,[28,[37,13],["mfa-method"],null],[30,0,["onMethodChange"]]]],null],[1,"\\n"]],[]],null],[41,[30,0,["errors","mfa_methods","errors"]],[[[1,"        "],[8,[39,8],null,[["@type","@message"],["danger",[28,[37,9],[", ",[30,0,["errors","mfa_methods","errors"]]],null]]],null],[1,"\\n"]],[]],null],[1,"    "],[13],[1,"\\n"]],[]],null],[1,"\\n  "],[10,0],[12],[1,"\\n    "],[8,[39,0],[[24,"for","targets"]],[["@label","@subText"],["Targets","The list of authentication types, authentication mounts, groups, and/or entities that will require this MFA configuration."]],null],[1,"\\n"],[42,[28,[37,15],[[28,[37,15],[[30,0,["targets"]]],null]],null],null,[[[1,"      "],[10,0],[14,0,"is-flex-center has-border-top-light"],[12],[1,"\\n        "],[8,[39,16],[[24,0,"is-flex-grow-1 has-no-shadow"]],[["@label"],[[30,4,["label"]]]],[["default"],[[[[1,"\\n"],[41,[30,4,["value","id"]],[[[1,"            "],[1,[30,4,["value","name"]]],[1,"\\n            "],[10,1],[14,0,"tag has-left-margin-s"],[12],[1,[30,4,["value","id"]]],[13],[1,"\\n"]],[]],[[[1,"            "],[1,[30,4,["value"]]],[1,"\\n"]],[]]],[1,"        "]],[]]]]],[1,"\\n        "],[8,[39,17],[[4,[38,3],["click",[28,[37,6],[[30,0,["removeTarget"]],[30,4]],null]],null]],[["@text","@icon","@isIconOnly","@color"],["Remove target","trash",true,"secondary"]],null],[1,"\\n      "],[13],[1,"\\n"]],[4]],null],[1,"    "],[10,0],[15,0,[29,["is-flex-row ",[52,[30,0,["targets"]],"has-top-padding-s has-border-top-light"]]]],[12],[1,"\\n      "],[8,[39,18],[[24,0,"is-marginless"],[24,"aria-label","Target type"]],[["@options","@labelAttribute","@valueAttribute","@selectedValue","@onChange","@name"],[[30,0,["targetTypes"]],"label","type",[30,0,["selectedTargetType"]],[30,0,["onTargetSelect"]],"target-type"]],null],[1,"\\n      "],[10,0],[14,0,"has-left-margin-s is-flex-grow-1"],[12],[1,"\\n"],[41,[28,[37,19],[[30,0,["selectedTargetType"]],"accessor"],null],[[[1,"          "],[8,[39,20],null,[["@value","@showAccessor","@noDefault","@onChange","@filterToken"],[[30,0,["selectedTargetValue"]],true,true,[30,0,["setTargetValue"]],true]],null],[1,"\\n"]],[]],[[[41,[28,[37,19],[[30,0,["selectedTargetType"]],"method"],null],[[[1,"          "],[8,[39,18],[[24,"aria-label","Auth method"]],[["@options","@labelAttribute","@valueAttribute","@isFullwidth","@noDefault","@selectedValue","@onChange","@name"],[[30,0,["authMethods"]],"displayName","value",true,true,[30,0,["selectedTargetValue"]],[30,0,["setTargetValue"]],"Auth method"]],null],[1,"\\n"]],[]],[[[1,"          "],[8,[39,11],null,[["@id","@placeholder","@options","@parentManageSelected","@shouldRenderName","@selectLimit","@onChange"],["existing-targets","Search for an existing target",[30,0,["searchSelect","options"]],[30,0,["searchSelect","selected"]],true,1,[30,0,["setTargetValue"]]]],null],[1,"\\n        "]],[]]]],[]]],[1,"      "],[13],[1,"\\n      "],[8,[39,17],[[24,0,"has-left-margin-s"],[16,"disabled",[28,[37,1],[[30,0,["selectedTargetValue"]]],null]],[4,[38,3],["click",[30,0,["addTarget"]]],null]],[["@text","@color"],["Add","secondary"]],null],[1,"\\n    "],[13],[1,"\\n"],[41,[30,0,["errors","targets","errors"]],[[[1,"      "],[8,[39,8],[[24,0,"has-top-padding-s"]],[["@type","@message"],["danger",[28,[37,9],[", ",[30,0,["errors","targets","errors"]]],null]]],null],[1,"\\n"]],[]],null],[1,"  "],[13],[1,"\\n"],[41,[51,[30,3]],[[[1,"    "],[10,"hr"],[12],[13],[1,"\\n    "],[10,0],[14,0,"has-top-padding-s"],[12],[1,"\\n      "],[8,[39,21],null,null,[["default"],[[[[1,"\\n        "],[8,[39,17],[[16,"disabled",[30,0,["save","isRunning"]]],[4,[38,3],["click",[28,[37,22],[[30,0,["save"]]],null]],null]],[["@text","@icon"],[[52,[30,2,["isNew"]],"Create","Update"],[52,[30,0,["save","isRunning"]],"loading"]]],null],[1,"\\n        "],[8,[39,17],[[16,"disabled",[30,0,["save","isRunning"]]],[4,[38,3],["click",[30,0,["cancel"]]],null]],[["@text","@color"],["Cancel","secondary"]],null],[1,"\\n      "]],[]]]]],[1,"\\n    "],[13],[1,"\\n"]],[]],null],[13]],["&attrs","@model","@isInline","target"],false,["form-field-label","not","if","on","pipe","pick","fn","mut","alert-inline","join","unless","search-select","map-by","array","each","-track-array","info-table-row","hds/button","select","eq","mount-accessor-select","hds/button-set","perform"]]',moduleName:"vault/templates/components/mfa/mfa-login-enforcement-form.hbs",isStrictMode:!1})})),define("vault/templates/components/mfa/mfa-login-enforcement-header",["exports","@ember/template-factory"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default=(0,t.createTemplateFactory)({id:"EQezxZL3",block:'[[[41,[30,1],[[[1,"  "],[10,"h3"],[14,0,"title is-5"],[12],[1,"Enforcement"],[13],[1,"\\n"]],[]],[[[1,"  "],[8,[39,1],null,null,[["default"],[[[[1,"\\n    "],[8,[30,2,["top"]],null,null,[["default"],[[[[1,"\\n      "],[8,[39,2],null,null,[["default"],[[[[1,"\\n        "],[8,[39,3],null,[["@text","@route"],["Enforcements","vault.cluster.access.mfa.enforcements.index"]],null],[1,"\\n        "],[8,[39,3],null,[["@text","@current"],[[30,3],true]],null],[1,"\\n      "]],[]]]]],[1,"\\n    "]],[]]]]],[1,"\\n    "],[8,[30,2,["levelLeft"]],null,null,[["default"],[[[[1,"\\n      "],[10,"h1"],[14,0,"title is-3"],[12],[1,"\\n        "],[8,[39,4],null,[["@name","@size"],["lock","24"]],null],[1,"\\n        "],[1,[30,3]],[1,"\\n      "],[13],[1,"\\n    "]],[]]]]],[1,"\\n  "]],[2]]]]],[1,"\\n"]],[]]],[10,0],[14,0,"has-border-top-light"],[12],[1,"\\n  "],[10,2],[14,0,"has-top-margin-m"],[12],[1,"\\n"],[41,[30,1],[[[1,"      An enforcement includes the authentication types, authentication methods, groups, and entities that will require this\\n      MFA method. This is optional and can be added later.\\n"]],[]],[[[1,"      An enforcement will define which auth types, auth mounts, groups, and/or entities will require this MFA method. Keep in\\n      mind that only one of these conditions needs to be satisfied. For example, if an authentication method is added here,\\n      all entities and groups which make use of that authentication method will be subject to an MFA request.\\n      "],[8,[39,5],null,[["@path"],["/vault/docs/auth/login-mfa"]],[["default"],[[[[1,"Learn more here."]],[]]]]],[1,"\\n"]],[]]],[1,"  "],[13],[1,"\\n"],[41,[30,1],[[[1,"    "],[10,0],[14,0,"is-flex-row"],[12],[1,"\\n      "],[8,[39,6],null,[["@title","@description","@icon","@value","@groupValue","@onChange"],["Create new","Create a new enforcement for this MFA method.","plus-circle","new",[30,4],[30,5]]],null],[1,"\\n      "],[8,[39,6],null,[["@title","@description","@icon","@value","@groupValue","@disabled","@onChange"],["Use existing","Use an existing enforcement configuration.","list","existing",[30,4],[28,[37,7],[[30,0,["enforcements","length"]]],null],[30,5]]],null],[1,"\\n      "],[8,[39,6],null,[["@title","@description","@icon","@value","@groupValue","@onChange"],["Skip this step","Create MFA without enforcement for now. ","build","skip",[30,4],[30,5]]],null],[1,"\\n    "],[13],[1,"\\n"],[41,[28,[37,8],[[30,4],"existing"],null],[[[1,"      "],[8,[39,9],null,[["@label","@subText","@placeholder","@options","@shouldRenderName","@selectLimit","@onChange"],["Enforcement","Choose the existing enforcement(s) to add to this MFA method.","Search for an existing enforcement",[30,0,["enforcements"]],true,1,[30,0,["onEnforcementSelect"]]]],null],[1,"\\n"]],[]],null]],[]],null],[13]],["@isInline","p","@heading","@radioCardGroupValue","@onRadioCardSelect"],false,["if","page-header","hds/breadcrumb","hds/breadcrumb/item","icon","doc-link","radio-card","not","eq","search-select"]]',moduleName:"vault/templates/components/mfa/mfa-login-enforcement-header.hbs",isStrictMode:!1})})),define("vault/templates/components/mfa/mfa-setup-step-one",["exports","@ember/template-factory"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default=(0,t.createTemplateFactory)({id:"17KESOga",block:'[[[11,0],[17,1],[12],[1,"\\n  "],[10,2],[12],[1,"\\n    TOTP Multi-factor authentication (MFA) can be enabled here if it is required by your administrator. This will ensure that\\n    you are not prevented from logging into Vault in the future, once MFA is fully enforced.\\n  "],[13],[1,"\\n  "],[11,"form"],[24,1,"mfa-setup-step-one"],[4,[38,0],["submit",[30,0,["verifyUUID"]]],null],[12],[1,"\\n    "],[8,[39,1],null,[["@errorMessage"],[[30,0,["error"]]]],null],[1,"\\n    "],[10,0],[14,0,"field has-top-margin-l"],[12],[1,"\\n      "],[10,"label"],[14,0,"is-label"],[12],[1,"\\n        Method ID\\n      "],[13],[1,"\\n\\n"],[1,"      "],[10,2],[14,0,"sub-text"],[12],[1,"Enter the UUID for your multi-factor authentication method. This can be provided to you by your\\n        administrator."],[13],[1,"\\n      "],[8,[39,2],[[24,1,"uuid"],[24,3,"uuid"],[24,0,"input"],[24,"autocomplete","off"],[24,"spellcheck","false"],[24,"autofocus","true"]],[["@value"],[[30,0,["UUID"]]]],null],[1,"\\n    "],[13],[1,"\\n\\n    "],[8,[39,3],null,null,[["default"],[[[[1,"\\n      "],[8,[39,4],[[24,1,"continue"],[16,"disabled",[28,[37,5],[[30,0,["UUID"]]],null]],[24,4,"submit"]],[["@text"],["Verify"]],null],[1,"\\n      "],[8,[39,4],[[24,1,"cancel"],[4,[38,0],["click",[30,0,["redirectPreviousPage"]]],null]],[["@text","@color"],["Cancel","secondary"]],null],[1,"\\n    "]],[]]]]],[1,"\\n  "],[13],[1,"\\n"],[13]],["&attrs"],false,["on","message-error","input","hds/button-set","hds/button","is-empty-value"]]',moduleName:"vault/templates/components/mfa/mfa-setup-step-one.hbs",isStrictMode:!1})})),define("vault/templates/components/mfa/mfa-setup-step-two",["exports","@ember/template-factory"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default=(0,t.createTemplateFactory)({id:"cCFwpa7o",block:'[[[11,0],[17,1],[12],[1,"\\n  "],[10,2],[12],[1,"\\n    TOTP Multi-factor authentication (MFA) can be enabled here if it is required by your administrator. This will ensure that\\n    you are not prevented from logging into Vault in the future, once MFA is fully enforced.\\n  "],[13],[1,"\\n  "],[10,0],[14,0,"field has-top-margin-l"],[12],[1,"\\n    "],[8,[39,0],null,[["@errorMessage"],[[30,0,["error"]]]],null],[1,"\\n"],[41,[30,2],[[[1,"      "],[8,[39,2],[[24,0,"has-bottom-margin-s has-top-margin-l"]],[["@type","@color"],["inline","highlight"]],[["default"],[[[[1,"\\n        "],[8,[30,3,["Title"]],null,null,[["default"],[[[[1,"MFA enabled"]],[]]]]],[1,"\\n        "],[8,[30,3,["Description"]],null,null,[["default"],[[[[1,[30,2]]],[]]]]],[1,"\\n      "]],[3]]]]],[1,"\\n"]],[]],[[[1,"      "],[10,0],[14,0,"list-item-row"],[12],[1,"\\n        "],[10,0],[14,0,"center-display"],[12],[1,"\\n          "],[8,[39,3],null,[["@text","@colorLight","@width","@height","@correctLevel"],[[30,4],"#F7F7F7",155,155,"L"]],null],[1,"\\n        "],[13],[1,"\\n      "],[13],[1,"\\n      "],[10,0],[14,0,"has-top-margin-s"],[12],[1,"\\n        "],[10,0],[14,0,"info-table-row has-no-shadow"],[12],[1,"\\n          "],[10,0],[14,0,"column info-table-row-edit"],[12],[8,[39,4],[[24,0,"has-text-highlight"]],[["@name"],["alert-triangle-fill"]],null],[13],[1,"\\n          "],[10,2],[14,0,"is-size-8"],[12],[1,"\\n            After you leave this page, this QR code will be removed and\\n            "],[10,"strong"],[12],[1,"cannot"],[13],[1,"\\n            be regenerated.\\n          "],[13],[1,"\\n        "],[13],[1,"\\n      "],[13],[1,"\\n"]],[]]],[1,"    "],[10,0],[14,0,"is-flex-start has-gap has-top-margin-l"],[12],[1,"\\n      "],[8,[39,5],[[24,1,"restart"],[4,[38,6],["click",[30,0,["restartSetup"]]],null]],[["@text","@color"],["Restart setup","critical"]],null],[1,"\\n      "],[8,[39,5],[[24,1,"cancel"],[4,[38,6],["click",[30,0,["redirectPreviousPage"]]],null]],[["@text"],["Done"]],null],[1,"\\n    "],[13],[1,"\\n  "],[13],[1,"\\n"],[13]],["&attrs","@warning","A","@qrCode"],false,["message-error","if","hds/alert","qr-code","icon","hds/button","on"]]',moduleName:"vault/templates/components/mfa/mfa-setup-step-two.hbs",isStrictMode:!1})})),define("vault/templates/components/mfa/nav",["exports","@ember/template-factory"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default=(0,t.createTemplateFactory)({id:"c85QBaWr",block:'[[[10,0],[14,0,"tabs-container box is-sideless is-fullwidth is-paddingless is-marginless"],[12],[1,"\\n  "],[10,"nav"],[14,0,"tabs"],[14,"aria-label","navigation for managing MFA"],[12],[1,"\\n    "],[10,"ul"],[12],[1,"\\n      "],[8,[39,0],null,[["@route"],["vault.cluster.access.mfa.methods"]],[["default"],[[[[1,"\\n        Methods\\n      "]],[]]]]],[1,"\\n      "],[8,[39,0],null,[["@route"],["vault.cluster.access.mfa.enforcements"]],[["default"],[[[[1,"\\n        Enforcements\\n      "]],[]]]]],[1,"\\n    "],[13],[1,"\\n  "],[13],[1,"\\n"],[13]],[],false,["link-to"]]',moduleName:"vault/templates/components/mfa/nav.hbs",isStrictMode:!1})})),define("vault/templates/components/mount-accessor-select",["exports","@ember/template-factory"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default=(0,t.createTemplateFactory)({id:"Y4aP4ZkD",block:'[[[11,0],[17,1],[12],[1,"\\n"],[41,[30,2],[[[1,"    "],[10,"label"],[15,"for",[30,3]],[14,0,"is-label"],[12],[1,"\\n      "],[1,[30,2]],[1,"\\n"],[41,[30,4],[[[1,"        "],[8,[39,1],null,null,[["default"],[[[[1,"\\n          "],[10,1],[12],[1,[30,4]],[13],[1,"\\n        "]],[]]]]],[1,"\\n"]],[]],null],[1,"    "],[13],[1,"\\n"]],[]],null],[41,[30,0,["authMethods","isRunning"]],[[[1,"    "],[10,0],[12],[1,"\\n      "],[10,1],[14,0,"loader is-inline-block"],[12],[13],[1,"\\n    "],[13],[1,"\\n"]],[]],[[[41,[30,0,["authMethods","last","value"]],[[[1,"    "],[10,0],[14,0,"control is-expanded"],[12],[1,"\\n      "],[10,0],[14,0,"select is-fullwidth"],[12],[1,"\\n        "],[11,"select"],[16,"aria-label",[28,[37,2],[[30,2],"Select a mount accessor"],null]],[16,3,[30,3]],[16,1,[30,3]],[4,[38,3],["change",[30,0,["change"]]],null],[12],[1,"\\n"],[41,[30,0,["noDefault"]],[[[1,"            "],[10,"option"],[14,2,""],[12],[1,"Select one"],[13],[1,"\\n"]],[]],null],[42,[28,[37,5],[[28,[37,5],[[30,0,["authMethods","last","value"]]],null]],null],null,[[[41,[30,0,["filterToken"]],[[[41,[28,[37,6],[[30,5,["id"]],"token"],null],[[[1,"                "],[10,"option"],[15,"selected",[28,[37,7],[[30,6],[30,5,["accessor"]]],null]],[15,2,[30,5,["accessor"]]],[12],[1,"\\n                  "],[1,[30,5,["path"]]],[1,"\\n                  ("],[1,[52,[30,7],[30,5,["accessor"]],[30,5,["type"]]]],[1,")\\n                "],[13],[1,"\\n"]],[]],null]],[]],[[[1,"              "],[10,"option"],[15,"selected",[28,[37,7],[[30,6],[30,5,["accessor"]]],null]],[15,2,[30,5,["accessor"]]],[12],[1,"\\n                "],[1,[30,5,["path"]]],[1,"\\n                ("],[1,[52,[30,7],[30,5,["accessor"]],[30,5,["type"]]]],[1,")\\n              "],[13],[1,"\\n"]],[]]]],[5]],null],[1,"        "],[13],[1,"\\n      "],[13],[1,"\\n    "],[13],[1,"\\n"]],[]],[[[1,"    "],[11,"input"],[16,3,[30,3]],[16,1,[30,3]],[24,0,"input"],[16,2,[30,6]],[24,"placeholder","Mount accessor"],[4,[38,3],["change",[30,0,["change"]]],null],[12],[13],[1,"\\n  "]],[]]]],[]]],[13]],["&attrs","@label","@name","@helpText","method","@value","@showAccessor"],false,["if","info-tooltip","or","on","each","-track-array","not-eq","eq"]]',moduleName:"vault/templates/components/mount-accessor-select.hbs",isStrictMode:!1})})),define("vault/templates/components/namespace-link",["exports","@ember/template-factory"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default=(0,t.createTemplateFactory)({id:"u24RIpqz",block:'[[[8,[39,0],[[16,0,[28,[37,1],["is-block ",[30,0,["class"]]],null]]],[["@href","@sameTab"],[[30,0,["namespaceLink"]],true]],[["default"],[[[[1,"\\n"],[41,[48,[30,1]],[[[1,"    "],[18,1,null],[1,"\\n"]],[]],[[[1,"    "],[10,0],[14,0,"level is-mobile"],[12],[1,"\\n      "],[10,1],[14,0,"level-left"],[12],[1,[30,0,["namespaceDisplay"]]],[13],[1,"\\n      "],[10,1],[14,0,"level-right"],[12],[1,"\\n        "],[8,[39,5],null,[["@text","@icon","@isIconOnly","@color"],["Namespace link","chevron-right",true,"tertiary"]],null],[1,"\\n      "],[13],[1,"\\n    "],[13],[1,"\\n"]],[]]]],[]]]]]],["&default"],false,["external-link","concat","if","has-block","yield","hds/button"]]',moduleName:"vault/templates/components/namespace-link.hbs",isStrictMode:!1})})),define("vault/templates/components/namespace-picker",["exports","@ember/template-factory"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default=(0,t.createTemplateFactory)({id:"wj7smXDt",block:'[[[11,0],[24,0,"namespace-picker"],[17,1],[12],[1,"\\n  "],[8,[39,0],null,[["@horizontalPosition","@verticalPosition","@renderInPlace"],["left","above",true]],[["default"],[[[[1,"\\n    "],[8,[30,2,["Trigger"]],[[24,0,"button is-transparent namespace-picker-trigger has-current-color"]],[["@htmlTag"],["button"]],[["default"],[[[[1,"\\n      "],[10,0],[14,0,"is-flex-center is-flex-1"],[12],[1,"\\n        "],[8,[39,1],null,[["@name"],["org"]],null],[1,"\\n        "],[10,1],[14,0,"is-flex-1 is-word-break has-text-left is-size-6 has-left-margin-xs"],[12],[1,[30,0,["namespaceDisplay"]]],[13],[1,"\\n      "],[13],[1,"\\n      "],[8,[39,1],null,[["@name"],["caret"]],null],[1,"\\n    "]],[]]]]],[1,"\\n    "],[8,[30,2,["Content"]],null,[["@defaultClass"],["namespace-picker-content"]],[["default"],[[[[1,"\\n      "],[10,0],[14,0,"is-mobile level-left"],[12],[1,"\\n        "],[10,"h5"],[14,0,"list-header"],[12],[1,"Current namespace"],[13],[1,"\\n      "],[13],[1,"\\n      "],[10,0],[14,0,"namespace-header-bar level is-mobile"],[12],[1,"\\n        "],[10,0],[14,0,"level-left"],[12],[1,"\\n          "],[10,"header"],[12],[1,"\\n            "],[10,0],[14,0,"level is-mobile namespace-link"],[12],[1,"\\n              "],[10,1],[14,0,"level-left"],[12],[1,"\\n                "],[1,[52,[30,0,["namespacePath"]],[28,[37,3],[[30,0,["namespacePath"]],"/"],null],"root"]],[1,"\\n              "],[13],[1,"\\n            "],[13],[1,"\\n          "],[13],[1,"\\n        "],[13],[1,"\\n      "],[13],[1,"\\n      "],[10,0],[15,0,[29,["namespace-list ",[52,[30,0,["isAnimating"]],"animated-list"]]]],[12],[1,"\\n"],[41,[30,0,["auth","isRootToken"]],[[[1,"          "],[10,0],[14,0,"has-left-margin-s has-right-margin-s"],[12],[1,"\\n            "],[10,1],[12],[8,[39,1],[[24,0,"has-text-highlight"]],[["@name"],["alert-triangle-fill"]],null],[13],[1,"\\n            "],[10,1],[14,0,"is-size-8 has-text-semibold"],[12],[1,"\\n              You are logged in with a root token and will have to reauthenticate when switching namespaces.\\n            "],[13],[1,"\\n          "],[13],[1,"\\n"]],[]],null],[1,"\\n        "],[10,0],[14,0,"is-mobile level-left"],[12],[1,"\\n"],[41,[30,0,["isUserRootNamespace"]],[[[1,"            "],[10,"h5"],[14,0,"list-header"],[12],[1,"Namespaces"],[13],[1,"\\n"]],[]],[[[1,"            "],[8,[39,4],null,[["@targetNamespace","@class"],[[28,[37,5],[[28,[37,6],[[28,[37,7],[2,[30,0,["menuLeaves","length"]]],null],[30,0,["lastMenuLeaves"]]],null],[30,0,["auth","authData","userRootNamespace"]]],null],"namespace-link is-current button is-transparent icon"]],[["default"],[[[[1,"\\n              "],[10,0],[14,0,"is-flex-align-baseline"],[12],[1,"\\n                "],[8,[39,8],[[24,0,"is-flex-align-baseline"]],[["@text","@icon","@isIconOnly","@color"],["Go back","chevron-left",true,"tertiary"]],null],[1,"\\n                "],[10,2],[14,0,"is-size-8 has-text-grey has-text-weight-semibold is-uppercase"],[12],[1,"Namespaces"],[13],[1,"\\n              "],[13],[1,"\\n            "]],[]]]]],[1,"\\n"]],[]]],[1,"        "],[13],[1,"\\n"],[41,[28,[37,9],["",[30,0,["lastMenuLeaves"]]],null],[[[1,"          "],[10,0],[15,0,[29,["leaf-panel ",[52,[28,[37,10],["",[30,0,["currentLeaf"]]],null],"leaf-panel-current","leaf-panel-left"]," "]]],[12],[1,"\\n"],[42,[28,[37,12],[[28,[37,12],[[30,0,["rootLeaves"]]],null]],null],null,[[[1,"              "],[8,[39,4],null,[["@targetNamespace","@class","@showLastSegment"],[[30,3],"namespace-link",true]],null],[1,"\\n"]],[3]],null],[1,"          "],[13],[1,"\\n"]],[]],null],[42,[28,[37,12],[[28,[37,12],[[30,0,["lastMenuLeaves"]]],null]],null],null,[[[41,[30,4],[[[1,"            "],[10,0],[15,0,[29,["leaf-panel\\n                ",[52,[28,[37,10],[[30,4],[30,0,["currentLeaf"]]],null],"leaf-panel-current","leaf-panel-left"],"\\n                ",[52,[28,[37,13],[[30,0,["isAdding"]],[28,[37,10],[[30,4],[30,0,["changedLeaf"]]],null]],null],"leaf-panel-adding"],"\\n                ",[52,[28,[37,13],[[28,[37,14],[[30,0,["isAdding"]]],null],[28,[37,10],[[30,4],[30,0,["changedLeaf"]]],null]],null],"leaf-panel-exiting"],"\\n                "]]],[12],[1,"\\n"],[42,[28,[37,15],[[28,[37,16],[[30,0,["namespaceTree"]],[30,4]],null]],null],null,[[[1,"                "],[8,[39,4],null,[["@targetNamespace","@class","@showLastSegment"],[[28,[37,3],[[30,4],"/",[30,6]],null],"namespace-link",true]],null],[1,"\\n"]],[5,6]],null],[1,"            "],[13],[1,"\\n"]],[]],null]],[4]],null],[41,[30,0,["canList"]],[[[1,"          "],[10,0],[14,0,"leaf-panel leaf-panel-current"],[12],[1,"\\n            "],[10,0],[14,0,"level"],[12],[1,"\\n              "],[10,1],[14,0,"level-left"],[12],[1,"\\n                "],[8,[39,17],[[24,0,"is-block namespace-link namespace-manage-link"]],[["@route"],["vault.cluster.access.namespaces"]],[["default"],[[[[1,"\\n                  Manage Namespaces\\n                "]],[]]]]],[1,"\\n              "],[13],[1,"\\n              "],[10,1],[14,0,"level-right"],[12],[1,"\\n                "],[8,[39,8],[[4,[38,18],["click",[28,[37,19],[[30,0],"refreshNamespaceList"],null]],null]],[["@text","@icon","@isIconOnly","@color"],["Refresh namespace list","reload",true,"tertiary"]],null],[1,"\\n              "],[13],[1,"\\n            "],[13],[1,"\\n          "],[13],[1,"\\n"]],[]],null],[1,"      "],[13],[1,"\\n    "]],[]]]]],[1,"\\n  "]],[2]]]]],[1,"\\n"],[13]],["&attrs","D","rootLeaf","leaf","( unused value )","leafName"],false,["basic-dropdown","icon","if","concat","namespace-link","or","object-at","dec","hds/button","includes","eq","each","-track-array","and","not","-each-in","get","link-to","on","action"]]',moduleName:"vault/templates/components/namespace-picker.hbs",isStrictMode:!1})})),define("vault/templates/components/oidc-callback-splash",["exports","@ember/template-factory"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default=(0,t.createTemplateFactory)({id:"mmca5NPV",block:'[[[10,0],[14,0,"splash-page-container section is-flex-v-centered-tablet is-flex-grow-1 is-fullwidth"],[12],[1,"\\n  "],[10,0],[14,0,"columns is-centered is-gapless is-fullwidth"],[12],[1,"\\n    "],[10,0],[14,0,"column is-4-desktop is-6-tablet"],[12],[1,"\\n      "],[10,0],[14,0,"has-text-grey has-bottom-margin-m has-current-color-fill"],[12],[1,"\\n        "],[8,[39,0],null,null,null],[1,"\\n      "],[13],[1,"\\n      "],[8,[39,1],null,[["@type","@color"],["inline","success"]],[["default"],[[[[1,"\\n        "],[8,[30,1,["Title"]],null,null,[["default"],[[[[1,"Signing in with your OIDC provider..."]],[]]]]],[1,"\\n        "],[8,[30,1,["Description"]],null,null,[["default"],[[[[1,"This window will close automatically"]],[]]]]],[1,"\\n      "]],[1]]]]],[1,"\\n    "],[13],[1,"\\n  "],[13],[1,"\\n"],[13]],["A"],false,["logo-edition","hds/alert"]]',moduleName:"vault/templates/components/oidc-callback-splash.hbs",isStrictMode:!1})}))
define("vault/templates/components/oidc-consent-block",["exports","@ember/template-factory"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default=(0,t.createTemplateFactory)({id:"vKWGzWVJ",block:'[[[41,[30,0,["didCancel"]],[[[1,"  "],[10,"h3"],[14,0,"title is-3"],[12],[1,"\\n    Consent Not Given\\n  "],[13],[1,"\\n  "],[10,0],[14,0,"box"],[12],[1,"\\n    "],[10,2],[14,0,"has-bottom-margin-l has-top-margin-l"],[12],[1,"Login attempt has been terminated."],[13],[1,"\\n  "],[13],[1,"\\n"]],[]],[[[1,"  "],[10,"h3"],[14,0,"title is-3"],[12],[1,"\\n    Consent\\n  "],[13],[1,"\\n  "],[11,"form"],[24,0,"box"],[4,[38,1],["submit",[30,0,["handleSubmit"]]],null],[12],[1,"\\n    "],[10,2],[14,0,"has-bottom-margin-s"],[12],[1,"\\n      In order to complete the login process, you must consent to Vault sharing your profile, email, address, and phone with\\n      the client.\\n    "],[13],[1,"\\n    "],[10,2],[14,0,"has-bottom-margin-s"],[12],[1,"Do you want to continue?"],[13],[1,"\\n    "],[8,[39,2],null,[["@saveButtonText","@isSaving","@cancelButtonText","@onCancel","@includeBox"],["Yes",false,"No",[30,0,["handleCancel"]],false]],null],[1,"\\n  "],[13],[1,"\\n"]],[]]]],[],false,["if","on","form-save-buttons"]]',moduleName:"vault/templates/components/oidc-consent-block.hbs",isStrictMode:!1})})),define("vault/templates/components/oidc/assignment-form",["exports","@ember/template-factory"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default=(0,t.createTemplateFactory)({id:"ReAvnP76",block:'[[[11,"form"],[4,[38,0],["submit",[28,[37,1],[[30,0,["save"]]],null]],null],[12],[1,"\\n  "],[10,0],[14,0,"box is-sideless is-fullwidth is-marginless"],[12],[1,"\\n    "],[8,[39,2],null,[["@errorMessage"],[[30,0,["errorBanner"]]]],null],[1,"\\n    "],[8,[39,3],[[24,"for","name"]],[["@label"],["Name"]],null],[1,"\\n    "],[11,"input"],[24,"autocomplete","off"],[24,"spellcheck","false"],[16,2,[30,1,["name"]]],[16,"disabled",[28,[37,4],[[30,1,["isNew"]]],null]],[16,0,[29,["input field ",[52,[30,0,["modelValidations","name","errors"]],"has-error-border"]]]],[24,1,"name"],[4,[38,0],["input",[30,0,["handleOperation"]]],null],[12],[13],[1,"\\n"],[41,[30,0,["modelValidations","name","errors"]],[[[1,"      "],[8,[39,6],null,[["@type","@message"],["danger",[28,[37,7],[", ",[30,0,["modelValidations","name","errors"]]],null]]],null],[1,"\\n"]],[]],null],[1,"    "],[8,[39,8],null,[["@id","@label","@placeholder","@renderInPlace","@models","@inputValue","@shouldRenderName","@onChange","@disallowNewItems","@fallbackComponent"],["entities","Entities","Search",true,[28,[37,9],["identity/entity"],null],[30,1,["entityIds"]],true,[30,0,["onEntitiesSelect"]],true,"string-list"]],null],[1,"\\n    "],[8,[39,8],null,[["@id","@label","@placeholder","@renderInPlace","@models","@inputValue","@shouldRenderName","@onChange","@disallowNewItems","@fallbackComponent"],["groups","Groups","Search",true,[28,[37,9],["identity/group"],null],[30,1,["groupIds"]],true,[30,0,["onGroupsSelect"]],true,"string-list"]],null],[1,"\\n  "],[13],[1,"\\n  "],[10,0],[14,0,"has-top-padding-s"],[12],[1,"\\n    "],[8,[39,10],[[16,"disabled",[30,0,["save","isRunning"]]],[24,4,"submit"]],[["@text","@icon"],[[52,[30,1,["isNew"]],"Create","Update"],[52,[30,0,["save","isRunning"]],"loading"]]],null],[1,"\\n    "],[8,[39,10],[[24,0,"has-left-margin-s"],[16,"disabled",[30,0,["save","isRunning"]]],[4,[38,0],["click",[30,0,["cancel"]]],null]],[["@text","@color"],["Cancel","secondary"]],null],[1,"\\n"],[41,[30,0,["modelValidations","targets","errors"]],[[[1,"      "],[8,[39,6],[[24,0,"has-top-padding-s"]],[["@type","@message"],["danger",[28,[37,7],[", ",[30,0,["modelValidations","targets","errors"]]],null]]],null],[1,"\\n"]],[]],null],[1,"  "],[13],[1,"\\n"],[13]],["@model"],false,["on","perform","message-error","form-field-label","not","if","alert-inline","join","search-select","array","hds/button"]]',moduleName:"vault/templates/components/oidc/assignment-form.hbs",isStrictMode:!1})})),define("vault/templates/components/oidc/client-form",["exports","@ember/template-factory"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default=(0,t.createTemplateFactory)({id:"Ncmbsl41",block:'[[[8,[39,0],null,null,[["default"],[[[[1,"\\n  "],[8,[30,1,["top"]],null,null,[["default"],[[[[1,"\\n    "],[8,[39,1],null,null,[["default"],[[[[1,"\\n"],[41,[30,2,["isNew"]],[[[1,"        "],[8,[39,3],null,[["@text","@route"],["Applications","vault.cluster.access.oidc.clients"]],null],[1,"\\n"]],[]],[[[1,"        "],[8,[39,3],null,[["@text","@route","@model"],["Details","vault.cluster.access.oidc.clients.client.details",[30,2,["name"]]]],null],[1,"\\n"]],[]]],[1,"      "],[8,[39,3],null,[["@text","@current"],[[29,[[52,[30,2,["isNew"]],"Create","Edit"]," Application"]],true]],null],[1,"\\n    "]],[]]]]],[1,"\\n  "]],[]]]]],[1,"\\n  "],[8,[30,1,["levelLeft"]],null,null,[["default"],[[[[1,"\\n    "],[10,"h1"],[14,0,"title is-3"],[12],[1,"\\n      "],[1,[52,[30,2,["isNew"]],"Create","Edit"]],[1,"\\n      Application\\n    "],[13],[1,"\\n  "]],[]]]]],[1,"\\n"]],[1]]]]],[1,"\\n"],[11,"form"],[4,[38,4],["submit",[28,[37,5],[[30,0,["save"]]],null]],null],[12],[1,"\\n  "],[10,0],[14,0,"box is-sideless is-fullwidth is-bottomless"],[12],[1,"\\n    "],[8,[39,6],null,[["@errorMessage"],[[30,0,["errorBanner"]]]],null],[1,"\\n"],[42,[28,[37,8],[[28,[37,8],[[30,2,["formFields"]]],null]],null],null,[[[1,"      "],[8,[39,9],null,[["@attr","@model","@modelValidations"],[[30,3],[30,2],[30,0,["modelValidations"]]]],null],[1,"\\n"]],[3]],null],[1,"\\n"],[1,"    "],[8,[39,10],null,[["@renderGroup","@model","@modelValidations"],["More options",[30,2],[30,0,["modelValidations"]]]],null],[1,"\\n  "],[13],[1,"\\n"],[1,"  "],[10,0],[14,0,"box is-sideless is-fullwidth is-marginless has-top-padding-xxl"],[12],[1,"\\n    "],[8,[39,11],null,[["@tag","@size"],["h2","400"]],[["default"],[[[[1,"Assign access"]],[]]]]],[1,"\\n    "],[10,0],[14,0,"is-flex-row"],[12],[1,"\\n      "],[8,[39,12],null,[["@title","@description","@icon","@value","@groupValue","@onChange"],["Allow everyone to access existing","All Vault entities can authenticate through this application.","org","allow_all",[30,0,["radioCardGroupValue"]],[30,0,["handleAssignmentSelection"]]]],null],[1,"\\n      "],[8,[39,12],null,[["@title","@description","@icon","@value","@groupValue","@onChange"],["Limit access to selected users","Choose or create an assignment to give access to selected entities.","users","limited",[30,0,["radioCardGroupValue"]],[30,0,["handleAssignmentSelection"]]]],null],[1,"\\n    "],[13],[1,"\\n"],[41,[28,[37,13],[[30,0,["radioCardGroupValue"]],"limited"],null],[[[1,"      "],[8,[39,14],null,[["@id","@label","@subText","@models","@inputValue","@onChange","@excludeOptions","@fallbackComponent","@modalFormTemplate","@modalSubtext"],["assignments","Assignment name","Search for an existing assignment, or type a new name to create it.",[28,[37,15],["oidc/assignment"],null],[30,0,["modelAssignments"]],[30,0,["handleAssignmentSelection"]],[28,[37,15],["allow_all"],null],"string-list","modal-form/oidc-assignment-template","Use assignment to specify which Vault entities and groups are allowed to authenticate."]],null],[1,"\\n"]],[]],null],[1,"  "],[13],[1,"\\n  "],[10,0],[14,0,"field box is-fullwidth is-bottomless"],[12],[1,"\\n    "],[10,0],[14,0,"control"],[12],[1,"\\n      "],[8,[39,16],[[16,"disabled",[30,0,["save","isRunning"]]],[24,4,"submit"]],[["@text","@icon"],[[52,[30,2,["isNew"]],"Create","Update"],[52,[30,0,["save","isRunning"]],"loading"]]],null],[1,"\\n      "],[8,[39,16],[[24,0,"has-left-margin-s"],[16,"disabled",[30,0,["save","isRunning"]]],[4,[38,4],["click",[30,0,["cancel"]]],null]],[["@text","@color"],["Cancel","secondary"]],null],[1,"\\n    "],[13],[1,"\\n"],[41,[30,0,["invalidFormAlert"]],[[[1,"      "],[10,0],[14,0,"control"],[12],[1,"\\n        "],[8,[39,17],[[24,0,"has-top-padding-s"]],[["@type","@message"],["danger",[30,0,["invalidFormAlert"]]]],null],[1,"\\n      "],[13],[1,"\\n"]],[]],null],[1,"  "],[13],[1,"\\n"],[13]],["p","@model","attr"],false,["page-header","hds/breadcrumb","if","hds/breadcrumb/item","on","perform","message-error","each","-track-array","form-field","form-field-groups","hds/text/display","radio-card","eq","search-select-with-modal","array","hds/button","alert-inline"]]',moduleName:"vault/templates/components/oidc/client-form.hbs",isStrictMode:!1})})),define("vault/templates/components/oidc/client-list",["exports","@ember/template-factory"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default=(0,t.createTemplateFactory)({id:"U8HEtSgi",block:'[[[42,[28,[37,1],[[28,[37,1],[[30,1]],null]],null],null,[[[1,"  "],[8,[39,2],[[24,0,"list-item-row"]],[["@params"],[[28,[37,3],["vault.cluster.access.oidc.clients.client.details",[30,2,["name"]]],null]]],[["default"],[[[[1,"\\n    "],[10,0],[14,0,"level is-mobile"],[12],[1,"\\n      "],[10,0],[14,0,"level-left"],[12],[1,"\\n        "],[10,0],[12],[1,"\\n          "],[8,[39,4],[[24,0,"has-text-grey-light"]],[["@name"],["code"]],null],[1,"\\n          "],[10,1],[14,0,"has-text-weight-semibold is-underline"],[12],[1,"\\n            "],[1,[30,2,["name"]]],[1,"\\n          "],[13],[1,"\\n          "],[10,0],[14,0,"has-text-grey is-size-8"],[12],[1,"\\n            Client ID:\\n            "],[1,[30,2,["clientId"]]],[1,"\\n          "],[13],[1,"\\n        "],[13],[1,"\\n      "],[13],[1,"\\n      "],[10,0],[14,0,"level-right is-flex is-paddingless is-marginless"],[12],[1,"\\n        "],[10,0],[14,0,"level-item"],[12],[1,"\\n"],[41,[28,[37,6],[[30,2,["canRead"]],[30,2,["canEdit"]]],null],[[[1,"            "],[8,[39,7],null,[["@isInline","@listPosition"],[true,"bottom-right"]],[["default"],[[[[1,"\\n              "],[8,[30,3,["ToggleIcon"]],null,[["@icon","@text","@hasChevron"],["more-horizontal","Application nav options",false]],null],[1,"\\n"],[41,[30,2,["canRead"]],[[[1,"                "],[8,[30,3,["Interactive"]],null,[["@text","@route","@model"],["Details","vault.cluster.access.oidc.clients.client.details",[30,2,["name"]]]],null],[1,"\\n"]],[]],null],[41,[30,2,["canEdit"]],[[[1,"                "],[8,[30,3,["Interactive"]],null,[["@text","@route","@model"],["Edit","vault.cluster.access.oidc.clients.client.edit",[30,2,["name"]]]],null],[1,"\\n"]],[]],null],[1,"            "]],[3]]]]],[1,"\\n"]],[]],null],[1,"        "],[13],[1,"\\n      "],[13],[1,"\\n    "],[13],[1,"\\n  "]],[]]]]],[1,"\\n"]],[2]],null]],["@model","client","dd"],false,["each","-track-array","linked-block","array","icon","if","or","hds/dropdown"]]',moduleName:"vault/templates/components/oidc/client-list.hbs",isStrictMode:!1})})),define("vault/templates/components/oidc/key-form",["exports","@ember/template-factory"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default=(0,t.createTemplateFactory)({id:"SM7pdo7y",block:'[[[11,"form"],[4,[38,0],["submit",[28,[37,1],[[30,0,["save"]]],null]],null],[12],[1,"\\n  "],[10,0],[14,0,"box is-sideless is-fullwidth is-bottomless"],[12],[1,"\\n    "],[8,[39,2],null,[["@errorMessage"],[[30,0,["errorBanner"]]]],null],[1,"\\n"],[42,[28,[37,4],[[28,[37,4],[[30,1,["formFields"]]],null]],null],null,[[[1,"      "],[8,[39,5],null,[["@attr","@model","@modelValidations"],[[30,2],[30,1],[30,0,["modelValidations"]]]],null],[1,"\\n"]],[2]],null],[1,"  "],[13],[1,"\\n"],[41,[51,[30,3]],[[[1,"    "],[10,0],[14,0,"box is-sideless is-fullwidth is-marginless has-top-padding-xxl"],[12],[1,"\\n      "],[8,[39,7],null,[["@tag","@size"],["h2","400"]],[["default"],[[[[1,"Allowed applications"]],[]]]]],[1,"\\n      "],[10,0],[14,0,"is-flex-row"],[12],[1,"\\n        "],[8,[39,8],null,[["@title","@description","@icon","@value","@groupValue","@onChange"],["Allow every application to use","All applications can use this key for authentication requests.","globe","allow_all",[30,0,["radioCardGroupValue"]],[30,0,["handleClientSelection"]]]],null],[1,"\\n        "],[8,[39,8],null,[["@title","@description","@icon","@value","@groupValue","@onChange","@disabled","@disabledTooltipMessage"],["Limit access to selected application","Only selected applications can use this key for authentication requests.","globe-private","limited",[30,0,["radioCardGroupValue"]],[30,0,["handleClientSelection"]],[30,1,["isNew"]],"This option has been disabled for now. To limit access, you must first create an application that references this key."]],null],[1,"\\n      "],[13],[1,"\\n"],[41,[28,[37,10],[[30,0,["radioCardGroupValue"]],"limited"],null],[[[1,"        "],[8,[39,11],null,[["@id","@label","@subText","@models","@inputValue","@onChange","@disallowNewItems","@fallbackComponent","@passObject","@objectKeys","@queryObject"],["allowedClientIds","Application name","Select which applications are allowed to use this key. Only applications that currently reference this key will appear in the dropdown.",[28,[37,12],["oidc/client"],null],[30,1,["allowedClientIds"]],[30,0,["handleClientSelection"]],true,"string-list",true,[28,[37,12],["clientId"],null],[30,0,["filterDropdownOptions"]]]],null],[1,"\\n"]],[]],null],[1,"    "],[13],[1,"\\n"]],[]],null],[1,"  "],[10,0],[14,0,"field box is-fullwidth is-bottomless"],[12],[1,"\\n    "],[10,0],[14,0,"control"],[12],[1,"\\n      "],[8,[39,13],[[16,"disabled",[30,0,["save","isRunning"]]],[24,4,"submit"]],[["@text","@icon"],[[52,[30,1,["isNew"]],"Create","Update"],[52,[30,0,["save","isRunning"]],"loading"]]],null],[1,"\\n      "],[8,[39,13],[[24,0,"has-left-margin-s"],[16,"disabled",[30,0,["save","isRunning"]]],[4,[38,0],["click",[30,0,["cancel"]]],null]],[["@text","@color"],["Cancel","secondary"]],null],[1,"\\n    "],[13],[1,"\\n"],[41,[30,0,["invalidFormAlert"]],[[[1,"      "],[10,0],[14,0,"control"],[12],[1,"\\n        "],[8,[39,14],[[24,0,"has-top-padding-s"]],[["@type","@message"],["danger",[30,0,["invalidFormAlert"]]]],null],[1,"\\n      "],[13],[1,"\\n"]],[]],null],[1,"  "],[13],[1,"\\n"],[13]],["@model","attr","@isModalForm"],false,["on","perform","message-error","each","-track-array","form-field","unless","hds/text/display","radio-card","if","eq","search-select","array","hds/button","alert-inline"]]',moduleName:"vault/templates/components/oidc/key-form.hbs",isStrictMode:!1})})),define("vault/templates/components/oidc/provider-form",["exports","@ember/template-factory"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default=(0,t.createTemplateFactory)({id:"vq4jNzo4",block:'[[[8,[39,0],null,null,[["default"],[[[[1,"\\n  "],[8,[30,1,["top"]],null,null,[["default"],[[[[1,"\\n    "],[8,[39,1],null,null,[["default"],[[[[1,"\\n"],[41,[30,2,["isNew"]],[[[1,"        "],[8,[39,3],null,[["@text","@route"],["Providers","vault.cluster.access.oidc.providers"]],null],[1,"\\n"]],[]],[[[1,"        "],[8,[39,3],null,[["@text","@route","@model"],["Details","vault.cluster.access.oidc.providers.provider.details",[30,2,["name"]]]],null],[1,"\\n"]],[]]],[1,"      "],[8,[39,3],null,[["@text","@current"],[[29,[[52,[30,2,["isNew"]],"Create","Edit"]," Provider"]],true]],null],[1,"\\n    "]],[]]]]],[1,"\\n  "]],[]]]]],[1,"\\n  "],[8,[30,1,["levelLeft"]],null,null,[["default"],[[[[1,"\\n    "],[10,"h1"],[14,0,"title is-3"],[12],[1,"\\n      "],[1,[52,[30,2,["isNew"]],"Create","Edit"]],[1,"\\n      Provider\\n    "],[13],[1,"\\n  "]],[]]]]],[1,"\\n"]],[1]]]]],[1,"\\n\\n"],[11,"form"],[4,[38,4],["submit",[28,[37,5],[[30,0,["save"]]],null]],null],[4,[38,6],[[30,0,["setIssuer"]],[30,2]],null],[12],[1,"\\n  "],[10,0],[14,0,"box is-sideless is-fullwidth is-bottomless"],[12],[1,"\\n    "],[8,[39,7],null,[["@errorMessage"],[[30,0,["errorBanner"]]]],null],[1,"\\n"],[1,"    "],[8,[39,8],null,[["@attr","@model","@modelValidations"],[[28,[37,9],[[30,2,["formFields"]],"0"],null],[30,2],[30,0,["modelValidations"]]]],null],[1,"\\n"],[44,[[28,[37,9],[[30,2,["formFields"]],"1"],null]],[[[1,"      "],[8,[39,11],[[16,"for",[30,3,["name"]]]],[["@label","@helpText","@subText","@docLink"],["Issuer",[30,3,["options","helpText"]],[30,3,["options","subText"]],[30,3,["options","docLink"]]]],null],[1,"\\n      "],[8,[39,12],[[16,1,[30,3,["name"]]],[24,"autocomplete","off"],[24,"spellcheck","false"],[16,0,[29,["input ",[52,[30,0,["validationError"]],"has-error-border"]]]],[16,"placeholder",[30,3,["options","placeholderText"]]]],[["@value"],[[30,2,["issuer"]]]],null],[1,"\\n"]],[3]]],[1,"    "],[8,[39,8],null,[["@attr","@model","@modelValidations"],[[28,[37,9],[[30,2,["formFields"]],"2"],null],[30,2],[30,0,["modelValidations"]]]],null],[1,"\\n  "],[13],[1,"\\n"],[1,"  "],[10,0],[14,0,"box is-sideless is-fullwidth is-marginless has-top-padding-xxl"],[12],[1,"\\n    "],[8,[39,13],null,[["@tag","@size"],["h2","400"]],[["default"],[[[[1,"Allowed applications"]],[]]]]],[1,"\\n    "],[10,0],[14,0,"is-flex-row"],[12],[1,"\\n      "],[8,[39,14],null,[["@title","@description","@icon","@value","@groupValue","@onChange"],["Allow every application to use","All applications can use this provider for authentication requests.","globe","allow_all",[30,0,["radioCardGroupValue"]],[30,0,["handleClientSelection"]]]],null],[1,"\\n      "],[8,[39,14],null,[["@title","@description","@icon","@value","@groupValue","@onChange"],["Limit access to selected application","Only selected applications can use this provider for authentication requests.","globe-private","limited",[30,0,["radioCardGroupValue"]],[30,0,["handleClientSelection"]]]],null],[1,"\\n    "],[13],[1,"\\n"],[41,[28,[37,15],[[30,0,["radioCardGroupValue"]],"limited"],null],[[[1,"      "],[8,[39,16],null,[["@id","@label","@models","@inputValue","@onChange","@disallowNewItems","@fallbackComponent","@passObject","@objectKeys","@renderInfoTooltip"],["allowedClientIds","Application name",[28,[37,17],["oidc/client"],null],[30,2,["allowedClientIds"]],[30,0,["handleClientSelection"]],true,"string-list",true,[28,[37,17],["clientId"],null],[30,0,["renderInfoTooltip"]]]],null],[1,"\\n"]],[]],null],[1,"  "],[13],[1,"\\n  "],[10,0],[14,0,"field box is-fullwidth is-bottomless"],[12],[1,"\\n    "],[10,0],[14,0,"control"],[12],[1,"\\n      "],[8,[39,18],[[16,"disabled",[30,0,["save","isRunning"]]],[24,4,"submit"]],[["@text","@icon"],[[52,[30,2,["isNew"]],"Create","Update"],[52,[30,0,["save","isRunning"]],"loading"]]],null],[1,"\\n      "],[8,[39,18],[[24,0,"has-left-margin-s"],[16,"disabled",[30,0,["save","isRunning"]]],[4,[38,4],["click",[30,0,["cancel"]]],null]],[["@text","@color"],["Cancel","secondary"]],null],[1,"\\n    "],[13],[1,"\\n"],[41,[30,0,["invalidFormAlert"]],[[[1,"      "],[10,0],[14,0,"control"],[12],[1,"\\n        "],[8,[39,19],[[24,0,"has-top-padding-s"]],[["@type","@message"],["danger",[30,0,["invalidFormAlert"]]]],null],[1,"\\n      "],[13],[1,"\\n"]],[]],null],[1,"  "],[13],[1,"\\n"],[13]],["p","@model","attr"],false,["page-header","hds/breadcrumb","if","hds/breadcrumb/item","on","perform","did-insert","message-error","form-field","get","let","form-field-label","input","hds/text/display","radio-card","eq","search-select","array","hds/button","alert-inline"]]',moduleName:"vault/templates/components/oidc/provider-form.hbs",isStrictMode:!1})})),define("vault/templates/components/oidc/provider-list",["exports","@ember/template-factory"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default=(0,t.createTemplateFactory)({id:"kAN9sQnT",block:'[[[42,[28,[37,1],[[28,[37,1],[[30,1]],null]],null],null,[[[1,"  "],[8,[39,2],[[24,0,"list-item-row"]],[["@params"],[[28,[37,3],["vault.cluster.access.oidc.providers.provider.details",[30,2,["name"]]],null]]],[["default"],[[[[1,"\\n    "],[10,0],[14,0,"level is-mobile"],[12],[1,"\\n      "],[10,0],[14,0,"level-left"],[12],[1,"\\n        "],[10,0],[12],[1,"\\n          "],[8,[39,4],[[24,0,"has-text-grey-light"]],[["@name"],["provider"]],null],[1,"\\n          "],[10,1],[14,0,"has-text-weight-semibold is-underline"],[12],[1,"\\n            "],[1,[30,2,["name"]]],[1,"\\n          "],[13],[1,"\\n          "],[10,0],[14,0,"has-text-grey is-size-8"],[12],[1,"\\n            Issuer:\\n            "],[1,[30,2,["issuer"]]],[1,"\\n          "],[13],[1,"\\n        "],[13],[1,"\\n      "],[13],[1,"\\n      "],[10,0],[14,0,"level-right is-flex is-paddingless is-marginless"],[12],[1,"\\n        "],[10,0],[14,0,"level-item"],[12],[1,"\\n"],[41,[28,[37,6],[[30,2,["canRead"]],[30,2,["canEdit"]]],null],[[[1,"            "],[8,[39,7],null,[["@isInline","@listPosition"],[true,"bottom-right"]],[["default"],[[[[1,"\\n              "],[8,[30,3,["ToggleIcon"]],null,[["@icon","@text","@hasChevron"],["more-horizontal","Provider nav options",false]],null],[1,"\\n"],[41,[30,2,["canRead"]],[[[1,"                "],[8,[30,3,["Interactive"]],null,[["@text","@route","@model"],["Details","vault.cluster.access.oidc.providers.provider.details",[30,2,["name"]]]],null],[1,"\\n"]],[]],null],[41,[30,2,["canEdit"]],[[[1,"                "],[8,[30,3,["Interactive"]],null,[["@text","@route","@model"],["Edit","vault.cluster.access.oidc.providers.provider.edit",[30,2,["name"]]]],null],[1,"\\n"]],[]],null],[1,"            "]],[3]]]]],[1,"\\n"]],[]],null],[1,"        "],[13],[1,"\\n      "],[13],[1,"\\n    "],[13],[1,"\\n  "]],[]]]]],[1,"\\n"]],[2]],null]],["@model","provider","dd"],false,["each","-track-array","linked-block","array","icon","if","or","hds/dropdown"]]',moduleName:"vault/templates/components/oidc/provider-list.hbs",isStrictMode:!1})})),define("vault/templates/components/oidc/scope-form",["exports","@ember/template-factory"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default=(0,t.createTemplateFactory)({id:"Bm3USpl9",block:'[[[8,[39,0],null,null,[["default"],[[[[1,"\\n  "],[8,[30,1,["top"]],null,null,[["default"],[[[[1,"\\n    "],[8,[39,1],null,null,[["default"],[[[[1,"\\n"],[41,[30,2,["isNew"]],[[[1,"        "],[8,[39,3],null,[["@text","@route"],["Scopes","vault.cluster.access.oidc.scopes"]],null],[1,"\\n"]],[]],[[[1,"        "],[8,[39,3],null,[["@text","@route","@model"],["Details","vault.cluster.access.oidc.scopes.scope.details",[30,2,["name"]]]],null],[1,"\\n"]],[]]],[1,"      "],[8,[39,3],null,[["@text","@current"],[[29,[[52,[30,2,["isNew"]],"Create","Edit"]," Scope"]],true]],null],[1,"\\n    "]],[]]]]],[1,"\\n  "]],[]]]]],[1,"\\n  "],[8,[30,1,["levelLeft"]],null,null,[["default"],[[[[1,"\\n    "],[10,"h1"],[14,0,"title is-3"],[12],[1,"\\n      "],[1,[52,[30,2,["isNew"]],"Create","Edit"]],[1,"\\n      Scope\\n    "],[13],[1,"\\n  "]],[]]]]],[1,"\\n  "],[8,[30,1,["levelRight"]],null,null,[["default"],[[[[1,"\\n    "],[8,[39,4],[[4,[38,5],["click",[28,[37,6],[[28,[37,7],[[30,0,["showTemplateModal"]]],null]],null]],null]],[["@text","@icon","@color"],["How to write JSON template for scopes","bulb","tertiary"]],null],[1,"\\n  "]],[]]]]],[1,"\\n"]],[1]]]]],[1,"\\n\\n"],[11,"form"],[4,[38,5],["submit",[28,[37,8],[[30,0,["save"]]],null]],null],[12],[1,"\\n  "],[10,0],[14,0,"box is-sideless is-fullwidth is-marginless"],[12],[1,"\\n    "],[10,2],[14,0,"has-bottom-margin-l"],[12],[1,"\\n      Providers may reference a set of scopes to make specific identity information available as claims\\n    "],[13],[1,"\\n    "],[8,[39,9],null,[["@errorMessage"],[[30,0,["errorBanner"]]]],null],[1,"\\n"],[42,[28,[37,11],[[28,[37,11],[[30,2,["formFields"]]],null]],null],null,[[[1,"      "],[8,[39,12],null,[["@attr","@model","@modelValidations"],[[30,3],[30,2],[30,0,["modelValidations"]]]],null],[1,"\\n"]],[3]],null],[1,"    "],[10,2],[14,0,"is-size-9 has-text-grey has-bottom-margin-l"],[12],[1,"\\n      You can use Alt+Tab (Option+Tab on MacOS) in the code editor to skip to the next field. Click \'How to write JSON\\n      template for scopes\' to view an example.\\n    "],[13],[1,"\\n  "],[13],[1,"\\n  "],[10,0],[14,0,"has-top-margin-l has-bottom-margin-l"],[12],[1,"\\n    "],[8,[39,4],[[16,"disabled",[30,0,["save","isRunning"]]],[24,4,"submit"]],[["@text","@icon"],[[52,[30,2,["isNew"]],"Create","Update"],[52,[30,0,["save","isRunning"]],"loading"]]],null],[1,"\\n    "],[8,[39,4],[[24,0,"has-left-margin-s"],[16,"disabled",[30,0,["save","isRunning"]]],[4,[38,5],["click",[30,0,["cancel"]]],null]],[["@text","@color"],["Cancel","secondary"]],null],[1,"\\n  "],[13],[1,"\\n"],[41,[30,0,["invalidFormAlert"]],[[[1,"    "],[10,0],[14,0,"control"],[12],[1,"\\n      "],[8,[39,13],[[24,0,"has-top-padding-s"]],[["@type","@message"],["danger",[30,0,["invalidFormAlert"]]]],null],[1,"\\n    "],[13],[1,"\\n"]],[]],null],[13],[1,"\\n\\n"],[41,[30,0,["showTemplateModal"]],[[[1,"  "],[8,[39,14],[[24,1,"scope-template-modal"]],[["@size","@onClose"],["large",[28,[37,6],[[28,[37,7],[[30,0,["showTemplateModal"]]],null],false],null]]],[["default"],[[[[1,"\\n    "],[8,[30,4,["Header"]],null,null,[["default"],[[[[1,"\\n      Scope template\\n    "]],[]]]]],[1,"\\n    "],[8,[30,4,["Body"]],null,null,[["default"],[[[[1,"\\n      "],[10,2],[12],[1,"\\n        Example of a JSON template for scopes:\\n      "],[13],[1,"\\n      "],[8,[39,15],null,[["@value","@mode","@readOnly","@container"],[[30,0,["exampleTemplate"]],"ruby",true,".hds-modal"]],null],[1,"\\n      "],[10,2],[14,0,"has-top-margin-m"],[12],[1,"\\n        The full list of template parameters can be found\\n        "],[8,[39,16],null,[["@path"],["/vault/docs/concepts/oidc-provider#scopes"]],[["default"],[[[[1,"\\n          here.\\n        "]],[]]]]],[1,"\\n      "],[13],[1,"\\n    "]],[]]]]],[1,"\\n    "],[8,[30,4,["Footer"]],null,null,[["default"],[[[[1,"\\n      "],[8,[39,4],[[4,[38,5],["click",[30,5,["close"]]],null]],[["@text"],["Close"]],null],[1,"\\n    "]],[5]]]]],[1,"\\n  "]],[4]]]]],[1,"\\n"]],[]],null]],["p","@model","field","M","F"],false,["page-header","hds/breadcrumb","if","hds/breadcrumb/item","hds/button","on","fn","mut","perform","message-error","each","-track-array","form-field","alert-inline","hds/modal","json-editor","doc-link"]]',moduleName:"vault/templates/components/oidc/scope-form.hbs",isStrictMode:!1})})),define("vault/templates/components/okta-number-challenge",["exports","@ember/template-factory"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default=(0,t.createTemplateFactory)({id:"Y25HbMog",block:'[[[10,0],[14,0,"auth-form"],[12],[1,"\\n  "],[10,0],[14,0,"box is-marginless is-shadowless"],[12],[1,"\\n    "],[10,2],[12],[1,"\\n      To finish signing in, you will need to complete an additional MFA step.\\n    "],[13],[1,"\\n"],[41,[30,1],[[[1,"      "],[8,[39,1],[[24,0,"has-top-margin-s"]],[["@errorMessage"],[[30,1]]],null],[1,"\\n"]],[]],[[[41,[30,2],[[[1,"      "],[10,2],[14,0,"has-top-margin-s has-text-black has-text-weight-semibold"],[12],[1,"\\n        Okta verification\\n      "],[13],[1,"\\n      "],[10,2],[12],[1,"Select the following number to complete verification:"],[13],[1,"\\n      "],[10,"h1"],[14,0,"title has-font-weight-normal has-top-margin-m has-bottom-margin-s"],[12],[1,"\\n        "],[1,[30,2]],[1,"\\n      "],[13],[1,"\\n"]],[]],[[[1,"      "],[10,0],[14,0,"has-top-margin-l has-bottom-margin-m is-flex-row"],[12],[1,"\\n        "],[8,[39,2],null,[["@name"],["loading"]],null],[1,"\\n        "],[10,2],[14,0,"has-left-margin-xs"],[12],[1,"Please wait..."],[13],[1,"\\n      "],[13],[1,"\\n    "]],[]]]],[]]],[1,"  "],[13],[1,"\\n  "],[8,[39,3],[[24,0,"has-bottom-margin-s has-left-margin-s"],[4,[38,4],["click",[30,3]],null]],[["@text","@icon","@color"],["Back to login","arrow-left","tertiary"]],null],[1,"\\n"],[13]],["@hasError","@correctAnswer","@onReturnToLogin"],false,["if","message-error","flight-icon","hds/button","on"]]',moduleName:"vault/templates/components/okta-number-challenge.hbs",isStrictMode:!1})})),define("vault/templates/components/pgp-file",["exports","@ember/template-factory"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default=(0,t.createTemplateFactory)({id:"lvCtPTk8",block:'[[[10,0],[14,0,"level is-mobile"],[12],[1,"\\n  "],[10,0],[14,0,"level-left"],[12],[1,"\\n    "],[10,"label"],[14,0,"has-text-weight-bold"],[12],[1,"\\n"],[41,[30,0,["label"]],[[[1,"        "],[1,[30,0,["label"]]],[1,"\\n"]],[]],[[[1,"        PGP KEY\\n        "],[1,[52,[28,[37,1],[[30,0,["index"]],""],null],[28,[37,2],[[30,0,["index"]]],null]]],[1,"\\n"]],[]]],[1,"    "],[13],[1,"\\n  "],[13],[1,"\\n  "],[10,0],[14,0,"level-right"],[12],[1,"\\n    "],[10,0],[14,0,"control is-flex"],[12],[1,"\\n      "],[10,"input"],[15,1,[28,[37,3],["useText-",[30,0,["elementId"]]],null]],[15,3,[28,[37,3],["useText-",[30,0,["elementId"]]],null]],[14,0,"toggle is-success is-small"],[15,"checked",[30,0,["key","enterAsText"]]],[15,"onchange",[28,[37,4],[[30,0],[28,[37,5],["enterAsText",[30,0,["key"]]],null]],null]],[14,4,"checkbox"],[12],[13],[1,"\\n      "],[10,"label"],[15,"for",[28,[37,3],["useText-",[30,0,["elementId"]]],null]],[14,0,"has-text-weight-bold is-size-8"],[12],[1,"\\n        Enter as text\\n      "],[13],[1,"\\n    "],[13],[1,"\\n  "],[13],[1,"\\n"],[13],[1,"\\n"],[10,0],[14,0,"field"],[12],[1,"\\n"],[41,[30,0,["key","enterAsText"]],[[[1,"    "],[10,0],[14,0,"control"],[12],[1,"\\n      "],[10,"textarea"],[14,0,"textarea"],[15,"oninput",[28,[37,4],[[30,0],"updateData"],null]],[15,"aria-labelledby",[28,[37,3],["pgpFileTextarea-",[30,0,["elementId"]]],null]],[12],[1,[30,0,["key","value"]]],[13],[1,"\\n    "],[13],[1,"\\n    "],[10,2],[14,0,"help has-text-grey"],[15,1,[28,[37,3],["pgpFileTextarea-",[30,0,["elementId"]]],null]],[12],[1,"\\n"],[41,[30,0,["textareaHelpText"]],[[[1,"        "],[1,[30,0,["textareaHelpText"]]],[1,"\\n"]],[]],[[[1,"        Enter a base64-encoded key\\n"]],[]]],[1,"    "],[13],[1,"\\n"]],[]],[[[1,"    "],[10,0],[14,0,"control is-expanded"],[12],[1,"\\n      "],[10,0],[14,0,"file"],[12],[1,"\\n        "],[10,0],[14,0,"file-label is-fullwidth"],[12],[1,"\\n          "],[10,"input"],[14,1,"file-input"],[14,0,"file-input"],[15,"onchange",[28,[37,4],[[30,0],"pickedFile"],null]],[14,4,"file"],[12],[13],[1,"\\n          "],[10,1],[14,0,"file-cta is-fullwidth"],[12],[1,"\\n            "],[10,1],[14,0,"file-icon has-text-grey-dark"],[12],[1,"\\n              "],[8,[39,6],null,[["@name"],["file"]],null],[1,"\\n            "],[13],[1,"\\n            "],[10,"label"],[14,"for","file-input"],[14,0,"file-label has-text-grey-dark"],[12],[1,"\\n"],[41,[30,0,["key","filename"]],[[[1,"                "],[1,[30,0,["key","filename"]]],[1,"\\n"]],[]],[[[1,"                Choose a file…\\n"]],[]]],[1,"            "],[13],[1,"\\n"],[41,[30,0,["key","filename"]],[[[1,"              "],[8,[39,7],[[24,0,"file-delete-button"],[4,[38,8],["click",[28,[37,4],[[30,0],"clearKey"],null]],null]],[["@text","@icon","@isIconOnly","@color"],["Clear key","x",true,"secondary"]],null],[1,"\\n"]],[]],null],[1,"          "],[13],[1,"\\n        "],[13],[1,"\\n      "],[13],[1,"\\n    "],[13],[1,"\\n    "],[10,2],[14,0,"help has-text-grey"],[12],[1,"\\n"],[41,[30,0,["fileHelpText"]],[[[1,"        "],[1,[30,0,["fileHelpText"]]],[1,"\\n"]],[]],[[[1,"        Select a PGP key from your computer\\n"]],[]]],[1,"    "],[13],[1,"\\n"]],[]]],[13]],[],false,["if","not-eq","inc","concat","action","toggle","icon","hds/button","on"]]',moduleName:"vault/templates/components/pgp-file.hbs",isStrictMode:!1})})),define("vault/templates/components/pgp-list",["exports","@ember/template-factory"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default=(0,t.createTemplateFactory)({id:"e1xvvi8p",block:'[[[42,[28,[37,1],[[28,[37,1],[[30,0,["listData"]]],null]],null],null,[[[1,"  "],[8,[39,2],null,[["@key","@index","@onChange"],[[30,1],[30,2],[28,[37,3],[[30,0],"setKey"],null]]],null],[1,"\\n"]],[1,2]],[[[1,"  "],[10,2],[14,0,"has-text-grey"],[12],[1,"\\n    Enter a number of Key Shares to enter PGP keys.\\n  "],[13],[1,"\\n"]],[]]]],["key","index"],false,["each","-track-array","pgp-file","action"]]',moduleName:"vault/templates/components/pgp-list.hbs",isStrictMode:!1})})),define("vault/templates/components/radial-progress",["exports","@ember/template-factory"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default=(0,t.createTemplateFactory)({id:"Ldf8qbug",block:'[[[10,"circle"],[14,0,"path"],[15,"cx",[30,0,["centerValue"]]],[15,"cy",[30,0,["centerValue"]]],[15,"r",[30,0,["r"]]],[14,"fill","none"],[15,"stroke-width",[30,0,["strokeWidth"]]],[12],[13],[1,"\\n"],[10,"circle"],[14,0,"progress-fill"],[15,"cx",[30,0,["centerValue"]]],[15,"cy",[30,0,["centerValue"]]],[15,"r",[30,0,["r"]]],[14,"fill","none"],[15,"stroke-width",[30,0,["strokeWidth"]]],[15,"stroke-dasharray",[30,0,["c"]]],[15,"stroke-dashoffset",[30,0,["dashArrayOffset"]]],[12],[13]],[],false,[]]',moduleName:"vault/templates/components/radial-progress.hbs",isStrictMode:!1})})),define("vault/templates/components/raft-join",["exports","@ember/template-factory"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default=(0,t.createTemplateFactory)({id:"Lb8McTm+",block:'[[[8,[39,0],null,[["@type","@color"],["inline","warning"]],[["default"],[[[[1,"\\n  "],[8,[30,1,["Title"]],[[24,0,"alert-title"]],null,[["default"],[[[[1,"Vault is sealed"]],[]]]]],[1,"\\n"]],[1]]]]],[1,"\\n"],[41,[30,0,["showJoinForm"]],[[[1,"  "],[10,0],[14,0,"box is-marginless is-shadowless"],[12],[1,"\\n    "],[10,"h2"],[14,0,"title is-5"],[12],[1,"\\n      Join an existing Raft cluster\\n    "],[13],[1,"\\n    "],[8,[39,2],null,[["@model","@saveButtonText","@cancelButtonText","@onCancel","@onSave","@flashEnabled","@includeBox"],[[28,[37,3],[[28,[37,4],[[30,0],"newModel"],null]],null],"Join","Back",[28,[37,4],[[30,0],[28,[37,5],[[30,0,["showJoinForm"]]],null],false],null],[28,[37,6],["vault.cluster.unseal"],null],false,false]],null],[1,"\\n  "],[13],[1,"\\n"]],[]],[[[1,"  "],[10,"form"],[15,"onsubmit",[28,[37,4],[[30,0],"advanceFirstScreen"],null]],[12],[1,"\\n    "],[10,0],[14,0,"box is-marginless is-shadowless"],[12],[1,"\\n      "],[10,"h2"],[14,0,"title is-6"],[12],[1,"\\n        This server is configured to use Raft Storage.\\n        "],[10,"br"],[12],[13],[1,"\\n        "],[10,"br"],[12],[13],[1,"\\n        How do you want to get started?\\n      "],[13],[1,"\\n      "],[10,0],[14,0,"has-bottom-margin-s"],[12],[1,"\\n        "],[8,[39,7],[[24,1,"join"],[24,3,"setup-pref"]],[["@value","@groupValue","@onChange"],["join",[30,0,["preference"]],[28,[37,8],[[28,[37,5],[[30,0,["preference"]]],null]],null]]],null],[1,"\\n        "],[10,"label"],[14,"for","join"],[12],[1,"Join an existing Raft cluster"],[13],[1,"\\n      "],[13],[1,"\\n      "],[10,0],[12],[1,"\\n        "],[8,[39,7],[[24,1,"init"],[24,3,"setup-pref"]],[["@value","@groupValue","@onChange"],["init",[30,0,["preference"]],[28,[37,8],[[28,[37,5],[[30,0,["preference"]]],null]],null]]],null],[1,"\\n        "],[10,"label"],[14,"for","init"],[12],[1,"Create a new Raft cluster"],[13],[1,"\\n      "],[13],[1,"\\n    "],[13],[1,"\\n    "],[10,0],[14,0,"box is-marginless is-shadowless"],[12],[1,"\\n      "],[8,[39,9],[[24,4,"submit"]],[["@text"],["Next"]],null],[1,"\\n    "],[13],[1,"\\n  "],[13],[1,"\\n"]],[]]]],["A"],false,["hds/alert","if","edit-form","compute","action","mut","transition-to","radio-button","fn","hds/button"]]',moduleName:"vault/templates/components/raft-join.hbs",isStrictMode:!1})})),define("vault/templates/components/raft-storage-overview",["exports","@ember/template-factory"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default=(0,t.createTemplateFactory)({id:"LP9Yqz1G",block:'[[[8,[39,0],[[24,0,"has-top-margin-xl has-bottom-margin-m"]],null,[["default"],[[[[1,"\\n  "],[8,[30,1,["Title"]],null,null,[["default"],[[[[1,"Raft Storage"]],[]]]]],[1,"\\n  "],[8,[30,1,["Actions"]],null,null,[["default"],[[[[1,"\\n    "],[8,[39,1],null,null,[["default"],[[[[1,"\\n      "],[8,[30,2,["ToggleButton"]],null,[["@text","@color"],["Snapshots","secondary"]],null],[1,"\\n"],[41,[30,0,["useServiceWorker"]],[[[1,"        "],[8,[30,2,["Interactive"]],[[4,[38,3],["click",[28,[37,4],[[30,0],"downloadViaServiceWorker"],null]],null]],[["@href","@isHrefExternal","@text"],["/v1/sys/storage/raft/snapshot",false,"Download"]],null],[1,"\\n"]],[]],[[[1,"        "],[8,[30,2,["Interactive"]],[[4,[38,3],["click",[28,[37,4],[[30,0],"downloadSnapshot"],null]],null]],[["@text"],["Download"]],null],[1,"\\n"]],[]]],[1,"      "],[8,[30,2,["Interactive"]],null,[["@text","@route"],["Restore","vault.cluster.storage-restore"]],null],[1,"\\n    "]],[2]]]]],[1,"\\n  "]],[]]]]],[1,"\\n"]],[1]]]]],[1,"\\n\\n"],[8,[39,5],null,[["@caption"],["Raft servers"]],[["head","body"],[[[[1,"\\n    "],[8,[30,3,["Tr"]],null,null,[["default"],[[[[1,"\\n      "],[8,[30,3,["Th"]],null,null,[["default"],[[[[1,"Address"]],[]]]]],[1,"\\n      "],[8,[30,3,["Th"]],null,null,[["default"],[[[[1,"Leader"]],[]]]]],[1,"\\n      "],[8,[30,3,["Th"]],null,null,[["default"],[[[[1,"Voter"]],[]]]]],[1,"\\n      "],[8,[30,3,["Th"]],null,[["@align"],["right"]],[["default"],[[[[1,"Actions"]],[]]]]],[1,"\\n    "]],[]]]]],[1,"\\n  "]],[3]],[[[1,"\\n"],[42,[28,[37,7],[[28,[37,7],[[30,5]],null]],null],null,[[[1,"      "],[8,[30,4,["Tr"]],[[24,"data-raft-row",""]],null,[["default"],[[[[1,"\\n        "],[8,[30,4,["Td"]],null,null,[["default"],[[[[1,[30,6,["address"]]]],[]]]]],[1,"\\n        "],[8,[30,4,["Td"]],null,null,[["default"],[[[[41,[30,6,["leader"]],[[[1,"\\n            "],[8,[39,8],null,[["@text","@type","@color","@icon"],["Yes","outlined","success","check-circle"]],null],[1,"\\n"]],[]],[[[1,"            "],[8,[39,8],null,[["@text","@type","@icon"],["No","outlined","x-square"]],null],[1,"\\n"]],[]]],[1,"        "]],[]]]]],[1,"\\n        "],[8,[30,4,["Td"]],null,null,[["default"],[[[[1,"\\n"],[41,[30,6,["voter"]],[[[1,"            "],[8,[39,8],null,[["@text","@type","@color","@icon"],["Yes","outlined","success","check-circle"]],null],[1,"\\n"]],[]],[[[1,"            "],[8,[39,8],null,[["@text","@type","@icon"],["No","outlined","x-square"]],null],[1,"\\n"]],[]]],[1,"        "]],[]]]]],[1,"\\n        "],[8,[30,4,["Td"]],null,[["@align"],["right"]],[["default"],[[[[1,"\\n          "],[8,[39,1],null,[["@isInline"],[true]],[["default"],[[[[1,"\\n            "],[8,[30,7,["ToggleIcon"]],null,[["@icon","@text","@hasChevron"],["more-horizontal","Raft server actions",false]],null],[1,"\\n            "],[8,[30,7,["Generic"]],null,null,[["default"],[[[[1,"\\n              "],[8,[39,9],null,[["@isInDropdown","@onConfirmAction","@buttonText","@confirmTitle","@confirmMessage"],[true,[28,[37,4],[[30,0],"removePeer",[30,6]],null],"Remove Peer",[29,["Remove ",[30,6,["nodeId"]],"?"]],"This will remove the server from the raft cluster."]],null],[1,"\\n            "]],[]]]]],[1,"\\n          "]],[7]]]]],[1,"\\n        "]],[]]]]],[1,"\\n      "]],[]]]]],[1,"\\n"]],[6]],null],[1,"  "]],[4]]]]]],["PH","dd","H","B","@model","server","dd"],false,["hds/page-header","hds/dropdown","if","on","action","hds/table","each","-track-array","hds/badge","confirm-action"]]',moduleName:"vault/templates/components/raft-storage-overview.hbs",isStrictMode:!1})})),define("vault/templates/components/raft-storage-restore",["exports","@ember/template-factory"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default=(0,t.createTemplateFactory)({id:"rgJol/Yi",block:'[[[8,[39,0],null,null,[["default"],[[[[1,"\\n  "],[8,[30,1,["top"]],null,null,[["default"],[[[[1,"\\n    "],[8,[39,1],null,null,[["default"],[[[[1,"\\n      "],[8,[39,2],null,[["@text","@route"],["Raft Storage","vault.cluster.storage"]],null],[1,"\\n      "],[8,[39,2],null,[["@text","@current"],["Restore Snapshot",true]],null],[1,"\\n    "]],[]]]]],[1,"\\n  "]],[]]]]],[1,"\\n  "],[8,[30,1,["levelLeft"]],null,null,[["default"],[[[[1,"\\n    "],[10,"h1"],[14,0,"title is-3"],[12],[1,"\\n      Restore Snapshot\\n    "],[13],[1,"\\n  "]],[]]]]],[1,"\\n"]],[1]]]]],[1,"\\n\\n"],[11,"form"],[4,[38,3],[[30,0],[28,[37,4],[[30,0,["restore"]],[30,0,["file"]]],null]],[["on"],["submit"]]],[12],[1,"\\n  "],[8,[39,5],null,[["@errors"],[[30,0,["errors"]]]],null],[1,"\\n\\n"],[41,[30,0,["isUploading"]],[[[1,"    "],[10,0],[14,0,"box is-sideless is-fullwidth is-marginless"],[12],[1,"\\n      "],[8,[39,7],[[24,0,"has-bottom-margin-s"]],[["@type","@color"],["inline","warning"]],[["default"],[[[[1,"\\n        "],[8,[30,2,["Title"]],null,null,[["default"],[[[[1,"Uploading your file..."]],[]]]]],[1,"\\n        "],[8,[30,2,["Description"]],null,null,[["default"],[[[[1,"Raft snapshots can be very large files. Uploading the snapshot may take some time."]],[]]]]],[1,"\\n      "]],[2]]]]],[1,"\\n    "],[13],[1,"\\n    "],[10,0],[14,0,"box is-fullwidth is-shadowless"],[12],[1,"\\n      "],[8,[39,8],[[4,[38,9],["click",[28,[37,3],[[30,0],"cancelUpload"],null]],null]],[["@text","@color"],["Cancel upload","secondary"]],null],[1,"\\n    "],[13],[1,"\\n"]],[]],[[[1,"    "],[10,0],[14,0,"box is-sideless is-fullwidth is-marginless"],[12],[1,"\\n      "],[8,[39,7],[[24,0,"has-bottom-margin-s"]],[["@type","@color"],["inline","warning"]],[["default"],[[[[1,"\\n        "],[8,[30,3,["Title"]],null,null,[["default"],[[[[1,"This might take a while"]],[]]]]],[1,"\\n        "],[8,[30,3,["Description"]],null,null,[["default"],[[[[1,"Raft snapshots can be very large files. Uploading the snapshot may take some time."]],[]]]]],[1,"\\n      "]],[3]]]]],[1,"\\n      "],[8,[39,10],null,[["@onChange"],[[28,[37,3],[[30,0],[28,[37,11],[[30,0,["file"]]],null]],null]]],null],[1,"\\n      "],[10,0],[14,0,"b-checkbox"],[12],[1,"\\n        "],[10,"input"],[14,1,"force-restore"],[14,0,"styled"],[15,"checked",[30,0,["forceRestore"]]],[15,"onchange",[28,[37,3],[[30,0],[28,[37,11],[[30,0,["forceRestore"]]],null]],[["value"],["target.checked"]]]],[14,4,"checkbox"],[12],[13],[1,"\\n        "],[10,"label"],[14,"for","force-restore"],[14,0,"is-label"],[12],[1,"\\n          Force restore\\n        "],[13],[1,"\\n        "],[10,2],[14,0,"checkbox-help-text"],[12],[1,"\\n          Bypass checks to ensure the AutoUnseal or Shamir keys are consistent with the snapshot data.\\n        "],[13],[1,"\\n      "],[13],[1,"\\n    "],[13],[1,"\\n    "],[8,[39,12],null,[["@saveButtonText","@isSaving","@cancelLinkParams"],["Restore",[30,0,["restore","isRunning"]],[28,[37,13],["vault.cluster.storage"],null]]],null],[1,"\\n"]],[]]],[13]],["p","A","A"],false,["page-header","hds/breadcrumb","hds/breadcrumb/item","action","perform","message-error","if","hds/alert","hds/button","on","file-to-array-buffer","mut","form-save-buttons","array"]]',moduleName:"vault/templates/components/raft-storage-restore.hbs",isStrictMode:!1})})),define("vault/templates/components/role-aws-edit",["exports","@ember/template-factory"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default=(0,t.createTemplateFactory)({id:"vXlMGd1O",block:'[[[8,[39,0],null,null,[["default"],[[[[1,"\\n  "],[8,[30,1,["top"]],null,null,[["default"],[[[[1,"\\n    "],[8,[39,1],null,[["@baseKey","@path","@mode","@root","@showCurrent"],[[30,0,["model"]],"vault.cluster.secrets.backend.list",[30,0,["mode"]],[30,0,["root"]],true]],null],[1,"\\n  "]],[]]]]],[1,"\\n  "],[8,[30,1,["levelLeft"]],null,null,[["default"],[[[[1,"\\n    "],[10,"h1"],[14,0,"title is-3"],[12],[1,"\\n"],[41,[28,[37,3],[[30,0,["mode"]],"create"],null],[[[1,"        Create an AWS Role\\n"]],[]],[[[41,[28,[37,3],[[30,0,["mode"]],"edit"],null],[[[1,"        Edit AWS Role\\n        "],[10,"code"],[12],[1,[30,0,["model","id"]]],[13],[1,"\\n"]],[]],[[[1,"        AWS Role\\n        "],[10,"code"],[12],[1,[30,0,["model","id"]]],[13],[1,"\\n      "]],[]]]],[]]],[1,"    "],[13],[1,"\\n  "]],[]]]]],[1,"\\n"]],[1]]]]],[1,"\\n\\n"],[41,[28,[37,3],[[30,0,["mode"]],"show"],null],[[[1,"  "],[8,[39,4],null,null,[["default"],[[[[1,"\\n    "],[8,[39,5],null,null,[["default"],[[[[1,"\\n"],[41,[30,0,["model","canDelete"]],[[[1,"        "],[8,[39,6],[[24,0,"toolbar-button"]],[["@buttonText","@buttonColor","@onConfirmAction"],["Delete role","secondary",[28,[37,7],[[30,0],"delete"],null]]],null],[1,"\\n        "],[10,0],[14,0,"toolbar-separator"],[12],[13],[1,"\\n"]],[]],null],[41,[30,0,["model","canGenerate"]],[[[1,"        "],[8,[39,8],null,[["@secret","@mode"],[[30,0,["model","id"]],"credentials"]],[["default"],[[[[1,"\\n          Generate credentials\\n        "]],[]]]]],[1,"\\n"]],[]],null],[41,[30,0,["model","canEdit"]],[[[1,"        "],[8,[39,8],null,[["@secret","@mode","@replace"],[[30,0,["model","id"]],"edit",true]],[["default"],[[[[1,"\\n          Edit role\\n        "]],[]]]]],[1,"\\n"]],[]],null],[1,"    "]],[]]]]],[1,"\\n  "]],[]]]]],[1,"\\n"]],[]],null],[1,"\\n"],[41,[28,[37,9],[[28,[37,3],[[30,0,["mode"]],"edit"],null],[28,[37,3],[[30,0,["mode"]],"create"],null]],null],[[[1,"  "],[10,"form"],[15,"onsubmit",[28,[37,7],[[30,0],"createOrUpdate","create"],null]],[12],[1,"\\n    "],[10,0],[14,0,"box is-sideless is-fullwidth is-marginless"],[12],[1,"\\n      "],[8,[39,10],null,[["@model"],[[30,0,["model"]]]],null],[1,"\\n      "],[8,[39,11],null,[["@mode","@noun"],[[30,0,["mode"]],"AWS role"]],null],[1,"\\n"],[41,[28,[37,12],[[30,0,["model","credentialTypes","length"]],1],null],[[[1,"        "],[8,[39,13],[[24,0,"has-bottom-margin-s"]],[["@type","@color"],["inline","warning"]],[["default"],[[[[1,"\\n          "],[8,[30,2,["Title"]],null,null,[["default"],[[[[1,"Warning"]],[]]]]],[1,"\\n          "],[8,[30,2,["Description"]],null,null,[["default"],[[[[1,"\\n            This role has more than one\\n            "],[10,"code"],[12],[1,"credential_type"],[13],[1,", currently:\\n            "],[1,[28,[35,14],[", ",[30,0,["model","credentialTypes"]]],null]],[1,". Multiple credential types is deprecated and you must choose one in\\n            order to save this role.\\n          "]],[]]]]],[1,"\\n        "]],[2]]]]],[1,"\\n"]],[]],null],[42,[28,[37,16],[[28,[37,16],[[52,[28,[37,3],[[30,0,["mode"]],"edit"],null],[28,[37,17],[1,[28,[37,9],[[30,0,["model","fields"]],[28,[37,18],null,null]],null]],null],[30,0,["model","fields"]]]],null]],null],null,[[[1,"        "],[8,[39,19],null,[["@attr","@model"],[[30,3],[30,4]]],null],[1,"\\n"]],[3]],null],[1,"    "],[13],[1,"\\n    "],[10,0],[14,0,"field is-grouped-split box is-fullwidth is-bottomless"],[12],[1,"\\n      "],[8,[39,20],null,null,[["default"],[[[[1,"\\n        "],[8,[39,21],[[24,4,"submit"]],[["@text"],[[52,[28,[37,3],[[30,0,["mode"]],"create"],null],"Create role","Save"]]],null],[1,"\\n"],[41,[28,[37,3],[[30,0,["mode"]],"create"],null],[[[1,"          "],[8,[39,21],null,[["@text","@color","@route","@model"],["Cancel","secondary","vault.cluster.secrets.backend.list-root",[30,0,["model","backend"]]]],null],[1,"\\n"]],[]],[[[1,"          "],[8,[39,21],null,[["@text","@color","@route","@models"],["Cancel","secondary","vault.cluster.secrets.backend.show",[28,[37,18],[[30,0,["model","backend"]],[30,0,["model","id"]]],null]]],null],[1,"\\n"]],[]]],[1,"      "]],[]]]]],[1,"\\n    "],[13],[1,"\\n  "],[13],[1,"\\n"]],[]],[[[1,"  "],[10,0],[14,0,"box is-fullwidth is-sideless is-paddingless is-marginless"],[12],[1,"\\n"],[41,[28,[37,12],[[30,0,["model","credentialTypes","length"]],1],null],[[[1,"      "],[8,[39,13],[[24,0,"has-bottom-margin-s"]],[["@type","@color"],["inline","warning"]],[["default"],[[[[1,"\\n        "],[8,[30,5,["Title"]],null,null,[["default"],[[[[1,"Warning"]],[]]]]],[1,"\\n        "],[8,[30,5,["Description"]],null,null,[["default"],[[[[1,"\\n          This role has more than one\\n          "],[10,"code"],[12],[1,"credential_type"],[13],[1,", currently:\\n          "],[1,[28,[35,14],[", ",[30,0,["model","credentialTypes"]]],null]],[1,". When you next edit this role, you will have to choose a single credential\\n          type.\\n        "]],[]]]]],[1,"\\n      "]],[5]]]]],[1,"\\n"]],[]],null],[42,[28,[37,16],[[28,[37,16],[[30,0,["model","fields"]]],null]],null],null,[[[41,[28,[37,3],[[30,6,["name"]],"policyDocument"],null],[[[1,"        "],[8,[39,22],null,[["@label","@value"],[[28,[37,23],[[28,[37,9],[[30,6,["options","label"]],[28,[37,24],[[28,[37,25],[[30,6,["name"]]],null]],null]],null]],null],[30,0,["model","policyDocument"]]]],[["default"],[[[[1,"\\n          "],[10,"pre"],[12],[10,"code"],[14,0,"is-paddingless"],[12],[1,[28,[35,26],[[28,[37,27],[[30,0,["model","policyDocument"]]],null]],null]],[13],[13],[1,"\\n        "]],[]]]]],[1,"\\n"]],[]],[[[1,"        "],[8,[39,22],null,[["@label","@value"],[[28,[37,23],[[28,[37,9],[[30,6,["options","label"]],[28,[37,24],[[28,[37,25],[[30,6,["name"]]],null]],null]],null]],null],[28,[37,28],[[30,0,["model"]],[30,6,["name"]]],null]]],null],[1,"\\n"]],[]]]],[6]],null],[1,"  "],[13],[1,"\\n"]],[]]]],["p","A","attr","@model","A","attr"],false,["page-header","key-value-header","if","eq","toolbar","toolbar-actions","confirm-action","action","toolbar-secret-link","or","message-error","namespace-reminder","gt","hds/alert","join","each","-track-array","drop","array","form-field","hds/button-set","hds/button","info-table-row","capitalize","humanize","dasherize","stringify","jsonify","get"]]',moduleName:"vault/templates/components/role-aws-edit.hbs",isStrictMode:!1})})),define("vault/templates/components/role-ssh-edit",["exports","@ember/template-factory"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default=(0,t.createTemplateFactory)({id:"28m1YFNi",block:'[[[8,[39,0],null,null,[["default"],[[[[1,"\\n  "],[8,[30,1,["top"]],null,null,[["default"],[[[[1,"\\n    "],[8,[39,1],null,[["@baseKey","@path","@mode","@root","@showCurrent"],[[30,0,["model"]],"vault.cluster.secrets.backend.list",[30,0,["mode"]],[30,0,["root"]],true]],null],[1,"\\n  "]],[]]]]],[1,"\\n  "],[8,[30,1,["levelLeft"]],null,null,[["default"],[[[[1,"\\n    "],[10,"h1"],[14,0,"title is-3"],[12],[1,"\\n"],[41,[28,[37,3],[[30,0,["mode"]],"create"],null],[[[1,"        Create an SSH Role\\n"]],[]],[[[41,[28,[37,3],[[30,0,["mode"]],"edit"],null],[[[1,"        Edit SSH Role\\n"]],[]],[[[1,"        SSH Role\\n        "],[10,"code"],[12],[1,[30,0,["model","id"]]],[13],[1,"\\n      "]],[]]]],[]]],[1,"    "],[13],[1,"\\n  "]],[]]]]],[1,"\\n"]],[1]]]]],[1,"\\n\\n"],[41,[28,[37,3],[[30,0,["mode"]],"show"],null],[[[1,"  "],[8,[39,4],null,null,[["default"],[[[[1,"\\n    "],[8,[39,5],null,null,[["default"],[[[[1,"\\n"],[41,[30,0,["model","canDelete"]],[[[1,"        "],[8,[39,6],[[24,0,"toolbar-button"]],[["@buttonText","@buttonColor","@onConfirmAction"],["Delete role","secondary",[28,[37,7],[[30,0],"delete"],null]]],null],[1,"\\n        "],[10,0],[14,0,"toolbar-separator"],[12],[13],[1,"\\n"]],[]],null],[41,[28,[37,3],[[30,0,["model","keyType"]],"otp"],null],[[[1,"        "],[8,[39,8],null,[["@secret","@mode","@replace"],[[30,0,["model","id"]],"credentials",true]],[["default"],[[[[1,"\\n          Generate Credential\\n        "]],[]]]]],[1,"\\n"]],[]],[[[1,"        "],[8,[39,8],null,[["@secret","@mode","@replace"],[[30,0,["model","id"]],"sign",true]],[["default"],[[[[1,"\\n          Sign Keys\\n        "]],[]]]]],[1,"\\n"]],[]]],[41,[28,[37,9],[[30,0,["model","canUpdate"]],[30,0,["model","canDelete"]]],null],[[[1,"        "],[8,[39,8],null,[["@secret","@mode","@replace"],[[30,0,["model","id"]],"edit",true]],[["default"],[[[[1,"\\n          Edit role\\n        "]],[]]]]],[1,"\\n"]],[]],null],[1,"    "]],[]]]]],[1,"\\n  "]],[]]]]],[1,"\\n"]],[]],null],[1,"\\n"],[41,[28,[37,9],[[28,[37,3],[[30,0,["mode"]],"edit"],null],[28,[37,3],[[30,0,["mode"]],"create"],null]],null],[[[1,"  "],[10,"form"],[15,"onsubmit",[28,[37,7],[[30,0],"createOrUpdate","create"],null]],[12],[1,"\\n    "],[10,0],[14,0,"box is-sideless is-fullwidth is-marginless"],[12],[1,"\\n      "],[8,[39,10],null,[["@model"],[[30,0,["model"]]]],null],[1,"\\n      "],[8,[39,11],null,[["@mode","@noun"],[[30,0,["mode"]],"SSH role"]],null],[1,"\\n      "],[8,[39,12],null,[["@model","@mode"],[[30,0,["model"]],[30,0,["mode"]]]],null],[1,"\\n    "],[13],[1,"\\n    "],[10,0],[14,0,"field is-grouped-split box is-fullwidth is-bottomless"],[12],[1,"\\n      "],[8,[39,13],null,null,[["default"],[[[[1,"\\n        "],[8,[39,14],[[24,4,"submit"]],[["@text"],[[52,[28,[37,3],[[30,0,["mode"]],"create"],null],"Create role","Save"]]],null],[1,"\\n"],[41,[28,[37,3],[[30,0,["mode"]],"create"],null],[[[1,"          "],[8,[39,14],null,[["@text","@color","@route","@model","@query"],["Cancel","secondary","vault.cluster.secrets.backend.list-root",[30,0,["model","backend"]],[28,[37,15],null,[["tab"],["role"]]]]],null],[1,"\\n"]],[]],[[[1,"          "],[8,[39,14],null,[["@text","@color","@route","@models"],["Cancel","secondary","vault.cluster.secrets.backend.show",[28,[37,16],[[30,0,["model","backend"]],[30,0,["model","id"]]],null]]],null],[1,"\\n"]],[]]],[1,"      "]],[]]]]],[1,"\\n    "],[13],[1,"\\n  "],[13],[1,"\\n"]],[]],[[[1,"  "],[10,0],[14,0,"box is-fullwidth is-sideless is-paddingless is-marginless"],[12],[1,"\\n"],[42,[28,[37,18],[[28,[37,18],[[30,0,["model","showFields"]]],null]],null],null,[[[41,[28,[37,3],[[30,2,["type"]],"object"],null],[[[1,"        "],[8,[39,19],null,[["@label","@value"],[[28,[37,20],[[28,[37,9],[[30,2,["options","label"]],[28,[37,21],[[28,[37,22],[[30,2,["name"]]],null]],null]],null]],null],[28,[37,23],[[28,[37,24],[[30,0,["model"]],[30,2,["name"]]],null]],null]]],null],[1,"\\n"]],[]],[[[1,"        "],[8,[39,19],null,[["@label","@value"],[[28,[37,20],[[28,[37,9],[[30,2,["options","label"]],[28,[37,21],[[28,[37,22],[[30,2,["name"]]],null]],null]],null]],null],[28,[37,24],[[30,0,["model"]],[30,2,["name"]]],null]]],null],[1,"\\n"]],[]]]],[2]],null],[1,"  "],[13],[1,"\\n"]],[]]]],["p","attr"],false,["page-header","key-value-header","if","eq","toolbar","toolbar-actions","confirm-action","action","toolbar-secret-link","or","message-error","namespace-reminder","form-field-groups-loop","hds/button-set","hds/button","hash","array","each","-track-array","info-table-row","capitalize","humanize","dasherize","stringify","get"]]',moduleName:"vault/templates/components/role-ssh-edit.hbs",isStrictMode:!1})})),define("vault/templates/components/secret-create-or-update",["exports","@ember/template-factory"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default=(0,t.createTemplateFactory)({id:"LZt5uWfw",block:'[[[41,[28,[37,1],[[30,1],"create"],null],[[[1,"  "],[11,"form"],[16,0,[52,[30,2],"advanced-edit","simple-edit"]],[24,"aria-label","secret create form"],[4,[38,2],["submit",[28,[37,3],[[30,0,["createOrUpdateKey"]],[30,1]],null]],null],[4,[38,4],[[30,0,["setup"]],[30,3],[30,1]],null],[12],[1,"\\n    "],[10,0],[14,0,"field box is-fullwidth is-sideless is-marginless"],[12],[1,"\\n      "],[8,[39,5],null,[["@mode","@noun"],["create","secret"]],null],[1,"\\n      "],[8,[39,6],null,[["@model","@errorMessage"],[[30,4],[30,0,["error"]]]],null],[1,"\\n      "],[10,"label"],[14,0,"is-label"],[14,"for","kv-key"],[12],[1,"Path for this secret"],[13],[1,"\\n      "],[10,2],[14,0,"control is-expanded"],[12],[1,"\\n        "],[8,[39,7],[[24,"autocomplete","off"],[24,"spellcheck","false"],[24,1,"kv-key"],[16,0,[29,["input ",[52,[28,[37,8],[[30,0,["validationMessages"]],"path"],null],"has-error-border"]]]],[4,[38,2],["keyup",[28,[37,9],[[30,0,["waitForKeyUp"]],"path"],[["value"],["target.value"]]]],null]],[["@value"],[[28,[37,8],[[30,4],[30,4,["pathAttr"]]],null]]],null],[1,"\\n      "],[13],[1,"\\n"],[41,[28,[37,8],[[30,0,["validationMessages"]],"path"],null],[[[1,"        "],[8,[39,10],[[24,0,"has-top-padding-s"]],[["@type","@message"],["danger",[28,[37,11],[[28,[37,8],[[30,0,["validationMessages"]],"path"],null]],null]]],null],[1,"\\n"]],[]],null],[41,[30,4,["isFolder"]],[[[1,"        "],[10,2],[14,0,"help has-text-danger"],[12],[1,"\\n          The secret path may not end in\\n          "],[10,"code"],[12],[1,"/"],[13],[1,"\\n        "],[13],[1,"\\n"]],[]],null],[41,[30,0,["pathWhiteSpaceWarning"]],[[[1,"        "],[8,[39,12],[[24,0,"has-top-margin-m has-bottom-margin-s"]],[["@type","@color"],["inline","warning"]],[["default"],[[[[1,"\\n          "],[8,[30,5,["Title"]],null,null,[["default"],[[[[1,"Warning"]],[]]]]],[1,"\\n          "],[8,[30,5,["Description"]],null,null,[["default"],[[[[1,"\\n            "],[1,[30,0,["whitespaceWarning"]]],[1,"\\n          "]],[]]]]],[1,"\\n        "]],[5]]]]],[1,"\\n"]],[]],null],[1,"    "],[13],[1,"\\n"],[41,[30,2],[[[1,"      "],[10,0],[14,0,"form-section"],[12],[1,"\\n        "],[8,[39,13],null,[["@title","@value","@valueUpdated","@onFocusOut"],["Secret Data",[30,0,["codemirrorString"]],[30,0,["codemirrorUpdated"]],[30,0,["formatJSON"]]]],null],[1,"\\n      "],[13],[1,"\\n"]],[]],[[[1,"      "],[10,0],[14,0,"form-section"],[12],[1,"\\n        "],[10,"label"],[14,0,"title is-5"],[12],[1,"\\n          Secret data\\n        "],[13],[1,"\\n"],[42,[28,[37,15],[[28,[37,15],[[30,3]],null]],null],null,[[[1,"          "],[10,0],[14,0,"info-table-row"],[12],[1,"\\n            "],[10,0],[14,0,"column is-one-quarter info-table-row-edit"],[12],[1,"\\n              "],[8,[39,7],[[24,"placeholder","key"],[24,0,"input"],[24,"autocomplete","off"],[24,"spellcheck","false"],[4,[38,2],["change",[30,0,["handleChange"]]],null]],[["@value"],[[30,6,["name"]]]],null],[1,"\\n            "],[13],[1,"\\n            "],[10,0],[14,0,"column info-table-row-edit"],[12],[1,"\\n              "],[8,[39,16],null,[["@name","@onChange","@value"],[[30,6,["name"]],[28,[37,3],[[30,0,["handleMaskedInputChange"]],[30,6],[30,7]],null],[30,6,["value"]]]],null],[1,"\\n            "],[13],[1,"\\n            "],[10,0],[14,0,"column is-narrow info-table-row-edit"],[12],[1,"\\n"],[41,[28,[37,1],[[30,3,["length"]],[28,[37,17],[[30,7]],null]],null],[[[1,"                "],[8,[39,18],[[4,[38,2],["click",[30,0,["addRow"]]],null]],[["@text","@color"],["Add","secondary"]],null],[1,"\\n"]],[]],[[[1,"                "],[8,[39,18],[[4,[38,2],["click",[28,[37,3],[[30,0,["deleteRow"]],[30,6,["name"]]],null]],null]],[["@text","@icon","@isIconOnly","@color"],["Delete row","trash",true,"secondary"]],null],[1,"\\n"]],[]]],[1,"            "],[13],[1,"\\n          "],[13],[1,"\\n"],[41,[30,0,["validationMessages","key"]],[[[1,"            "],[8,[39,10],[[24,0,"has-top-padding-s"]],[["@type","@message"],["danger",[30,0,["validationMessages","key"]]]],null],[1,"\\n"]],[]],null]],[6,7]],null],[1,"      "],[13],[1,"\\n"]],[]]],[1,"\\n    "],[10,0],[14,0,"field is-grouped box is-fullwidth is-bottomless"],[12],[1,"\\n      "],[8,[39,19],null,null,[["default"],[[[[1,"\\n        "],[8,[39,18],[[16,"disabled",[30,8]],[24,4,"submit"]],[["@text"],["Save"]],null],[1,"\\n"],[41,[30,9,["path"]],[[[1,"          "],[8,[39,18],null,[["@text","@color","@route","@model"],["Cancel","secondary","vault.cluster.secrets.backend.list",[30,9,["path"]]]],null],[1,"\\n"]],[]],[[[1,"          "],[8,[39,18],null,[["@text","@color","@route"],["Cancel","secondary","vault.cluster.secrets.backend.list-root"]],null],[1,"\\n"]],[]]],[1,"      "]],[]]]]],[1,"\\n    "],[13],[1,"\\n  "],[13],[1,"\\n"]],[]],null],[1,"\\n"],[41,[28,[37,1],[[30,1],"edit"],null],[[[1,"  "],[11,"form"],[24,"aria-label","secret edit form"],[4,[38,2],["submit",[28,[37,3],[[30,0,["createOrUpdateKey"]],"edit"],null]],null],[4,[38,4],[[30,0,["setup"]],[30,3],[30,1]],null],[12],[1,"\\n    "],[10,0],[14,0,"box is-sideless is-fullwidth is-marginless padding-top"],[12],[1,"\\n      "],[8,[39,6],null,[["@model","@errorMessage"],[[30,4],[30,0,["error"]]]],null],[1,"\\n      "],[8,[39,5],null,[["@mode","@noun"],["edit","secret"]],null],[1,"\\n"],[41,[28,[37,1],[[30,10],false],null],[[[1,"        "],[8,[39,12],[[24,0,"has-bottom-margin-s"]],[["@type","@color"],["inline","warning"]],[["default"],[[[[1,"\\n          "],[8,[30,11,["Title"]],null,null,[["default"],[[[[1,"Warning"]],[]]]]],[1,"\\n          "],[8,[30,11,["Description"]],null,null,[["default"],[[[[1,"\\n            "],[10,"ul"],[15,0,[52,[28,[37,1],[[30,10],false],null],"bullet"]],[12],[1,"\\n"],[41,[28,[37,1],[[30,10],false],null],[[[1,"                "],[10,"li"],[12],[1,"\\n                  You do not have read permissions. If a secret exists at this path creating a new secret will overwrite it.\\n                "],[13],[1,"\\n"]],[]],null],[1,"            "],[13],[1,"\\n          "]],[]]]]],[1,"\\n        "]],[11]]]]],[1,"\\n"]],[]],null],[41,[30,2],[[[1,"        "],[10,0],[14,0,"form-section"],[12],[1,"\\n          "],[8,[39,13],null,[["@title","@value","@valueUpdated","@onFocusOut"],["Secret Data",[30,0,["codemirrorString"]],[30,0,["codemirrorUpdated"]],[30,0,["formatJSON"]]]],null],[1,"\\n        "],[13],[1,"\\n"]],[]],[[[1,"        "],[10,0],[14,0,"form-section"],[12],[1,"\\n          "],[10,"label"],[14,0,"title is-5"],[12],[1,"\\n            Secret data\\n          "],[13],[1,"\\n"],[42,[28,[37,15],[[28,[37,15],[[30,3]],null]],null],null,[[[1,"            "],[10,0],[14,0,"columns is-variable has-no-shadow"],[12],[1,"\\n              "],[10,0],[14,0,"column is-one-quarter"],[12],[1,"\\n                "],[8,[39,7],[[24,"placeholder","key"],[24,0,"input"],[24,"autocomplete","off"],[24,"spellcheck","false"],[4,[38,2],["change",[30,0,["handleChange"]]],null]],[["@value"],[[30,12,["name"]]]],null],[1,"\\n              "],[13],[1,"\\n              "],[10,0],[14,0,"column"],[12],[1,"\\n                "],[8,[39,16],null,[["@name","@onChange","@value"],[[30,12,["name"]],[28,[37,3],[[30,0,["handleMaskedInputChange"]],[30,12],[30,13]],null],[30,12,["value"]]]],null],[1,"\\n              "],[13],[1,"\\n              "],[10,0],[14,0,"column is-narrow"],[12],[1,"\\n"],[41,[28,[37,1],[[30,3,["length"]],[28,[37,17],[[30,13]],null]],null],[[[1,"                  "],[8,[39,18],[[4,[38,2],["click",[30,0,["addRow"]]],null]],[["@text","@color"],["Add","secondary"]],null],[1,"\\n"]],[]],[[[1,"                  "],[8,[39,18],[[4,[38,2],["click",[28,[37,3],[[30,0,["deleteRow"]],[30,12,["name"]]],null]],null]],[["@text","@icon","@isIconOnly","@color"],["Delete row","trash",true,"secondary"]],null],[1,"\\n"]],[]]],[1,"              "],[13],[1,"\\n            "],[13],[1,"\\n"]],[12,13]],null],[1,"        "],[13],[1,"\\n"]],[]]],[1,"    "],[13],[1,"\\n    "],[10,0],[14,0,"field is-grouped is-grouped-split is-fullwidth box is-bottomless"],[12],[1,"\\n      "],[10,0],[14,0,"field is-grouped"],[12],[1,"\\n        "],[8,[39,19],null,null,[["default"],[[[[1,"\\n          "],[8,[39,18],[[16,"disabled",[28,[37,20],[[30,8],[30,0,["validationErrorCount"]]],null]],[24,4,"submit"]],[["@text"],["Save"]],null],[1,"\\n          "],[8,[39,18],null,[["@text","@color","@route","@model","@query"],["Cancel","secondary","vault.cluster.secrets.backend.show",[30,9,["id"]],[28,[37,21],null,[["version"],[[30,4,["version"]]]]]]],null],[1,"\\n        "]],[]]]]],[1,"\\n      "],[13],[1,"\\n    "],[13],[1,"\\n  "],[13],[1,"\\n"]],[]],null]],["@mode","@showAdvancedMode","@secretData","@modelForData","A","secret","index","@buttonDisabled","@model","@canReadSecret","A","secret","index"],false,["if","eq","on","fn","did-insert","namespace-reminder","message-error","input","get","perform","alert-inline","capitalize","hds/alert","json-editor","each","-track-array","masked-input","inc","hds/button","hds/button-set","or","hash"]]',moduleName:"vault/templates/components/secret-create-or-update.hbs",isStrictMode:!1})})),define("vault/templates/components/secret-edit-toolbar",["exports","@ember/template-factory"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default=(0,t.createTemplateFactory)({id:"pdR3Pq59",block:'[[[8,[39,0],[[24,"aria-label","manage secret"]],null,[["default"],[[[[1,"\\n"],[41,[51,[28,[37,2],[[28,[37,3],[[30,1],"show"],null],[30,2]],null]],[[[1,"    "],[8,[39,4],[[24,"aria-label","manage view"]],null,[["default"],[[[[1,"\\n      "],[8,[39,5],null,[["@name","@disabled","@checked","@onChange"],["json",[28,[37,2],[[28,[37,3],[[30,1],"show"],null],[30,3]],null],[30,4],[28,[37,6],[[30,0],[30,5,["toggleAdvanced"]]],null]]],[["default"],[[[[1,"\\n        "],[10,1],[14,0,"has-text-grey"],[12],[1,"JSON"],[13],[1,"\\n      "]],[]]]]],[1,"\\n    "]],[]]]]],[1,"\\n"]],[]],null],[1,"  "],[8,[39,7],[[16,"aria-label",[29,["actions for ",[30,6,["id"]]]]]],null,[["default"],[[[[1,"\\n"],[41,[28,[37,2],[[28,[37,3],[[30,1],"show"],null],[30,6,["canDelete"]]],null],[[[1,"      "],[8,[39,9],[[24,0,"toolbar-button"]],[["@buttonText","@buttonColor","@confirmTitle","@confirmMessage","@onConfirmAction"],["Delete","secondary","Delete secret?","You will not be able to recover this secret data later.",[30,0,["handleDelete"]]]],null],[1,"\\n      "],[10,0],[14,0,"toolbar-separator"],[12],[13],[1,"\\n"]],[]],null],[41,[28,[37,2],[[28,[37,3],[[30,1],"show"],null],[30,7]],null],[[[41,[51,[28,[37,10],[[30,2],[30,8,["deleted"]]],null]],[[[1,"        "],[8,[39,11],null,[["@clipboardText","@onWrap","@isWrapping","@wrappedData","@onClose"],[[28,[37,12],[[30,8,["secretData"]]],null],[28,[37,13],[[30,0,["wrapSecret"]]],null],[30,0,["wrapSecret","isRunning"]],[30,0,["wrappedData"]],[30,0,["clearWrappedData"]]]],null],[1,"\\n"]],[]],null]],[]],null],[1,"\\n"],[41,[28,[37,2],[[28,[37,3],[[30,1],"show"],null],[30,7]],null],[[[44,[[28,[37,15],["vault.cluster.secrets.backend.",[52,[28,[37,3],[[30,1],"show"],null],"edit","show"]],null]],[[[1,"        "],[8,[39,16],null,[["@route","@model","@replace"],[[30,9],[30,6,["id"]],true]],[["default"],[[[[1,"\\n          Edit secret\\n        "]],[]]]]],[1,"\\n"]],[9]]]],[]],null],[1,"  "]],[]]]]],[1,"\\n"]],[]]]]]],["@mode","@isWriteWithoutRead","@secretDataIsAdvanced","@showAdvancedMode","@editActions","@model","@canUpdateSecret","@modelForData","targetRoute"],false,["toolbar","unless","and","eq","toolbar-filters","toggle","action","toolbar-actions","if","confirm-action","or","copy-secret-dropdown","stringify","perform","let","concat","toolbar-link"]]',moduleName:"vault/templates/components/secret-edit-toolbar.hbs",isStrictMode:!1})})),define("vault/templates/components/secret-edit",["exports","@ember/template-factory"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default=(0,t.createTemplateFactory)({id:"dZlGFp+X",block:'[[[11,0],[4,[38,0],[[30,0,["createKvData"]],[30,1]],null],[12],[1,"\\n  "],[8,[39,1],null,null,[["default"],[[[[1,"\\n    "],[8,[30,2,["top"]],null,null,[["default"],[[[[1,"\\n      "],[8,[39,2],null,[["@baseKey","@path","@mode","@root","@showCurrent"],[[30,3],"vault.cluster.secrets.backend.list",[30,4],[30,5],true]],null],[1,"\\n    "]],[]]]]],[1,"\\n    "],[8,[30,2,["levelLeft"]],null,null,[["default"],[[[[1,"\\n      "],[10,"h1"],[14,0,"title is-3"],[12],[1,"\\n"],[41,[28,[37,4],[[30,4],"create"],null],[[[1,"          Create Secret\\n"]],[]],[[[41,[28,[37,4],[[30,4],"edit"],null],[[[1,"          Edit Secret\\n"]],[]],[[[1,"          "],[1,[30,6,["id"]]],[1,"\\n          "],[8,[39,5],null,[["@isIconOnly","@text","@textToCopy"],[true,"Copy your secret path",[30,6,["id"]]]],null],[1,"\\n        "]],[]]]],[]]],[1,"      "],[13],[1,"\\n    "]],[]]]]],[1,"\\n  "]],[2]]]]],[1,"\\n"],[41,[28,[37,4],[[30,4],"show"],null],[[[1,"    "],[10,0],[14,0,"tabs-container box is-bottomless is-marginless is-fullwidth is-paddingless"],[12],[1,"\\n      "],[10,"nav"],[14,0,"tabs"],[14,"aria-label","navigation for secret management"],[12],[1,"\\n        "],[10,"ul"],[12],[1,"\\n          "],[10,"li"],[12],[1,"\\n            "],[8,[39,6],null,[["@route","@model"],["vault.cluster.secrets.backend.show",[30,6,["id"]]]],[["default"],[[[[1,"\\n              Secret\\n            "]],[]]]]],[1,"\\n          "],[13],[1,"\\n        "],[13],[1,"\\n      "],[13],[1,"\\n    "],[13],[1,"\\n"]],[]],null],[1,"\\n"],[41,[28,[37,7],[[30,1],[28,[37,8],[[30,0,["secretData"]],null],null]],null],[[[1,"    "],[8,[39,9],null,[["@mode","@model","@isWriteWithoutRead","@secretDataIsAdvanced","@showAdvancedMode","@modelForData","@canUpdateSecret","@codemirrorString","@editActions"],[[30,4],[30,1],[30,0,["isWriteWithoutRead"]],[30,0,["secretDataIsAdvanced"]],[30,0,["showAdvancedMode"]],[30,0,["modelForData"]],[30,0,["canUpdateSecret"]],[30,0,["codemirrorString"]],[28,[37,10],null,[["toggleAdvanced","refresh"],[[28,[37,11],[[30,0],"toggleAdvanced"],null],[28,[37,11],[[30,0],"refresh"],null]]]]]],null],[1,"\\n\\n"],[41,[28,[37,12],[[28,[37,4],[[30,4],"create"],null],[28,[37,4],[[30,4],"edit"],null]],null],[[[1,"      "],[8,[39,13],null,[["@mode","@model","@showAdvancedMode","@modelForData","@error","@secretData","@buttonDisabled","@canReadSecret"],[[30,4],[30,1],[30,0,["showAdvancedMode"]],[30,0,["modelForData"]],[30,0,["error"]],[30,0,["secretData"]],[30,0,["buttonDisabled"]],[30,0,["canReadSecret"]]]],null],[1,"\\n"]],[]],[[[41,[28,[37,4],[[30,4],"show"],null],[[[1,"      "],[8,[39,14],null,[["@modelForData","@isWriteWithoutRead","@showAdvancedMode"],[[30,0,["modelForData"]],[30,0,["isWriteWithoutRead"]],[30,0,["showAdvancedMode"]]]],null],[1,"\\n"]],[]],[[[1,"      "],[8,[39,15],null,[["@title"],["No secret view was selected"]],null],[1,"\\n    "]],[]]]],[]]]],[]],null],[13]],["@model","p","@baseKey","@mode","@root","@key"],false,["did-insert","page-header","key-value-header","if","eq","hds/copy/button","link-to","and","not-eq","secret-edit-toolbar","hash","action","or","secret-create-or-update","secret-form-show","empty-state"]]',moduleName:"vault/templates/components/secret-edit.hbs",isStrictMode:!1})})),define("vault/templates/components/secret-form-show",["exports","@ember/template-factory"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default=(0,t.createTemplateFactory)({id:"lmO0IBgb",block:'[[[41,[30,1],[[[1,"  "],[8,[39,1],null,[["@title","@message"],["You do not have permission to read this secret.","Your policies permit you to overwrite this secret, but do not allow you to read it."]],null],[1,"\\n"]],[]],[[[41,[30,2],[[[1,"    "],[10,0],[14,0,"has-top-margin-s"],[12],[1,"\\n      "],[8,[39,2],null,[["@title","@value","@readOnly"],["Secret Data",[30,3,["dataAsJSONString"]],true]],null],[1,"\\n    "],[13],[1,"\\n"]],[]],[[[1,"    "],[10,0],[14,0,"info-table-row-header"],[12],[1,"\\n      "],[10,0],[14,0,"info-table-row thead"],[12],[1,"\\n        "],[10,0],[14,0,"th column is-one-quarter"],[12],[1,"\\n          Key\\n        "],[13],[1,"\\n        "],[10,0],[14,0,"th column"],[12],[1,"\\n          Value\\n        "],[13],[1,"\\n      "],[13],[1,"\\n    "],[13],[1,"\\n"],[41,[30,3,["secretKeyAndValue"]],[[[42,[28,[37,4],[[28,[37,4],[[30,3,["secretKeyAndValue"]]],null]],null],null,[[[1,"        "],[8,[39,5],null,[["@label","@value","@alwaysRender"],[[30,4,["key"]],[30,4,["value"]],true]],[["default"],[[[[1,"\\n          "],[8,[39,6],null,[["@name","@value","@displayOnly","@allowCopy"],[[30,4,["key"]],[30,4,["value"]],true,true]],null],[1,"\\n        "]],[]]]]],[1,"\\n"]],[4]],null]],[]],[[[1,"      "],[8,[39,5],null,[["@label","@value","@alwaysRender"],["","",true]],[["default"],[[[[1,"\\n        "],[8,[39,7],null,[["@name"],["minus"]],null],[1,"\\n      "]],[]]]]],[1,"\\n"]],[]]]],[]]]],[]]]],["@isWriteWithoutRead","@showAdvancedMode","@modelForData","secret"],false,["if","empty-state","json-editor","each","-track-array","info-table-row","masked-input","icon"]]',moduleName:"vault/templates/components/secret-form-show.hbs",isStrictMode:!1})})),define("vault/templates/components/secret-list/aws-role-item",["exports","@ember/template-factory"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default=(0,t.createTemplateFactory)({id:"RdCSmn4I",block:'[[[8,[39,0],[[24,0,"list-item-row"]],[["@params","@encode"],[[28,[37,1],[[28,[37,2],["vault.cluster.secrets.backend.","credentials",[52,[51,[30,1,["id"]]],"-root"]],null],[30,1,["id"]]],null],true]],[["default"],[[[[1,"\\n  "],[10,0],[14,0,"columns is-mobile"],[12],[1,"\\n    "],[10,0],[14,0,"column is-10"],[12],[1,"\\n      "],[8,[39,4],[[24,0,"has-text-black has-text-weight-semibold"]],[["@route","@model"],[[28,[37,2],["vault.cluster.secrets.backend.","credentials",[52,[51,[30,1,["id"]]],"-root"]],null],[30,1,["id"]]]],[["default"],[[[[1,"\\n        "],[8,[39,5],[[24,0,"has-text-grey-light is-pulled-left"]],[["@name"],["user"]],null],[1,"\\n        "],[10,0],[14,0,"role-item-details"],[12],[1,"\\n          "],[10,1],[14,0,"is-underline"],[12],[1,[52,[28,[37,7],[[30,1,["id"]]," "],null],"(self)",[28,[37,8],[[30,1,["keyWithoutParent"]],[30,1,["id"]]],null]]],[13],[1,"\\n        "],[13],[1,"\\n      "]],[]]]]],[1,"\\n    "],[13],[1,"\\n    "],[10,0],[14,0,"column has-text-right"],[12],[1,"\\n      "],[8,[39,9],null,[["@isInline","@listPosition"],[true,"bottom-right"]],[["default"],[[[[1,"\\n        "],[8,[30,2,["ToggleIcon"]],null,[["@icon","@text","@hasChevron"],["more-horizontal",[29,["manage A-W-S role ",[30,1,["id"]]]],false]],null],[1,"\\n"],[41,[30,1,["generatePath","isPending"]],[[[1,"          "],[8,[30,2,["Generic"]],[[24,0,"has-text-center"]],null,[["default"],[[[[1,"\\n            "],[8,[39,10],null,null,null],[1,"\\n          "]],[]]]]],[1,"\\n"]],[]],[[[41,[30,1,["canGenerate"]],[[[1,"          "],[8,[30,2,["Interactive"]],null,[["@text","@route","@model"],["Generate credentials","vault.cluster.secrets.backend.credentials",[30,1,["id"]]]],null],[1,"\\n        "]],[]],null]],[]]],[41,[30,1,["updatePath","isPending"]],[[[1,"          "],[8,[30,2,["Generic"]],[[24,0,"has-text-center"]],null,[["default"],[[[[1,"\\n            "],[8,[39,10],null,null,null],[1,"\\n          "]],[]]]]],[1,"\\n"]],[]],[[[41,[30,1,["canRead"]],[[[1,"            "],[8,[30,2,["Interactive"]],null,[["@text","@route","@model"],["Details","vault.cluster.secrets.backend.show",[30,1,["id"]]]],null],[1,"\\n"]],[]],null],[41,[30,1,["canEdit"]],[[[1,"            "],[8,[30,2,["Interactive"]],null,[["@text","@route","@model"],["Edit","vault.cluster.secrets.backend.edit",[30,1,["id"]]]],null],[1,"\\n"]],[]],null],[41,[30,1,["canDelete"]],[[[1,"            "],[8,[30,2,["Interactive"]],[[4,[38,11],["click",[28,[37,12],[[28,[37,13],[[30,0,["showConfirmModal"]]],null],true],null]],null]],[["@text","@color"],["Delete","critical"]],null],[1,"\\n"]],[]],null]],[]]],[1,"      "]],[2]]]]],[1,"\\n    "],[13],[1,"\\n  "],[13],[1,"\\n"]],[]]]]],[1,"\\n\\n"],[41,[30,0,["showConfirmModal"]],[[[1,"  "],[8,[39,14],null,[["@color","@onClose","@onConfirm"],["critical",[28,[37,12],[[28,[37,13],[[30,0,["showConfirmModal"]]],null],false],null],[30,3]]],null],[1,"\\n"]],[]],null]],["@item","dd","@delete"],false,["linked-block","array","concat","unless","link-to","icon","if","eq","or","hds/dropdown","loading-dropdown-option","on","fn","mut","confirm-modal"]]',moduleName:"vault/templates/components/secret-list/aws-role-item.hbs",isStrictMode:!1})})),define("vault/templates/components/secret-list/database-list-item",["exports","@ember/template-factory"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default=(0,t.createTemplateFactory)({id:"u+/RjIVH",block:'[[[8,[39,0],[[24,0,"list-item-row"]],[["@params","@encode","@queryParams"],[[28,[37,1],["vault.cluster.secrets.backend.show",[52,[30,0,["keyTypeValue"]],[28,[37,3],["role/",[30,1,["id"]]],null],[30,1,["id"]]]],null],true,[28,[37,4],[[30,2],[30,1,["type"]]],null]]],[["default"],[[[[1,"\\n  "],[10,0],[14,0,"columns is-mobile"],[12],[1,"\\n    "],[10,0],[14,0,"column is-10"],[12],[1,"\\n      "],[8,[39,5],[[24,0,"has-text-black has-text-weight-semibold"]],[["@route","@model","@query"],[[28,[37,3],["vault.cluster.secrets.backend.show"],null],[52,[30,0,["keyTypeValue"]],[28,[37,3],["role/",[30,1,["id"]]],null],[30,1,["id"]]],[28,[37,4],[[30,2],[30,1,["type"]]],null]]],[["default"],[[[[1,"\\n        "],[8,[39,6],[[24,0,"has-text-grey-light is-pulled-left"]],[["@name"],["user"]],null],[1,"\\n        "],[10,0],[14,0,"role-item-details"],[12],[1,"\\n          "],[10,1],[14,0,"is-underline"],[12],[1,[52,[28,[37,7],[[30,1,["id"]]," "],null],"(self)",[28,[37,8],[[30,1,["keyWithoutParent"]],[30,1,["id"]]],null]]],[13],[1,"\\n          "],[10,1],[14,0,"tag has-text-grey-dark"],[12],[1,[30,0,["keyTypeValue"]]],[13],[1,"\\n        "],[13],[1,"\\n      "]],[]]]]],[1,"\\n    "],[13],[1,"\\n    "],[10,0],[14,0,"column has-text-right"],[12],[1,"\\n      "],[8,[39,9],null,[["@isInline","@listPosition"],[true,"bottom-right"]],[["default"],[[[[1,"\\n        "],[8,[30,3,["ToggleIcon"]],null,[["@icon","@text","@hasChevron"],["more-horizontal",[29,["Manage database ",[30,1,["id"]]]],false]],null],[1,"\\n"],[41,[30,1,["canEdit"]],[[[1,"          "],[8,[30,3,["Interactive"]],null,[["@text","@route","@model"],["Edit connection","vault.cluster.secrets.backend.edit",[30,1,["id"]]]],null],[1,"\\n"]],[]],null],[41,[30,1,["canEditRole"]],[[[1,"          "],[8,[30,3,["Interactive"]],null,[["@text","@route","@model"],["Edit Role","vault.cluster.secrets.backend.edit",[28,[37,3],["role/",[30,1,["id"]]],null]]],null],[1,"\\n"]],[]],null],[41,[30,1,["canReset"]],[[[1,"          "],[8,[30,3,["Interactive"]],[[4,[38,10],["click",[28,[37,11],[[30,0,["resetConnection"]],[30,1,["id"]]],null]],null]],[["@text","@icon"],["Reset connection",[52,[28,[37,7],[[30,0,["actionRunning"]],"reset"],null],"loading"]]],null],[1,"\\n"]],[]],null],[41,[28,[37,12],[[28,[37,7],[[30,1,["type"]],"dynamic"],null],[30,1,["canGenerateCredentials"]]],null],[[[1,"          "],[8,[30,3,["Interactive"]],null,[["@text","@route","@model","@query"],["Generate credentials","vault.cluster.secrets.backend.credentials",[30,1,["id"]],[28,[37,13],null,[["roleType"],[[30,0,["keyTypeValue"]]]]]]],null],[1,"\\n"]],[]],[[[41,[28,[37,12],[[28,[37,7],[[30,1,["type"]],"static"],null],[30,1,["canGetCredentials"]]],null],[[[1,"          "],[8,[30,3,["Interactive"]],null,[["@text","@route","@model","@query"],["Get credentials","vault.cluster.secrets.backend.credentials",[30,1,["id"]],[28,[37,13],null,[["roleType"],[[30,0,["keyTypeValue"]]]]]]],null],[1,"\\n        "]],[]],null]],[]]],[41,[28,[37,12],[[30,1,["canRotateRoleCredentials"]],[28,[37,7],[[30,0,["keyTypeValue"]],"static"],null]],null],[[[1,"          "],[8,[30,3,["Interactive"]],[[4,[38,10],["click",[28,[37,11],[[30,0,["rotateRoleCred"]],[30,1,["id"]]],null]],null]],[["@text","@icon"],["Rotate credentials",[52,[28,[37,7],[[30,0,["actionRunning"]],"rotateRole"],null],"loading"]]],null],[1,"\\n"]],[]],null],[41,[30,1,["canRotateRoot"]],[[[1,"          "],[8,[30,3,["Interactive"]],[[4,[38,10],["click",[28,[37,11],[[30,0,["rotateRootCred"]],[30,1,["id"]]],null]],null]],[["@text","@icon"],["Rotate root credentials",[52,[28,[37,7],[[30,0,["actionRunning"]],"rotateRoot"],null],"loading"]]],null],[1,"\\n"]],[]],null],[1,"      "]],[3]]]]],[1,"\\n    "],[13],[1,"\\n  "],[13],[1,"\\n"]],[]]]]]],["@item","@backendType","dd"],false,["linked-block","array","if","concat","secret-query-params","link-to","icon","eq","or","hds/dropdown","on","fn","and","hash"]]',moduleName:"vault/templates/components/secret-list/database-list-item.hbs",isStrictMode:!1})})),define("vault/templates/components/secret-list/item",["exports","@ember/template-factory"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default=(0,t.createTemplateFactory)({id:"rbtBKYSj",block:'[[[8,[39,0],[[24,0,"list-item-row"]],[["@params","@encode","@queryParams"],[[28,[37,1],[[28,[37,2],["vault.cluster.secrets.backend.",[52,[30,1,["isFolder"]],"list","show"],[52,[51,[30,1,["id"]]],"-root"]],null],[30,1,["id"]]],null],true,[28,[37,5],[[30,2,["type"]],[30,1,["type"]]],null]]],[["default"],[[[[1,"\\n  "],[10,0],[14,0,"columns is-mobile"],[12],[1,"\\n    "],[10,0],[14,0,"column is-10"],[12],[1,"\\n      "],[8,[39,6],[[24,0,"has-text-black has-text-weight-semibold"]],[["@mode","@secret","@backend","@queryParams"],[[52,[30,1,["isFolder"]],"list","show"],[30,1,["id"]],[30,2,["id"]],[28,[37,5],[[30,2,["type"]],[30,1,["type"]]],[["asQueryParams"],[true]]]]],[["default"],[[[[1,"\\n"],[41,[28,[37,7],[[30,2,["type"]],"transit"],null],[[[1,"          "],[8,[39,8],[[24,0,"has-text-grey-light"]],[["@name"],["key"]],null],[1,"\\n"]],[]],[[[1,"          "],[8,[39,8],[[24,0,"has-text-grey-light"]],[["@name"],[[52,[30,1,["isFolder"]],"folder",[28,[37,9],[[30,1,["icon"]],"file"],null]]]],null],[1,"\\n"]],[]]],[1,"        "],[1,[52,[28,[37,7],[[30,1,["id"]]," "],null],"(self)",[28,[37,9],[[30,1,["keyWithoutParent"]],[30,1,["id"]]],null]]],[1,"\\n      "]],[]]]]],[1,"\\n    "],[13],[1,"\\n    "],[10,0],[14,0,"column has-text-right"],[12],[1,"\\n      "],[8,[39,10],null,[["@isInline","@listPosition"],[true,"bottom-right"]],[["default"],[[[[1,"\\n        "],[8,[30,3,["ToggleIcon"]],null,[["@icon","@text","@hasChevron"],["more-horizontal",[29,["Manage database ",[30,1,["id"]]]],false]],null],[1,"\\n"],[41,[30,1,["isFolder"]],[[[1,"          "],[8,[30,3,["Interactive"]],null,[["@text","@route","@model"],["Contents","vault.cluster.secrets.backend.list",[30,1,["id"]]]],null],[1,"\\n"]],[]],[[[41,[28,[37,9],[[30,1,["versionPath","isLoading"]],[30,1,["secretPath","isLoading"]]],null],[[[1,"            "],[8,[30,3,["Generic"]],[[24,0,"has-text-center"]],null,[["default"],[[[[1,"\\n              "],[8,[39,11],null,null,null],[1,"\\n            "]],[]]]]],[1,"\\n"]],[]],[[[41,[30,1,["canRead"]],[[[1,"              "],[8,[30,3,["Interactive"]],null,[["@text","@route","@model","@query"],["Details","vault.cluster.secrets.backend.show",[30,1,["id"]],[28,[37,5],[[30,2,["type"]],[30,1,["type"]]],[["asQueryParams"],[true]]]]],null],[1,"\\n"]],[]],null],[41,[30,1,["canEdit"]],[[[1,"              "],[8,[30,3,["Interactive"]],null,[["@text","@route","@model","@query"],["Edit","vault.cluster.secrets.backend.edit",[30,1,["id"]],[28,[37,5],[[30,2,["type"]],[30,1,["type"]]],[["asQueryParams"],[true]]]]],null],[1,"\\n"]],[]],null],[41,[30,1,["canDelete"]],[[[1,"              "],[8,[30,3,["Interactive"]],[[4,[38,12],["click",[28,[37,13],[[28,[37,14],[[30,0,["showConfirmModal"]]],null],true],null]],null]],[["@text","@color"],["Delete","critical"]],null],[1,"\\n"]],[]],null]],[]]]],[]]],[1,"      "]],[3]]]]],[1,"\\n    "],[13],[1,"\\n  "],[13],[1,"\\n"]],[]]]]],[1,"\\n\\n"],[41,[30,0,["showConfirmModal"]],[[[1,"  "],[8,[39,15],null,[["@color","@onClose","@confirmMessage","@onConfirm"],["critical",[28,[37,13],[[28,[37,14],[[30,0,["showConfirmModal"]]],null],false],null],"This will permanently delete this secret.",[30,4]]],null],[1,"\\n"]],[]],null]],["@item","@backendModel","dd","@delete"],false,["linked-block","array","concat","if","unless","secret-query-params","secret-link","eq","icon","or","hds/dropdown","loading-dropdown-option","on","fn","mut","confirm-modal"]]',moduleName:"vault/templates/components/secret-list/item.hbs",isStrictMode:!1})})),define("vault/templates/components/secret-list/ssh-role-item",["exports","@ember/template-factory"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default=(0,t.createTemplateFactory)({id:"9PDBbfGI",block:'[[[8,[39,0],[[24,0,"list-item-row"]],[["@params","@encode"],[[28,[37,1],[[28,[37,2],["vault.cluster.secrets.backend.",[52,[28,[37,4],[[30,1,["keyType"]],"ca"],null],"sign","credentials"],[52,[51,[30,1,["id"]]],"-root"]],null],[30,1,["id"]]],null],true]],[["default"],[[[[1,"\\n  "],[10,0],[14,0,"columns is-mobile"],[12],[1,"\\n    "],[10,0],[14,0,"column is-10"],[12],[1,"\\n      "],[8,[39,6],[[24,0,"has-text-black has-text-weight-semibold"]],[["@route","@model"],[[28,[37,2],["vault.cluster.secrets.backend.",[52,[28,[37,4],[[30,1,["keyType"]],"ca"],null],"sign","credentials"],[52,[51,[30,1,["id"]]],"-root"]],null],[30,1,["id"]]]],[["default"],[[[[1,"\\n        "],[8,[39,7],[[24,0,"has-text-grey-light is-pulled-left"]],[["@name"],["user"]],null],[1,"\\n        "],[10,0],[14,0,"role-item-details"],[12],[1,"\\n          "],[10,1],[14,0,"is-underline"],[12],[1,[52,[28,[37,4],[[30,1,["id"]]," "],null],"(self)",[28,[37,8],[[30,1,["keyWithoutParent"]],[30,1,["id"]]],null]]],[13],[1,"\\n          "],[10,"br"],[12],[13],[1,"\\n          "],[10,1],[14,0,"tag has-text-grey-dark"],[12],[1,[30,1,["keyType"]]],[13],[1,"\\n"],[41,[30,1,["zeroAddress"]],[[[1,"            "],[10,1],[14,0,"has-text-grey is-size-7"],[12],[1,"Zero-Address"],[13],[1,"\\n"]],[]],null],[1,"        "],[13],[1,"\\n      "]],[]]]]],[1,"\\n    "],[13],[1,"\\n    "],[10,0],[14,0,"column has-text-right"],[12],[1,"\\n"],[41,[28,[37,4],[[30,2],"ssh"],null],[[[1,"        "],[8,[39,9],null,[["@isInline","@listPosition"],[true,"bottom-right"]],[["default"],[[[[1,"\\n          "],[8,[30,3,["ToggleIcon"]],null,[["@icon","@text","@hasChevron"],["more-horizontal",[29,["Manage SSH role ",[30,1,["id"]]]],false]],null],[1,"\\n"],[41,[28,[37,4],[[30,1,["keyType"]],"otp"],null],[[[41,[30,1,["generatePath","isPending"]],[[[1,"              "],[8,[30,3,["Generic"]],[[24,0,"has-text-center"]],null,[["default"],[[[[1,"\\n                "],[8,[39,10],null,null,null],[1,"\\n              "]],[]]]]],[1,"\\n"]],[]],[[[41,[30,1,["canGenerate"]],[[[1,"              "],[8,[30,3,["Interactive"]],null,[["@text","@route","@model"],["Generate credentials","vault.cluster.secrets.backend.credentials",[30,1,["id"]]]],null],[1,"\\n            "]],[]],null]],[]]]],[]],[[[41,[28,[37,4],[[30,1,["keyType"]],"ca"],null],[[[41,[30,1,["signPath","isPending"]],[[[1,"              "],[8,[30,3,["Generic"]],[[24,0,"has-text-center"]],null,[["default"],[[[[1,"\\n                "],[8,[39,10],null,null,null],[1,"\\n              "]],[]]]]],[1,"\\n"]],[]],[[[41,[30,1,["canGenerate"]],[[[1,"              "],[8,[30,3,["Interactive"]],null,[["@text","@route","@model"],["Sign Keys","vault.cluster.secrets.backend.sign",[30,1,["id"]]]],null],[1,"\\n            "]],[]],null]],[]]],[1,"          "]],[]],null]],[]]],[41,[30,4],[[[1,"            "],[8,[30,3,["Generic"]],[[24,0,"has-text-center"]],null,[["default"],[[[[1,"\\n              "],[8,[39,10],null,null,null],[1,"\\n            "]],[]]]]],[1,"\\n"]],[]],[[[41,[30,1,["canEditZeroAddress"]],[[[1,"            "],[8,[30,3,["Interactive"]],[[4,[38,11],["click",[30,5]],null]],[["@text"],[[52,[30,1,["zeroAddress"]],"Disable Zero Address","Enable Zero Address"]]],null],[1,"\\n          "]],[]],null]],[]]],[41,[30,1,["updatePath","isPending"]],[[[1,"            "],[8,[30,3,["Generic"]],[[24,0,"has-text-center"]],null,[["default"],[[[[1,"\\n              "],[8,[39,10],null,null,null],[1,"\\n            "]],[]]]]],[1,"\\n"]],[]],[[[41,[30,1,["canRead"]],[[[1,"              "],[8,[30,3,["Interactive"]],null,[["@text","@route","@model"],["Details","vault.cluster.secrets.backend.show",[30,1,["id"]]]],null],[1,"\\n"]],[]],null],[41,[30,1,["canEdit"]],[[[1,"              "],[8,[30,3,["Interactive"]],null,[["@text","@route","@model"],["Edit","vault.cluster.secrets.backend.edit",[30,1,["id"]]]],null],[1,"\\n"]],[]],null],[41,[30,1,["canDelete"]],[[[1,"              "],[8,[30,3,["Interactive"]],[[4,[38,11],["click",[28,[37,12],[[28,[37,13],[[30,0,["showConfirmModal"]]],null],true],null]],null]],[["@text","@color"],["Delete","critical"]],null],[1,"\\n"]],[]],null]],[]]],[1,"        "]],[3]]]]],[1,"\\n"]],[]],null],[1,"    "],[13],[1,"\\n  "],[13],[1,"\\n"]],[]]]]],[1,"\\n\\n"],[41,[30,0,["showConfirmModal"]],[[[1,"  "],[8,[39,14],null,[["@color","@onClose","@onConfirm"],["critical",[28,[37,12],[[28,[37,13],[[30,0,["showConfirmModal"]]],null],false],null],[30,6]]],null],[1,"\\n"]],[]],null]],["@item","@backendType","dd","@loadingToggleZeroAddress","@toggleZeroAddress","@delete"],false,["linked-block","array","concat","if","eq","unless","link-to","icon","or","hds/dropdown","loading-dropdown-option","on","fn","mut","confirm-modal"]]',moduleName:"vault/templates/components/secret-list/ssh-role-item.hbs",isStrictMode:!1})})),define("vault/templates/components/secret-list/transform-list-item",["exports","@ember/template-factory"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default=(0,t.createTemplateFactory)({id:"JquCjnwF",block:'[[[41,[28,[37,1],[[30,1,["updatePath","canRead"]],[28,[37,2],[[30,0,["isBuiltin"]]],null]],null],[[[1,"  "],[8,[39,3],[[24,0,"list-item-row"]],[["@params","@encode","@queryParams"],[[28,[37,4],["vault.cluster.secrets.backend.show",[30,2]],null],true,[28,[37,5],[[30,3]],null]]],[["default"],[[[[1,"\\n    "],[10,0],[14,0,"columns is-mobile"],[12],[1,"\\n      "],[10,0],[14,0,"column is-10"],[12],[1,"\\n        "],[8,[39,6],[[24,0,"has-text-black has-text-weight-semibold"]],[["@mode","@secret","@queryParams"],["show",[30,2],[28,[37,7],null,[["type"],[[30,4]]]]]],[["default"],[[[[1,"\\n          "],[8,[39,8],[[24,0,"has-text-grey-light"]],[["@name"],["file"]],null],[1,"\\n          "],[1,[52,[28,[37,9],[[30,1,["id"]]," "],null],"(self)",[28,[37,10],[[30,1,["keyWithoutParent"]],[30,1,["id"]]],null]]],[1,"\\n        "]],[]]]]],[1,"\\n      "],[13],[1,"\\n      "],[10,0],[14,0,"column has-text-right"],[12],[1,"\\n"],[41,[28,[37,10],[[30,1,["updatePath","canRead"]],[30,1,["updatePath","canUpdate"]]],null],[[[1,"          "],[8,[39,11],null,[["@isInline","@listPosition"],[true,"bottom-right"]],[["default"],[[[[1,"\\n            "],[8,[30,5,["ToggleIcon"]],null,[["@icon","@text","@hasChevron"],["more-horizontal",[29,["Manage transform ",[30,6]]],false]],null],[1,"\\n"],[41,[30,1,["updatePath","canRead"]],[[[1,"              "],[8,[30,5,["Interactive"]],null,[["@text","@route","@model"],["Details","vault.cluster.secrets.backend.show",[30,2]]],null],[1,"\\n"]],[]],null],[41,[30,1,["updatePath","canUpdate"]],[[[1,"              "],[8,[30,5,["Interactive"]],null,[["@text","@route","@model"],["Edit","vault.cluster.secrets.backend.edit",[30,2]]],null],[1,"\\n"]],[]],null],[1,"          "]],[5]]]]],[1,"\\n"]],[]],null],[1,"      "],[13],[1,"\\n    "],[13],[1,"\\n  "]],[]]]]],[1,"\\n"]],[]],[[[1,"  "],[10,0],[14,0,"list-item-row"],[12],[1,"\\n    "],[10,0],[14,0,"columns is-mobile"],[12],[1,"\\n      "],[10,0],[14,0,"column is-12 has-text-grey has-text-weight-semibold"],[12],[1,"\\n        "],[8,[39,8],[[24,0,"has-text-grey-light"]],[["@name"],["file"]],null],[1,"\\n"],[41,[30,0,["isBuiltin"]],[[[1,"          "],[8,[39,12],[[24,"aria-label","Why this item cannot be viewed or edited"]],[["@text","@placement"],[[29,["This is a built-in HashiCorp ",[30,6],". It can\'t be viewed or edited."]],"top-start"]],[["default"],[[[[1,"\\n            "],[1,[30,1,["id"]]],[1,"\\n          "]],[]]]]],[1,"\\n"]],[]],[[[1,"          "],[1,[30,1,["id"]]],[1,"\\n"]],[]]],[1,"      "],[13],[1,"\\n    "],[13],[1,"\\n  "],[13],[1,"\\n"]],[]]]],["@item","@itemPath","@backendType","@modelType","dd","@itemType"],false,["if","and","not","linked-block","array","secret-query-params","secret-link","hash","icon","eq","or","hds/dropdown","hds/tooltip-button"]]',moduleName:"vault/templates/components/secret-list/transform-list-item.hbs",isStrictMode:!1})})),define("vault/templates/components/secret-list/transform-transformation-item",["exports","@ember/template-factory"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default=(0,t.createTemplateFactory)({id:"ThRiEAs6",block:'[[[8,[39,0],[[24,0,"list-item-row"]],[["@params","@encode","@queryParams"],[[28,[37,1],["vault.cluster.secrets.backend.show",[30,1,["id"]]],null],true,[28,[37,2],[[30,2,["type"]]],null]]],[["default"],[[[[1,"\\n  "],[10,0],[14,0,"columns is-mobile"],[12],[1,"\\n    "],[10,0],[14,0,"column is-10"],[12],[1,"\\n      "],[8,[39,3],[[24,0,"has-text-black has-text-weight-semibold"]],[["@mode","@secret","@backend","@queryParams"],["show",[30,1,["id"]],[30,2,["id"]],[52,[28,[37,5],[[30,2,["type"]],"transform"],null],[28,[37,6],null,[["tab"],["actions"]]],""]]],[["default"],[[[[1,"\\n        "],[8,[39,7],[[24,0,"has-text-grey-light"]],[["@name"],["file"]],null],[1,"\\n        "],[1,[52,[28,[37,5],[[30,1,["id"]]," "],null],"(self)",[28,[37,8],[[30,1,["keyWithoutParent"]],[30,1,["id"]]],null]]],[1,"\\n      "]],[]]]]],[1,"\\n    "],[13],[1,"\\n    "],[10,0],[14,0,"column has-text-right"],[12],[1,"\\n"],[41,[28,[37,8],[[30,1,["updatePath","canRead"]],[30,1,["updatePath","canUpdate"]]],null],[[[1,"        "],[8,[39,9],null,[["@isInline","@listPosition"],[true,"bottom-right"]],[["default"],[[[[1,"\\n          "],[8,[30,3,["ToggleIcon"]],null,[["@icon","@text","@hasChevron"],["more-horizontal","Manage transformation",false]],null],[1,"\\n"],[41,[30,1,["updatePath","canRead"]],[[[1,"            "],[8,[30,3,["Interactive"]],null,[["@text","@route","@model"],["Details","vault.cluster.secrets.backend.show",[30,1,["id"]]]],null],[1,"\\n"]],[]],null],[41,[30,1,["updatePath","canUpdate"]],[[[1,"            "],[8,[30,3,["Interactive"]],null,[["@text","@route","@model"],["Edit","vault.cluster.secrets.backend.edit",[30,1,["id"]]]],null],[1,"\\n"]],[]],null],[1,"        "]],[3]]]]],[1,"\\n"]],[]],null],[1,"    "],[13],[1,"\\n  "],[13],[1,"\\n"]],[]]]]]],["@item","@backendModel","dd"],false,["linked-block","array","secret-query-params","secret-link","if","eq","hash","icon","or","hds/dropdown"]]',moduleName:"vault/templates/components/secret-list/transform-transformation-item.hbs",isStrictMode:!1})})),define("vault/templates/components/shamir-progress",["exports","@ember/template-factory"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default=(0,t.createTemplateFactory)({id:"8qbvBdxz",block:'[[[10,0],[14,0,"level"],[12],[1,"\\n  "],[10,0],[14,0,"level-left"],[12],[1,"\\n    "],[10,1],[14,0,"has-text-grey is-size-8 shamir-progress-progress"],[12],[1,"\\n      "],[1,[30,0,["progress"]]],[1,"/"],[1,[30,0,["threshold"]]],[1,"\\n      keys provided\\n    "],[13],[1,"\\n  "],[13],[1,"\\n  "],[10,0],[14,0,"level-right is-marginless"],[12],[1,"\\n    "],[8,[39,0],null,[["@progressDecimal"],[[30,0,["progressDecimal"]]]],null],[1,"\\n  "],[13],[1,"\\n"],[13]],[],false,["radial-progress"]]',moduleName:"vault/templates/components/shamir-progress.hbs",isStrictMode:!1})})),define("vault/templates/components/toolbar-secret-link",["exports","@ember/template-factory"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default=(0,t.createTemplateFactory)({id:"Cn5pYiWV",block:'[[[8,[39,0],[[24,0,"toolbar-link"],[17,1]],[["@mode","@secret","@backend","@replace","@queryParams","@disabled"],[[30,2],[30,3],[30,4],[30,5],[30,6],[30,7]]],[["default"],[[[[1,"\\n  "],[18,8,null],[1,"\\n  "],[8,[39,2],null,[["@name"],[[30,0,["glyph"]]]],null],[1,"\\n"]],[]]]]]],["&attrs","@mode","@secret","@backend","@replace","@queryParams","@disabled","&default"],false,["secret-link","yield","icon"]]',moduleName:"vault/templates/components/toolbar-secret-link.hbs",isStrictMode:!1})})),define("vault/templates/components/transform-advanced-templating",["exports","@ember/template-factory"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default=(0,t.createTemplateFactory)({id:"jfiXpJ3n",block:'[[[8,[39,0],null,[["@isOpen","@openLabel","@closedLabel","@onClick"],[[30,0,["showForm"]],"Advanced templating","Advanced templating",[28,[37,1],[[28,[37,2],[[30,0,["showForm"]]],null]],null]]],null],[1,"\\n\\n"],[41,[30,0,["showForm"]],[[[1,"  "],[10,0],[14,0,"box has-container is-fullwidth"],[12],[1,"\\n    "],[10,"h4"],[14,0,"title is-5"],[12],[1,"Advanced templating"],[13],[1,"\\n    "],[10,2],[12],[1,"\\n      Using your template\'s regex as a starting point, you can specify which parts of your input to encode and decode. For\\n      example, you may want to handle input formatting or only decode part of an input. For more information, see\\n      "],[8,[39,4],null,[["@path"],["/vault/tutorials/adp/transform#advanced-handling"]],[["default"],[[[[1,"\\n        our documentation.\\n      "]],[]]]]],[1,"\\n    "],[13],[1,"\\n    "],[10,0],[14,0,"has-top-margin-l"],[12],[1,"\\n      "],[8,[39,5],null,[["@value","@testInputLabel","@testInputSubText","@showGroups","@onValidate"],[[30,1,["pattern"]],"Sample input","Enter a sample input to match against your regex and identify capture groups. Optional.",true,[30,0,["setInputOptions"]]]],null],[1,"\\n    "],[13],[1,"\\n    "],[8,[39,6],[[24,0,"has-top-margin-l"]],[["@label","@subText","@value","@optionsTrigger","@options","@onChange"],["Encode format","Use the groups above to define how the input will be encoded. Refer to each group with $N. This is optional; if not specified, pattern will be used.",[30,1,["encodeFormat"]],"$",[30,0,["inputOptions"]],[28,[37,1],[[28,[37,2],[[30,1,["encodeFormat"]]],null]],null]]],null],[1,"\\n    "],[8,[39,7],[[24,0,"has-top-margin-l"]],[["@value","@onChange","@label","@subText","@keyPlaceholder"],[[30,1,["decodeFormats"]],[28,[37,1],[[28,[37,2],[[30,1,["decodeFormats"]]],null]],null],"Decode formats","Using the groups above, define how this data will be decoded. Multiple decode_formats can be used. Optional. If not specified, pattern will be used.","name"]],[["default"],[[[[1,"\\n      "],[8,[39,6],null,[["@value","@placeholder","@optionsTrigger","@options","@onChange"],[[30,2,["value"]],"format","$",[30,0,["inputOptions"]],[28,[37,1],[[30,0,["decodeFormatValueChange"]],[30,2],[30,3]],null]]],null],[1,"\\n    "]],[2,3]]]]],[1,"\\n  "],[13],[1,"\\n"]],[]],null]],["@model","kvObject","kvData"],false,["toggle-button","fn","mut","if","doc-link","regex-validator","autocomplete-input","kv-object-editor"]]',moduleName:"vault/templates/components/transform-advanced-templating.hbs",isStrictMode:!1})}))
define("vault/templates/components/transform-create-form",["exports","@ember/template-factory"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default=(0,t.createTemplateFactory)({id:"TYNmG5F6",block:'[[[10,"form"],[15,"onsubmit",[28,[37,0],[[30,0],"createOrUpdate","create"],null]],[12],[1,"\\n  "],[10,0],[14,0,"box is-sideless is-fullwidth is-marginless"],[12],[1,"\\n    "],[8,[39,1],null,[["@model"],[[30,0,["model"]]]],null],[1,"\\n    "],[8,[39,2],null,[["@mode","@noun"],[[30,0,["mode"]],"transformation"]],null],[1,"\\n"],[42,[28,[37,4],[[28,[37,4],[[30,0,["model","transformFieldAttrs"]]],null]],null],null,[[[1,"      "],[8,[39,5],null,[["@attr","@model"],[[30,1],[30,0,["model"]]]],null],[1,"\\n"]],[1]],null],[1,"  "],[13],[1,"\\n  "],[10,0],[14,0,"field is-grouped-split box is-fullwidth is-bottomless"],[12],[1,"\\n    "],[8,[39,6],null,null,[["default"],[[[[1,"\\n      "],[8,[39,7],[[24,4,"submit"]],[["@text"],["Create transformation"]],null],[1,"\\n      "],[8,[39,7],null,[["@text","@color","@route","@model"],["Cancel","secondary","vault.cluster.secrets.backend.list-root",[30,0,["model","backend"]]]],null],[1,"\\n    "]],[]]]]],[1,"\\n  "],[13],[1,"\\n"],[13]],["attr"],false,["action","message-error","namespace-reminder","each","-track-array","form-field","hds/button-set","hds/button"]]',moduleName:"vault/templates/components/transform-create-form.hbs",isStrictMode:!1})})),define("vault/templates/components/transform-edit-form",["exports","@ember/template-factory"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default=(0,t.createTemplateFactory)({id:"9QV0K4xz",block:'[[[10,"form"],[15,"onsubmit",[28,[37,0],[[30,0],"createOrUpdate","create"],null]],[12],[1,"\\n  "],[10,0],[14,0,"box is-sideless is-fullwidth is-marginless"],[12],[1,"\\n    "],[8,[39,1],null,[["@model"],[[30,0,["model"]]]],null],[1,"\\n    "],[8,[39,2],null,[["@mode","@noun"],[[30,0,["mode"]],"transformation"]],null],[1,"\\n"],[42,[28,[37,4],[[28,[37,4],[[30,0,["model","transformFieldAttrs"]]],null]],null],null,[[[41,[28,[37,6],[[28,[37,7],[[30,1,["name"]],"name"],null],[28,[37,7],[[30,1,["name"]],"type"],null]],null],[[[1,"        "],[10,"label"],[15,"for",[30,1,["name"]]],[14,0,"is-label"],[12],[1,"\\n          "],[1,[30,1,["options","label"]]],[1,"\\n        "],[13],[1,"\\n"],[41,[30,1,["options","subText"]],[[[1,"          "],[10,2],[14,0,"sub-text"],[12],[1,[30,1,["options","subText"]]],[13],[1,"\\n"]],[]],null],[41,[30,1,["options","possibleValues"]],[[[1,"          "],[10,0],[14,0,"control is-expanded field is-readOnly"],[12],[1,"\\n            "],[10,0],[14,0,"select is-fullwidth"],[12],[1,"\\n              "],[10,"select"],[15,3,[30,1,["name"]]],[15,1,[30,1,["name"]]],[14,"disabled",""],[12],[1,"\\n                "],[10,"option"],[15,"selected",[28,[37,8],[[30,0,["model"]],[30,1,["name"]]],null]],[15,2,[28,[37,8],[[30,0,["model"]],[30,1,["name"]]],null]],[12],[1,"\\n                  "],[1,[28,[35,8],[[30,0,["model"]],[30,1,["name"]]],null]],[1,"\\n                "],[13],[1,"\\n              "],[13],[1,"\\n            "],[13],[1,"\\n          "],[13],[1,"\\n"]],[]],[[[1,"          "],[10,"input"],[15,1,[30,1,["name"]]],[14,"autocomplete","off"],[14,"spellcheck","false"],[15,2,[28,[37,6],[[28,[37,8],[[30,0,["model"]],[30,1,["name"]]],null],[30,1,["options","defaultValue"]]],null]],[14,"readonly",""],[14,0,"field input is-readOnly"],[15,4,[30,1,["type"]]],[12],[13],[1,"\\n"]],[]]]],[]],[[[1,"        "],[8,[39,9],null,[["@attr","@model"],[[30,1],[30,0,["model"]]]],null],[1,"\\n"]],[]]]],[1]],null],[1,"  "],[13],[1,"\\n  "],[10,0],[14,0,"field is-grouped-split box is-fullwidth is-bottomless"],[12],[1,"\\n    "],[8,[39,10],null,null,[["default"],[[[[1,"\\n      "],[8,[39,11],[[24,4,"submit"]],[["@text"],["Save"]],null],[1,"\\n      "],[8,[39,11],null,[["@text","@color","@route","@models"],["Cancel","secondary","vault.cluster.secrets.backend.show",[28,[37,12],[[30,0,["model","backend"]],[30,0,["model","id"]]],null]]],null],[1,"\\n    "]],[]]]]],[1,"\\n  "],[13],[1,"\\n"],[13]],["attr"],false,["action","message-error","namespace-reminder","each","-track-array","if","or","eq","get","form-field","hds/button-set","hds/button","array"]]',moduleName:"vault/templates/components/transform-edit-form.hbs",isStrictMode:!1})})),define("vault/templates/components/transform-role-edit",["exports","@ember/template-factory"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default=(0,t.createTemplateFactory)({id:"RvDPm9Bl",block:'[[[8,[39,0],null,null,[["default"],[[[[1,"\\n  "],[8,[30,1,["top"]],null,null,[["default"],[[[[1,"\\n    "],[8,[39,1],null,[["@baseKey","@path","@mode","@root","@showCurrent"],[[28,[37,2],null,[["display","id"],[[30,0,["model","id"]],[30,0,["model","idForNav"]]]]],"vault.cluster.secrets.backend.list",[30,0,["mode"]],[30,0,["root"]],true]],null],[1,"\\n  "]],[]]]]],[1,"\\n  "],[8,[30,1,["levelLeft"]],null,null,[["default"],[[[[1,"\\n    "],[10,"h1"],[14,0,"title is-3"],[12],[1,"\\n"],[41,[28,[37,4],[[30,0,["mode"]],"create"],null],[[[1,"        Create Role\\n"]],[]],[[[41,[28,[37,4],[[30,0,["mode"]],"edit"],null],[[[1,"        Edit Role\\n"]],[]],[[[1,"        Role\\n        "],[10,"code"],[12],[1,[30,0,["model","id"]]],[13],[1,"\\n      "]],[]]]],[]]],[1,"    "],[13],[1,"\\n  "]],[]]]]],[1,"\\n"]],[1]]]]],[1,"\\n\\n"],[41,[28,[37,4],[[30,0,["mode"]],"show"],null],[[[1,"  "],[8,[39,5],null,null,[["default"],[[[[1,"\\n    "],[8,[39,6],null,null,[["default"],[[[[1,"\\n"],[41,[30,0,["capabilities","canDelete"]],[[[1,"        "],[8,[39,7],[[24,0,"toolbar-button"]],[["@buttonText","@buttonColor","@onConfirmAction","@confirmMessage"],["Delete role","secondary",[28,[37,8],[[30,0],"delete"],null],"Deleting this role means that you’ll need to recreate it and reassign any existing transformations to use it again."]],null],[1,"\\n        "],[10,0],[14,0,"toolbar-separator"],[12],[13],[1,"\\n"]],[]],null],[41,[30,0,["capabilities","canUpdate"]],[[[1,"        "],[8,[39,9],null,[["@secret","@mode","@replace"],[[28,[37,10],[[30,0,["model","idPrefix"]],[30,0,["model","id"]]],null],"edit",true]],[["default"],[[[[1,"\\n          Edit role\\n        "]],[]]]]],[1,"\\n"]],[]],null],[1,"    "]],[]]]]],[1,"\\n  "]],[]]]]],[1,"\\n"]],[]],null],[1,"\\n"],[41,[28,[37,11],[[28,[37,4],[[30,0,["mode"]],"edit"],null],[28,[37,4],[[30,0,["mode"]],"create"],null]],null],[[[1,"  "],[10,"form"],[15,"onsubmit",[28,[37,8],[[30,0],"createOrUpdate",[30,0,["mode"]]],null]],[12],[1,"\\n    "],[10,0],[14,0,"box is-sideless is-fullwidth is-marginless"],[12],[1,"\\n      "],[8,[39,12],null,[["@model"],[[30,0,["model"]]]],null],[1,"\\n      "],[8,[39,13],null,[["@mode","@noun"],[[30,0,["mode"]],"Transform role"]],null],[1,"\\n"],[42,[28,[37,15],[[28,[37,15],[[30,0,["model","attrs"]]],null]],null],null,[[[41,[28,[37,16],[[28,[37,4],[[30,0,["mode"]],"edit"],null],[30,2,["options","readOnly"]]],null],[[[1,"          "],[8,[39,17],null,[["@attr","@value"],[[30,2],[28,[37,18],[[30,0,["model"]],[30,2,["name"]]],null]]],null],[1,"\\n"]],[]],[[[1,"          "],[8,[39,19],null,[["@attr","@model"],[[30,2],[30,0,["model"]]]],null],[1,"\\n"]],[]]]],[2]],null],[1,"    "],[13],[1,"\\n    "],[10,0],[14,0,"field is-grouped-split box is-fullwidth is-bottomless"],[12],[1,"\\n      "],[8,[39,20],null,null,[["default"],[[[[1,"\\n        "],[8,[39,21],[[24,4,"submit"]],[["@text"],[[52,[28,[37,4],[[30,0,["mode"]],"create"],null],"Create role","Save"]]],null],[1,"\\n"],[41,[28,[37,4],[[30,0,["mode"]],"create"],null],[[[1,"          "],[8,[39,21],null,[["@text","@color","@route","@model","@query"],["Cancel","secondary","vault.cluster.secrets.backend.list-root",[30,0,["model","backend"]],[28,[37,2],null,[["tab"],["role"]]]]],null],[1,"\\n"]],[]],[[[1,"          "],[8,[39,21],null,[["@text","@color","@route","@models","@query"],["Cancel","secondary","vault.cluster.secrets.backend.show",[28,[37,22],[[30,0,["model","backend"]],[28,[37,10],["role/",[30,0,["model","id"]]],null]],null],[28,[37,2],null,[["tab"],["role"]]]]],null],[1,"\\n"]],[]]],[1,"      "]],[]]]]],[1,"\\n    "],[13],[1,"\\n  "],[13],[1,"\\n"]],[]],[[[1,"  "],[10,0],[14,0,"box is-fullwidth is-sideless is-paddingless is-marginless"],[12],[1,"\\n"],[42,[28,[37,15],[[28,[37,15],[[30,0,["model","attrs"]]],null]],null],null,[[[41,[28,[37,4],[[30,3,["type"]],"object"],null],[[[1,"        "],[8,[39,23],null,[["@label","@value"],[[28,[37,24],[[28,[37,11],[[30,3,["options","label"]],[28,[37,25],[[28,[37,26],[[30,3,["name"]]],null]],null]],null]],null],[28,[37,27],[[28,[37,18],[[30,0,["model"]],[30,3,["name"]]],null]],null]]],null],[1,"\\n"]],[]],[[[41,[28,[37,4],[[30,3,["type"]],"array"],null],[[[1,"        "],[8,[39,23],null,[["@label","@value","@type","@isLink"],[[28,[37,24],[[28,[37,11],[[30,3,["options","label"]],[28,[37,25],[[28,[37,26],[[30,3,["name"]]],null]],null]],null]],null],[28,[37,18],[[30,0,["model"]],[30,3,["name"]]],null],[30,3,["type"]],[28,[37,4],[[30,3,["name"]],"transformations"],null]]],null],[1,"\\n"]],[]],[[[1,"        "],[8,[39,23],null,[["@label","@value"],[[28,[37,24],[[28,[37,11],[[30,3,["options","label"]],[28,[37,25],[[28,[37,26],[[30,3,["name"]]],null]],null]],null]],null],[28,[37,18],[[30,0,["model"]],[30,3,["name"]]],null]]],null],[1,"\\n      "]],[]]]],[]]]],[3]],null],[1,"  "],[13],[1,"\\n"]],[]]]],["p","attr","attr"],false,["page-header","key-value-header","hash","if","eq","toolbar","toolbar-actions","confirm-action","action","toolbar-secret-link","concat","or","message-error","namespace-reminder","each","-track-array","and","readonly-form-field","get","form-field","hds/button-set","hds/button","array","info-table-row","capitalize","humanize","dasherize","stringify"]]',moduleName:"vault/templates/components/transform-role-edit.hbs",isStrictMode:!1})})),define("vault/templates/components/transform-show-transformation",["exports","@ember/template-factory"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default=(0,t.createTemplateFactory)({id:"EuDyMEcM",block:'[[[10,0],[14,0,"box is-fullwidth is-sideless is-paddingless is-marginless"],[12],[1,"\\n"],[42,[28,[37,1],[[28,[37,1],[[30,0,["model","transformFieldAttrs"]]],null]],null],null,[[[41,[28,[37,3],[[30,1,["type"]],"object"],null],[[[1,"      "],[8,[39,4],null,[["@label","@value"],[[28,[37,5],[[28,[37,6],[[30,1,["options","label"]],[28,[37,7],[[28,[37,8],[[30,1,["name"]]],null]],null]],null]],null],[28,[37,9],[[28,[37,10],[[30,0,["model"]],[30,1,["name"]]],null]],null]]],null],[1,"\\n"]],[]],[[[41,[28,[37,3],[[30,1,["type"]],"array"],null],[[[1,"      "],[8,[39,4],null,[["@label","@value","@type","@isLink","@queryParam","@modelType","@wildcardLabel","@backend"],[[28,[37,5],[[28,[37,6],[[30,1,["options","label"]],[28,[37,7],[[28,[37,8],[[30,1,["name"]]],null]],null]],null]],null],[28,[37,10],[[30,0,["model"]],[30,1,["name"]]],null],[30,1,["type"]],[28,[37,3],[[30,1,["name"]],"allowed_roles"],null],"role","transform/role",[30,1,["options","wildcardLabel"]],[30,0,["model","backend"]]]],null],[1,"\\n"]],[]],[[[1,"      "],[8,[39,4],null,[["@label","@value","@type"],[[28,[37,5],[[28,[37,6],[[30,1,["options","label"]],[28,[37,7],[[28,[37,8],[[30,1,["name"]]],null]],null]],null]],null],[28,[37,10],[[30,0,["model"]],[30,1,["name"]]],null],[30,1,["type"]]]],null],[1,"\\n    "]],[]]]],[]]]],[1]],null],[13],[1,"\\n\\n"],[10,0],[14,0,"has-top-margin-xl has-bottom-margin-s"],[12],[1,"\\n  "],[10,"label"],[14,0,"title has-border-bottom-light page-header"],[12],[1,"CLI Commands"],[13],[1,"\\n  "],[10,0],[14,0,"has-bottom-margin-s"],[12],[1,"\\n    "],[10,"h2"],[14,0,"title is-6"],[12],[1,"Encode"],[13],[1,"\\n    "],[10,0],[14,0,"has-bottom-margin-s"],[12],[1,"\\n      "],[10,1],[14,0,"helper-text has-text-grey"],[12],[1,"\\n        To test the encoding capability of your transformation, use the following command. It will output an encoded_value.\\n      "],[13],[1,"\\n    "],[13],[1,"\\n    "],[10,0],[14,0,"copy-text level"],[12],[1,"\\n"],[44,[[28,[37,12],["vault write ",[30,0,["model","backend"]],"/encode/",[30,0,["cliCommand"]]],null]],[[[1,"        "],[8,[39,13],null,[["@language","@hasLineNumbers","@hasLineWrapping","@hasCopyButton","@value"],["bash",false,true,true,[30,2]]],null],[1,"\\n"]],[2]]],[1,"    "],[13],[1,"\\n  "],[13],[1,"\\n  "],[10,0],[12],[1,"\\n    "],[10,"h2"],[14,0,"title is-6"],[12],[1,"Decode"],[13],[1,"\\n    "],[10,0],[14,0,"has-bottom-margin-s"],[12],[1,"\\n      "],[10,1],[14,0,"helper-text has-text-grey"],[12],[1,"\\n        To test decoding capability of your transformation, use the encoded_value in the following command. It should return\\n        your original input.\\n      "],[13],[1,"\\n    "],[13],[1,"\\n    "],[10,0],[14,0,"copy-text level"],[12],[1,"\\n"],[44,[[28,[37,12],["vault write ",[30,0,["model","backend"]],"/decode/",[30,0,["cliCommand"]]],null]],[[[1,"        "],[8,[39,13],null,[["@language","@hasLineNumbers","@hasLineWrapping","@hasCopyButton","@value"],["bash",false,true,true,[30,3]]],null],[1,"\\n"]],[3]]],[1,"    "],[13],[1,"\\n  "],[13],[1,"\\n"],[13]],["attr","copyEncodeCommand","copyDecodeCommand"],false,["each","-track-array","if","eq","info-table-row","capitalize","or","humanize","dasherize","stringify","get","let","concat","hds/code-block"]]',moduleName:"vault/templates/components/transform-show-transformation.hbs",isStrictMode:!1})})),define("vault/templates/components/transform-template-edit",["exports","@ember/template-factory"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default=(0,t.createTemplateFactory)({id:"lNDjsKXq",block:'[[[8,[39,0],null,null,[["default"],[[[[1,"\\n  "],[8,[30,1,["top"]],null,null,[["default"],[[[[1,"\\n    "],[8,[39,1],null,[["@baseKey","@path","@mode","@root","@showCurrent"],[[28,[37,2],null,[["display","id"],[[30,0,["model","id"]],[30,0,["model","idForNav"]]]]],"vault.cluster.secrets.backend.list",[30,0,["mode"]],[30,0,["root"]],true]],null],[1,"\\n  "]],[]]]]],[1,"\\n  "],[8,[30,1,["levelLeft"]],null,null,[["default"],[[[[1,"\\n    "],[10,"h1"],[14,0,"title is-3"],[12],[1,"\\n"],[41,[28,[37,4],[[30,0,["mode"]],"create"],null],[[[1,"        Create Template\\n"]],[]],[[[41,[28,[37,4],[[30,0,["mode"]],"edit"],null],[[[1,"        Edit Template\\n"]],[]],[[[1,"        Template\\n        "],[10,"code"],[12],[1,[30,0,["model","id"]]],[13],[1,"\\n      "]],[]]]],[]]],[1,"    "],[13],[1,"\\n  "]],[]]]]],[1,"\\n"]],[1]]]]],[1,"\\n\\n"],[41,[28,[37,4],[[30,0,["mode"]],"show"],null],[[[1,"  "],[8,[39,5],null,null,[["default"],[[[[1,"\\n    "],[8,[39,6],null,null,[["default"],[[[[1,"\\n"],[41,[30,0,["capabilities","canDelete"]],[[[1,"        "],[8,[39,7],[[24,0,"toolbar-button"],[4,[38,8],["click",[28,[37,9],[[30,0],"delete"],null]],null]],[["@text","@color"],["Delete template","secondary"]],null],[1,"\\n        "],[10,0],[14,0,"toolbar-separator"],[12],[13],[1,"\\n"]],[]],null],[41,[30,0,["capabilities","canUpdate"]],[[[1,"        "],[8,[39,10],null,[["@secret","@mode","@replace"],[[28,[37,11],[[30,0,["model","idPrefix"]],[30,0,["model","id"]]],null],"edit",true]],[["default"],[[[[1,"\\n          Edit template\\n        "]],[]]]]],[1,"\\n"]],[]],null],[1,"    "]],[]]]]],[1,"\\n  "]],[]]]]],[1,"\\n"]],[]],null],[1,"\\n"],[41,[28,[37,12],[[28,[37,4],[[30,0,["mode"]],"edit"],null],[28,[37,4],[[30,0,["mode"]],"create"],null]],null],[[[1,"  "],[10,"form"],[15,"onsubmit",[28,[37,9],[[30,0],"createOrUpdate",[30,0,["mode"]]],null]],[12],[1,"\\n    "],[10,0],[14,0,"box is-sideless is-fullwidth is-marginless"],[12],[1,"\\n      "],[8,[39,13],null,[["@model"],[[30,0,["model"]]]],null],[1,"\\n      "],[8,[39,14],null,[["@mode","@noun"],[[30,0,["mode"]],"transform template"]],null],[1,"\\n"],[42,[28,[37,16],[[28,[37,16],[[30,0,["model","writeAttrs"]]],null]],null],null,[[[41,[28,[37,17],[[28,[37,4],[[30,2,["name"]],"name"],null],[28,[37,4],[[30,0,["mode"]],"edit"],null]],null],[[[1,"          "],[10,"label"],[15,"for",[30,2,["name"]]],[14,0,"is-label"],[12],[1,"\\n            "],[1,[30,2,["options","label"]]],[1,"\\n          "],[13],[1,"\\n"],[41,[30,2,["options","subText"]],[[[1,"            "],[10,2],[14,0,"sub-text"],[12],[1,[30,2,["options","subText"]]],[13],[1,"\\n"]],[]],null],[1,"          "],[10,"input"],[15,1,[30,2,["name"]]],[14,"autocomplete","off"],[14,"spellcheck","false"],[15,2,[28,[37,12],[[28,[37,18],[[30,0,["model"]],[30,2,["name"]]],null],[30,2,["options","defaultValue"]]],null]],[15,"readonly",true],[14,0,"field input is-readOnly"],[15,4,[30,2,["type"]]],[12],[13],[1,"\\n"]],[]],[[[41,[28,[37,4],[[30,2,["name"]],"alphabet"],null],[[[1,"            "],[8,[39,19],null,[["@model"],[[30,0,["model"]]]],null],[1,"\\n"]],[]],null],[1,"          "],[8,[39,20],null,[["@attr","@model"],[[30,2],[30,0,["model"]]]],null],[1,"\\n"]],[]]]],[2]],null],[1,"    "],[13],[1,"\\n    "],[10,0],[14,0,"field is-grouped-split box is-fullwidth is-bottomless"],[12],[1,"\\n      "],[8,[39,21],null,null,[["default"],[[[[1,"\\n        "],[8,[39,7],[[24,4,"submit"]],[["@text"],[[52,[28,[37,4],[[30,0,["mode"]],"create"],null],"Create template","Save"]]],null],[1,"\\n"],[41,[28,[37,4],[[30,0,["mode"]],"create"],null],[[[1,"          "],[8,[39,7],null,[["@text","@color","@route","@model","@query"],["Cancel","secondary","vault.cluster.secrets.backend.list-root",[30,0,["model","backend"]],[28,[37,2],null,[["tab"],["template"]]]]],null],[1,"\\n"]],[]],[[[1,"          "],[8,[39,7],null,[["@text","@color","@route","@models","@query"],["Cancel","secondary","vault.cluster.secrets.backend.show",[28,[37,22],[[30,0,["model","backend"]],[28,[37,11],["template/",[30,0,["model","id"]]],null]],null],[28,[37,2],null,[["tab"],["template"]]]]],null],[1,"\\n"]],[]]],[1,"      "]],[]]]]],[1,"\\n    "],[13],[1,"\\n  "],[13],[1,"\\n"]],[]],[[[41,[30,0,["model","displayErrors"]],[[[1,"    "],[10,0],[14,0,"has-top-margin-s"],[12],[1,"\\n      "],[8,[39,13],null,[["@model"],[[30,0,["model"]]]],null],[1,"\\n    "],[13],[1,"\\n"]],[]],null],[1,"  "],[10,0],[14,0,"box is-fullwidth is-sideless is-paddingless is-marginless"],[12],[1,"\\n"],[42,[28,[37,16],[[28,[37,16],[[30,0,["model","readAttrs"]]],null]],null],null,[[[44,[[28,[37,24],[[28,[37,12],[[30,3,["options","label"]],[28,[37,25],[[28,[37,26],[[30,3,["name"]]],null]],null]],null]],null]],[[[41,[28,[37,4],[[30,3,["name"]],"decodeFormats"],null],[[[41,[28,[37,27],[[28,[37,28],[[30,0,["model","decodeFormats"]]],null]],null],[[[1,"            "],[8,[39,29],null,[["@label"],[[30,4]]],[["default"],[[[[1,"\\n              "],[10,0],[12],[1,"\\n"],[42,[28,[37,30],[[30,0,["model","decodeFormats"]]],null],null,[[[1,"                  "],[10,0],[14,0,"transform-decode-formats"],[12],[1,"\\n                    "],[10,2],[14,0,"is-label has-text-grey-light"],[12],[1,[30,6]],[13],[1,"\\n                    "],[10,2],[12],[1,[30,5]],[13],[1,"\\n                  "],[13],[1,"\\n"]],[5,6]],null],[1,"              "],[13],[1,"\\n            "]],[]]]]],[1,"\\n"]],[]],null]],[]],[[[1,"          "],[8,[39,29],[[16,0,[52,[28,[37,4],[[30,3,["name"]],"pattern"],null],"transform-pattern-text"]]],[["@label","@value"],[[30,4],[28,[37,18],[[30,0,["model"]],[30,3,["name"]]],null]]],null],[1,"\\n"]],[]]]],[4]]]],[3]],null],[1,"  "],[13],[1,"\\n"]],[]]]],["p","attr","attr","label","value","key"],false,["page-header","key-value-header","hash","if","eq","toolbar","toolbar-actions","hds/button","on","action","toolbar-secret-link","concat","or","message-error","namespace-reminder","each","-track-array","and","get","transform-advanced-templating","form-field","hds/button-set","array","let","capitalize","humanize","dasherize","not","is-empty-value","info-table-row","-each-in"]]',moduleName:"vault/templates/components/transform-template-edit.hbs",isStrictMode:!1})})),define("vault/templates/components/transformation-edit",["exports","@ember/template-factory"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default=(0,t.createTemplateFactory)({id:"4UILtNRL",block:'[[[8,[39,0],null,null,[["default"],[[[[1,"\\n  "],[8,[30,1,["top"]],null,null,[["default"],[[[[1,"\\n    "],[8,[39,1],null,[["@baseKey","@path","@mode","@root","@showCurrent"],[[30,0,["model"]],"vault.cluster.secrets.backend.list",[30,0,["mode"]],[30,0,["root"]],true]],null],[1,"\\n  "]],[]]]]],[1,"\\n  "],[8,[30,1,["levelLeft"]],null,null,[["default"],[[[[1,"\\n    "],[10,"h1"],[14,0,"title is-3"],[12],[1,"\\n"],[41,[28,[37,3],[[30,0,["mode"]],"create"],null],[[[1,"        Create Transformation\\n"]],[]],[[[41,[28,[37,3],[[30,0,["mode"]],"edit"],null],[[[1,"        Edit Transformation\\n"]],[]],[[[1,"        Transformation\\n        "],[10,"code"],[12],[1,[30,0,["model","id"]]],[13],[1,"\\n      "]],[]]]],[]]],[1,"    "],[13],[1,"\\n  "]],[]]]]],[1,"\\n"]],[1]]]]],[1,"\\n\\n"],[41,[28,[37,3],[[30,0,["mode"]],"show"],null],[[[1,"  "],[8,[39,4],null,null,[["default"],[[[[1,"\\n    "],[8,[39,5],null,null,[["default"],[[[[1,"\\n"],[41,[30,0,["capabilities","canDelete"]],[[[41,[28,[37,6],[[30,0,["model","allowed_roles","length"]],0],null],[[[1,"          "],[8,[39,7],null,[["@verticalPosition","@horizontalPosition"],["above","center"]],[["default"],[[[[1,"\\n            "],[8,[30,2,["Trigger"]],null,[["@tabindex"],["-1"]],[["default"],[[[[1,"\\n              "],[8,[39,8],[[24,0,"toolbar-button"],[24,"aria-disabled","true"],[24,"disabled",""]],[["@text","@color"],["Delete transformation","secondary"]],null],[1,"\\n            "]],[]]]]],[1,"\\n            "],[8,[30,2,["Content"]],null,[["@defaultClass"],["tool-tip"]],[["default"],[[[[1,"\\n              "],[10,0],[14,0,"box"],[12],[1,"\\n                This transformation is in use by a role and can’t be deleted.\\n              "],[13],[1,"\\n            "]],[]]]]],[1,"\\n          "]],[2]]]]],[1,"\\n"]],[]],[[[1,"          "],[8,[39,8],[[24,0,"toolbar-button"],[4,[38,9],["click",[28,[37,10],[[30,0],[28,[37,11],[[30,0,["isDeleteModalActive"]]],null],true],null]],null]],[["@text","@color"],["Delete transformation","secondary"]],null],[1,"\\n"]],[]]],[1,"        "],[10,0],[14,0,"toolbar-separator"],[12],[13],[1,"\\n"]],[]],null],[41,[30,0,["capabilities","canUpdate"]],[[[41,[28,[37,6],[[30,0,["model","allowed_roles","length"]],0],null],[[[1,"          "],[8,[39,8],[[24,0,"toolbar-button"],[4,[38,9],["click",[28,[37,12],[[28,[37,11],[[30,0,["isEditModalActive"]]],null],true],null]],null]],[["@text","@color"],["Edit transformation","secondary"]],null],[1,"\\n"]],[]],[[[1,"          "],[8,[39,13],null,[["@secret","@mode","@replace"],[[30,0,["model","id"]],"edit",true]],[["default"],[[[[1,"\\n            Edit transformation\\n          "]],[]]]]],[1,"\\n"]],[]]]],[]],null],[1,"    "]],[]]]]],[1,"\\n  "]],[]]]]],[1,"\\n"]],[]],null],[1,"\\n"],[41,[28,[37,3],[[30,0,["mode"]],"edit"],null],[[[1,"  "],[8,[39,14],null,[["@mode","@model"],[[30,0,["mode"]],[30,0,["model"]]]],null],[1,"\\n"]],[]],[[[41,[28,[37,3],[[30,0,["mode"]],"create"],null],[[[1,"  "],[8,[39,15],null,[["@mode","@model"],[[30,0,["mode"]],[30,0,["model"]]]],null],[1,"\\n"]],[]],[[[1,"  "],[8,[39,16],null,[["@model"],[[30,0,["model"]]]],null],[1,"\\n"]],[]]]],[]]],[1,"\\n"],[8,[39,17],null,[["@title","@onClose","@isActive","@confirmText","@toConfirmMsg","@onConfirm"],["Delete transformation",[28,[37,10],[[30,0],[28,[37,11],[[30,0,["isDeleteModalActive"]]],null],false],null],[30,0,["isDeleteModalActive"]],[30,0,["model","name"]],"deleting the transformation.",[28,[37,10],[[30,0],"delete"],null]]],[["default"],[[[[1,"\\n  "],[10,2],[14,0,"has-bottom-margin-m"],[12],[1,"\\n    Deleting the\\n    "],[10,"strong"],[12],[1,[30,0,["model","name"]]],[13],[1,"\\n    transformation means that the underlying keys are lost and the data encoded by the transformation are unrecoverable and\\n    cannot be decoded.\\n  "],[13],[1,"\\n  "],[8,[39,18],null,[["@model","@errorMessage"],[[30,0,["model"]],[30,0,["error"]]]],null],[1,"\\n"]],[]]]]],[1,"\\n\\n"],[41,[30,0,["isEditModalActive"]],[[[1,"  "],[8,[39,19],[[24,1,"transformation-edit-modal"]],[["@color","@onClose"],["warning",[28,[37,12],[[28,[37,11],[[30,0,["isEditModalActive"]]],null],false],null]]],[["default"],[[[[1,"\\n    "],[8,[30,3,["Header"]],null,[["@icon"],["alert-triangle"]],[["default"],[[[[1,"\\n      Edit transformation\\n    "]],[]]]]],[1,"\\n    "],[8,[30,3,["Body"]],null,null,[["default"],[[[[1,"\\n      "],[10,2],[12],[1,"\\n        You’re editing a transformation that is in use by at least one role. Editing it may mean that encode and decode\\n        operations stop working. Are you sure?\\n      "],[13],[1,"\\n    "]],[]]]]],[1,"\\n    "],[8,[30,3,["Footer"]],null,null,[["default"],[[[[1,"\\n      "],[8,[39,20],null,null,[["default"],[[[[1,"\\n        "],[8,[39,8],null,[["@text","@route","@model"],["Confirm","vault.cluster.secrets.backend.edit",[30,0,["model","id"]]]],null],[1,"\\n        "],[8,[39,8],[[4,[38,9],["click",[30,4,["close"]]],null]],[["@color","@text"],["secondary","Cancel"]],null],[1,"\\n      "]],[]]]]],[1,"\\n    "]],[4]]]]],[1,"\\n  "]],[3]]]]],[1,"\\n"]],[]],null]],["p","T","M","F"],false,["page-header","key-value-header","if","eq","toolbar","toolbar-actions","gt","tool-tip","hds/button","on","action","mut","fn","toolbar-secret-link","transform-edit-form","transform-create-form","transform-show-transformation","confirmation-modal","message-error","hds/modal","hds/button-set"]]',moduleName:"vault/templates/components/transformation-edit.hbs",isStrictMode:!1})})),define("vault/templates/components/transit-edit",["exports","@ember/template-factory"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default=(0,t.createTemplateFactory)({id:"tQARCKq7",block:'[[[8,[39,0],null,null,[["default"],[[[[1,"\\n  "],[8,[30,1,["top"]],null,null,[["default"],[[[[1,"\\n    "],[8,[39,1],null,[["@breadcrumbs"],[[30,0,["breadcrumbs"]]]],null],[1,"\\n  "]],[]]]]],[1,"\\n  "],[8,[30,1,["levelLeft"]],null,null,[["default"],[[[[1,"\\n    "],[10,"h1"],[14,0,"title is-3"],[12],[1,"\\n"],[41,[28,[37,3],[[30,0,["mode"]],"create"],null],[[[1,"        Create Key\\n"]],[]],[[[41,[28,[37,3],[[30,0,["mode"]],"edit"],null],[[[1,"        Edit Key\\n"]],[]],[[[1,"        Key\\n        "],[10,"code"],[12],[1,[30,0,["key","id"]]],[13],[1,"\\n      "]],[]]]],[]]],[1,"    "],[13],[1,"\\n  "]],[]]]]],[1,"\\n"]],[1]]]]],[1,"\\n"],[41,[28,[37,3],[[30,0,["mode"]],"create"],null],[[[1,"  "],[8,[39,4],null,[["@createOrUpdateKey","@setValueOnKey","@autoRotateInvalid","@handleAutoRotateChange","@derivedChange","@convergentEncryptionChange","@key","@errorMessage","@requestInFlight"],[[28,[37,5],[[30,0],"createOrUpdateKey",[30,0,["mode"]]],null],[28,[37,5],[[30,0],"setValueOnKey","exportable"],null],[30,0,["autoRotateInvalid"]],[28,[37,5],[[30,0],"handleAutoRotateChange"],null],[28,[37,5],[[30,0],"derivedChange"],[["value"],["target.checked"]]],[28,[37,5],[[30,0],"convergentEncryptionChange"],[["value"],["target.checked"]]],[30,0,["key"]],[30,0,["errorMessage"]],[30,0,["requestInFlight"]]]],null],[1,"\\n"]],[]],[[[41,[28,[37,3],[[30,0,["mode"]],"edit"],null],[[[1,"  "],[8,[39,6],null,[["@createOrUpdateKey","@setValueOnKey","@autoRotateInvalid","@handleAutoRotateChange","@deleteKey","@key","@requestInFlight","@capabilities"],[[28,[37,5],[[30,0],"createOrUpdateKey",[30,0,["mode"]]],null],[28,[37,5],[[30,0],"setValueOnKey","deletionAllowed"],null],[30,0,["autoRotateInvalid"]],[28,[37,5],[[30,0],"handleAutoRotateChange"],null],[28,[37,5],[[30,0],"deleteKey"],null],[30,0,["key"]],[30,0,["requestInFlight"]],[30,0,["capabilities"]]]],null],[1,"\\n"]],[]],[[[41,[28,[37,3],[[30,0,["mode"]],"show"],null],[[[1,"  "],[8,[39,7],null,[["@refresh","@tab","@key","@capabilities","@mode","@model","@backend"],[[28,[37,5],[[30,0],"refresh"],null],[30,0,["tab"]],[30,0,["key"]],[30,0,["capabilities"]],[30,0,["mode"]],[30,0,["model"]],[30,0,["backend"]]]],null],[1,"\\n"]],[]],[[[1,"  "],[8,[39,8],null,[["@title"],["No Transit mode selected"]],null],[1,"\\n"]],[]]]],[]]]],[]]]],["p"],false,["page-header","page/breadcrumbs","if","eq","transit-form-create","action","transit-form-edit","transit-form-show","empty-state"]]',moduleName:"vault/templates/components/transit-edit.hbs",isStrictMode:!1})})),define("vault/templates/components/transit-form-create",["exports","@ember/template-factory"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default=(0,t.createTemplateFactory)({id:"aXZ03wem",block:'[[[10,"form"],[15,"onsubmit",[30,1]],[12],[1,"\\n  "],[10,0],[14,0,"box is-sideless is-fullwidth is-marginless"],[12],[1,"\\n    "],[8,[39,0],null,[["@model","@errorMessage"],[[30,2],[30,3]]],null],[1,"\\n    "],[8,[39,1],null,[["@mode","@noun"],["create","transit key"]],null],[1,"\\n    "],[10,0],[14,0,"field"],[12],[1,"\\n      "],[10,"label"],[14,"for","key-name"],[14,0,"is-label"],[12],[1,"Name"],[13],[1,"\\n      "],[8,[39,2],[[24,1,"key-name"],[24,0,"input"]],[["@value"],[[30,2,["name"]]]],null],[1,"\\n    "],[13],[1,"\\n    "],[10,0],[14,0,"field"],[12],[1,"\\n      "],[8,[39,3],null,[["@initialValue","@initialEnabled","@label","@helperTextDisabled","@helperTextEnabled","@onChange","@errorMessage"],["30d",false,"Auto-rotation period","Key will never be automatically rotated","Key will be automatically rotated every",[30,4],[52,[30,5],"Duration must be longer than 1 hour"]]],null],[1,"\\n    "],[13],[1,"\\n    "],[10,0],[14,0,"field"],[12],[1,"\\n      "],[10,"label"],[14,"for","key-type"],[14,0,"is-label"],[12],[1,"Type"],[13],[1,"\\n      "],[10,0],[14,0,"control is-expanded"],[12],[1,"\\n        "],[10,0],[14,0,"select is-fullwidth"],[12],[1,"\\n          "],[10,"select"],[14,3,"key-type"],[14,1,"key-type"],[15,"onchange",[28,[37,5],[[30,0],[28,[37,6],[[30,2,["type"]]],null]],[["value"],["target.value"]]]],[12],[1,"\\n            "],[10,"option"],[15,"selected",[28,[37,7],[[30,2,["type"]],"aes128-gcm96"],null]],[14,2,"aes128-gcm96"],[12],[1,"\\n              aes128-gcm96\\n            "],[13],[1,"\\n            "],[10,"option"],[15,"selected",[28,[37,7],[[30,2,["type"]],"aes256-gcm96"],null]],[14,2,"aes256-gcm96"],[12],[1,"\\n              aes256-gcm96\\n            "],[13],[1,"\\n            "],[10,"option"],[15,"selected",[28,[37,7],[[30,2,["type"]],"chacha20-poly1305"],null]],[14,2,"chacha20-poly1305"],[12],[1,"\\n              chacha20-poly1305\\n            "],[13],[1,"\\n            "],[10,"option"],[15,"selected",[28,[37,7],[[30,2,["type"]],"ecdsa-p256"],null]],[14,2,"ecdsa-p256"],[12],[1,"\\n              ecdsa-p256\\n            "],[13],[1,"\\n            "],[10,"option"],[15,"selected",[28,[37,7],[[30,2,["type"]],"ecdsa-p384"],null]],[14,2,"ecdsa-p384"],[12],[1,"\\n              ecdsa-p384\\n            "],[13],[1,"\\n            "],[10,"option"],[15,"selected",[28,[37,7],[[30,2,["type"]],"ecdsa-p521"],null]],[14,2,"ecdsa-p521"],[12],[1,"\\n              ecdsa-p521\\n            "],[13],[1,"\\n            "],[10,"option"],[15,"selected",[28,[37,7],[[30,2,["type"]],"ed25519"],null]],[14,2,"ed25519"],[12],[1,"\\n              ed25519\\n            "],[13],[1,"\\n            "],[10,"option"],[15,"selected",[28,[37,7],[[30,2,["type"]],"rsa-2048"],null]],[14,2,"rsa-2048"],[12],[1,"\\n              rsa-2048\\n            "],[13],[1,"\\n            "],[10,"option"],[15,"selected",[28,[37,7],[[30,2,["type"]],"rsa-3072"],null]],[14,2,"rsa-3072"],[12],[1,"\\n              rsa-3072\\n            "],[13],[1,"\\n            "],[10,"option"],[15,"selected",[28,[37,7],[[30,2,["type"]],"rsa-4096"],null]],[14,2,"rsa-4096"],[12],[1,"\\n              rsa-4096\\n            "],[13],[1,"\\n          "],[13],[1,"\\n        "],[13],[1,"\\n      "],[13],[1,"\\n    "],[13],[1,"\\n    "],[10,0],[14,0,"field"],[12],[1,"\\n      "],[10,0],[14,0,"b-checkbox"],[12],[1,"\\n        "],[10,"input"],[14,1,"key-exportable"],[14,0,"styled"],[15,"checked",[30,2,["exportable"]]],[15,"onchange",[30,6]],[14,4,"checkbox"],[12],[13],[1,"\\n        "],[10,"label"],[14,"for","key-exportable"],[14,0,"is-label"],[12],[1,"\\n          Exportable\\n        "],[13],[1,"\\n      "],[13],[1,"\\n    "],[13],[1,"\\n"],[41,[28,[37,8],[[28,[37,7],[[30,2,["type"]],"aes128-gcm96"],null],[28,[37,7],[[30,2,["type"]],"aes256-gcm96"],null],[28,[37,7],[[30,2,["type"]],"chacha20-poly1305"],null],[28,[37,7],[[30,2,["type"]],"ed25519"],null]],null],[[[1,"      "],[10,0],[14,0,"field"],[12],[1,"\\n        "],[10,0],[14,0,"b-checkbox"],[12],[1,"\\n          "],[10,"input"],[14,1,"key-derived"],[14,0,"styled"],[15,"checked",[30,2,["derived"]]],[15,"onchange",[30,7]],[14,4,"checkbox"],[12],[13],[1,"\\n          "],[10,"label"],[14,"for","key-derived"],[14,0,"is-label"],[12],[1,"\\n            Derived\\n          "],[13],[1,"\\n        "],[13],[1,"\\n      "],[13],[1,"\\n"]],[]],null],[41,[28,[37,8],[[28,[37,7],[[30,2,["type"]],"aes128-gcm96"],null],[28,[37,7],[[30,2,["type"]],"aes256-gcm96"],null],[28,[37,7],[[30,2,["type"]],"chacha20-poly1305"],null]],null],[[[1,"      "],[10,0],[14,0,"field"],[12],[1,"\\n        "],[10,0],[14,0,"b-checkbox"],[12],[1,"\\n          "],[10,"input"],[14,1,"key-convergent"],[14,0,"styled"],[15,"checked",[30,2,["convergentEncryption"]]],[15,"onchange",[30,8]],[14,4,"checkbox"],[12],[13],[1,"\\n          "],[10,"label"],[14,"for","key-convergent"],[14,0,"is-label"],[12],[1,"\\n            Enable convergent encryption\\n          "],[13],[1,"\\n        "],[13],[1,"\\n      "],[13],[1,"\\n"]],[]],null],[1,"  "],[13],[1,"\\n  "],[10,0],[14,0,"field is-grouped box is-fullwidth is-bottomless"],[12],[1,"\\n    "],[8,[39,9],null,null,[["default"],[[[[1,"\\n      "],[8,[39,10],[[16,"disabled",[30,9]],[24,4,"submit"]],[["@text","@icon"],["Create key",[52,[30,9],"loading"]]],null],[1,"\\n      "],[8,[39,10],null,[["@text","@color","@model","@route"],["Cancel","secondary",[30,2,["backend"]],"vault.cluster.secrets.backend.list-root"]],null],[1,"\\n    "]],[]]]]],[1,"\\n  "],[13],[1,"\\n"],[13]],["@createOrUpdateKey","@key","@errorMessage","@handleAutoRotateChange","@autoRotateInvalid","@setValueOnKey","@derivedChange","@convergentEncryptionChange","@requestInFlight"],false,["message-error","namespace-reminder","input","ttl-picker","if","action","mut","eq","or","hds/button-set","hds/button"]]',moduleName:"vault/templates/components/transit-form-create.hbs",isStrictMode:!1})})),define("vault/templates/components/transit-form-edit",["exports","@ember/template-factory"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default=(0,t.createTemplateFactory)({id:"LkM0pIRt",block:'[[[10,"form"],[15,"onsubmit",[30,1]],[12],[1,"\\n  "],[10,0],[14,0,"box is-sideless is-fullwidth is-marginless"],[12],[1,"\\n    "],[8,[39,0],null,[["@model"],[[30,2]]],null],[1,"\\n    "],[8,[39,1],null,[["@mode","@noun"],["edit","transit key"]],null],[1,"\\n    "],[10,0],[14,0,"field"],[12],[1,"\\n      "],[10,0],[14,0,"b-checkbox"],[12],[1,"\\n        "],[10,"input"],[14,1,"key-allows-delete"],[15,"checked",[30,2,["deletionAllowed"]]],[14,0,"styled"],[15,"onchange",[30,3]],[14,4,"checkbox"],[12],[13],[1,"\\n        "],[10,"label"],[14,"for","key-allows-delete"],[14,0,"is-label"],[12],[1,"\\n          Allow deletion\\n        "],[13],[1,"\\n      "],[13],[1,"\\n    "],[13],[1,"\\n    "],[10,0],[14,0,"field"],[12],[1,"\\n      "],[8,[39,2],null,[["@initialValue","@initialEnabled","@label","@helperTextDisabled","@helperTextEnabled","@onChange","@errorMessage"],[[28,[37,3],[[30,2,["autoRotatePeriod"]],"30d"],null],[28,[37,4],[[28,[37,5],[[30,2,["autoRotatePeriod"]],0],null]],null],"Auto-rotation period","Key will never be automatically rotated","Key will be automatically rotated every",[30,4],[52,[30,5],"Duration must be longer than 1 hour"]]],null],[1,"\\n    "],[13],[1,"\\n    "],[10,0],[14,0,"field"],[12],[1,"\\n      "],[10,"label"],[14,"for","key-min-decrypt-version"],[14,0,"is-label"],[12],[1,"Minimum decryption version"],[13],[1,"\\n      "],[10,0],[14,0,"control is-expanded"],[12],[1,"\\n        "],[10,0],[14,0,"select is-fullwidth"],[12],[1,"\\n          "],[10,"select"],[14,3,"key-min-decrypt-version"],[14,1,"key-min-decrypt-version"],[15,"onchange",[28,[37,7],[[30,0],[28,[37,8],[[30,2,["minDecryptionVersion"]]],null]],[["value"],["target.value"]]]],[12],[1,"\\n"],[42,[28,[37,10],[[28,[37,10],[[30,2,["keyVersions"]]],null]],null],null,[[[1,"              "],[10,"option"],[15,"selected",[28,[37,5],[[30,2,["minDecryptionVersion"]],[30,6]],null]],[15,2,[30,6]],[12],[1,"\\n                "],[10,"code"],[12],[1,[30,6]],[13],[1,"\\n              "],[13],[1,"\\n"]],[6]],null],[1,"          "],[13],[1,"\\n        "],[13],[1,"\\n      "],[13],[1,"\\n      "],[10,2],[14,0,"help"],[12],[1,"\\n        The minimum decryption version required to reverse transformations performed with the cryptographic key. Results from\\n        lower key versions may be rewrapped with the new key version using the\\n        "],[10,"code"],[12],[1,"rewrap"],[13],[1,"\\n        action.\\n      "],[13],[1,"\\n    "],[13],[1,"\\n    "],[10,0],[14,0,"field"],[12],[1,"\\n      "],[10,"label"],[14,"for","key-min-encrypt-version"],[14,0,"is-label"],[12],[1,"Minimum encryption version"],[13],[1,"\\n      "],[10,0],[14,0,"control is-expanded"],[12],[1,"\\n        "],[10,0],[14,0,"select is-fullwidth"],[12],[1,"\\n          "],[10,"select"],[14,3,"key-min-encrypt-version"],[14,1,"key-min-encrypt-version"],[15,"onchange",[28,[37,7],[[30,0],[28,[37,8],[[30,2,["minEncryptionVersion"]]],null]],[["value"],["target.value"]]]],[12],[1,"\\n            "],[10,"option"],[15,"selected",[28,[37,5],[[30,2,["minEncryptionVersion"]],0],null]],[15,2,0],[12],[1,"\\n              "],[10,"code"],[12],[1,"Latest"],[13],[1,"\\n              (currently\\n              "],[1,[30,2,["latestVersion"]]],[1,")\\n            "],[13],[1,"\\n"],[42,[28,[37,10],[[28,[37,10],[[30,2,["encryptionKeyVersions"]]],null]],null],null,[[[1,"              "],[10,"option"],[15,"selected",[28,[37,5],[[30,2,["minEncryptionVersion"]],[30,7]],null]],[15,2,[30,7]],[12],[1,"\\n                "],[10,"code"],[12],[1,[30,7]],[13],[1,"\\n              "],[13],[1,"\\n"]],[7]],null],[1,"          "],[13],[1,"\\n        "],[13],[1,"\\n      "],[13],[1,"\\n      "],[10,2],[14,0,"help"],[12],[1,"\\n        The minimum version of the key that can be used to encrypt plaintext, sign payloads, or generate HMACs. You will be\\n        able to specify which version of the key to use for each of these actions. The value specified here must be greater\\n        than or equal to that specified in the\\n        "],[10,"b"],[12],[1,"Minimum Decryption Version"],[13],[1,"\\n        selection above.\\n      "],[13],[1,"\\n    "],[13],[1,"\\n  "],[13],[1,"\\n  "],[10,0],[14,0,"field is-grouped is-grouped-split box is-fullwidth is-bottomless"],[12],[1,"\\n    "],[10,0],[14,0,"field is-grouped"],[12],[1,"\\n"],[41,[30,8,["canUpdate"]],[[[1,"        "],[10,0],[14,0,"control"],[12],[1,"\\n          "],[8,[39,11],[[16,"disabled",[30,9]],[24,4,"submit"]],[["@text","@icon"],["Update transit key",[52,[30,9],"loading"]]],null],[1,"\\n        "],[13],[1,"\\n"]],[]],null],[1,"      "],[10,0],[14,0,"control"],[12],[1,"\\n        "],[8,[39,11],null,[["@text","@color","@route","@models","@query"],["Cancel","secondary","vault.cluster.secrets.backend.show",[28,[37,12],[[30,2,["backend"]],[30,2,["id"]]],null],[28,[37,13],null,[["tab"],["details"]]]]],null],[1,"\\n      "],[13],[1,"\\n    "],[13],[1,"\\n"],[41,[28,[37,14],[[30,2,["canDelete"]],[30,8,["canDelete"]]],null],[[[1,"      "],[8,[39,15],null,[["@buttonText","@onConfirmAction"],["Delete transit key",[30,10]]],null],[1,"\\n"]],[]],null],[1,"  "],[13],[1,"\\n"],[13]],["@createOrUpdateKey","@key","@setValueOnKey","@handleAutoRotateChange","@autoRotateInvalid","version","version","@capabilities","@requestInFlight","@deleteKey"],false,["message-error","namespace-reminder","ttl-picker","or","not","eq","if","action","mut","each","-track-array","hds/button","array","hash","and","confirm-action"]]',moduleName:"vault/templates/components/transit-form-edit.hbs",isStrictMode:!1})})),define("vault/templates/components/transit-form-show",["exports","@ember/template-factory"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default=(0,t.createTemplateFactory)({id:"Poitavxr",block:'[[[10,0],[14,0,"tabs-container box is-sideless is-fullwidth is-paddingless is-marginless"],[12],[1,"\\n  "],[10,"nav"],[14,0,"tabs"],[14,"aria-label","navigation to manage transit backend"],[12],[1,"\\n    "],[10,"ul"],[12],[1,"\\n      "],[10,"li"],[15,0,[52,[28,[37,1],[[30,1],"actions"],null],"is-active"]],[12],[1,"\\n        "],[8,[39,2],null,[["@secret","@mode","@backend","@replace","@queryParams"],[[30,2,["id"]],"show",[30,2,["backend"]],true,[28,[37,3],null,[["tab"],["actions"]]]]],[["default"],[[[[1,"\\n          Key Actions\\n        "]],[]]]]],[1,"\\n      "],[13],[1,"\\n\\n      "],[10,"li"],[15,0,[52,[28,[37,1],[[30,1],"details"],null],"is-active"]],[12],[1,"\\n        "],[8,[39,2],null,[["@secret","@mode","@backend","@replace","@queryParams"],[[30,2,["id"]],"show",[30,2,["backend"]],true,[28,[37,3],null,[["tab"],["details"]]]]],[["default"],[[[[1,"\\n          Details\\n        "]],[]]]]],[1,"\\n      "],[13],[1,"\\n\\n      "],[10,"li"],[15,0,[52,[28,[37,1],[[30,1],"versions"],null],"is-active"]],[12],[1,"\\n        "],[8,[39,2],null,[["@secret","@mode","@backend","@replace","@queryParams"],[[30,2,["id"]],"show",[30,2,["backend"]],true,[28,[37,3],null,[["tab"],["versions"]]]]],[["default"],[[[[1,"\\n          Versions\\n        "]],[]]]]],[1,"\\n      "],[13],[1,"\\n    "],[13],[1,"\\n  "],[13],[1,"\\n"],[13],[1,"\\n"],[41,[28,[37,4],[[30,1],"actions"],null],[[[1,"  "],[8,[39,5],null,null,[["default"],[[[[1,"\\n    "],[8,[39,6],null,null,[["default"],[[[[1,"\\n"],[41,[28,[37,7],[[28,[37,1],[[30,1],"versions"],null],[30,2,["canRotate"]]],null],[[[1,"        "],[8,[39,8],[[24,0,"toolbar-button"]],[["@buttonText","@buttonColor","@confirmTitle","@confirmMessage","@modalColor","@onConfirmAction"],["Rotate key","secondary","Rotate this key?","After rotation, all key actions will default to using the newest version of the key.","warning",[30,0,["rotateKey"]]]],null],[1,"\\n"]],[]],null],[41,[28,[37,1],[[30,3],"show"],null],[[[41,[28,[37,9],[[30,4,["canUpdate"]],[30,4,["canDelete"]]],null],[[[1,"          "],[8,[39,10],[[16,"replace",true]],[["@secret","@backend","@mode"],[[30,2,["id"]],[30,2,["backend"]],"edit"]],[["default"],[[[[1,"\\n            Edit key\\n          "]],[]]]]],[1,"\\n"]],[]],null]],[]],null],[1,"    "]],[]]]]],[1,"\\n  "]],[]]]]],[1,"\\n"]],[]],null],[1,"\\n"],[41,[28,[37,1],[[30,1],"actions"],null],[[[1,"  "],[10,0],[14,0,"transit-card-container"],[12],[1,"\\n"],[42,[28,[37,12],[[28,[37,12],[[30,5,["supportedActions"]]],null]],null],null,[[[1,"      "],[8,[39,13],[[24,0,"transit-card"]],[["@params","@queryParams"],[[28,[37,14],["vault.cluster.secrets.backend.actions",[30,5,["backend"]],[30,5,["id"]]],null],[28,[37,3],null,[["action"],[[30,6,["name"]]]]]]],[["default"],[[[[1,"\\n        "],[10,0],[14,0,"transit-icon"],[12],[1,"\\n          "],[8,[39,15],[[24,0,"has-text-grey auto-width"],[16,"aria-label",[28,[37,16],[[30,7,["path"]]," options"],null]]],[["@name"],[[30,6,["glyph"]]]],null],[1,"\\n        "],[13],[1,"\\n        "],[10,0],[14,0,"transit-description"],[12],[1,"\\n          "],[10,"h2"],[14,0,"title is-6"],[12],[1,"\\n"],[41,[28,[37,1],[[30,6,["name"]],"export"],null],[[[1,"              Export Key\\n"]],[]],[[[41,[28,[37,1],[[30,6,["name"]],"hmac"],null],[[[1,"              HMAC\\n"]],[]],[[[1,"              "],[1,[28,[35,17],[[30,6,["name"]]],null]],[1,"\\n            "]],[]]]],[]]],[1,"          "],[13],[1,"\\n          "],[10,2],[14,0,"transit-action-description"],[12],[1,[30,6,["description"]]],[13],[1,"\\n        "],[13],[1,"\\n      "]],[]]]]],[1,"\\n"]],[6]],null],[1,"  "],[13],[1,"\\n"]],[]],[[[41,[28,[37,1],[[30,1],"versions"],null],[[[41,[28,[37,9],[[28,[37,1],[[30,2,["type"]],"aes256-gcm96"],null],[28,[37,1],[[30,2,["type"]],"chacha20-poly1305"],null],[28,[37,1],[[30,2,["type"]],"aes128-gcm96"],null]],null],[[[42,[28,[37,18],[[30,2,["keys"]]],null],null,[[[1,"      "],[10,0],[14,0,"linked-block list-item-row no-destination"],[12],[1,"\\n        "],[10,0],[14,0,"columns is-mobile"],[12],[1,"\\n          "],[10,0],[14,0,"column is-3"],[12],[1,"\\n            "],[10,0],[14,0,"level level-left"],[12],[1,"\\n              "],[8,[39,15],[[24,0,"has-text-grey-light is-padded"]],[["@name"],["history"]],null],[1,"\\n              "],[10,"strong"],[14,0,"has-padding is-size-5"],[12],[1,"Version "],[1,[30,9]],[13],[1,"\\n            "],[13],[1,"\\n          "],[13],[1,"\\n          "],[10,0],[14,0,"column is-4"],[12],[1,"\\n            "],[10,0],[14,0,"td is-borderless"],[12],[1,"\\n              "],[10,"small"],[14,0,"help has-text-grey"],[12],[1,"\\n                "],[1,[28,[35,19],[[30,8]],[["addSuffix"],[true]]]],[1,"\\n              "],[13],[1,"\\n            "],[13],[1,"\\n          "],[13],[1,"\\n          "],[10,0],[14,0,"column is-5"],[12],[1,"\\n            "],[10,0],[14,0,"td is-borderless"],[12],[1,"\\n"],[41,[28,[37,20],[[30,2,["minDecryptionVersion"]],[30,9]],null],[[[1,"                "],[10,2],[14,0,"help level level-left"],[12],[1,"\\n                  "],[8,[39,15],[[24,0,"has-text-success"]],[["@name"],["check-circle-fill"]],null],[1,"\\n                  Current minimum decryption version\\n                "],[13],[1,"\\n"]],[]],null],[1,"            "],[13],[1,"\\n          "],[13],[1,"\\n        "],[13],[1,"\\n      "],[13],[1,"\\n"]],[8,9]],null]],[]],[[[42,[28,[37,18],[[30,2,["keys"]]],null],null,[[[1,"      "],[10,0],[14,0,"linked-block list-item-row"],[12],[1,"\\n        "],[10,0],[14,0,"columns is-mobile"],[12],[1,"\\n          "],[10,0],[14,0,"column is-3"],[12],[1,"\\n            "],[10,0],[14,0,"level level-left"],[12],[1,"\\n              "],[8,[39,15],[[24,0,"has-text-grey-light is-padded"]],[["@name"],["history"]],null],[1,"\\n              "],[10,"strong"],[14,0,"has-padding is-size-5"],[12],[1,"Version "],[1,[30,11]],[13],[1,"\\n            "],[13],[1,"\\n          "],[13],[1,"\\n          "],[10,0],[14,0,"column is-4"],[12],[1,"\\n            "],[10,0],[14,0,"td is-borderless"],[12],[1,"\\n              "],[10,"small"],[14,0,"help has-text-grey"],[12],[1,"\\n                "],[1,[28,[35,19],[[30,10,["creation_time"]]],[["addSuffix"],[true]]]],[1,"\\n              "],[13],[1,"\\n            "],[13],[1,"\\n          "],[13],[1,"\\n          "],[10,0],[14,0,"column is-4"],[12],[1,"\\n            "],[10,0],[14,0,"td is-borderless"],[12],[1,"\\n"],[41,[28,[37,20],[[30,2,["minDecryptionVersion"]],[30,11]],null],[[[1,"                "],[10,2],[14,0,"help level level-left"],[12],[1,"\\n                  "],[8,[39,15],[[24,0,"has-text-success"]],[["@name"],["check-circle-fill"]],null],[1,"\\n                  Current minimum decryption version\\n                "],[13],[1,"\\n"]],[]],null],[1,"            "],[13],[1,"\\n          "],[13],[1,"\\n          "],[10,0],[14,0,"column is-1 is-flex-end"],[12],[1,"\\n            "],[8,[39,21],null,[["@isInline","@listPosition"],[true,"bottom-right"]],[["default"],[[[[1,"\\n              "],[8,[30,12,["ToggleIcon"]],null,[["@icon","@text","@hasChevron"],["more-horizontal","Public key options",false]],null],[1,"\\n              "],[8,[30,12,["CopyItem"]],null,[["@text","@copyItemTitle"],[[30,10,["public_key"]],"Copy Public Key"]],null],[1,"\\n            "]],[12]]]]],[1,"\\n          "],[13],[1,"\\n        "],[13],[1,"\\n      "],[13],[1,"\\n"]],[10,11]],null]],[]]]],[]],[[[1,"  "],[8,[39,22],null,[["@label","@value"],["Type",[30,2,["type"]]]],null],[1,"\\n  "],[8,[39,22],null,[["@label","@value"],["Auto-rotation period",[28,[37,9],[[28,[37,23],[[30,2,["autoRotatePeriod"]]],null],"Key will not be automatically rotated"],null]]],null],[1,"\\n  "],[8,[39,22],null,[["@label","@value"],["Deletion allowed",[28,[37,24],[[30,2,["deletionAllowed"]]],null]]],null],[1,"\\n\\n"],[41,[30,2,["derived"]],[[[1,"    "],[8,[39,22],null,[["@label","@value"],["Derived",[30,2,["derived"]]]],null],[1,"\\n    "],[8,[39,22],null,[["@label","@value"],["Convergent encryption",[30,2,["convergentEncryption"]]]],null],[1,"\\n"]],[]],null]],[]]]],[]]]],["@tab","@key","@mode","@capabilities","@model","supportedAction","@backend","creationTimestamp","version","meta","version","dd"],false,["if","eq","secret-link","hash","not-eq","toolbar","toolbar-actions","and","confirm-action","or","toolbar-secret-link","each","-track-array","linked-block","array","icon","concat","humanize","-each-in","date-from-now","coerce-eq","hds/dropdown","info-table-row","format-duration","stringify"]]',moduleName:"vault/templates/components/transit-form-show.hbs",isStrictMode:!1})})),define("vault/templates/components/transit-key-action/datakey",["exports","@ember/template-factory"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default=(0,t.createTemplateFactory)({id:"CNAtm/hg",block:'[[[11,"form"],[17,1],[4,[38,0],["submit",[28,[37,1],[[30,2],[28,[37,2],null,[["param","context","nonce","bits"],[[30,3],[30,4],[30,5],[30,6]]]]],null]],null],[12],[1,"\\n  "],[10,0],[14,0,"box is-sideless is-fullwidth is-marginless"],[12],[1,"\\n    "],[8,[39,3],null,[["@mode","@noun"],["perform","datakey creation"]],null],[1,"\\n    "],[10,0],[14,0,"content has-bottom-margin-l"],[12],[1,"\\n      "],[10,2],[12],[1,"Generate a new high-entropy key and value using "],[10,"code"],[12],[1,[30,7,["name"]]],[13],[1," as the cryptographic key."],[13],[1,"\\n    "],[13],[1,"\\n    "],[10,0],[14,0,"field"],[12],[1,"\\n      "],[10,"label"],[14,"for","param"],[14,0,"is-label"],[12],[1,"Output format"],[13],[1,"\\n      "],[10,0],[14,0,"control is-expanded"],[12],[1,"\\n        "],[10,0],[14,0,"select is-fullwidth"],[12],[1,"\\n          "],[10,"select"],[14,3,"param"],[14,1,"param"],[15,"onchange",[28,[37,4],[[30,0],[28,[37,5],[[30,3]],null]],[["value"],["target.value"]]]],[12],[1,"\\n"],[42,[28,[37,7],[[28,[37,7],[[28,[37,8],["plaintext","wrapped"],null]],null]],null],null,[[[1,"              "],[10,"option"],[15,"selected",[28,[37,9],[[30,3],[30,8]],null]],[15,2,[30,8]],[12],[1,"\\n                "],[1,[30,8]],[1,"\\n              "],[13],[1,"\\n"]],[8]],null],[1,"          "],[13],[1,"\\n        "],[13],[1,"\\n      "],[13],[1,"\\n    "],[13],[1,"\\n"],[41,[30,7,["derived"]],[[[1,"      "],[10,0],[14,0,"field"],[12],[1,"\\n        "],[10,"label"],[14,"for","context"],[14,0,"is-label"],[12],[1,"\\n          Context\\n        "],[13],[1,"\\n        "],[10,0],[14,0,"field has-addons"],[12],[1,"\\n          "],[10,0],[14,0,"control"],[12],[1,"\\n            "],[8,[39,11],[[24,1,"context"],[24,0,"input"]],[["@type","@value"],["text",[30,4]]],null],[1,"\\n          "],[13],[1,"\\n          "],[10,0],[14,0,"control"],[12],[1,"\\n            "],[8,[39,12],null,[["@value"],[[30,4]]],null],[1,"\\n          "],[13],[1,"\\n        "],[13],[1,"\\n      "],[13],[1,"\\n"]],[]],null],[41,[28,[37,9],[[30,7,["convergentEncryptionVersion"]],1],null],[[[1,"      "],[10,0],[14,0,"field"],[12],[1,"\\n        "],[10,"label"],[14,"for","nonce"],[14,0,"is-label"],[12],[1,"Nonce"],[13],[1,"\\n        "],[10,0],[14,0,"field has-addons"],[12],[1,"\\n          "],[10,0],[14,0,"control"],[12],[1,"\\n            "],[8,[39,11],[[24,1,"nonce"],[24,0,"input"]],[["@type","@value"],["text",[30,5]]],null],[1,"\\n          "],[13],[1,"\\n          "],[10,0],[14,0,"control"],[12],[1,"\\n            "],[8,[39,12],null,[["@value"],[[30,5]]],null],[1,"\\n          "],[13],[1,"\\n        "],[13],[1,"\\n      "],[13],[1,"\\n"]],[]],null],[1,"    "],[10,0],[14,0,"field"],[12],[1,"\\n      "],[10,"label"],[14,"for","bits"],[14,0,"is-label"],[12],[1,"Bits"],[13],[1,"\\n      "],[10,0],[14,0,"control is-expanded"],[12],[1,"\\n        "],[10,0],[14,0,"select is-fullwidth"],[12],[1,"\\n          "],[10,"select"],[14,3,"bits"],[14,1,"bits"],[15,"onchange",[28,[37,4],[[30,0],[28,[37,5],[[30,6]],null]],[["value"],["target.value"]]]],[12],[1,"\\n"],[42,[28,[37,7],[[28,[37,7],[[28,[37,8],[128,256,512],null]],null]],null],null,[[[1,"              "],[10,"option"],[15,"selected",[28,[37,9],[[30,6],[30,9]],null]],[15,2,[30,9]],[12],[1,"\\n                "],[10,"code"],[12],[1,[30,9]],[13],[1,"\\n              "],[13],[1,"\\n"]],[9]],null],[1,"          "],[13],[1,"\\n        "],[13],[1,"\\n      "],[13],[1,"\\n    "],[13],[1,"\\n  "],[13],[1,"\\n  "],[10,0],[14,0,"field is-grouped box is-fullwidth is-bottomless"],[12],[1,"\\n    "],[10,0],[14,0,"control"],[12],[1,"\\n      "],[8,[39,13],[[24,4,"submit"]],[["@text"],["Create datakey"]],null],[1,"\\n    "],[13],[1,"\\n  "],[13],[1,"\\n"],[13],[1,"\\n"],[41,[30,10],[[[1,"  "],[8,[39,14],[[24,1,"transit-datakey-modal"]],[["@onClose"],[[28,[37,1],[[28,[37,5],[[30,10]],null],false],null]]],[["default"],[[[[1,"\\n    "],[8,[30,11,["Header"]],null,null,[["default"],[[[[1,"\\n      Copy your generated key\\n    "]],[]]]]],[1,"\\n    "],[8,[30,11,["Body"]],null,null,[["default"],[[[[1,"\\n"],[41,[30,12],[[[1,"        "],[10,"h2"],[14,0,"has-text-weight-semibold is-6"],[12],[1,"Plaintext"],[13],[1,"\\n        "],[10,2],[14,0,"sub-text"],[12],[1,"Plaintext is base64 encoded"],[13],[1,"\\n        "],[8,[39,15],[[24,0,"has-bottom-margin-m"]],[["@textToCopy","@color","@container","@isFullWidth","@isTruncated","@onError"],[[30,12],"secondary","#transit-datakey-modal",true,true,[28,[37,1],[[28,[37,16],["Clipboard copy failed. The Clipboard API requires a secure context.","danger"],null]],null]]],null],[1,"\\n"]],[]],null],[1,"      "],[10,"h2"],[14,0,"has-text-weight-semibold is-6"],[12],[1,"Ciphertext"],[13],[1,"\\n      "],[8,[39,15],null,[["@textToCopy","@color","@container","@isFullWidth","@isTruncated","@onError"],[[30,13],"secondary","#transit-datakey-modal",true,true,[28,[37,1],[[28,[37,16],["Clipboard copy failed. The Clipboard API requires a secure context.","danger"],null]],null]]],null],[1,"\\n    "]],[]]]]],[1,"\\n    "],[8,[30,11,["Footer"]],null,null,[["default"],[[[[1,"\\n      "],[8,[39,13],[[4,[38,0],["click",[30,14,["close"]]],null]],[["@text"],["Close"]],null],[1,"\\n    "]],[14]]]]],[1,"\\n  "]],[11]]]]],[1,"\\n"]],[]],null]],["&attrs","@doSubmit","@param","@context","@nonce","@bits","@key","paramOption","bitOption","@isModalActive","M","@plaintext","@ciphertext","F"],false,["on","fn","hash","namespace-reminder","action","mut","each","-track-array","array","eq","if","input","b64-toggle","hds/button","hds/modal","hds/copy/snippet","set-flash-message"]]',moduleName:"vault/templates/components/transit-key-action/datakey.hbs",isStrictMode:!1})})),define("vault/templates/components/transit-key-action/decrypt",["exports","@ember/template-factory"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default=(0,t.createTemplateFactory)({id:"Uyle7XR0",block:'[[[11,"form"],[17,1],[4,[38,0],["submit",[28,[37,1],[[30,2],[28,[37,2],null,[["ciphertext","context","nonce"],[[30,3],[30,4],[30,5]]]]],null]],null],[12],[1,"\\n  "],[10,0],[14,0,"box is-sideless is-fullwidth is-marginless"],[12],[1,"\\n    "],[10,0],[14,0,"content has-bottom-margin-l"],[12],[1,"\\n      "],[10,2],[12],[1,"You can decrypt ciphertext using "],[10,"code"],[12],[1,[30,6,["name"]]],[13],[1," as the cryptographic key."],[13],[1,"\\n    "],[13],[1,"\\n    "],[10,0],[14,0,"field"],[12],[1,"\\n      "],[10,0],[14,1,"ciphertext-control"],[14,0,"control"],[12],[1,"\\n        "],[8,[39,3],null,[["@title","@valueUpdated","@mode"],["Ciphertext",[28,[37,1],[[28,[37,4],[[30,3]],null]],null],"ruby"]],null],[1,"\\n      "],[13],[1,"\\n    "],[13],[1,"\\n"],[41,[30,6,["derived"]],[[[1,"      "],[10,0],[14,0,"field"],[12],[1,"\\n        "],[10,"label"],[14,"for","context"],[14,0,"is-label"],[12],[1,"\\n          Context\\n        "],[13],[1,"\\n        "],[10,0],[14,0,"field has-addons"],[12],[1,"\\n          "],[10,0],[14,0,"control"],[12],[1,"\\n            "],[8,[39,6],[[24,1,"context"],[24,0,"input"]],[["@type","@value"],["text",[30,4]]],null],[1,"\\n          "],[13],[1,"\\n          "],[10,0],[14,0,"control"],[12],[1,"\\n            "],[8,[39,7],null,[["@value"],[[30,4]]],null],[1,"\\n          "],[13],[1,"\\n        "],[13],[1,"\\n      "],[13],[1,"\\n"]],[]],null],[41,[28,[37,8],[[30,6,["convergentEncryptionVersion"]],1],null],[[[1,"      "],[10,0],[14,0,"field"],[12],[1,"\\n        "],[10,"label"],[14,"for","nonce"],[14,0,"is-label"],[12],[1,"Nonce"],[13],[1,"\\n        "],[10,0],[14,0,"field has-addons"],[12],[1,"\\n          "],[10,0],[14,0,"control"],[12],[1,"\\n            "],[8,[39,6],[[24,1,"nonce"],[24,0,"input"]],[["@type","@value"],["text",[30,5]]],null],[1,"\\n          "],[13],[1,"\\n          "],[10,0],[14,0,"control"],[12],[1,"\\n            "],[8,[39,7],null,[["@value"],[[30,5]]],null],[1,"\\n          "],[13],[1,"\\n        "],[13],[1,"\\n      "],[13],[1,"\\n"]],[]],null],[1,"  "],[13],[1,"\\n  "],[10,0],[14,0,"field is-grouped box is-fullwidth is-bottomless"],[12],[1,"\\n    "],[10,0],[14,0,"control"],[12],[1,"\\n      "],[8,[39,9],[[24,1,"decrypt"],[24,4,"submit"]],[["@text"],["Decrypt"]],null],[1,"\\n    "],[13],[1,"\\n  "],[13],[1,"\\n"],[13],[1,"\\n"],[41,[30,7],[[[1,"  "],[8,[39,10],[[24,1,"transit-decrypt-modal"]],[["@onClose"],[[28,[37,1],[[28,[37,4],[[30,7]],null],false],null]]],[["default"],[[[[1,"\\n    "],[8,[30,8,["Header"]],null,null,[["default"],[[[[1,"\\n      Copy your unwrapped data\\n    "]],[]]]]],[1,"\\n    "],[8,[30,8,["Body"]],null,null,[["default"],[[[[1,"\\n      "],[10,"h2"],[14,0,"has-text-weight-semibold is-6"],[12],[1,"Plaintext"],[13],[1,"\\n      "],[10,2],[14,0,"sub-text"],[12],[1,"Plaintext is base64 encoded."],[13],[1,"\\n      "],[8,[39,11],null,[["@textToCopy","@color","@container","@isFullWidth","@isTruncated","@onError"],[[30,9],"secondary","#transit-decrypt-modal",true,true,[28,[37,1],[[28,[37,12],["Clipboard copy failed. The Clipboard API requires a secure context.","danger"],null]],null]]],null],[1,"\\n    "]],[]]]]],[1,"\\n    "],[8,[30,8,["Footer"]],null,null,[["default"],[[[[1,"\\n      "],[8,[39,9],[[4,[38,0],["click",[30,10,["close"]]],null]],[["@text"],["Close"]],null],[1,"\\n    "]],[10]]]]],[1,"\\n  "]],[8]]]]],[1,"\\n"]],[]],null]],["&attrs","@doSubmit","@ciphertext","@context","@nonce","@key","@isModalActive","M","@plaintext","F"],false,["on","fn","hash","json-editor","mut","if","input","b64-toggle","eq","hds/button","hds/modal","hds/copy/snippet","set-flash-message"]]',moduleName:"vault/templates/components/transit-key-action/decrypt.hbs",isStrictMode:!1})})),define("vault/templates/components/transit-key-action/encrypt",["exports","@ember/template-factory"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default=(0,t.createTemplateFactory)({id:"2BJ2FTd2",block:'[[[11,"form"],[17,1],[4,[38,0],["submit",[28,[37,1],[[30,2],[28,[37,2],null,[["plaintext","context","nonce","key_version"],[[30,3],[30,4],[30,5],[30,6]]]]],null]],null],[12],[1,"\\n  "],[10,0],[14,0,"box is-sideless is-fullwidth is-marginless"],[12],[1,"\\n    "],[8,[39,3],null,[["@mode","@noun"],["perform","encryption"]],null],[1,"\\n    "],[10,0],[14,0,"content has-bottom-margin-l"],[12],[1,"\\n      "],[10,2],[12],[1,"You can encrypt plaintext data using "],[10,"code"],[12],[1,[30,7,["name"]]],[13],[1," as the cryptographic key."],[13],[1,"\\n    "],[13],[1,"\\n    "],[8,[39,4],null,[["@key","@onVersionChange","@key_version"],[[30,7],[28,[37,1],[[28,[37,5],[[30,6]],null]],null],[30,6]]],null],[1,"\\n    "],[10,0],[14,0,"field"],[12],[1,"\\n      "],[10,0],[14,1,"plaintext-control"],[14,0,"control is-relative"],[12],[1,"\\n        "],[8,[39,6],null,[["@title","@value","@valueUpdated","@mode"],["Plaintext",[30,3],[28,[37,1],[[28,[37,5],[[30,3]],null]],null],"ruby"]],null],[1,"\\n      "],[13],[1,"\\n    "],[13],[1,"\\n    "],[10,0],[14,0,"field"],[12],[1,"\\n      "],[8,[39,7],[[24,1,"encodedBase64"],[4,[38,0],["change",[30,9]],null]],[["@type","@checked"],["checkbox",[30,8]]],null],[1,"\\n      "],[10,"label"],[14,"for","encodedBase64"],[12],[1,"This data is already encoded in base64"],[13],[1,"\\n    "],[13],[1,"\\n"],[41,[30,7,["derived"]],[[[1,"      "],[10,0],[14,0,"field"],[12],[1,"\\n        "],[10,"label"],[14,"for","context"],[14,0,"is-label"],[12],[1,"\\n          Context\\n        "],[13],[1,"\\n        "],[10,0],[14,0,"field has-addons"],[12],[1,"\\n          "],[10,0],[14,0,"control"],[12],[1,"\\n            "],[8,[39,7],[[24,1,"context"],[24,0,"input"]],[["@type","@value"],["text",[30,4]]],null],[1,"\\n          "],[13],[1,"\\n          "],[10,0],[14,0,"control"],[12],[1,"\\n            "],[8,[39,9],null,[["@value"],[[30,4]]],null],[1,"\\n          "],[13],[1,"\\n        "],[13],[1,"\\n      "],[13],[1,"\\n"]],[]],null],[41,[28,[37,10],[[30,7,["convergentEncryptionVersion"]],1],null],[[[1,"      "],[10,0],[14,0,"field"],[12],[1,"\\n        "],[10,0],[14,0,"level"],[12],[1,"\\n          "],[10,0],[14,0,"level-left"],[12],[1,"\\n            "],[10,"label"],[14,"for","nonce"],[14,0,"is-label"],[12],[1,"Nonce"],[13],[1,"\\n          "],[13],[1,"\\n          "],[10,0],[14,0,"level-right"],[12],[1,"\\n            "],[8,[39,9],null,[["@value"],[[30,5]]],null],[1,"\\n          "],[13],[1,"\\n        "],[13],[1,"\\n        "],[10,0],[14,0,"control"],[12],[1,"\\n          "],[8,[39,7],[[24,1,"nonce"],[24,0,"input"]],[["@type","@value"],["text",[30,5]]],null],[1,"\\n        "],[13],[1,"\\n      "],[13],[1,"\\n"]],[]],null],[1,"  "],[13],[1,"\\n  "],[10,0],[14,0,"field is-grouped box is-fullwidth is-bottomless"],[12],[1,"\\n    "],[10,0],[14,0,"control"],[12],[1,"\\n      "],[8,[39,11],[[24,4,"submit"]],[["@text"],["Encrypt"]],null],[1,"\\n    "],[13],[1,"\\n  "],[13],[1,"\\n"],[13],[1,"\\n"],[41,[30,10],[[[1,"  "],[8,[39,12],[[24,1,"transit-encrypt-modal"]],[["@onClose"],[[28,[37,1],[[28,[37,5],[[30,10]],null],false],null]]],[["default"],[[[[1,"\\n    "],[8,[30,11,["Header"]],null,null,[["default"],[[[[1,"\\n      Copy your token\\n    "]],[]]]]],[1,"\\n    "],[8,[30,11,["Body"]],null,null,[["default"],[[[[1,"\\n      "],[10,"h2"],[14,0,"title is-6"],[12],[1,"Ciphertext"],[13],[1,"\\n      "],[8,[39,13],null,[["@textToCopy","@color","@container","@isFullWidth","@isTruncated","@onError"],[[30,12],"secondary","#transit-encrypt-modal",true,true,[28,[37,1],[[28,[37,14],["Clipboard copy failed. The Clipboard API requires a secure context.","danger"],null]],null]]],null],[1,"\\n    "]],[]]]]],[1,"\\n    "],[8,[30,11,["Footer"]],null,null,[["default"],[[[[1,"\\n      "],[8,[39,11],[[4,[38,0],["click",[30,13,["close"]]],null]],[["@text"],["Close"]],null],[1,"\\n    "]],[13]]]]],[1,"\\n  "]],[11]]]]],[1,"\\n"]],[]],null]],["&attrs","@doSubmit","@plaintext","@context","@nonce","@key_version","@key","@encodedBase64","@toggleEncodeBase64","@isModalActive","M","@ciphertext","F"],false,["on","fn","hash","namespace-reminder","key-version-select","mut","json-editor","input","if","b64-toggle","eq","hds/button","hds/modal","hds/copy/snippet","set-flash-message"]]',moduleName:"vault/templates/components/transit-key-action/encrypt.hbs",isStrictMode:!1})})),define("vault/templates/components/transit-key-action/export",["exports","@ember/template-factory"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default=(0,t.createTemplateFactory)({id:"CBlZckXh",block:'[[[11,"form"],[17,1],[4,[38,0],["submit",[28,[37,1],[[30,2],[28,[37,2],null,[["param"],[[28,[37,3],[[28,[37,4],[[30,3],[52,[30,0,["exportVersion"]],[30,4]]],null]],null]]]],[28,[37,2],null,[["wrapTTL"],[[30,5]]]]],null]],null],[12],[1,"\\n  "],[10,0],[14,0,"box is-sideless is-fullwidth is-marginless"],[12],[1,"\\n    "],[10,0],[14,0,"content"],[12],[1,"\\n      "],[10,2],[12],[1,"Export a key using "],[10,"code"],[12],[1,[30,6,["name"]]],[13],[1," as the cryptographic key."],[13],[1,"\\n    "],[13],[1,"\\n    "],[10,0],[14,0,"field"],[12],[1,"\\n      "],[10,"label"],[14,"for","type"],[14,0,"is-label"],[12],[1,"Key type"],[13],[1,"\\n      "],[10,0],[14,0,"control is-expanded"],[12],[1,"\\n        "],[10,0],[14,0,"select is-fullwidth"],[12],[1,"\\n          "],[10,"select"],[14,3,"type"],[14,1,"type"],[15,"onchange",[28,[37,6],[[30,0],[28,[37,7],[[30,3]],null]],[["value"],["target.value"]]]],[12],[1,"\\n"],[42,[28,[37,9],[[28,[37,9],[[30,6,["exportKeyTypes"]]],null]],null],null,[[[1,"              "],[10,"option"],[15,"selected",[28,[37,10],[[30,3],[30,7]],null]],[15,2,[30,7]],[12],[1,"\\n                "],[10,"code"],[12],[1,[30,7]],[13],[1,"\\n              "],[13],[1,"\\n"]],[7]],null],[1,"          "],[13],[1,"\\n        "],[13],[1,"\\n      "],[13],[1,"\\n    "],[13],[1,"\\n    "],[10,0],[14,0,"field"],[12],[1,"\\n      "],[10,0],[14,0,"b-checkbox"],[12],[1,"\\n        "],[8,[39,11],[[24,3,"exportVersion"],[24,1,"exportVersion"],[24,0,"styled"]],[["@type","@checked"],["checkbox",[30,0,["exportVersion"]]]],null],[1,"\\n        "],[10,"label"],[14,"for","exportVersion"],[14,0,"is-label"],[12],[1,"\\n          Export a single version\\n        "],[13],[1,"\\n      "],[13],[1,"\\n"],[41,[30,0,["exportVersion"]],[[[1,"        "],[10,0],[14,0,"field"],[12],[1,"\\n          "],[10,"label"],[14,"for","version"],[14,0,"is-label"],[12],[1,"Version"],[13],[1,"\\n          "],[10,0],[14,0,"control is-expanded"],[12],[1,"\\n            "],[10,0],[14,0,"select is-fullwidth"],[12],[1,"\\n              "],[10,"select"],[14,3,"version"],[14,1,"version"],[15,"onchange",[28,[37,6],[[30,0],[28,[37,7],[[30,4]],null]],[["value"],["target.value"]]]],[12],[1,"\\n"],[42,[28,[37,9],[[28,[37,9],[[30,6,["validKeyVersions"]]],null]],null],null,[[[1,"                  "],[10,"option"],[15,"selected",[28,[37,10],[[30,4],[30,8]],null]],[15,2,[30,8]],[12],[1,"\\n                    "],[10,"code"],[12],[1,[30,8]],[13],[1,"\\n"],[41,[28,[37,10],[[30,6,["validKeyVersions","lastObject"]],[30,8]],null],[[[1,"                      "],[10,1],[12],[1," (latest) "],[13],[1,"\\n"]],[]],null],[1,"                  "],[13],[1,"\\n"]],[8]],null],[1,"              "],[13],[1,"\\n            "],[13],[1,"\\n          "],[13],[1,"\\n        "],[13],[1,"\\n"]],[]],null],[1,"    "],[13],[1,"\\n    "],[8,[39,12],null,[["@onChange"],[[28,[37,1],[[28,[37,7],[[30,5]],null]],null]]],null],[1,"\\n  "],[13],[1,"\\n  "],[10,0],[14,0,"field is-grouped box is-fullwidth is-bottomless"],[12],[1,"\\n    "],[10,0],[14,0,"control"],[12],[1,"\\n      "],[8,[39,13],[[24,4,"submit"]],[["@text"],["Export key"]],null],[1,"\\n    "],[13],[1,"\\n  "],[13],[1,"\\n"],[13],[1,"\\n"],[41,[30,9],[[[1,"  "],[8,[39,14],[[24,1,"transit-export-modal"]],[["@onClose"],[[28,[37,1],[[28,[37,7],[[30,9]],null],false],null]]],[["default"],[[[[1,"\\n    "],[8,[30,10,["Header"]],null,null,[["default"],[[[[1,"\\n      Copy your wrapped key\\n    "]],[]]]]],[1,"\\n    "],[8,[30,10,["Body"]],null,null,[["default"],[[[[1,"\\n      "],[10,"h2"],[14,0,"title is-6"],[12],[1,"Wrapped key"],[13],[1,"\\n"],[41,[30,5],[[[1,"        "],[8,[39,15],[[24,0,"has-bottom-margin-m"]],[["@textToCopy","@color","@container","@isFullWidth","@isTruncated","@onError"],[[30,11],"secondary","#transit-export-modal",true,true,[28,[37,1],[[28,[37,16],["Clipboard copy failed. The Clipboard API requires a secure context.","danger"],null]],null]]],null],[1,"\\n"]],[]],[[[1,"        "],[10,0],[14,0,"copy-text level is-relative"],[12],[1,"\\n          "],[10,"pre"],[14,0,"level-left"],[12],[1,"            "],[1,[28,[35,17],[[30,12]],null]],[1,"          "],[13],[1,"\\n          "],[8,[39,18],[[24,0,"transparent top-right-absolute"]],[["@text","@isIconOnly","@textToCopy","@container","@onError"],["Copy",true,[28,[37,17],[[30,12]],null],"#transit-export-modal",[28,[37,1],[[28,[37,16],["Clipboard copy failed. The Clipboard API requires a secure context.","danger"],null]],null]]],null],[1,"\\n        "],[13],[1,"\\n"]],[]]],[1,"    "]],[]]]]],[1,"\\n    "],[8,[30,10,["Footer"]],null,null,[["default"],[[[[1,"\\n      "],[8,[39,13],[[4,[38,0],["click",[30,13,["close"]]],null]],[["@text"],["Close"]],null],[1,"\\n    "]],[13]]]]],[1,"\\n  "]],[10]]]]],[1,"\\n"]],[]],null]],["&attrs","@doSubmit","@exportKeyType","@exportKeyVersion","@wrappedTTL","@key","currOption","versionOption","@isModalActive","M","@wrappedToken","@keys","F"],false,["on","fn","hash","compact","array","if","action","mut","each","-track-array","eq","input","wrap-ttl","hds/button","hds/modal","hds/copy/snippet","set-flash-message","stringify","hds/copy/button"]]',moduleName:"vault/templates/components/transit-key-action/export.hbs",isStrictMode:!1})})),define("vault/templates/components/transit-key-action/hmac",["exports","@ember/template-factory"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default=(0,t.createTemplateFactory)({id:"ldyurDZY",block:'[[[11,"form"],[17,1],[4,[38,0],["submit",[28,[37,1],[[30,2],[28,[37,2],null,[["input","algorithm","key_version"],[[30,3],[30,4],[30,5]]]]],null]],null],[12],[1,"\\n  "],[10,0],[14,0,"box is-sideless is-fullwidth is-marginless"],[12],[1,"\\n    "],[8,[39,3],null,[["@mode","@noun"],["perform","HMAC creation"]],null],[1,"\\n    "],[10,0],[14,0,"content has-bottom-margin-l"],[12],[1,"\\n      "],[10,2],[12],[1,"\\n        Generate the digest of given data using the specified hash algorithm and\\n        "],[10,"code"],[12],[1,[30,6,["name"]]],[13],[1,"\\n        as the named key.\\n      "],[13],[1,"\\n    "],[13],[1,"\\n    "],[8,[39,4],null,[["@key","@onVersionChange","@key_version"],[[30,6],[28,[37,1],[[28,[37,5],[[30,5]],null]],null],[30,5]]],null],[1,"\\n    "],[10,0],[14,0,"field"],[12],[1,"\\n      "],[10,0],[14,1,"input-control"],[14,0,"control is-relative"],[12],[1,"\\n        "],[8,[39,6],null,[["@title","@valueUpdated","@mode"],["Input",[28,[37,1],[[28,[37,5],[[30,3]],null]],null],"ruby"]],null],[1,"\\n      "],[13],[1,"\\n    "],[13],[1,"\\n    "],[10,0],[14,0,"field"],[12],[1,"\\n      "],[8,[39,7],[[24,1,"encodedBase64"],[4,[38,0],["change",[30,8]],null]],[["@type","@checked"],["checkbox",[30,7]]],null],[1,"\\n      "],[10,"label"],[14,"for","encodedBase64"],[12],[1,"This data is already encoded in base64"],[13],[1,"\\n    "],[13],[1,"\\n    "],[10,0],[14,0,"field"],[12],[1,"\\n      "],[10,"label"],[14,"for","algorithm"],[14,0,"is-label"],[12],[1,"Hash Algorithm"],[13],[1,"\\n      "],[10,0],[14,0,"control is-expanded"],[12],[1,"\\n        "],[10,0],[14,0,"select is-fullwidth"],[12],[1,"\\n          "],[10,"select"],[14,3,"algorithm"],[14,1,"algorithm"],[15,"onchange",[28,[37,8],[[30,0],[28,[37,5],[[30,4]],null]],[["value"],["target.value"]]]],[12],[1,"\\n"],[42,[28,[37,10],[[28,[37,10],[[28,[37,11],null,null]],null]],null],null,[[[1,"              "],[10,"option"],[15,"selected",[52,[30,4],[28,[37,13],[[30,4],[30,9]],null]]],[15,2,[30,9]],[12],[1,"\\n                "],[10,"code"],[12],[1,[30,9]],[13],[1,"\\n              "],[13],[1,"\\n"]],[9]],null],[1,"          "],[13],[1,"\\n        "],[13],[1,"\\n      "],[13],[1,"\\n    "],[13],[1,"\\n  "],[13],[1,"\\n  "],[10,0],[14,0,"field is-grouped box is-fullwidth is-bottomless"],[12],[1,"\\n    "],[10,0],[14,0,"control"],[12],[1,"\\n      "],[8,[39,14],[[24,4,"submit"]],[["@text"],["HMAC"]],null],[1,"\\n    "],[13],[1,"\\n  "],[13],[1,"\\n"],[13],[1,"\\n"],[41,[30,10],[[[1,"  "],[8,[39,15],[[24,1,"transit-hmac-modal"]],[["@onClose"],[[28,[37,1],[[28,[37,5],[[30,10]],null],false],null]]],[["default"],[[[[1,"\\n    "],[8,[30,11,["Header"]],null,null,[["default"],[[[[1,"\\n      Copy your unwrapped data\\n    "]],[]]]]],[1,"\\n    "],[8,[30,11,["Body"]],null,null,[["default"],[[[[1,"\\n      "],[10,"h2"],[14,0,"title is-6"],[12],[1,"HMAC"],[13],[1,"\\n      "],[8,[39,16],null,[["@textToCopy","@color","@container","@isFullWidth","@isTruncated","@onError"],[[30,12],"secondary","#transit-hmac-modal",true,true,[28,[37,1],[[28,[37,17],["Clipboard copy failed. The Clipboard API requires a secure context.","danger"],null]],null]]],null],[1,"\\n    "]],[]]]]],[1,"\\n    "],[8,[30,11,["Footer"]],null,null,[["default"],[[[[1,"\\n      "],[8,[39,14],[[4,[38,0],["click",[30,13,["close"]]],null]],[["@text"],["Close"]],null],[1,"\\n    "]],[13]]]]],[1,"\\n  "]],[11]]]]],[1,"\\n"]],[]],null]],["&attrs","@doSubmit","@trackedInput","@algorithm","@key_version","@key","@encodedBase64","@toggleEncodeBase64","algo","@isModalActive","M","@hmac","F"],false,["on","fn","hash","namespace-reminder","key-version-select","mut","json-editor","input","action","each","-track-array","sha2-digest-sizes","if","eq","hds/button","hds/modal","hds/copy/snippet","set-flash-message"]]',moduleName:"vault/templates/components/transit-key-action/hmac.hbs",isStrictMode:!1})})),define("vault/templates/components/transit-key-action/rewrap",["exports","@ember/template-factory"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default=(0,t.createTemplateFactory)({id:"6G4XloUX",block:'[[[11,"form"],[17,1],[4,[38,0],["submit",[28,[37,1],[[30,2],[28,[37,2],null,[["ciphertext","context","nonce","key_version"],[[30,3],[30,4],[30,5],[30,6]]]]],null]],null],[12],[1,"\\n  "],[10,0],[14,0,"box is-sideless is-fullwidth is-marginless"],[12],[1,"\\n    "],[8,[39,3],null,[["@mode","@noun"],["perform","rewrap"]],null],[1,"\\n    "],[10,0],[14,0,"content has-bottom-margin-l"],[12],[1,"\\n      "],[10,2],[12],[1,"\\n        You can rewrap the provided ciphertext using the latest version of\\n        "],[10,"code"],[12],[1,[30,7,["name"]]],[13],[1,"\\n        as the cryptographic key.\\n      "],[13],[1,"\\n    "],[13],[1,"\\n    "],[8,[39,4],null,[["@key","@onVersionChange","@key_version"],[[30,7],[28,[37,1],[[28,[37,5],[[30,6]],null]],null],[30,6]]],null],[1,"\\n    "],[10,0],[14,0,"field"],[12],[1,"\\n      "],[10,0],[14,0,"control is-expanded"],[12],[1,"\\n        "],[8,[39,6],null,[["@title","@valueUpdated","@mode"],["Ciphertext",[28,[37,1],[[28,[37,5],[[30,3]],null]],null],"ruby"]],null],[1,"\\n      "],[13],[1,"\\n    "],[13],[1,"\\n"],[41,[30,7,["derived"]],[[[1,"      "],[10,0],[14,0,"field"],[12],[1,"\\n        "],[10,"label"],[14,"for","context"],[14,0,"is-label"],[12],[1,"\\n          Context\\n        "],[13],[1,"\\n        "],[10,0],[14,0,"field has-addons"],[12],[1,"\\n          "],[10,0],[14,0,"control"],[12],[1,"\\n            "],[8,[39,8],[[24,1,"context"],[24,0,"input"]],[["@type","@value"],["text",[30,4]]],null],[1,"\\n          "],[13],[1,"\\n          "],[10,0],[14,0,"control"],[12],[1,"\\n            "],[8,[39,9],null,[["@value"],[[30,4]]],null],[1,"\\n          "],[13],[1,"\\n        "],[13],[1,"\\n      "],[13],[1,"\\n"]],[]],null],[41,[28,[37,10],[[30,7,["convergentEncryptionVersion"]],1],null],[[[1,"      "],[10,0],[14,0,"field"],[12],[1,"\\n        "],[10,"label"],[14,"for","nonce"],[14,0,"is-label"],[12],[1,"Nonce"],[13],[1,"\\n        "],[10,0],[14,0,"field has-addons"],[12],[1,"\\n          "],[10,0],[14,0,"control"],[12],[1,"\\n            "],[8,[39,8],[[24,1,"nonce"],[24,0,"input"]],[["@type","@value"],["text",[30,5]]],null],[1,"\\n          "],[13],[1,"\\n          "],[10,0],[14,0,"control"],[12],[1,"\\n            "],[8,[39,9],null,[["@value"],[[30,5]]],null],[1,"\\n          "],[13],[1,"\\n        "],[13],[1,"\\n      "],[13],[1,"\\n"]],[]],null],[1,"  "],[13],[1,"\\n  "],[10,0],[14,0,"field box is-fullwidth is-bottomless"],[12],[1,"\\n    "],[10,0],[14,0,"content has-bottom-margin-l"],[12],[1,"\\n      "],[10,2],[14,0,"help"],[12],[1,"\\n        Submitting this form will update the\\n        "],[10,"code"],[12],[1,"ciphertext"],[13],[1,"\\n        in-place.\\n      "],[13],[1,"\\n    "],[13],[1,"\\n    "],[10,0],[14,0,"control"],[12],[1,"\\n      "],[8,[39,11],[[24,4,"submit"]],[["@text"],["Rewrap"]],null],[1,"\\n    "],[13],[1,"\\n  "],[13],[1,"\\n"],[13],[1,"\\n"],[41,[30,8],[[[1,"  "],[8,[39,12],[[24,1,"transit-rewrap-modal"]],[["@onClose"],[[28,[37,1],[[28,[37,5],[[30,8]],null],false],null]]],[["default"],[[[[1,"\\n    "],[8,[30,9,["Header"]],null,null,[["default"],[[[[1,"\\n      Copy your token\\n    "]],[]]]]],[1,"\\n    "],[8,[30,9,["Body"]],null,null,[["default"],[[[[1,"\\n      "],[10,"h2"],[14,0,"title is-6"],[12],[1,"Ciphertext"],[13],[1,"\\n      "],[8,[39,13],null,[["@textToCopy","@color","@container","@isFullWidth","@isTruncated","@onError"],[[30,3],"secondary","#transit-rewrap-modal",true,true,[28,[37,1],[[28,[37,14],["Clipboard copy failed. The Clipboard API requires a secure context.","danger"],null]],null]]],null],[1,"\\n    "]],[]]]]],[1,"\\n    "],[8,[30,9,["Footer"]],null,null,[["default"],[[[[1,"\\n      "],[8,[39,11],[[4,[38,0],["click",[30,10,["close"]]],null]],[["@text"],["Close"]],null],[1,"\\n    "]],[10]]]]],[1,"\\n  "]],[9]]]]],[1,"\\n"]],[]],null]],["&attrs","@doSubmit","@ciphertext","@context","@nonce","@key_version","@key","@isModalActive","M","F"],false,["on","fn","hash","namespace-reminder","key-version-select","mut","json-editor","if","input","b64-toggle","eq","hds/button","hds/modal","hds/copy/snippet","set-flash-message"]]',moduleName:"vault/templates/components/transit-key-action/rewrap.hbs",isStrictMode:!1})})),define("vault/templates/components/transit-key-action/sign",["exports","@ember/template-factory"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default=(0,t.createTemplateFactory)({id:"iXQ0oOJA",block:'[[[11,"form"],[17,1],[4,[38,0],["submit",[28,[37,1],[[30,2],[28,[37,2],null,[["input","hash_algorithm","signature_algorithm","key_version","context","prehashed","encodedBase64"],[[30,3],[30,4],[30,5],[30,6],[30,7],[30,8],[30,9]]]]],null]],null],[12],[1,"\\n  "],[10,0],[14,0,"box is-sideless is-fullwidth is-marginless"],[12],[1,"\\n    "],[8,[39,3],null,[["@mode","@noun"],["perform","signing"]],null],[1,"\\n    "],[10,0],[14,0,"content"],[12],[1,"\\n      "],[10,2],[12],[1,"\\n        Return the cryptographic signature of the given data using\\n        "],[10,"code"],[12],[1,[30,10,["name"]]],[13],[1,"\\n        as the cryptographic key and the specified hash algorithm.\\n      "],[13],[1,"\\n    "],[13],[1,"\\n    "],[8,[39,4],null,[["@key","@onVersionChange","@key_version"],[[30,10],[28,[37,1],[[28,[37,5],[[30,6]],null]],null],[30,6]]],null],[1,"\\n    "],[10,0],[14,0,"field"],[12],[1,"\\n      "],[10,0],[14,0,"control is-relative"],[12],[1,"\\n        "],[8,[39,6],null,[["@title","@value","@valueUpdated","@mode"],["Input",[30,3],[28,[37,1],[[28,[37,5],[[30,3]],null]],null],"ruby"]],null],[1,"\\n      "],[13],[1,"\\n    "],[13],[1,"\\n    "],[10,0],[14,0,"field"],[12],[1,"\\n      "],[8,[39,7],[[24,1,"encodedBase64"],[4,[38,0],["change",[30,11]],null]],[["@type","@checked"],["checkbox",[30,9]]],null],[1,"\\n      "],[10,"label"],[14,"for","encodedBase64"],[12],[1,"This data is already encoded in base64"],[13],[1,"\\n    "],[13],[1,"\\n"],[41,[30,10,["derived"]],[[[1,"      "],[10,0],[14,0,"field"],[12],[1,"\\n        "],[10,"label"],[14,"for","context"],[14,0,"is-label"],[12],[1,"\\n          Context\\n        "],[13],[1,"\\n        "],[10,0],[14,0,"field has-addons"],[12],[1,"\\n          "],[10,0],[14,0,"control"],[12],[1,"\\n            "],[8,[39,7],[[24,1,"context"],[24,0,"input"]],[["@type","@value"],["text",[30,7]]],null],[1,"\\n          "],[13],[1,"\\n          "],[10,0],[14,0,"control"],[12],[1,"\\n            "],[8,[39,9],null,[["@value"],[[30,7]]],null],[1,"\\n          "],[13],[1,"\\n        "],[13],[1,"\\n      "],[13],[1,"\\n"]],[]],null],[1,"    "],[10,0],[14,0,"field"],[12],[1,"\\n      "],[10,0],[14,0,"level is-mobile"],[12],[1,"\\n        "],[10,0],[14,0,"level-left"],[12],[1,"\\n          "],[10,"label"],[14,"for","hash_algorithm"],[14,0,"is-label"],[12],[1,"Hash Algorithm"],[13],[1,"\\n        "],[13],[1,"\\n        "],[10,0],[14,0,"level-right"],[12],[1,"\\n          "],[10,0],[14,0,"control is-flex"],[12],[1,"\\n            "],[8,[39,7],[[24,1,"prehashed"],[24,3,"prehashed"],[24,0,"toggle is-success is-small"]],[["@type","@checked"],["checkbox",[30,8]]],null],[1,"\\n            "],[10,"label"],[14,"for","prehashed"],[14,0,"has-text-weight-bold is-size-8"],[12],[1,"Prehashed"],[13],[1,"\\n          "],[13],[1,"\\n        "],[13],[1,"\\n      "],[13],[1,"\\n      "],[10,0],[14,0,"control is-expanded"],[12],[1,"\\n        "],[10,0],[14,0,"select is-fullwidth"],[12],[1,"\\n          "],[10,"select"],[14,3,"hash_algorithm"],[14,1,"hash_algorithm"],[15,"onchange",[28,[37,10],[[30,0],[28,[37,5],[[30,4]],null]],[["value"],["target.value"]]]],[12],[1,"\\n"],[42,[28,[37,12],[[28,[37,12],[[28,[37,13],null,null]],null]],null],null,[[[1,"              "],[10,"option"],[15,"selected",[52,[30,4],[28,[37,14],[[30,4],[30,12]],null],[28,[37,14],[[30,12],"sha2-256"],null]]],[15,2,[30,12]],[12],[1,"\\n                "],[1,[30,12]],[1,"\\n              "],[13],[1,"\\n"]],[12]],null],[1,"          "],[13],[1,"\\n        "],[13],[1,"\\n      "],[13],[1,"\\n    "],[13],[1,"\\n"],[41,[28,[37,15],[[28,[37,14],[[30,10,["type"]],"rsa-2048"],null],[28,[37,14],[[30,10,["type"]],"rsa-3072"],null],[28,[37,14],[[30,10,["type"]],"rsa-4096"],null]],null],[[[1,"      "],[10,0],[14,0,"field"],[12],[1,"\\n        "],[10,"label"],[14,"for","signature_algorithm"],[14,0,"is-label"],[12],[1,"Signature Algorithm"],[13],[1,"\\n        "],[10,0],[14,0,"control is-expanded"],[12],[1,"\\n          "],[10,0],[14,0,"select is-fullwidth"],[12],[1,"\\n            "],[10,"select"],[14,3,"signature_algorithm"],[14,1,"signature_algorithm"],[15,"onchange",[28,[37,10],[[30,0],[28,[37,5],[[30,5]],null]],[["value"],["target.value"]]]],[12],[1,"\\n"],[42,[28,[37,12],[[28,[37,12],[[28,[37,16],["pss","pkcs1v15"],null]],null]],null],null,[[[1,"                "],[10,"option"],[15,"selected",[52,[30,5],[28,[37,14],[[30,5],[30,13]],null],[28,[37,14],[[30,13],"pss"],null]]],[15,2,[30,13]],[12],[1,"\\n                  "],[1,[30,13]],[1,"\\n                "],[13],[1,"\\n"]],[13]],null],[1,"            "],[13],[1,"\\n          "],[13],[1,"\\n        "],[13],[1,"\\n      "],[13],[1,"\\n"]],[]],null],[1,"  "],[13],[1,"\\n  "],[10,0],[14,0,"field is-grouped box is-fullwidth is-bottomless"],[12],[1,"\\n    "],[10,0],[14,0,"control"],[12],[1,"\\n      "],[8,[39,17],[[16,"disabled",[30,14]],[24,4,"submit"]],[["@text","@icon"],["Sign",[52,[30,14],"loading"]]],null],[1,"\\n    "],[13],[1,"\\n  "],[13],[1,"\\n"],[13],[1,"\\n"],[41,[30,15],[[[1,"  "],[8,[39,18],[[24,1,"transit-sign-modal"]],[["@onClose"],[[28,[37,1],[[28,[37,5],[[30,15]],null],false],null]]],[["default"],[[[[1,"\\n    "],[8,[30,16,["Header"]],null,null,[["default"],[[[[1,"\\n      Copy your signature\\n    "]],[]]]]],[1,"\\n    "],[8,[30,16,["Body"]],null,null,[["default"],[[[[1,"\\n      "],[10,"h2"],[14,0,"title is-6"],[12],[1,"Signature"],[13],[1,"\\n      "],[8,[39,19],null,[["@textToCopy","@color","@container","@isFullWidth","@isTruncated","@onError"],[[30,17],"secondary","#transit-sign-modal",true,true,[28,[37,1],[[28,[37,20],["Clipboard copy failed. The Clipboard API requires a secure context.","danger"],null]],null]]],null],[1,"\\n    "]],[]]]]],[1,"\\n    "],[8,[30,16,["Footer"]],null,null,[["default"],[[[[1,"\\n      "],[8,[39,17],[[4,[38,0],["click",[30,18,["close"]]],null]],[["@text"],["Close"]],null],[1,"\\n    "]],[18]]]]],[1,"\\n  "]],[16]]]]],[1,"\\n"]],[]],null]],["&attrs","@doSubmit","@trackedInput","@hash_algorithm","@signature_algorithm","@key_version","@context","@prehashed","@encodedBase64","@key","@toggleEncodeBase64","algo","sigAlgo","@submitIsRunning","@isModalActive","M","@signature","F"],false,["on","fn","hash","namespace-reminder","key-version-select","mut","json-editor","input","if","b64-toggle","action","each","-track-array","sha2-digest-sizes","eq","or","array","hds/button","hds/modal","hds/copy/snippet","set-flash-message"]]',moduleName:"vault/templates/components/transit-key-action/sign.hbs",isStrictMode:!1})})),define("vault/templates/components/transit-key-action/verify",["exports","@ember/template-factory"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default=(0,t.createTemplateFactory)({id:"FCXxrJYI",block:'[[[11,"form"],[17,1],[4,[38,0],["submit",[28,[37,1],[[30,2],[28,[37,2],null,[["input","signature","signature_algorithm","hmac","hash_algorithm","context","prehashed","encodedBase64"],[[30,3],[30,4],[30,5],[30,6],[30,7],[30,8],[30,9],[30,10]]]]],null]],null],[12],[1,"\\n  "],[10,0],[14,0,"box is-sideless is-fullwidth is-marginless"],[12],[1,"\\n    "],[10,0],[14,0,"content has-bottom-margin-l"],[12],[1,"\\n      "],[10,2],[12],[1,"Check whether the provided signature is valid for the given data."],[13],[1,"\\n    "],[13],[1,"\\n    "],[10,0],[14,0,"field"],[12],[1,"\\n      "],[10,0],[14,0,"control is-relative"],[12],[1,"\\n        "],[8,[39,3],null,[["@title","@value","@valueUpdated","@mode"],["Input",[30,3],[28,[37,1],[[28,[37,4],[[30,3]],null]],null],"ruby"]],null],[1,"\\n      "],[13],[1,"\\n    "],[13],[1,"\\n    "],[10,0],[14,0,"field"],[12],[1,"\\n      "],[8,[39,5],[[24,1,"encodedBase64"],[4,[38,0],["change",[30,11]],null]],[["@type","@checked"],["checkbox",[30,10]]],null],[1,"\\n      "],[10,"label"],[14,"for","encodedBase64"],[12],[1,"This data is already encoded in base64"],[13],[1,"\\n    "],[13],[1,"\\n"],[41,[28,[37,7],[[30,12,["supportsSigning"]],[30,12,["derived"]],[28,[37,8],[[30,6]],null]],null],[[[1,"      "],[10,0],[14,0,"field"],[12],[1,"\\n        "],[10,"label"],[14,"for","context"],[14,0,"is-label"],[12],[1,"\\n          Context\\n        "],[13],[1,"\\n        "],[10,0],[14,0,"field has-addons"],[12],[1,"\\n          "],[10,0],[14,0,"control"],[12],[1,"\\n            "],[8,[39,5],[[24,1,"context"],[24,0,"input"]],[["@type","@value"],["text",[30,8]]],null],[1,"\\n          "],[13],[1,"\\n          "],[10,0],[14,0,"control"],[12],[1,"\\n            "],[8,[39,9],null,[["@value"],[[30,8]]],null],[1,"\\n          "],[13],[1,"\\n        "],[13],[1,"\\n      "],[13],[1,"\\n"]],[]],null],[41,[30,12,["supportsSigning"]],[[[1,"      "],[10,0],[14,0,"columns is-5"],[12],[1,"\\n        "],[10,0],[14,0,"column is-one-third"],[12],[1,"\\n          "],[10,0],[14,0,"field"],[12],[1,"\\n            "],[10,"label"],[14,"for","verification"],[14,0,"is-label"],[12],[1,"Verification Type"],[13],[1,"\\n            "],[10,0],[14,0,"control is-expanded"],[12],[1,"\\n              "],[10,0],[14,0,"select is-fullwidth"],[12],[1,"\\n                "],[10,"select"],[14,3,"verification"],[14,1,"verification"],[15,"onchange",[28,[37,10],[[28,[37,11],[[30,0],[28,[37,4],[[30,13]],null]],[["value"],["target.value"]]],[28,[37,1],[[30,14],[28,[37,12],["hmac","signature"],null]],null]],null]],[12],[1,"\\n"],[42,[28,[37,14],[[28,[37,14],[[28,[37,12],["Signature","HMAC"],null]],null]],null],null,[[[1,"                    "],[10,"option"],[15,"selected",[52,[30,13],[28,[37,15],[[30,13],[30,15]],null],[52,[30,6],[28,[37,15],[[30,15],"HMAC"],null],[28,[37,15],[[30,15],"Signature"],null]]]],[15,2,[30,15]],[12],[1,"\\n                      "],[1,[30,15]],[1,"\\n                    "],[13],[1,"\\n"]],[15]],null],[1,"                "],[13],[1,"\\n              "],[13],[1,"\\n            "],[13],[1,"\\n          "],[13],[1,"\\n          "],[10,0],[14,0,"field"],[12],[1,"\\n            "],[10,0],[14,0,"level is-mobile"],[12],[1,"\\n              "],[10,0],[14,0,"level-left"],[12],[1,"\\n                "],[10,"label"],[14,"for","hash_algorithm"],[14,0,"is-label"],[12],[1,"Hash Algorithm"],[13],[1,"\\n              "],[13],[1,"\\n              "],[10,0],[14,0,"level-right"],[12],[1,"\\n"],[41,[28,[37,16],[[30,13],"HMAC"],null],[[[1,"                  "],[10,0],[14,0,"control is-flex"],[12],[1,"\\n                    "],[8,[39,5],[[24,1,"prehashed"],[24,3,"prehashed"],[24,0,"toggle is-success is-small"]],[["@type","@checked"],["checkbox",[30,9]]],null],[1,"\\n                    "],[10,"label"],[14,"for","prehashed"],[14,0,"has-text-weight-bold is-size-8"],[12],[1,"Prehashed"],[13],[1,"\\n                  "],[13],[1,"\\n"]],[]],null],[1,"              "],[13],[1,"\\n            "],[13],[1,"\\n            "],[10,0],[14,0,"control is-expanded"],[12],[1,"\\n              "],[10,0],[14,0,"select is-fullwidth"],[12],[1,"\\n                "],[10,"select"],[14,3,"hash_algorithm"],[14,1,"hash_algorithm"],[15,"onchange",[28,[37,11],[[30,0],[28,[37,4],[[30,7]],null]],[["value"],["target.value"]]]],[12],[1,"\\n"],[42,[28,[37,14],[[28,[37,14],[[28,[37,17],null,null]],null]],null],null,[[[1,"                    "],[10,"option"],[15,"selected",[52,[30,7],[28,[37,15],[[30,7],[30,16]],null],[28,[37,15],[[30,16],"sha2-256"],null]]],[15,2,[30,16]],[12],[1,"\\n                      "],[10,"code"],[12],[1,[30,16]],[13],[1,"\\n                    "],[13],[1,"\\n"]],[16]],null],[1,"                "],[13],[1,"\\n              "],[13],[1,"\\n            "],[13],[1,"\\n          "],[13],[1,"\\n"],[41,[28,[37,7],[[30,17],[28,[37,18],[[28,[37,7],[[30,13],[28,[37,15],[[30,13],"Signature"],null]],null],[30,4]],null]],null],[[[1,"            "],[10,0],[14,0,"field"],[12],[1,"\\n              "],[10,"label"],[14,"for","signature_algorithm"],[14,0,"is-label"],[12],[1,"Signature Algorithm"],[13],[1,"\\n              "],[10,0],[14,0,"control is-expanded"],[12],[1,"\\n                "],[10,0],[14,0,"select is-fullwidth"],[12],[1,"\\n                  "],[10,"select"],[14,3,"signature_algorithm"],[14,1,"signature_algorithm"],[15,"onchange",[28,[37,11],[[30,0],[28,[37,4],[[30,5]],null]],[["value"],["target.value"]]]],[12],[1,"\\n"],[42,[28,[37,14],[[28,[37,14],[[28,[37,12],["pss","pkcs1v15"],null]],null]],null],null,[[[1,"                      "],[10,"option"],[15,"selected",[52,[30,5],[28,[37,15],[[30,5],[30,18]],null],[28,[37,15],[[30,18],"pss"],null]]],[15,2,[30,18]],[12],[1,"\\n                        "],[1,[30,18]],[1,"\\n                      "],[13],[1,"\\n"]],[18]],null],[1,"                  "],[13],[1,"\\n                "],[13],[1,"\\n              "],[13],[1,"\\n            "],[13],[1,"\\n"]],[]],null],[1,"\\n        "],[13],[1,"\\n        "],[10,0],[14,0,"column is-two-thirds is-flex-column"],[12],[1,"\\n"],[41,[28,[37,18],[[28,[37,7],[[30,13],[28,[37,15],[[30,13],"HMAC"],null]],null],[30,6]],null],[[[1,"            "],[10,0],[14,0,"field is-flex-column is-flex-grow-1"],[12],[1,"\\n              "],[10,0],[14,0,"control is-flex-column is-flex-grow-1"],[12],[1,"\\n                "],[8,[39,3],null,[["@title","@value","@valueUpdated","@mode"],["HMAC",[30,6],[28,[37,1],[[28,[37,4],[[30,6]],null]],null],"ruby"]],null],[1,"\\n              "],[13],[1,"\\n            "],[13],[1,"\\n"]],[]],[[[1,"            "],[10,0],[14,0,"field is-flex-column is-flex-grow-1"],[12],[1,"\\n              "],[10,0],[14,0,"control is-flex-column is-flex-grow-1"],[12],[1,"\\n                "],[8,[39,3],null,[["@title","@value","@valueUpdated","@mode"],["Signature",[30,4],[28,[37,1],[[28,[37,4],[[30,4]],null]],null],"ruby"]],null],[1,"\\n              "],[13],[1,"\\n            "],[13],[1,"\\n"]],[]]],[1,"        "],[13],[1,"\\n      "],[13],[1,"\\n"]],[]],[[[1,"      "],[10,0],[14,0,"field"],[12],[1,"\\n        "],[10,0],[14,0,"control"],[12],[1,"\\n          "],[8,[39,3],null,[["@title","@value","@valueUpdated","@mode"],["HMAC",[30,6],[28,[37,1],[[28,[37,4],[[30,6]],null]],null],"ruby"]],null],[1,"\\n        "],[13],[1,"\\n      "],[13],[1,"\\n      "],[10,0],[14,0,"field"],[12],[1,"\\n        "],[10,"label"],[14,"for","hash_algorithm"],[14,0,"is-label"],[12],[1,"Algorithm"],[13],[1,"\\n        "],[10,0],[14,0,"control is-expanded"],[12],[1,"\\n          "],[10,0],[14,0,"select is-fullwidth"],[12],[1,"\\n            "],[10,"select"],[14,3,"hash_algorithm"],[14,1,"hash_algorithm"],[15,"onchange",[28,[37,11],[[30,0],[28,[37,4],[[30,7]],null]],[["value"],["target.value"]]]],[12],[1,"\\n"],[42,[28,[37,14],[[28,[37,14],[[28,[37,12],["sha2-224","sha2-256","sha2-384","sha2-512"],null]],null]],null],null,[[[1,"                "],[10,"option"],[15,"selected",[52,[30,7],[28,[37,15],[[30,7],[30,19]],null],[28,[37,15],[[30,19],"sha2-256"],null]]],[15,2,[30,19]],[12],[1,"\\n                  "],[10,"code"],[12],[1,[30,19]],[13],[1,"\\n                "],[13],[1,"\\n"]],[19]],null],[1,"            "],[13],[1,"\\n          "],[13],[1,"\\n        "],[13],[1,"\\n      "],[13],[1,"\\n"]],[]]],[1,"  "],[13],[1,"\\n  "],[10,0],[14,0,"field is-grouped box is-fullwidth is-bottomless"],[12],[1,"\\n    "],[10,0],[14,0,"control"],[12],[1,"\\n      "],[8,[39,19],[[16,"disabled",[30,20]],[24,4,"submit"]],[["@text","@icon"],["Verify",[52,[30,20],"loading"]]],null],[1,"\\n    "],[13],[1,"\\n  "],[13],[1,"\\n"],[13],[1,"\\n"],[41,[30,21],[[[1,"  "],[8,[39,20],[[24,1,"transit-verify-modal"]],[["@size","@onClose"],["small",[28,[37,1],[[28,[37,4],[[30,21]],null],false],null]]],[["default"],[[[[1,"\\n    "],[8,[30,22,["Header"]],null,null,[["default"],[[[[1,"\\n      Results\\n      "],[8,[39,21],null,[["@text","@size","@color","@icon"],[[52,[30,23],"Valid","Not Valid"],"large",[52,[30,23],"success","critical"],[52,[30,23],"check-circle","x-circle"]]],null],[1,"\\n    "]],[]]]]],[1,"\\n    "],[8,[30,22,["Body"]],null,null,[["default"],[[[[1,"\\n      The input is\\n      "],[1,[52,[30,23],"valid","not valid"]],[1,"\\n      for the given\\n      "],[1,[52,[30,4],"signature.","HMAC."]],[1,"\\n    "]],[]]]]],[1,"\\n    "],[8,[30,22,["Footer"]],null,null,[["default"],[[[[1,"\\n      "],[8,[39,19],[[4,[38,0],["click",[30,24,["close"]]],null]],[["@text"],["Close"]],null],[1,"\\n    "]],[24]]]]],[1,"\\n  "]],[22]]]]],[1,"\\n"]],[]],null]],["&attrs","@doSubmit","@trackedInput","@signature","@signature_algorithm","@hmac","@hash_algorithm","@context","@prehashed","@encodedBase64","@toggleEncodeBase64","@key","@verification","@clearSpecificProps","type","algo","@keyIsRSA","sigAlgo","algo","@submitIsRunning","@isModalActive","M","@valid","F"],false,["on","fn","hash","json-editor","mut","input","if","and","not","b64-toggle","queue","action","array","each","-track-array","eq","not-eq","sha2-digest-sizes","or","hds/button","hds/modal","hds/badge"]]',moduleName:"vault/templates/components/transit-key-action/verify.hbs",isStrictMode:!1})})),define("vault/templates/docs",["exports","@ember/template-factory"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default=(0,t.createTemplateFactory)({id:"JZu/3Ue+",block:'[[[8,[39,0],null,[["@hasSidebar","@hasHeader","@hasFooter"],[[30,1],false,false]],[["default"],[[[[1,"\\n  "],[8,[30,2,["Sidebar"]],null,null,[["default"],[[[[1,"\\n    "],[8,[39,1],null,[["@scope"],["docs"]],[["default"],[[[[1,"\\n"],[44,[[30,3,["children"]]],[[[44,[[30,3,["pages"]]],[[[1,"          "],[8,[39,3],null,null,[["header","body"],[[[[1,"\\n              "],[8,[39,4],null,null,[["logo","actions"],[[[[1,"\\n                  "],[8,[39,5],null,[["@icon","@route","@ariaLabel"],["vault","vault","Vault dashboard"]],null],[1,"\\n                "]],[]],[[[1,"\\n                  "],[8,[39,6],null,[["@icon","@ariaLabel","@route"],["home","Docs index","docs"]],null],[1,"\\n                "]],[]]]]],[1,"\\n            "]],[]],[[[1,"\\n              "],[8,[39,7],null,null,[["default"],[[[[1,"\\n                "],[8,[30,6,["BackLink"]],null,[["@text","@route"],["Back to work (Vault UI)","vault"]],null],[1,"\\n                "],[8,[30,6,["Link"]],null,[["@icon","@route"],["home","docs.index"]],[["default"],[[[[1,"\\n                  Home\\n                "]],[]]]]],[1,"\\n                "],[8,[30,6,["Link"]],null,[["@icon","@route"],["edit","docs.how-to-docfy"]],[["default"],[[[[1,"\\n                  How to docfy\\n                "]],[]]]]],[1,"\\n\\n                "],[8,[30,6,["Title"]],null,null,[["default"],[[[[1,"\\n                  Components\\n                "]],[]]]]],[1,"\\n                "],[8,[30,6,["Item"]],null,null,[["default"],[[[[1,"\\n"],[1,"                  "],[8,[39,8],null,[["@components"],[[28,[37,9],[[28,[37,10],["name","components",[30,4]],null],"pages"],null]]],null],[1,"\\n                "]],[]]]]],[1,"\\n\\n                "],[8,[30,6,["Title"]],null,null,[["default"],[[[[1,"\\n                  Contributing docs\\n                "]],[]]]]],[1,"\\n"],[42,[28,[37,12],[[28,[37,12],[[30,5]],null]],null],null,[[[44,[[28,[37,13],["docs.",[52,[30,7,["relativeUrl"]],[30,7,["relativeUrl"]],"index"]],null]],[[[1,"                    "],[8,[30,6,["Link"]],null,[["@route"],[[30,8]]],[["default"],[[[[1,"\\n                      "],[1,[30,7,["title"]]],[1,"\\n                    "]],[]]]]],[1,"\\n"]],[8]]]],[7]],null],[1,"\\n"],[42,[28,[37,12],[[28,[37,12],[[30,4]],null]],null],null,[[[41,[28,[37,15],[[30,9,["name"]],"components"],null],[[[1,"                    "],[8,[30,6,["Title"]],null,null,[["default"],[[[[1,"\\n                      "],[1,[28,[35,16],[[30,9,["label"]]],null]],[1,"\\n                    "]],[]]]]],[1,"\\n\\n"],[42,[28,[37,12],[[28,[37,12],[[30,9,["pages"]]],null]],null],null,[[[44,[[28,[37,13],["docs.",[52,[30,10,["relativeUrl"]],[30,10,["relativeUrl"]],"index"]],null]],[[[1,"                        "],[8,[30,6,["Link"]],null,[["@route"],[[30,11]]],[["default"],[[[[1,"\\n                          "],[1,[30,10,["title"]]],[1,"\\n                        "]],[]]]]],[1,"\\n"]],[11]]]],[10]],null]],[]],null]],[9]],null],[1,"              "]],[6]]]]],[1,"\\n            "]],[]]]]],[1,"\\n"]],[5]]]],[4]]],[1,"    "]],[3]]]]],[1,"\\n  "]],[]]]]],[1,"\\n\\n  "],[8,[30,2,["Main"]],[[24,1,"docfy-content"]],null,[["default"],[[[[1,"\\n    "],[46,[28,[37,18],null,null],null,null,null],[1,"\\n  "]],[]]]]],[1,"\\n"]],[2]]]]]],["@showSidebar","Frame","docs","directories","pages","Nav","page","url","subDirectory","page","url"],false,["hds/app-frame","docfy-output","let","hds/side-nav","hds/side-nav/header","hds/side-nav/header/home-link","hds/side-nav/header/icon-button","hds/side-nav/list","z-docfy-filter","get","find-by","each","-track-array","concat","if","not-eq","capitalize","component","-outlet"]]',moduleName:"vault/templates/docs.hbs",isStrictMode:!1})})),define("vault/templates/docs/building-components",["exports","@ember/template-factory"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default=(0,t.createTemplateFactory)({id:"bFZA9FWA",block:'[[[10,"h1"],[14,1,"building-and-consuming-components"],[12],[1,"Building and consuming components"],[13],[1,"\\n"],[10,"ul"],[12],[1,"\\n"],[10,"li"],[12],[10,3],[14,6,"#page-components-for-every-route"],[12],[1,"Page components for every route"],[13],[13],[1,"\\n"],[10,"li"],[12],[10,3],[14,6,"#conditional-rendering"],[12],[1,"Conditional rendering"],[13],[13],[1,"\\n"],[10,"li"],[12],[10,3],[14,6,"#reusable-components"],[12],[1,"Reusable components"],[13],[13],[1,"\\n"],[13],[1,"\\n"],[10,2],[12],[1,"Components can range from small, highly reusable \\"atoms\\" to large units with lots of business logic specific to one workflow or action. In any scenario, these are things to keep in mind while developing components for the Vault UI."],[13],[1,"\\n"],[10,2],[12],[1,"Please note that these guidelines are aspirational and you will see instances of anti-patterns in the codebase. Many of these should be updated as we move forward. As with any rule set, sometimes it is appropriate to break the rule."],[13],[1,"\\n"],[10,"h2"],[14,1,"page-components-for-every-route"],[12],[1,"Page components for every route"],[13],[1,"\\n"],[10,2],[12],[1,"Route templates should render a "],[10,"code"],[12],[1,"Page"],[13],[1," component, which includes breadcrumbs, page title, and then renders whatever else should be on the page (often another scoped component)."],[13],[1,"\\n"],[10,"ul"],[12],[1,"\\n"],[10,"li"],[12],[1,"This component should be named something like "],[10,"code"],[12],[1,"<Page::CreateFoo />"],[13],[1," and you can create it like "],[10,"code"],[12],[1,"ember g component page/create-foo -gc"],[13],[1,"."],[13],[1,"\\n"],[10,"li"],[12],[1,"The Route should pass the model hook data into the component in the template. However, if the model hook returns multiple objects they should each be passed into the Page component as separate args. For example: within a route\'s template whose model hook returns two different data models, the route\'s template would look like:"],[13],[1,"\\n"],[13],[1,"\\n"],[10,"pre"],[12],[10,"code"],[14,0,"language-hbs"],[12],[1,"<Page::CreateFoo @config="],[1,"{{this.model.config}} @foo="],[1,"{{this.model.foo}} />\\n"],[13],[13],[1,"\\n"],[10,"h2"],[14,1,"conditional-rendering"],[12],[1,"Conditional rendering"],[13],[1,"\\n"],[10,2],[12],[1,"Generally, we want the burden of deciding whether a component should render to live in the parent rather than the child."],[13],[1,"\\n"],[10,"ul"],[12],[1,"\\n"],[10,"li"],[12],[10,"strong"],[12],[1,"Readability"],[13],[1," - it\'s easier to tell at a glance that a component will sometimes not render if the "],[10,"code"],[12],[1,"{{#if}}"],[13],[1," block is on the parent."],[13],[1,"\\n"],[10,"li"],[12],[10,"strong"],[12],[1,"Performance"],[13],[1," - when a component is in charge of its own rendering logic, the component\'s lifecycle hooks will fire whether or not the component will render on the page. This can lead to degraded performance, for example if hundreds of the same component are listed on the page."],[13],[1,"\\n"],[13],[1,"\\n"],[10,"h2"],[14,1,"reusable-components"],[12],[1,"Reusable components"],[13],[1,"\\n"],[10,"ul"],[12],[1,"\\n"],[10,"li"],[12],[1,"Consider yielding something instead of passing a new arg"],[13],[1,"\\n"],[10,"li"],[12],[1,"Less is more! Adding lots of rendering logic means the component is likely doing too much"],[13],[1,"\\n"],[13],[1,"\\n"],[10,"table"],[12],[1,"\\n"],[10,"thead"],[12],[1,"\\n"],[10,"tr"],[12],[1,"\\n"],[10,"th"],[12],[1,"💡 Tips for reusability"],[13],[1,"\\n"],[10,"th"],[12],[1,"Example"],[13],[1,"\\n"],[13],[1,"\\n"],[13],[1,"\\n"],[10,"tbody"],[12],[1,"\\n"],[10,"tr"],[12],[1,"\\n"],[10,"td"],[12],[1,"✅ Add splattributes to the top level"],[13],[1,"\\n"],[10,"td"],[12],[10,"pre"],[12],[10,"code"],[12],[1,"<div ...attributes> Something! </div>"],[13],[13],[13],[1,"\\n"],[13],[1,"\\n"],[10,"tr"],[12],[1,"\\n"],[10,"td"],[12],[1,"✅ Pass a class or helper that controls a style"],[13],[1,"\\n"],[10,"td"],[12],[10,"pre"],[12],[10,"code"],[12],[1,"<Block @title=\\"Example\\" class=\\"padding-0\\" />"],[13],[13],[13],[1,"\\n"],[13],[1,"\\n"],[10,"tr"],[12],[1,"\\n"],[10,"td"],[12],[1,"❌ Don\'t pass a new arg that controls a style"],[13],[1,"\\n"],[10,"td"],[12],[10,"pre"],[12],[10,"code"],[12],[1,"<Block @title=\\"Example\\" @hasPadding="],[1,"{{false}} />"],[13],[1," "],[13],[13],[1,"\\n"],[13],[1,"\\n"],[10,"tr"],[12],[1,"\\n"],[10,"td"],[12],[1,"✅ Minimize args passed, pass one arg that is rendered if present"],[13],[1,"\\n"],[10,"td"],[12],[10,"pre"],[12],[10,"code"],[12],[1,"<Block @title=\\"Example\\" @icon=\\"key\\" />"],[13],[13],[13],[1,"\\n"],[13],[1,"\\n"],[10,"tr"],[12],[1,"\\n"],[10,"td"],[12],[1,"❌ Don\'t pass separate args required for icon to render"],[13],[1,"\\n"],[10,"td"],[12],[10,"pre"],[12],[10,"code"],[12],[1,"<Block @title=\\"Example\\" @hasIcon="],[1,"{{true}} @iconName=\\"key\\" />"],[13],[1," "],[13],[13],[1,"\\n"],[13],[1,"\\n"],[13],[1,"\\n"],[13]],[],false,[]]',moduleName:"vault/templates/docs/building-components.hbs",isStrictMode:!1})})),define("vault/templates/docs/client-pagination",["exports","@ember/template-factory"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default=(0,t.createTemplateFactory)({id:"hhlNNoKv",block:'[[[10,"h1"],[14,1,"client-side-pagination"],[12],[1,"Client-side pagination"],[13],[1,"\\n"],[10,2],[12],[1,"Our custom extended "],[10,"code"],[12],[1,"store"],[13],[1," service allows us to paginate LIST responses while maintaining good performance, particularly when the LIST response includes tens of thousands of keys in the data response. It does this by caching the entire response, and then filtering the full response into the datastore for the client."],[13],[1,"\\n"],[10,"h2"],[14,1,"using-pagination"],[12],[1,"Using pagination"],[13],[1,"\\n"],[10,2],[12],[1,"Rather than use "],[10,"code"],[12],[1,"store.query"],[13],[1,", use "],[10,"code"],[12],[1,"store.lazyPaginatedQuery"],[13],[1,". It generally uses the same inputs, but accepts additional keys in the query object "],[10,"code"],[12],[1,"size"],[13],[1,", "],[10,"code"],[12],[1,"page"],[13],[1,", "],[10,"code"],[12],[1,"responsePath"],[13],[1,", "],[10,"code"],[12],[1,"pageFilter"],[13],[13],[1,"\\n"],[10,"h3"],[14,1,"before"],[12],[1,"Before"],[13],[1,"\\n"],[10,"pre"],[12],[10,"code"],[14,0,"language-js"],[12],[1,"export default class ExampleRoute extends Route {\\n  @service store;\\n\\n  model(params) {\\n    const { secret } = params;\\n    const { backend } = this.paramsFor(\'vault.cluster.secrets.backend\');\\n    return this.store.query(\'pki/role\', { backend, id })\\n  }\\n"],[13],[13],[1,"\\n"],[10,"h3"],[14,1,"after"],[12],[1,"After"],[13],[1,"\\n"],[10,"pre"],[12],[10,"code"],[14,0,"language-js"],[12],[1,"export default class ExampleRoute extends Route {\\n  @service store;\\n\\n  model(params) {\\n    const { page, pageFilter, secret } = params;\\n    const { backend } = this.paramsFor(\'vault.cluster.secrets.backend\');\\n    return this.store.lazyPaginatedQuery(\'secret\', {\\n      backend,\\n      id: secret,\\n      size,\\n      page,\\n      responsePath,\\n      pageFilter\\n    })\\n  }\\n"],[13],[13],[1,"\\n"],[10,2],[12],[1,"The "],[10,"code"],[12],[1,"size"],[13],[1," param defaults to the default page size set in "],[10,3],[14,6,"../config/environment.js"],[12],[1,"the app config"],[13],[1,". "],[10,"code"],[12],[1,"responsePath"],[13],[1," and "],[10,"code"],[12],[1,"page"],[13],[1," are required, and typically "],[10,"code"],[12],[1,"responsePath"],[13],[1," is going to be "],[10,"code"],[12],[1,"data.keys"],[13],[1," since that is where the LIST responses typically return their array data."],[13],[1,"\\n"],[10,"h3"],[14,1,"serializing"],[12],[1,"Serializing"],[13],[1,"\\n"],[10,2],[12],[1,"In order to interrupt the regular serialization when using "],[10,"code"],[12],[1,"lazyPaginatedData"],[13],[1,", define "],[10,"code"],[12],[1,"extractLazyPaginatedData"],[13],[1," on the modelType\'s serializer. This will be called with the raw response before being cached on the store. "],[10,"code"],[12],[1,"extractLazyPaginatedData"],[13],[1," should return an array of objects."],[13],[1,"\\n"],[10,"h2"],[14,1,"gotchas"],[12],[1,"Gotchas"],[13],[1,"\\n"],[10,2],[12],[1,"The data is cached from whenever the original API call is made, which means that if a user views a list and then creates or deletes an item, viewing the list page again will show outdated information unless the cache for the item is cleared first. For this reason, it is best practice to clear the dataset with "],[10,"code"],[12],[1,"store.clearDataset(modelName)"],[13],[1," after successfully deleting or creating an item."],[13],[1,"\\n"],[10,"h2"],[14,1,"how-it-works"],[12],[1,"How it works"],[13],[1,"\\n"],[10,2],[12],[1,"When using the "],[10,"code"],[12],[1,"lazyPaginatedQuery"],[13],[1," method, the full response is cached in a "],[10,3],[14,6,"https://github.com/tracked-tools/tracked-built-ins/tree/master"],[12],[1,"tracked Map"],[13],[1," within the service. "],[10,"code"],[12],[1,"store.lazyCaches"],[13],[1," is actually a Map of "],[10,3],[14,6,"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Map"],[12],[1,"Maps"],[13],[1,", keyed first on the normalized modelType and then on a stringified version of the base query (all keys except ones related to pagination). So, at the top level "],[10,"code"],[12],[1,"store.lazyCaches"],[13],[1," looks like this:"],[13],[1,"\\n"],[10,"pre"],[12],[10,"code"],[12],[1,"lazyCaches = new Map({\\n  \\"secret\\": <Map>,\\n  \\"kmip\\": <Map>,\\n  \\"namespace\\": <Map>,\\n})\\n"],[13],[13],[1,"\\n"],[10,2],[12],[1,"Within each top-level modelType, we need to separate cached responses based on the details of the query. Typically (but not always) this includes the backend name. In list items that can be nested (see KV V2 secrets or namespaces for example) "],[10,"code"],[12],[1,"id"],[13],[1," is also provided, so that the keys nested under the given ID is returned. The store.lazyCaches may look something like the following after a user navigates to a couple different KV v2 lists, and clicks into the "],[10,"code"],[12],[1,"app/"],[13],[1," item:"],[13],[1,"\\n"],[10,"pre"],[12],[10,"code"],[12],[1,"lazyCaches = new Map({\\n  \\"secret\\": {\\n    \\"{ backend: \'secret\', id: \'\' }: <CachedData>,\\n    \\"{ backend: \'secret\', id: \'app/\' }: <CachedData>,\\n    \\"{ backend: \'kv2\', id: \'\' }: <CachedData>,\\n  },\\n  ...\\n})\\n"],[13],[13],[1,"\\n"],[10,2],[12],[1,"The cached data at the given key is an object with "],[10,"code"],[12],[1,"response"],[13],[1," and "],[10,"code"],[12],[1,"dataset"],[13],[1," keys. The response is the full response from the original API call, with the "],[10,"code"],[12],[1,"responsePath"],[13],[1," nulled out (it is repopulated before \\"sending\\" the data back to the store). "],[10,"code"],[12],[1,"dataset"],[13],[1," is the full, original value at "],[10,"code"],[12],[1,"responsePath"],[13],[1,", usually an array of strings. An example of what the data might look like:"],[13],[1,"\\n"],[10,"pre"],[12],[10,"code"],[12],[1,"lazyCaches = new Map({\\n  \\"secret\\": {\\n    \\"{ backend: \'secret\', id: \'app/\' }: {\\n      dataset: [\'some\', \'nested\', \'secrets\'],\\n      response: {\\n        request_id: \'foobar\',\\n        data: {},\\n        ...\\n      }\\n    },\\n  },\\n  ...\\n})\\n"],[13],[13]],[],false,[]]',moduleName:"vault/templates/docs/client-pagination.hbs",isStrictMode:!1})})),define("vault/templates/docs/css",["exports","@ember/template-factory"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default=(0,t.createTemplateFactory)({id:"JTSEuXMx",block:'[[[10,"h1"],[14,1,"cssscss"],[12],[1,"CSS/SCSS"],[13],[1,"\\n"],[3," START doctoc generated TOC please keep comment here to allow auto update "],[1,"\\n"],[3," DON\'T EDIT THIS SECTION, INSTEAD RE-RUN doctoc TO UPDATE "],[1,"\\n"],[10,"ul"],[12],[1,"\\n"],[10,"li"],[12],[10,3],[14,6,"#guidelines"],[12],[1,"Guidelines"],[13],[1,"\\n"],[10,"ul"],[12],[1,"\\n"],[10,"li"],[12],[10,3],[14,6,"#helper-classes"],[12],[1,"Helper classes"],[13],[13],[1,"\\n"],[10,"li"],[12],[10,3],[14,6,"#core-class-styles"],[12],[1,"Core class styles"],[13],[13],[1,"\\n"],[13],[1,"\\n"],[13],[1,"\\n"],[13],[1,"\\n"],[3," END doctoc generated TOC please keep comment here to allow auto update "],[1,"\\n"],[10,"h2"],[14,1,"guidelines"],[12],[1,"Guidelines"],[13],[1,"\\n"],[10,"ul"],[12],[1,"\\n"],[10,"li"],[12],[10,3],[14,6,"#helper-classes"],[12],[10,"strong"],[12],[1,"Helper classes"],[13],[13],[1," should be used if a styling block does not already exist and/or a reasonable number of helper classes can cover the desired style."],[13],[1,"\\n"],[10,"li"],[12],[10,3],[14,6,"#core-class-styles"],[12],[10,"strong"],[12],[1,"Core classes"],[13],[13],[1," provide styling for any classes not associated with a component. The scope of each file is defined by the file name."],[13],[1,"\\n"],[10,"li"],[12],[10,"strong"],[12],[1,"Component specific styling"],[13],[1," should only be added to, or created when you cannot achieve the styling with a helper class or core class."],[13],[1,"\\n"],[10,"li"],[12],[10,"strong"],[12],[1,"Utils\'"],[13],[1," files define mixins, and variables."],[13],[1,"\\n"],[13],[1,"\\n"],[10,"blockquote"],[12],[1,"\\n"],[10,"h3"],[14,1,"known-issues"],[12],[1,"Known issues"],[13],[1,"\\n"],[10,2],[12],[1,"The following are known issues that we are working to address in conjunction with the adoption of HDS."],[13],[1,"\\n"],[10,"ol"],[12],[1,"\\n"],[10,"li"],[12],[10,"strong"],[12],[1,"Size variables"],[13],[1," The UI does not follow a consistent size variable pattern. We use both px and rem to define font-size and we use px, rem, and ems to define margins, heights and widths. For accessibility reasons we "],[10,"em"],[12],[1,"should"],[13],[1," define all font-sizing at the very least by rem, though this is not consistently done in the app."],[13],[1,"\\n"],[10,"li"],[12],[10,"strong"],[12],[1,"Variable naming"],[13],[1," The UI does not have a consistent pattern to variable naming. We use a mix of numbers and words (ex: "],[10,"code"],[12],[1,"ui-gray-050"],[13],[1," is the same as "],[10,"code"],[12],[1,"ui-gray-lightest"],[13],[1,")."],[13],[1,"\\n"],[10,"li"],[12],[10,"strong"],[12],[1,"Random variables"],[13],[1," We have dieing but not dead variables. For example, we have some variables that define box-shadows and we have some variables to define animations, but we are missing many box-shadow definitions and we do not consistently use the animation variables."],[13],[1,"\\n"],[10,"li"],[12],[10,"strong"],[12],[1,"Missing variables"],[13],[1," The UI does not have a variable for all commonly occurring sizes and colors. For example, we do not have a variable that covers the "],[10,"code"],[12],[1,"14px"],[13],[1," though it is a commonly used size."],[13],[1,"\\n"],[10,"li"],[12],[10,"strong"],[12],[1,"!Important"],[13],[1," "],[10,"code"],[12],[1,"!important"],[13],[1," is sprinkled throughout helper, core and component files. Ideally, the cascading and order of styles would eliminate the need of this keyword. However, because "],[10,"code"],[12],[1,"!important"],[13],[1," exist randomly in many of our files, we now have cascading issues inside helper files and core files. In all known cases where these issues exist a comment has been left as to why the order of classes in that particular area matters."],[13],[1,"\\n"],[13],[1,"\\n"],[13],[1,"\\n"],[10,"h3"],[14,1,"helper-classes"],[12],[1,"Helper classes"],[13],[1,"\\n"],[10,2],[12],[1,"A good portion of our class definitions have come from Bulma. Bulma has since been removed, but we still rely on many of its class definitions. Bulma class definitions, specifically their helper classes, always end in the keyword  "],[10,"code"],[12],[1,"!important"],[13],[1,". This use of "],[10,"code"],[12],[1,"important!"],[13],[1," and Bulma specific naming patterns has led to a mix of inconsistent helper class names. Moving forward, we have agreed as a team to pursue the following patterns. When it makes sense, please default to these instead of relying on existing helper names for guidance."],[13],[1,"\\n"],[10,"ul"],[12],[1,"\\n"],[10,"li"],[12],[1,"Drop the starting verb. Many of our helper classes start with a verb "],[10,"code"],[12],[1,"has"],[13],[1," or "],[10,"code"],[12],[1,"is"],[13],[1,". Going forward we prefer to drop the verb. "],[10,"code"],[12],[1,"margin-bottom"],[13],[1," instead of "],[10,"code"],[12],[1,"is-margin-bottom"],[13],[1,"."],[13],[1,"\\n"],[10,"li"],[12],[1,"Start your helper class name with what the class controls. "],[10,"code"],[12],[1,"margin-bottom"],[13],[1," instead of "],[10,"code"],[12],[1,"bottom-margin"],[13],[1,"."],[13],[1,"\\n"],[10,"li"],[12],[1,"Match your helper class size to a pre-existing size variable. "],[10,"code"],[12],[1,"margin-bottom-large"],[13],[1," instead of "],[10,"code"],[12],[1,"margin-bottom-big"],[13],[1,"."],[13],[1,"\\n"],[13],[1,"\\n"],[10,"h3"],[14,1,"core-class-styles"],[12],[1,"Core class styles"],[13],[1,"\\n"],[10,2],[12],[1,"All files under "],[10,"code"],[12],[1,"app/styles/core"],[13],[1," directory define style for the class of the file name. Think of these as files for the heavily used classes that are not defined as a component. Things like "],[10,"code"],[12],[1,".box"],[13],[1," or "],[10,"code"],[12],[1,".title"],[13],[1,". These classes are used in our app over many files that span multiple components, but they are themselves are "],[10,"em"],[12],[1,"not"],[13],[1," components."],[13],[1,"\\n"],[10,2],[12],[1,"If the core file ends in a "],[10,"code"],[12],[1,"s"],[13],[1," (e.g. "],[10,"code"],[12],[1,"lists"],[13],[1," or "],[10,"code"],[12],[1,"containers"],[13],[1,") the plural indicates that the file defines more than just the style for the class "],[10,"code"],[12],[1,"container"],[13],[1,". The "],[10,"code"],[12],[1,"core/containers.scss"],[13],[1," file defines classes for all things relating to container-type classes: "],[10,"code"],[12],[1,"page-container"],[13],[1,", "],[10,"code"],[12],[1,"section"],[13],[1," as well as the "],[10,"code"],[12],[1,"container"],[13],[1," class. There are only a few plural core files as they are the exception and not the norm."],[13]],[],false,[]]',moduleName:"vault/templates/docs/css.hbs",isStrictMode:!1})})),define("vault/templates/docs/ember-engines",["exports","@ember/template-factory"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default=(0,t.createTemplateFactory)({id:"JjOEWU5A",block:'[[[10,"h1"],[14,1,"ember-engines"],[12],[10,3],[14,6,"https://ember-engines.com/docs"],[12],[1,"Ember Engines"],[13],[13],[1,"\\n"],[10,2],[12],[1,"This is a quickstart guide inspired by "],[10,3],[14,6,"https://ember-engines.com/docs/quickstart"],[12],[1,"ember engine quickstart"],[13],[1," on how to set up an ember engine in Vault!"],[13],[1,"\\n"],[10,"h2"],[14,1,"create-a-new-in-repo-engine"],[12],[1,"Create a new in-repo engine:"],[13],[1,"\\n"],[10,2],[12],[10,"code"],[12],[1,"ember g in-repo-engine <engine-name>"],[13],[13],[1,"\\n"],[10,2],[12],[10,"em"],[12],[1,"This blueprint in-repo engine command will add a new folder "],[10,"code"],[12],[1,"lib/<engine-name>"],[13],[1," and add the engine to our main app’s "],[10,"code"],[12],[1,"package.json"],[13],[13],[13],[1,"\\n"],[10,"h2"],[14,1,"engines-packagejson"],[12],[1,"Engine’s package.json:"],[13],[1,"\\n"],[10,"pre"],[12],[10,"code"],[14,0,"language-json"],[12],[1,"{\\n  \\"name\\": \\"<engine-name>\\",\\n\\n  \\"dependencies\\": {\\n    \\"ember-cli-htmlbars\\": \\"*\\",\\n    \\"ember-cli-babel\\": \\"*\\"\\n  },\\n\\n  \\"ember-addon\\": {\\n    \\"paths\\": [\\"../core\\"]\\n  }\\n}\\n"],[13],[13],[1,"\\n"],[10,2],[12],[1,"For our application, we want to include the "],[10,"strong"],[12],[1,"ember-addon"],[13],[1," path "],[10,"code"],[12],[1,"../core"],[13],[13],[1,"\\n"],[10,2],[12],[1,"By adding this "],[10,"strong"],[12],[1,"ember-addon"],[13],[1," path, we are able to share elements between your in-repo addon and the Vault application"],[10,3],[14,6,"https://ember-engines.com/docs/quickstart#create-as-in-repo-engine"],[12],[1,"^1"],[13],[1,"."],[13],[1,"\\n"],[10,"h2"],[14,1,"configure-your-engine"],[12],[1,"Configure your Engine"],[13],[1,"\\n"],[10,2],[12],[1,"In the engine’s "],[10,"code"],[12],[1,"index.js"],[13],[1," file:"],[13],[1,"\\n"],[10,"pre"],[12],[10,"code"],[14,0,"language-js"],[12],[1,"/**\\n * Copyright (c) HashiCorp, Inc.\\n * SPDX-License-Identifier: BUSL-1.1\\n */\\n\\n/* eslint-disable node/no-extraneous-require */\\nconst { buildEngine } = require(\'ember-engines/lib/engine-addon\');\\n\\nmodule.exports = buildEngine({\\n  name: \'<engine-name>\',\\n  lazyLoading: {\\n    enabled: false,\\n  },\\n  isDevelopingAddon() {\\n    return true;\\n  },\\n});\\n"],[13],[13],[1,"\\n"],[10,2],[12],[1,"Within your Engine’s "],[10,"code"],[12],[1,"config/environment.js"],[13],[1," file:"],[13],[1,"\\n"],[10,"pre"],[12],[10,"code"],[14,0,"language-js"],[12],[1,"/**\\n * Copyright (c) HashiCorp, Inc.\\n * SPDX-License-Identifier: BUSL-1.1\\n */\\n\\n// config/environment.js\\n\\n\'use strict\';\\n\\nmodule.exports = function (environment) {\\n  const ENV = {\\n    modulePrefix: \'<engine-name>\',\\n    environment: environment,\\n  };\\n\\n  return ENV;\\n};\\n"],[13],[13],[1,"\\n"],[10,2],[12],[1,"Within your Engine’s "],[10,"code"],[12],[1,"addon/engine.js"],[13],[1," file:"],[13],[1,"\\n"],[10,"pre"],[12],[10,"code"],[14,0,"language-js"],[12],[1,"/**\\n * Copyright (c) HashiCorp, Inc.\\n * SPDX-License-Identifier: BUSL-1.1\\n */\\n\\nimport Engine from \'@ember/engine\';\\n\\nimport loadInitializers from \'ember-load-initializers\';\\nimport Resolver from \'ember-resolver\';\\n\\nimport config from \'./config/environment\';\\n\\nconst { modulePrefix } = config;\\n\\nexport default class <EngineName>Engine extends Engine {\\n  modulePrefix = modulePrefix;\\n  Resolver = Resolver;\\n  dependencies = {\\n    services: [\'router\', \'store\', \'secret-mount-path\', \'flash-messages\'],\\n    externalRoutes: [\'secrets\'],\\n  };\\n}\\n\\nloadInitializers(<EngineName>Engine, modulePrefix);\\n"],[13],[13],[1,"\\n"],[10,"h3"],[14,1,"service-dependencies"],[12],[1,"Service Dependencies:"],[13],[1,"\\n"],[10,2],[12],[1,"The services in the example above are common services that we often use in our engines. If your engine requires other services from the main application, add them to the services array."],[13],[1,"\\n"],[10,"h4"],[14,1,"notes"],[12],[1,"Notes:"],[13],[1,"\\n"],[10,"ul"],[12],[1,"\\n"],[10,"li"],[12],[1,"Service dependencies are OPTIONAL. If your engine does not use any external services, you do not need to include a services dependency array."],[13],[1,"\\n"],[10,"li"],[12],[1,"Remember to include any dependencies here in the engine\'s dependencies in app/app.js"],[13],[1,"\\n"],[13],[1,"\\n"],[10,"h3"],[14,1,"external-route-dependencies"],[12],[1,"External Route Dependencies:"],[13],[1,"\\n"],[10,2],[12],[1,"The external route dependencies allow you to link to a route outside of your engine. In this example, we list \'secrets\' in the externalRoute and the route is defined in the "],[10,"code"],[12],[1,"app.js"],[13],[1," file."],[13],[1,"\\n"],[10,"h4"],[14,1,"notes-1"],[12],[1,"Notes:"],[13],[1,"\\n"],[10,"ul"],[12],[1,"\\n"],[10,"li"],[12],[1,"In order to link to the other routes in the main app using the "],[10,"code"],[12],[1,"LinkToExternal"],[13],[1," component from your engine, you need to add the route to the "],[10,"code"],[12],[1,"app/app.js"],[13],[1," and your engine’s "],[10,"code"],[12],[1,"addon/engine.js"],[13],[1,". More information on "],[10,3],[14,6,"https://ember-engines.com/docs/link-to-external"],[12],[1,"Linking to An External Context."],[13],[1,"."],[13],[1,"\\n"],[13],[1,"\\n"],[10,"h2"],[14,1,"additional-info-about-your-engines-applicationhbs"],[12],[1,"Additional info about your engine\'s "],[10,"code"],[12],[1,"application.hbs"],[13],[1,":"],[13],[1,"\\n"],[10,"ul"],[12],[1,"\\n"],[10,"li"],[12],[1,"Optional step: Add some text in the engine’s "],[10,"code"],[12],[1,"application.hbs"],[13],[1," file (to see if your engine was set up correctly)."],[13],[1,"\\n"],[10,"li"],[12],[10,"strong"],[12],[1,"NOTE: Most of our existing engines do not keep the generated "],[10,"code"],[12],[1,"application.hbs"],[13],[1," template file. If nothing will be added to it and it remains as just an "],[10,"code"],[12],[1,"{{outlet}}"],[13],[1," it can safely be removed."],[13],[13],[1,"\\n"],[13],[1,"\\n"],[10,"h2"],[14,1,"register-your-engine-with-our-main-application"],[12],[1,"Register your engine with our main application:"],[13],[1,"\\n"],[10,2],[12],[1,"In our "],[10,"code"],[12],[1,"app/app.js"],[13],[1," file in the engines object, add your engine’s name and dependencies."],[13],[1,"\\n"],[10,"pre"],[12],[10,"code"],[14,0,"language-js"],[12],[1,"/**\\n * Copyright (c) HashiCorp, Inc.\\n * SPDX-License-Identifier: BUSL-1.1\\n */\\n\\nimport Application from \'@ember/application\';\\nimport Resolver from \'ember-resolver\';\\nimport loadInitializers from \'ember-load-initializers\';\\nimport config from \'vault/config/environment\';\\n\\nexport default class App extends Application {\\n\\t...\\n  engines = {\\n    <engine-name>: {\\n      dependencies: {\\n        services: [\'router\', \'store\', \'secret-mount-path\', \'flash-messages\', <any-other-dependencies-you-have>],\\n        externalRoutes: {\\n          secrets: \'vault.cluster.secrets.backends\',\\n        },\\n      },\\n    },\\n  };\\n}\\n\\nloadInitializers(App, config.modulePrefix);\\n"],[13],[13],[1,"\\n"],[10,2],[12],[1,"If you used "],[10,"code"],[12],[1,"ember g in-repo-engine <engine-name>"],[13],[1," to generate the engine’s blueprint, it should have added "],[10,"code"],[12],[1,"this.mount(<engine-name>)"],[13],[1," to the main app’s "],[10,"code"],[12],[1,"router.js"],[13],[1," file (this adds your engine and its associated routes). *Move "],[10,"code"],[12],[1,"this.mount(<engine-name>)"],[13],[1," to match your engine’s route structure. For more information about "],[10,3],[14,6,"https://ember-engines.com/docs/quickstart#routable-engines"],[12],[1,"Routable Engines"],[13],[1,"."],[13],[1,"\\n"],[10,"h2"],[14,1,"add-engine-path-to-ember-addon-section-of-main-app-packagejson"],[12],[1,"Add engine path to ember-addon section of main app package.json"],[13],[1,"\\n"],[10,"pre"],[12],[10,"code"],[14,0,"language-json"],[12],[1,"  \\"ember-addon\\": {\\n    \\"paths\\": [\\n      \\"lib/core\\",\\n      \\"lib/your-new-engine\\"\\n    ]\\n  },\\n"],[13],[13],[1,"\\n"],[10,"h3"],[14,1,"important-notes"],[12],[1,"Important Notes:"],[13],[1,"\\n"],[10,"ul"],[12],[1,"\\n"],[10,"li"],[12],[1,"Anytime a new engine is created, you will need to "],[10,"code"],[12],[1,"yarn install"],[13],[1," and "],[10,"strong"],[12],[1,"RESTART"],[13],[1," ember server!"],[13],[1,"\\n"],[10,"li"],[12],[1,"To add "],[10,"code"],[12],[1,"package.json"],[13],[1," "],[10,"strong"],[12],[1,"dependencies"],[13],[1," or "],[10,"strong"],[12],[1,"devDependencies"],[13],[1,", you can copy + paste the dependency into corresponding sections. Most of the time, we will want to use \\"*\\" in place of the version number to ensure all the dependencies have the latest version."],[13],[1,"\\n"],[13],[1,"\\n"],[10,"h3"],[14,1,"common-blueprint-commands"],[12],[1,"Common blueprint commands:"],[13],[1,"\\n"],[10,"ul"],[12],[1,"\\n"],[10,"li"],[12],[10,"strong"],[12],[1,"Generating In-repo engines routes:"],[13],[1," "],[10,"code"],[12],[1,"ember generate route <route-name> --in-repo <in-repo-name>"],[13],[1," - "],[10,"em"],[12],[1,"generates tests and route files and templates"],[13],[13],[1,"\\n"],[10,"li"],[12],[10,"strong"],[12],[1,"Remove In-repo engines routes:"],[13],[1," "],[10,"code"],[12],[1,"ember destroy route <route-name> --in-repo <in-repo-name>"],[13],[1," - "],[10,"em"],[12],[1,"removes tests and route files and templates"],[13],[13],[1,"\\n"],[10,"li"],[12],[10,"strong"],[12],[1,"Generating In-repo engines components:"],[13],[1," "],[10,"code"],[12],[1,"ember generate component <component-name> --in-repo <in-repo-name>"],[13],[1,"- "],[10,"em"],[12],[1,"generates tests and component files and templates"],[13],[13],[1,"\\n"],[10,"li"],[12],[10,"strong"],[12],[1,"Remove In-repo engines components:"],[13],[1," "],[10,"code"],[12],[1,"ember destroy component <component-name> --in-repo <in-repo-name>"],[13],[1,"- "],[10,"em"],[12],[1,"removes tests and component files and templates"],[13],[13],[1,"\\n"],[13]],[],false,[]]',moduleName:"vault/templates/docs/ember-engines.hbs",isStrictMode:!1})})),define("vault/templates/docs/fetch-secrets-engine-config",["exports","@ember/template-factory"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default=(0,t.createTemplateFactory)({id:"3k79o8nt",block:'[[[10,"h1"],[14,1,"fetch-secrets-engine-configuration-decorator"],[12],[1,"Fetch Secrets Engine Configuration Decorator"],[13],[1,"\\n"],[10,2],[12],[1,"The "],[10,"code"],[12],[1,"fetch-secrets-engine-config"],[13],[1," decorator is available in the core addon and can be used on a route that needs to be aware of the configuration details of a secrets engine prior to model hook execution. This is useful for conditionally displaying a call to action for the user to complete the configuration."],[13],[1,"\\n"],[10,"h2"],[14,1,"api"],[12],[1,"API"],[13],[1,"\\n"],[10,2],[12],[1,"The decorator accepts a single argument with the name of the Ember Data model to be fetched."],[13],[1,"\\n"],[10,"ul"],[12],[1,"\\n"],[10,"li"],[12],[10,"strong"],[12],[1,"modelName"],[13],[1," [string] - name of the Ember Data model to fetch which is passed to the "],[10,"code"],[12],[1,"queryRecord"],[13],[1," method."],[13],[1,"\\n"],[13],[1,"\\n"],[10,2],[12],[1,"With the provided model name, the decorator fetches the record using the store "],[10,"code"],[12],[1,"queryRecord"],[13],[1," method in the "],[10,"code"],[12],[1,"beforeModel"],[13],[1," route hook. Several properties are set on the route class based on the status of the request:"],[13],[1,"\\n"],[10,"ul"],[12],[1,"\\n"],[10,"li"],[12],[1,"\\n"],[10,2],[12],[10,"strong"],[12],[1,"configModel"],[13],[1," [Model | null] - set on success with resolved Ember Data model."],[13],[1,"\\n"],[13],[1,"\\n"],[10,"li"],[12],[1,"\\n"],[10,2],[12],[10,"strong"],[12],[1,"configError"],[13],[1," [AdapterError | null] - set if the request errors with any status other than 404."],[13],[1,"\\n"],[13],[1,"\\n"],[10,"li"],[12],[1,"\\n"],[10,2],[12],[10,"strong"],[12],[1,"promptConfig"],[13],[1," [boolean] - set to "],[10,"code"],[12],[1,"true"],[13],[1," if the request returns a 404, otherwise set to "],[10,"code"],[12],[1,"false"],[13],[1,". This is for convenience since checking for "],[10,"code"],[12],[1,"(!this.configModel && !this.configError)"],[13],[1," would result in the same value."],[13],[1,"\\n"],[13],[1,"\\n"],[13],[1,"\\n"],[10,"h2"],[14,1,"usage"],[12],[1,"Usage"],[13],[1,"\\n"],[10,"h3"],[14,1,"configure-route"],[12],[1,"Configure route"],[13],[1,"\\n"],[10,"pre"],[12],[10,"code"],[14,0,"language-js"],[12],[1,"@withConfig(\'foo/config\')\\nexport default class FooConfigureRoute extends Route {\\n  @service store;\\n  @service secretMountPath;\\n\\n  model() {\\n    const backend = this.secretMountPath.currentPath;\\n    return this.configModel || this.store.createRecord(\'foo/config\', { backend });\\n  }\\n}\\n"],[13],[13],[1,"\\n"],[10,2],[12],[1,"In the scenario of creating/updating the configuration, the model is used to populate the form if available, otherwise the form is presented in an empty state. Fetch errors are not a concern, nor is prompting the user to configure so only the "],[10,"code"],[12],[1,"configModel"],[13],[1," property is used."],[13],[1,"\\n"],[10,"h3"],[14,1,"configuration-route"],[12],[1,"Configuration route"],[13],[1,"\\n"],[10,"pre"],[12],[10,"code"],[14,0,"language-js"],[12],[1,"@withConfig(\'foo/config\')\\nexport default class FooConfigurationRoute extends Route {\\n  @service store;\\n  @service secretMountPath;\\n\\n  model() {\\n    // the error could also be thrown to display the error template\\n    // in this example a component is used to display the error\\n    return {\\n      configModel: this.configModel,\\n      configError: this.configError,\\n    };\\n  }\\n}\\n"],[13],[13],[1,"\\n"],[10,2],[12],[1,"For configuration routes, the model and error properties may be used to determine what should be displayed to the user:"],[13],[1,"\\n"],[10,2],[12],[10,"code"],[12],[1,"configuration.hbs"],[13],[13],[1,"\\n"],[10,"pre"],[12],[10,"code"],[14,0,"language-hbs"],[12],[1,"{{#if @configModel}}\\n  "],[1,"{{#each @configModel.fields as |field|}}\\n    <InfoTableRow @label="],[1,"{{field.label}} @value="],[1,"{{field.value}} />\\n  "],[1,"{{/each}}\\n"],[1,"{{else if @configError}}\\n  <Page::Error @error="],[1,"{{@configError}} />\\n"],[1,"{{else}}\\n  <ConfigCta />\\n"],[1,"{{/if}}\\n"],[13],[13],[1,"\\n"],[10,"h3"],[14,1,"other-routes-overview-etc"],[12],[1,"Other routes (overview etc.)"],[13],[1,"\\n"],[10,2],[12],[1,"This is the most basic usage where a route only needs to be aware of whether or not to show the config prompt:"],[13],[1,"\\n"],[10,"pre"],[12],[10,"code"],[14,0,"language-js"],[12],[1,"@withConfig(\'foo/config\')\\nexport default class FooOverviewRoute extends Route {\\n  @service store;\\n  @service secretMountPath;\\n\\n  model() {\\n    const backend = this.secretMountPath.currentPath;\\n    return hash({\\n      promptConfig: this.promptConfig,\\n      roles: this.store.query(\'foo/role\', { backend }).catch(() => []),\\n      libraries: this.store.query(\'foo/library\', { backend }).catch(() => []),\\n    });\\n  }\\n}\\n"],[13],[13]],[],false,[]]',moduleName:"vault/templates/docs/fetch-secrets-engine-config.hbs",isStrictMode:!1})})),define("vault/templates/docs/forms",["exports","@ember/template-factory"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default=(0,t.createTemplateFactory)({id:"hDx3saUP",block:'[[[10,"h1"],[14,1,"forms"],[12],[1,"Forms"],[13],[1,"\\n"],[3," START doctoc generated TOC please keep comment here to allow auto update "],[1,"\\n"],[3," DON\'T EDIT THIS SECTION, INSTEAD RE-RUN doctoc TO UPDATE "],[1,"\\n"],[10,"ul"],[12],[1,"\\n"],[10,"li"],[12],[10,3],[14,6,"#guidelines"],[12],[1,"Guidelines"],[13],[13],[1,"\\n"],[13],[1,"\\n"],[3," END doctoc generated TOC please keep comment here to allow auto update "],[1,"\\n"],[10,"h2"],[14,1,"guidelines"],[12],[1,"Guidelines"],[13],[1,"\\n"],[10,"ul"],[12],[1,"\\n"],[10,"li"],[12],[1,"Render "],[10,"code"],[12],[1,"FlashMessage"],[13],[1," on success"],[13],[1,"\\n"],[10,"li"],[12],[1,"Handling errors/validation messages:\\n"],[10,"ul"],[12],[1,"\\n"],[10,"li"],[12],[1,"Render API errors using a "],[10,"code"],[12],[1,"<MessageError>"],[13],[1," or "],[10,"code"],[12],[1,"Hds::Alert"],[13],[1," at the top of forms"],[13],[1,"\\n"],[10,"li"],[12],[1,"Display validation error messages "],[10,"code"],[12],[1,"onsubmit"],[13],[1," (not "],[10,"code"],[12],[1,"onchange"],[13],[1," for inputs)"],[13],[1,"\\n"],[10,"li"],[12],[1,"Render an "],[10,"code"],[12],[1,"<AlertInline>"],[13],[1," "],[10,3],[14,6,"../lib/pki/addon/components/pki-role-generate.hbs"],[12],[1,"beside"],[13],[1," form buttons, especially if the error banner is hidden from view (long forms). Message options:\\n"],[10,"ul"],[12],[1,"\\n"],[10,"li"],[12],[1,"The "],[10,"code"],[12],[1,"invalidFormMessage"],[13],[1," from a model\'s "],[10,"code"],[12],[1,"validate()"],[13],[1," method that includes an error count"],[13],[1,"\\n"],[10,"li"],[12],[1,"Generic message for API errors or forms without model validations: \'There was an error submitting this form.\'"],[13],[1,"\\n"],[13],[1,"\\n"],[13],[1,"\\n"],[10,"li"],[12],[1,"Add "],[10,"code"],[12],[1,"has-error-border"],[13],[1," class to invalid inputs"],[13],[1,"\\n"],[13],[1,"\\n"],[13],[1,"\\n"],[13]],[],false,[]]',moduleName:"vault/templates/docs/forms.hbs",isStrictMode:!1})})),define("vault/templates/docs/how-to-docfy",["exports","@ember/template-factory"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default=(0,t.createTemplateFactory)({id:"OavkClu5",block:'[[[10,"h1"],[14,1,"how-to-docfy"],[12],[1,"How to docfy"],[13],[1,"\\n"],[10,2],[12],[10,3],[14,6,"http://localhost:4200/ui/docs"],[12],[1,"http://localhost:4200/ui/docs"],[13],[1," (navigate to directly or click the present icon in the bottom right of the app footer)."],[13],[1,"\\n"],[10,"h2"],[14,1,"docs-markdown-files"],[12],[10,"code"],[12],[1,"docs/"],[13],[1," markdown files"],[13],[1,"\\n"],[10,2],[12],[1,"Side nav links correspond to the file + directory structure within the "],[10,"code"],[12],[1,"docs/"],[13],[1," directory. These top-level markdown files "],[10,"strong"],[12],[1,"can"],[13],[1," be edited directly and any updates should be saved and pushed to main. (Component docs are generated by the "],[10,"code"],[12],[1,"yarn docs"],[13],[1," command, see below.)"],[13],[1,"\\n"],[10,"h2"],[14,1,"generating-component-docs"],[12],[1,"generating component docs"],[13],[1,"\\n"],[10,2],[12],[1,"The "],[10,"code"],[12],[1,"docs/components"],[13],[1," directory is where "],[10,"em"],[12],[1,"generated"],[13],[1," component markdown files are located after running "],[10,"code"],[12],[1,"yarn docs"],[13],[1,". "],[10,"strong"],[12],[1,"Do not edit component markdown files directly"],[13],[1,". Instead, update markdown by making changes to the "],[10,"code"],[12],[1,"jsdoc"],[13],[1," and then re-running the generate command. The "],[10,"code"],[12],[1,"docs/components/*"],[13],[1," files are included in "],[10,"code"],[12],[1,".gitignore"],[13],[1," so they are not pushed to main. "],[10,"code"],[12],[1,"jsdoc-to-markdown"],[13],[1," errors log in the console."],[13],[1,"\\n"],[10,"blockquote"],[12],[1,"\\n"],[10,2],[12],[10,"em"],[12],[1,"If you have never run the "],[10,"code"],[12],[1,"yarn docs"],[13],[1," command before, you need to create the "],[10,"code"],[12],[1,"docs/components"],[13],[1," directory locally before running "],[10,"code"],[12],[1,"yarn docfy-md"],[13],[1," so the markdown has a place to go. "],[10,"code"],[12],[1,"mkdir docs/components"],[13],[13],[13],[1,"\\n"],[13],[1,"\\n"],[10,"pre"],[12],[10,"code"],[12],[1,"yarn docfy-md <component name> <addon or engine> <full filepath>\\n"],[13],[13],[1,"\\n"],[10,"blockquote"],[12],[1,"\\n"],[10,2],[12],[10,"em"],[12],[1,"Note: the above command takes three args, if passing the full filepath for a component then the second arg is unnecessary"],[13],[13],[1,"\\n"],[13],[1,"\\n"],[10,"table"],[12],[1,"\\n"],[10,"thead"],[12],[1,"\\n"],[10,"tr"],[12],[1,"\\n"],[10,"th"],[12],[1,"Command"],[13],[1,"\\n"],[10,"th"],[12],[1,"Description"],[13],[1,"\\n"],[13],[1,"\\n"],[13],[1,"\\n"],[10,"tbody"],[12],[1,"\\n"],[10,"tr"],[12],[1,"\\n"],[10,"td"],[12],[10,"code"],[12],[1,"yarn docs"],[13],[13],[1,"\\n"],[10,"td"],[12],[1,"generate markdown file for every* component in the "],[10,"code"],[12],[1,"addon/core"],[13],[1," directory"],[13],[1,"\\n"],[13],[1,"\\n"],[10,"tr"],[12],[1,"\\n"],[10,"td"],[12],[10,"code"],[12],[1,"yarn docfy-md some-component-name"],[13],[13],[1,"\\n"],[10,"td"],[12],[1,"generate markdown file for "],[10,"strong"],[12],[1,"specific"],[13],[1," component"],[13],[1,"\\n"],[13],[1,"\\n"],[10,"tr"],[12],[1,"\\n"],[10,"td"],[12],[10,"code"],[12],[1,"yarn docfy-md read-more core"],[13],[13],[1,"\\n"],[10,"td"],[12],[1,"generate markdown for "],[10,"code"],[12],[1,"read-more"],[13],[1," component in the "],[10,"code"],[12],[1,"core"],[13],[1," addon"],[13],[1,"\\n"],[13],[1,"\\n"],[10,"tr"],[12],[1,"\\n"],[10,"td"],[12],[10,"code"],[12],[1,"yarn docfy-md pki-test null ./lib/pki/addon/components/pki-key-usage.ts"],[13],[13],[1,"\\n"],[10,"td"],[12],[1,"optional third arg is the full component filepath (first arg will become markdown file name)"],[13],[1,"\\n"],[13],[1,"\\n"],[10,"tr"],[12],[1,"\\n"],[10,"td"],[12],[10,"code"],[12],[1,"mkdir docs/components"],[13],[13],[1,"\\n"],[10,"td"],[12],[1,"create directory where the generated component markdown files will go"],[13],[1,"\\n"],[13],[1,"\\n"],[10,"tr"],[12],[1,"\\n"],[10,"td"],[12],[10,"code"],[12],[1,"rm -f ./docs/components/*"],[13],[13],[1,"\\n"],[10,"td"],[12],[1,"cleanup and delete generated component markdown files"],[13],[1,"\\n"],[13],[1,"\\n"],[13],[1,"\\n"],[13],[1,"\\n"],[10,"blockquote"],[12],[1,"\\n"],[10,2],[12],[10,"em"],[12],[1,"*replication and "],[10,"code"],[12],[1,"shamir/*"],[13],[1," components are skipped as these are not reused and should eventually be moved outside the "],[10,"code"],[12],[1,"addon/core"],[13],[1," directory"],[13],[13],[1,"\\n"],[13],[1,"\\n"],[10,"h2"],[14,1,"writing-documentation-for-a-component"],[12],[1,"Writing documentation for a component"],[13],[1,"\\n"],[10,2],[12],[1,"Component docs are generated by the script "],[10,"code"],[12],[1,"yarn docs"],[13],[1,". Accurate "],[10,"code"],[12],[1,"jsdoc"],[13],[1," syntax is important so "],[10,"code"],[12],[1,"jsdoc-to-markdown"],[13],[1," properly generates the markdown file for that component. "],[10,"strong"],[12],[1,"Do not edit component markdown files directly"],[13],[1,"."],[13],[1,"\\n"],[10,"table"],[12],[1,"\\n"],[10,"thead"],[12],[1,"\\n"],[10,"tr"],[12],[1,"\\n"],[10,"th"],[12],[1,"jsdoc examples"],[13],[1,"\\n"],[10,"th"],[12],[13],[1,"\\n"],[10,"th"],[12],[13],[1,"\\n"],[13],[1,"\\n"],[13],[1,"\\n"],[10,"tbody"],[12],[1,"\\n"],[10,"tr"],[12],[1,"\\n"],[10,"td"],[12],[1,"form-field ("],[10,"code"],[12],[1,"@description"],[13],[1," example)"],[13],[1,"\\n"],[10,"td"],[12],[10,3],[14,6,"https://github.com/hashicorp/vault/blob/main/ui/lib/core/addon/components/form-field.js"],[12],[1,"github "],[13],[13],[1,"\\n"],[10,"td"],[12],[10,3],[14,6,"../lib/core/addon/components/form-field.js"],[12],[1,"vscode "],[13],[13],[1,"\\n"],[13],[1,"\\n"],[10,"tr"],[12],[1,"\\n"],[10,"td"],[12],[1,"confirmation-modal"],[13],[1,"\\n"],[10,"td"],[12],[10,3],[14,6,"https://github.com/hashicorp/vault/blob/main/ui/lib/core/addon/components/confirmation-modal.js"],[12],[1,"github "],[13],[13],[1,"\\n"],[10,"td"],[12],[10,3],[14,6,"../lib/core/addon/components/confirmation-modal.js"],[12],[1,"vscode "],[13],[13],[1,"\\n"],[13],[1,"\\n"],[10,"tr"],[12],[1,"\\n"],[10,"td"],[12],[1,"certificate-card"],[13],[1,"\\n"],[10,"td"],[12],[10,3],[14,6,"https://github.com/hashicorp/vault/blob/main/ui/lib/core/addon/components/certificate-card.js"],[12],[1,"github "],[13],[13],[1,"\\n"],[10,"td"],[12],[10,3],[14,6,"../lib/core/addon/components/certificate-card.js"],[12],[1,"vscode "],[13],[13],[1,"\\n"],[13],[1,"\\n"],[10,"tr"],[12],[1,"\\n"],[10,"td"],[12],[1,"alert-inline ("],[10,"code"],[12],[1,"@deprecated"],[13],[1," example)"],[13],[1,"\\n"],[10,"td"],[12],[10,3],[14,6,"https://github.com/hashicorp/vault/blob/main/ui/lib/core/addon/components/alert-inline.js"],[12],[1,"github"],[13],[13],[1,"\\n"],[10,"td"],[12],[10,3],[14,6,"../lib/core/addon/components/alert-inline.js"],[12],[1,"vscode "],[13],[13],[1,"\\n"],[13],[1,"\\n"],[10,"tr"],[12],[1,"\\n"],[10,"td"],[12],[1,"secret-list-header (code snippet only*)"],[13],[1,"\\n"],[10,"td"],[12],[10,3],[14,6,"https://github.com/hashicorp/vault/blob/main/ui/lib/core/addon/components/secret-list-header.js"],[12],[1,"github"],[13],[13],[1,"\\n"],[10,"td"],[12],[10,3],[14,6,"../lib/core/addon/components/secret-list-header.js"],[12],[1,"vscode "],[13],[13],[1,"\\n"],[13],[1,"\\n"],[13],[1,"\\n"],[13],[1,"\\n"],[10,"blockquote"],[12],[1,"\\n"],[10,2],[12],[10,"em"],[12],[1,"*renders a template code snippet and not instantiated component because it relies on too many args that cannot be set up for component instance"],[13],[13],[1,"\\n"],[13],[1,"\\n"],[10,"h3"],[14,1,"syntax-tips"],[12],[1,"Syntax tips"],[13],[1,"\\n"],[10,2],[12],[1,"Docfy renders an actual instance of the component beneath "],[10,"code"],[12],[1,"@example"],[13],[1," as a sample. Make sure the component uses proper hbs syntax and all args are on a single line."],[13],[1,"\\n"],[10,"blockquote"],[12],[1,"\\n"],[10,"ul"],[12],[1,"\\n"],[10,"li"],[12],[1,"Check the generated markdown file for syntax errors or typos. To update the markdown, first edit the jsdoc then re-run the generator. "],[10,"em"],[12],[1,"Do not edit component markdown files directly"],[13],[13],[1,"\\n"],[10,"li"],[12],[1,"Param types: "],[10,"code"],[12],[1,"object"],[13],[1,", "],[10,"code"],[12],[1,"string"],[13],[1,", "],[10,"code"],[12],[1,"function"],[13],[1,", "],[10,"code"],[12],[1,"array"],[13],[13],[1,"\\n"],[10,"li"],[12],[1,"Do not include "],[10,"code"],[12],[1,"null"],[13],[1," for empty default values"],[13],[1,"\\n"],[10,"li"],[12],[1,"Wrap optional params in brackets "],[10,"code"],[12],[1,"[]"],[13],[13],[1,"\\n"],[10,"li"],[12],[1,"To include a codeblock in your module\'s description use "],[10,"code"],[12],[1,"@description"],[13],[13],[1,"\\n"],[13],[1,"\\n"],[13],[1,"\\n"],[10,"pre"],[12],[10,"code"],[12],[1,"❌ multi-line jsdoc will not render a component example\\n* @example\\n* <Block\\n*  @title=\\"Example\\"\\n*  @description=\\"My component\\"\\n* />\\n"],[13],[13],[1,"\\n"],[10,"pre"],[12],[10,"code"],[12],[1,"✅ this will render\\n* @example\\n* <Block @title=\\"Example\\" description=\\"My component\\" />\\n"],[13],[13],[1,"\\n"],[10,2],[12],[10,"strong"],[12],[1,"Template"],[13],[13],[1,"\\n"],[10,"pre"],[12],[10,"code"],[12],[1,"/**\\n * @module ComponentName\\n * @description\\n * Description of the component\\n *\\n * @example\\n * <ComponentName @param="],[1,"{{}} optionalParam="],[1,"{{}} />\\n *\\n * @param {object} paramName - description\\n * @param {array} requiredParam=foo - foo is the default value here\\n * @param {function} [optionalParamName] - An optional parameter is wrapped in brackets\\n * @param {string} [param=\\"some default value\\"] - An optional parameter with a default value\\n */\\n"],[13],[13],[1,"\\n"],[10,"blockquote"],[12],[1,"\\n"],[10,"h3"],[14,1,"config"],[12],[1,"Config"],[13],[1,"\\n"],[10,"ul"],[12],[1,"\\n"],[10,"li"],[12],[10,3],[14,6,"../scripts/docfy-md.js"],[12],[1,"docfy-md.js"],[13],[1,": script that generates component markdown and passes options to "],[10,"code"],[12],[1,"jsdoc2md"],[13],[1," command"],[13],[1,"\\n"],[10,"li"],[12],[10,3],[14,6,"../scripts/docfy-md.js"],[12],[1,"generate-docs.sh"],[13],[1,": batch command that iterates over desired javascript and typescript file in the "],[10,"code"],[12],[1,"core"],[13],[1," addon engine"],[13],[1,"\\n"],[10,"li"],[12],[10,3],[14,6,"../jsdoc2md.json"],[12],[1,"jsdoc2md.json"],[13],[1,": "],[10,"code"],[12],[1,"jsdoc-to-markdown"],[13],[1," config file, necessary so typescript files can be passed to "],[10,"code"],[12],[1,"docfy-md"],[13],[1," script"],[13],[1,"\\n"],[13],[1,"\\n"],[13],[1,"\\n"],[10,"h3"],[14,1,"more-info"],[12],[1,"More info"],[13],[1,"\\n"],[10,"ul"],[12],[1,"\\n"],[10,"li"],[12],[8,[39,0],null,[["@to"],["/docs/building-components"]],[["default"],[[[[1,"Building and consuming components"]],[]]]]],[13],[1,"\\n"],[13]],[],false,["docfy-link"]]',moduleName:"vault/templates/docs/how-to-docfy.hbs",isStrictMode:!1})})),define("vault/templates/docs/index",["exports","@ember/template-factory"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default=(0,t.createTemplateFactory)({id:"13fLUgJE",block:'[[[10,"h1"],[14,1,"welcome-to-our-docs"],[12],[1,"Welcome to our docs!"],[13],[1,"\\n"],[10,2],[12],[1,"These views are generated by files in the "],[10,"code"],[12],[1,"docs/"],[13],[1," directory."],[13],[1,"\\n"],[10,"hr"],[12],[13],[1,"\\n"],[10,"ul"],[12],[1,"\\n"],[10,"li"],[12],[8,[39,0],null,[["@to"],["/docs/how-to-docfy"]],[["default"],[[[[1,"How to docfy"]],[]]]]],[13],[1,"\\n"],[10,"li"],[12],[8,[39,0],null,[["@to"],["/docs/client-pagination"]],[["default"],[[[[1,"Client pagination"]],[]]]]],[13],[1,"\\n"],[10,"li"],[12],[8,[39,0],null,[["@to"],["/docs/building-components"]],[["default"],[[[[1,"Building and consuming components"]],[]]]]],[13],[1,"\\n"],[10,"li"],[12],[8,[39,0],null,[["@to"],["/docs/css"]],[["default"],[[[[1,"CSS styling"]],[]]]]],[13],[1,"\\n"],[10,"li"],[12],[8,[39,0],null,[["@to"],["/docs/ember-engines"]],[["default"],[[[[1,"Ember Engines"]],[]]]]],[13],[1,"\\n"],[10,"li"],[12],[8,[39,0],null,[["@to"],["/docs/fetch-secrets-engine-config"]],[["default"],[[[[1,"Fetch secrets engine config decorator"]],[]]]]],[13],[1,"\\n"],[10,"li"],[12],[8,[39,0],null,[["@to"],["/docs/forms"]],[["default"],[[[[1,"Forms"]],[]]]]],[13],[1,"\\n"],[10,"li"],[12],[8,[39,0],null,[["@to"],["/docs/model-validations"]],[["default"],[[[[1,"Model validations"]],[]]]]],[13],[1,"\\n"],[10,"li"],[12],[8,[39,0],null,[["@to"],["/docs/models"]],[["default"],[[[[1,"Models"]],[]]]]],[13],[1,"\\n"],[10,"li"],[12],[8,[39,0],null,[["@to"],["/docs/routing"]],[["default"],[[[[1,"Routing"]],[]]]]],[13],[1,"\\n"],[10,"li"],[12],[8,[39,0],null,[["@to"],["/docs/serializers-adapters"]],[["default"],[[[[1,"Serializers and Adapters"]],[]]]]],[13],[1,"\\n"],[13]],[],false,["docfy-link"]]',moduleName:"vault/templates/docs/index.hbs",isStrictMode:!1})})),define("vault/templates/docs/model-validations",["exports","@ember/template-factory"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default=(0,t.createTemplateFactory)({id:"KbLK9E5g",block:'[[[10,"h1"],[14,1,"model-validations-decorator"],[12],[1,"Model Validations Decorator"],[13],[1,"\\n"],[10,2],[12],[1,"The model-validations decorator provides a method on a model class which may be used for validating properties based on a provided rule set."],[13],[1,"\\n"],[10,"h2"],[14,1,"api"],[12],[1,"API"],[13],[1,"\\n"],[10,2],[12],[1,"The decorator expects a validations object as the only argument with the following shape:"],[13],[1,"\\n"],[10,"pre"],[12],[10,"code"],[14,0,"language-js"],[12],[1,"const validations = {\\n  [propertyKeyName]: [\\n    { type, options, message, level, validator }\\n  ]\\n};\\n"],[13],[13],[1,"\\n"],[10,2],[12],[10,"strong"],[12],[1,"propertyKeyName"],[13],[1," [string] - each key in the validations object should refer to the property on the class to apply the validation to."],[13],[1,"\\n"],[10,2],[12],[10,"strong"],[12],[1,"type"],[13],[1," [string] - the type of validation to apply. These must be exported from the "],[10,3],[14,6,"../app/utils/validators.js"],[12],[1,"validators util"],[13],[1," for lookup. Type is required if a "],[10,"em"],[12],[1,"validator"],[13],[1," function is not provided."],[13],[1,"\\n"],[10,2],[12],[10,"strong"],[12],[1,"options"],[13],[1," [object] - an optional object for the given validator -- min, max, nullable etc."],[13],[1,"\\n"],[10,2],[12],[10,"strong"],[12],[1,"message"],[13],[1," [string | function] - string added to the errors array and returned in the state object from the validate method if validation fails. A function may also be provided with the model as the lone argument that returns a string. Since this value is typically displayed to the user it should be a complete sentence with proper punctuation."],[13],[1,"\\n"],[10,2],[12],[10,"strong"],[12],[1,"level"],[13],[1," [string] "],[10,"em"],[12],[1,"optional"],[13],[1," - string that defaults to \'error\'. Currently the only other accepted value is \'warn\'."],[13],[1,"\\n"],[10,2],[12],[10,"strong"],[12],[1,"validator"],[13],[1," [function] "],[10,"em"],[12],[1,"optional"],[13],[1," - a function that may be used in place of type that is invoked in the validate method. This is useful when specific validations are needed which may be dependent on other class properties.\\nThis function takes the class context (this) as the only argument and returns true or false."],[13],[1,"\\n"],[10,"h2"],[14,1,"usage"],[12],[1,"Usage"],[13],[1,"\\n"],[10,2],[12],[1,"Each property defined in the validations object supports multiple validations provided as an array. For example, "],[10,"em"],[12],[1,"presence"],[13],[1," and "],[10,"em"],[12],[1,"containsWhiteSpace"],[13],[1," can both be added as validations for a string property."],[13],[1,"\\n"],[10,"pre"],[12],[10,"code"],[14,0,"language-js"],[12],[1,"const validations = {\\n  name: [\\n    { type: \'presence\', message: \'Name is required.\' },\\n    {\\n      type: \'containsWhiteSpace\',\\n      message: \'Name cannot contain whitespace.\',\\n    },\\n  ],\\n};\\n"],[13],[13],[1,"\\n"],[10,2],[12],[1,"Decorate the model class and pass the validations object as the argument"],[13],[1,"\\n"],[10,"pre"],[12],[10,"code"],[14,0,"language-js"],[12],[1,"import Model, { attr } from \'@ember-data/model\';\\nimport withModelValidations from \'vault/decorators/model-validations\';\\n\\nconst validations = {\\n  name: [\\n    { type: \'presence\', message: \'Name is required.\' },\\n  ],\\n};\\n\\n@withModelValidations(validations)\\nclass SomeModel extends Model {\\n  @attr name;\\n}\\n"],[13],[13],[1,"\\n"],[10,2],[12],[1,"Validations must be invoked using the validate method which is added directly to the decorated class."],[13],[1,"\\n"],[10,"pre"],[12],[10,"code"],[14,0,"language-js"],[12],[1,"const model = await this.store.findRecord(\'some-model\', id);\\nconst { isValid, state, invalidFormMessage } = model.validate();\\n\\nif (isValid) {\\n  await model.save();\\n} else {\\n  this.formError = invalidFormMessage;\\n  this.errors = state;\\n}\\n"],[13],[13],[1,"\\n"],[10,2],[12],[10,"strong"],[12],[1,"isValid"],[13],[1," [boolean] - the validity of the full class. If no properties provided in the validations object are invalid this will be true."],[13],[1,"\\n"],[10,2],[12],[10,"strong"],[12],[1,"state"],[13],[1," [object] - the error state of the properties defined in the validations object. This object is keyed by the property names from the validations object and each property contains an "],[10,"em"],[12],[1,"isValid"],[13],[1," and "],[10,"em"],[12],[1,"errors"],[13],[1," value. The "],[10,"em"],[12],[1,"errors"],[13],[1," array will be populated with messages defined in the validations object when validations fail. Since a property can have multiple validations, errors is always returned as an array."],[13],[1,"\\n"],[10,2],[12],[10,"strong"],[12],[1,"invalidFormMessage"],[13],[1," [string] - message describing the number of errors currently present on the model class."],[13],[1,"\\n"],[10,"pre"],[12],[10,"code"],[14,0,"language-js"],[12],[1,"const { state } = model.validate();\\nconst { isValid, errors } = state[propertyKeyName];\\nif (!isValid) {\\n  this.flashMessages.danger(errors.join(\'. \'));\\n}\\n"],[13],[13],[1,"\\n"],[10,"h2"],[14,1,"examples"],[12],[1,"Examples"],[13],[1,"\\n"],[10,"h3"],[14,1,"basic"],[12],[1,"Basic"],[13],[1,"\\n"],[10,"pre"],[12],[10,"code"],[14,0,"language-js"],[12],[1,"const validations = {\\n  foo: [\\n    { type: \'presence\', message: \'foo is a required field.\' }\\n  ],\\n};\\n\\n@withModelValidations(validations)\\nclass SomeModel extends Model { foo = null; }\\n\\nconst model = new SomeModel();\\nconst { isValid, state } = model.validate();\\n\\nconsole.log(isValid); // false\\nconsole.log(state.foo.isValid); // false\\nconsole.log(state.foo.errors); // [\'foo is a required field\']\\n"],[13],[13],[1,"\\n"],[10,"h3"],[14,1,"custom-validator"],[12],[1,"Custom validator"],[13],[1,"\\n"],[10,"pre"],[12],[10,"code"],[14,0,"language-js"],[12],[1,"const validations = {\\n  foo: [{\\n    validator: (model) => model.bar.includes(\'test\') ? model.foo : false,\\n    message: \'foo is required if bar includes test.\'\\n  }],\\n};\\n\\n@withModelValidations(validations)\\nclass SomeModel extends Model {\\n  foo = false;\\n  bar = [\'foo\', \'baz\'];\\n}\\n\\nconst model = new SomeModel();\\nconst { isValid, state } = model.validate();\\n\\nconsole.log(isValid); // false\\nconsole.log(state.foo.isValid); // false\\nconsole.log(state.foo.errors); // [\'foo is required if bar includes test.\']\\n\\nmodel.foo = true;\\nmodel.bar.push(\'test\');\\n\\nconsole.log(isValid); // true\\nconsole.log(state.foo.isValid); // true\\nconsole.log(state.foo.errors); // []\\n"],[13],[13],[1,"\\n"],[10,"h3"],[14,1,"adding-class-in-template-based-on-validation-state"],[12],[1,"Adding class in template based on validation state"],[13],[1,"\\n"],[10,2],[12],[1,"All form validation errors must have a red border around them. Add this by adding a conditional class "],[10,"em"],[12],[1,"has-error-border"],[13],[1," to the element."],[13],[1,"\\n"],[10,"pre"],[12],[10,"code"],[14,0,"language-js"],[12],[1,"@action\\nasync save() {\\n  const { isValid, state } = this.model.validate();\\n\\n  if (isValid) {\\n    await this.model.save();\\n  } else {\\n    this.isNameInvalid = !state.name.isValid;\\n  }\\n}\\n"],[13],[13],[1,"\\n"],[10,"pre"],[12],[10,"code"],[14,0,"language-hbs"],[12],[1," <input class=\\"input field "],[1,"{{if this.isNameInvalid \'has-error-border\'}}\\" />\\n"],[13],[13]],[],false,[]]',moduleName:"vault/templates/docs/model-validations.hbs",isStrictMode:!1})})),define("vault/templates/docs/models",["exports","@ember/template-factory"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default=(0,t.createTemplateFactory)({id:"uAHDR4zB",block:'[[[10,"h1"],[14,1,"models"],[12],[1,"Models"],[13],[1,"\\n"],[3," START doctoc generated TOC please keep comment here to allow auto update "],[1,"\\n"],[3," DON\'T EDIT THIS SECTION, INSTEAD RE-RUN doctoc TO UPDATE "],[1,"\\n"],[10,"ul"],[12],[1,"\\n"],[10,"li"],[12],[10,3],[14,6,"#models"],[12],[1,"Models"],[13],[1,"\\n"],[10,"ul"],[12],[1,"\\n"],[10,"li"],[12],[10,3],[14,6,"#capabilities"],[12],[1,"Capabilities"],[13],[13],[1,"\\n"],[10,"li"],[12],[10,3],[14,6,"#decorators"],[12],[1,"Decorators"],[13],[1,"\\n"],[10,"ul"],[12],[1,"\\n"],[10,"li"],[12],[10,3],[14,6,"#withformfields"],[12],[1,"@withFormFields()"],[13],[13],[1,"\\n"],[10,"li"],[12],[10,3],[14,6,"#withmodelvalidations"],[12],[1,"@withModelValidations()"],[13],[13],[1,"\\n"],[13],[1,"\\n"],[13],[1,"\\n"],[13],[1,"\\n"],[13],[1,"\\n"],[13],[1,"\\n"],[3," END doctoc generated TOC please keep comment here to allow auto update "],[1,"\\n"],[10,"h2"],[14,1,"capabilities"],[12],[1,"Capabilities"],[13],[1,"\\n"],[10,"ul"],[12],[1,"\\n"],[10,"li"],[12],[1,"The API will prevent users from performing disallowed actions, adding capabilities is purely to improve UX"],[13],[1,"\\n"],[10,"li"],[12],[1,"Always test the capability works as expected (never assume the API path 🙂), the extra string interpolation can lead to sneaky typos and incorrect returns from the getters"],[13],[1,"\\n"],[13],[1,"\\n"],[10,"pre"],[12],[10,"code"],[14,0,"language-js"],[12],[1,"import lazyCapabilities, { apiPath } from \'vault/macros/lazy-capabilities\';\\n\\nexport default class FooModel extends Model {\\n  @attr backend;\\n  @attr(\'string\') fooId;\\n\\n  // use string interpolation for dynamic parts of API path\\n  // the first arg is the apiPath, and the rest are the model attribute paths for those values\\n  @lazyCapabilities(apiPath`${\'backend\'}/foo/${\'fooId\'}`, \'backend\', \'fooId\') fooPath;\\n\\n  // explicitly check for false because default behavior is showing the thing (i.e. the capability hasn\'t loaded yet and is undefined)\\n  get canRead() {\\n    return this.fooPath.get(\'canRead\') !== false;\\n  }\\n  get canEdit() {\\n    return this.fooPath.get(\'canUpdate\') !== false;\\n  }\\n}\\n"],[13],[13],[1,"\\n"],[10,"h2"],[14,1,"decorators"],[12],[1,"Decorators"],[13],[1,"\\n"],[10,"h3"],[14,1,"withformfields"],[12],[10,3],[14,6,"../app/decorators/model-form-fields.js"],[12],[1,"@withFormFields()"],[13],[13],[1,"\\n"],[10,"ul"],[12],[1,"\\n"],[10,"li"],[12],[1,"Sets "],[10,"code"],[12],[1,"allFields"],[13],[1,", "],[10,"code"],[12],[1,"formFields"],[13],[1," and/or "],[10,"code"],[12],[1,"formFieldGroups"],[13],[1," properties on a model class"],[13],[1,"\\n"],[10,"li"],[12],[10,"code"],[12],[1,"allFields"],[13],[1," includes every model attribute (regardless of args passed to decorator)"],[13],[1,"\\n"],[10,"li"],[12],[10,"code"],[12],[1,"formFields"],[13],[1," and "],[10,"code"],[12],[1,"formFieldGroups"],[13],[1," only exist if the relevant arg is passed to the decorator"],[13],[1,"\\n"],[13],[1,"\\n"],[10,"pre"],[12],[10,"code"],[14,0,"language-js"],[12],[1,"import { withFormFields } from \'vault/decorators/model-form-fields\';\\n\\nconst formFieldAttrs = [\'attrName\', \'anotherAttr\'];\\nconst formGroupObjects = [\\n  // In form-field-groups.hbs form toggle group names are determined by key names\\n  // \'default\' attribute fields render before any toggle groups\\n  //  additional attribute fields render inside toggle groups\\n  { default: [\'someAttribute\'] },\\n  { \'Additional options\': [\'anotherAttr\'] },\\n];\\n\\n@withFormFields(formFieldAttrs, formGroupObjects)\\nexport default class SomeModel extends Model {\\n  @attr(\'string\', { ...options }) someAttribute;\\n  @attr(\'boolean\', { ...options }) anotherAttr;\\n}\\n"],[13],[13],[1,"\\n"],[10,"ul"],[12],[1,"\\n"],[10,"li"],[12],[1,"Each model attribute expands into the following object:"],[13],[1,"\\n"],[13],[1,"\\n"],[10,"pre"],[12],[10,"code"],[14,0,"language-js"],[12],[1,"{\\n  name: \'someAttribute\',\\n  type: \'string\',\\n  options: { ...options },\\n}\\n"],[13],[13],[1,"\\n"],[10,"pre"],[12],[10,"code"],[14,0,"language-js"],[12],[1,"// only includes attributes passed to the first argument\\nmodel.formFields = [\\n  {\\n    name: \'someAttribute\',\\n    type: \'string\',\\n    options: { ...options },\\n  },\\n];\\n\\n// expanded attributes are grouped by key\\nmodel.formFieldGroups = [\\n  {\\n    default: [\\n      {\\n        name: \'someAttribute\',\\n        type: \'string\',\\n        options: { ...options },\\n      },\\n    ],\\n  },\\n  {\\n    \'Additional options\': [\\n      {\\n        name: \'anotherAttr\',\\n        type: \'boolean\',\\n        options: { ...options },\\n      },\\n    ],\\n  },\\n];\\n"],[13],[13],[1,"\\n"],[10,"h3"],[14,1,"withmodelvalidations"],[12],[10,3],[14,6,"../app/decorators/model-validations.js"],[12],[1,"@withModelValidations()"],[13],[13],[1,"\\n"],[10,"ul"],[12],[1,"\\n"],[10,"li"],[12],[1,"Adds "],[10,"code"],[12],[1,"validate()"],[13],[1," method on model to check attributes are valid before making an API request"],[13],[1,"\\n"],[10,"li"],[12],[1,"Option to write a custom validation, or use validation method from the "],[10,3],[14,6,"../app/utils/validators.js"],[12],[1,"validators util"],[13],[1," which is referenced by the "],[10,"code"],[12],[1,"type"],[13],[1," key"],[13],[1,"\\n"],[10,"li"],[12],[1,"Option to add "],[10,"code"],[12],[1,"level: \'warn\'"],[13],[1," to draw user attention to the input, without preventing form submission"],[13],[1,"\\n"],[10,"li"],[12],[1,"Component example "],[10,3],[14,6,"../lib/pki/addon/components/pki-generate-root.ts"],[12],[1,"here"],[13],[13],[1,"\\n"],[13],[1,"\\n"],[10,"pre"],[12],[10,"code"],[14,0,"language-js"],[12],[1,"import { withModelValidations } from \'vault/decorators/model-validations\';\\n\\nconst validations = {\\n  // object key is the model\'s attribute name\\n  password: [{ type: \'presence\', message: \'Password is required\' }],\\n  keyName: [\\n    {\\n      validator(model) {\\n        return model.keyName === \'default\' ? false : true;\\n      },\\n      message: `Key name cannot be the reserved value \'default\'`,\\n    },\\n  ],\\n};\\n\\n@withModelValidations(validations)\\nexport default class FooModel extends Model {}\\n\\n// calling validate() returns an object:\\nmodel.validate() = {\\n  isValid: false,\\n  state: {\\n    password: {\\n      errors: [\'Password is required.\'],\\n      warnings: [],\\n      isValid: false,\\n    },\\n    keyName: {\\n      errors: [\\"Key name cannot be the reserved value \'default\'\\"],\\n      warnings: [],\\n      isValid: true,\\n    },\\n  },\\n  invalidFormMessage: \'There are 2 errors with this form.\',\\n};\\n"],[13],[13]],[],false,[]]',moduleName:"vault/templates/docs/models.hbs",isStrictMode:!1})})),define("vault/templates/docs/routing",["exports","@ember/template-factory"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default=(0,t.createTemplateFactory)({id:"9MOapdPK",block:'[[[10,"h1"],[14,1,"routing"],[12],[1,"Routing"],[13],[1,"\\n"],[3," START doctoc generated TOC please keep comment here to allow auto update "],[1,"\\n"],[3," DON\'T EDIT THIS SECTION, INSTEAD RE-RUN doctoc TO UPDATE "],[1,"\\n"],[10,"ul"],[12],[1,"\\n"],[10,"li"],[12],[10,3],[14,6,"#guidelines"],[12],[1,"Guidelines"],[13],[13],[1,"\\n"],[10,"li"],[12],[10,3],[14,6,"#file-structure"],[12],[1,"File structure"],[13],[13],[1,"\\n"],[10,"li"],[12],[10,3],[14,6,"#shared-functionality"],[12],[1,"Shared functionality"],[13],[13],[1,"\\n"],[10,"li"],[12],[10,3],[14,6,"#decorators"],[12],[1,"Decorators"],[13],[1,"\\n"],[10,"ul"],[12],[1,"\\n"],[10,"li"],[12],[10,3],[14,6,"#withconfirmleave"],[12],[1,"@withConfirmLeave()"],[13],[13],[1,"\\n"],[13],[1,"\\n"],[13],[1,"\\n"],[13],[1,"\\n"],[3," END doctoc generated TOC please keep comment here to allow auto update "],[1,"\\n"],[10,"h2"],[14,1,"guidelines"],[12],[1,"Guidelines"],[13],[1,"\\n"],[10,"ul"],[12],[1,"\\n"],[10,"li"],[12],[1,"Parent route typically serves to group related child resources"],[13],[1,"\\n"],[10,"li"],[12],[1,"Parent index route typically displays empty state placeholder with call to action or redirects to default child resource"],[13],[1,"\\n"],[10,"li"],[12],[1,"Child resource names are pluralized"],[13],[1,"\\n"],[10,"li"],[12],[1,"Child index route represents list view."],[13],[1,"\\n"],[10,"li"],[12],[1,"Child singularized name + /details is the read view."],[13],[1,"\\n"],[10,"li"],[12],[10,"em"],[12],[1,"Avoid"],[13],[1," extending routes. This can lead to unnecessary inheritance which gets messy quickly. For "],[10,3],[14,6,"#shared-functionality"],[12],[1,"shared functionality"],[13],[1,", consider a decorator."],[13],[1,"\\n"],[13],[1,"\\n"],[10,"h2"],[14,1,"file-structure"],[12],[1,"File structure"],[13],[1,"\\n"],[10,2],[12],[1,"The file structure can be leveraged to simplify CRUD actions and passing data. The singular resource route should live at the same level as its folder, this automatically passes its model to any route nested within the folder.\\nBelow, "],[10,"code"],[12],[1,"details.js"],[13],[1," and "],[10,"code"],[12],[1,"edit.js"],[13],[1," will automatically receive the model returned by the model hook in "],[10,"code"],[12],[1,"resource-foo.js"],[13],[1,". Alternately, if defining a custom model hook in those routes, we can use methods like "],[10,"code"],[12],[1,"this.modelFor"],[13],[1," instead of re-querying records."],[13],[1,"\\n"],[10,"pre"],[12],[10,"code"],[12],[1,"├── routes/vault/cluster/access\\n│   ├── parent/\\n│   │   ├── index.js\\n│   │   ├── resource-foos /\\n│   │   │   ├── resource-foo.js\\n│   │   │   ├── create.js\\n│   │   │   ├── index.js\\n│   │   │   ├── resource-foo/\\n│   │   │   │   ├── details.js\\n│   │   │   │   ├── edit.js\\n"],[13],[13],[1,"\\n"],[10,"blockquote"],[12],[1,"\\n"],[10,2],[12],[1,"For example, "],[10,3],[14,6,"../app/routes/vault/cluster/access/oidc/"],[12],[1,"OIDC"],[13],[1," route structure "],[10,3],[14,6,"https://github.com/hashicorp/vault/pull/16028"],[12],[10,"em"],[12],[1,"original PR"],[13],[13],[1,":"],[13],[1,"\\n"],[13],[1,"\\n"],[10,"pre"],[12],[10,"code"],[12],[1,"├── routes/vault/cluster/access\\n│   ├── oidc/\\n│   │   ├── index.js\\n│   │   ├── clients/\\n│   │   │   ├── client.js\\n│   │   │   ├── create.js\\n│   │   │   ├── index.js\\n│   │   │   ├── client/\\n│   │   │   │   ├── details.js\\n│   │   │   │   ├── edit.js\\n│   │   │   │   ├── providers.js <- utilizes the modelFor method to get id about parent\'s clientId\\n"],[13],[13],[1,"\\n"],[10,"h2"],[14,1,"shared-functionality"],[12],[1,"Shared functionality"],[13],[1,"\\n"],[10,2],[12],[1,"To guide users, we sometimes have a call to action that depends on a resource\'s state. For example, if a secret engine hasn\'t been configured routing to the first step to do so, and otherwise navigating to its overview page."],[13],[1,"\\n"],[10,2],[12],[1,"Instead of extending route classes to share this "],[10,"code"],[12],[1,"isConfigured"],[13],[1," state, consider a decorator! "],[10,3],[14,6,"../../ui/lib/kubernetes/addon/decorators/fetch-config.js"],[12],[1,"withConfig()"],[13],[1," is a great example."],[13],[1,"\\n"],[10,"h2"],[14,1,"decorators"],[12],[1,"Decorators"],[13],[1,"\\n"],[10,"h3"],[14,1,"withconfirmleave"],[12],[10,3],[14,6,"../lib/core/addon/decorators/confirm-leave.js"],[12],[1,"@withConfirmLeave()"],[13],[13],[1,"\\n"],[10,"ul"],[12],[1,"\\n"],[10,"li"],[12],[1,"Renders "],[10,"code"],[12],[1,"window.confirm()"],[13],[1," alert that a user has unsaved changes if navigaing away from route with the decorator"],[13],[1,"\\n"],[10,"li"],[12],[1,"Unloads or rolls back Ember data model record"],[13],[1,"\\n"],[13],[1,"\\n"],[3," TODO add withConfig() if we refactor for more general use "],[1,"\\n"],[3," ### [withConfig()](../../ui/lib/kubernetes/addon/decorators/fetch-config.js)\\n\\nWe sometimes have a call to action guiding users that depends on a resource\'s state. For example, if a secret engine hasn\'t been configured the UI renders an empty state linking to the first configuration step. Otherwise, it routes to the overview page of that engine.\\n\\nSample use:\\n\\n```js\\nimport { withConfig } from \'../decorators/fetch-config\';\\n@withConfig()\\nexport default class SomeRouter extends Route {\\n  model() {\\n    // in case of any error other than 404 we want to display that to the user\\n    if (this.configError) {\\n      throw this.configError;\\n    }\\n    return {\\n      config: this.configModel, // configuration data to determine UI state\\n    };\\n  }\\n}\\n``` "]],[],false,[]]',moduleName:"vault/templates/docs/routing.hbs",isStrictMode:!1})}))
define("vault/templates/docs/serializers-adapters",["exports","@ember/template-factory"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default=(0,t.createTemplateFactory)({id:"LA1p8Y54",block:'[[[10,"h1"],[14,1,"serializers--adapters"],[12],[1,"Serializers & Adapters"],[13],[1,"\\n"],[3," START doctoc generated TOC please keep comment here to allow auto update "],[1,"\\n"],[3," DON\'T EDIT THIS SECTION, INSTEAD RE-RUN doctoc TO UPDATE "],[1,"\\n"],[10,"ul"],[12],[1,"\\n"],[10,"li"],[12],[10,3],[14,6,"#guidelines"],[12],[1,"Guidelines"],[13],[13],[1,"\\n"],[10,"li"],[12],[10,3],[14,6,"#gotchas"],[12],[1,"Gotchas"],[13],[13],[1,"\\n"],[13],[1,"\\n"],[3," END doctoc generated TOC please keep comment here to allow auto update "],[1,"\\n"],[10,"h2"],[14,1,"guidelines"],[12],[1,"Guidelines"],[13],[1,"\\n"],[10,"ul"],[12],[1,"\\n"],[10,"li"],[12],[1,"Prepend internal functions with an underscore to differentiate from Ember methods "],[10,"code"],[12],[1,"_getUrl"],[13],[13],[1,"\\n"],[10,"li"],[12],[1,"Consider using the "],[10,3],[14,6,"../app/adapters/named-path.js"],[12],[1,"named-path"],[13],[1," adapter if the model name is part of the request path"],[13],[1,"\\n"],[10,"li"],[12],[1,"Utilize the serializer to remove sending model attributes that do not correspond to an API parameter. Example in "],[10,3],[14,6,"../app/serializers/pki/key.js"],[12],[1,"key serializer"],[13],[13],[1,"\\n"],[13],[1,"\\n"],[10,"pre"],[12],[10,"code"],[14,0,"language-js"],[12],[1,"export default class SomeSerializer extends ApplicationSerializer {\\n  attrs = {\\n    attrName: { serialize: false },\\n  };\\n}\\n"],[13],[13],[1,"\\n"],[10,"blockquote"],[12],[1,"\\n"],[10,2],[12],[1,"Note: this will remove the attribute when calling "],[10,"code"],[12],[1,"snapshot.serialize()"],[13],[1," even if the method is called within the serialize method where custom logic may be written"],[13],[1,"\\n"],[13],[1,"\\n"],[10,"h2"],[14,1,"gotchas"],[12],[1,"Gotchas"],[13],[1,"\\n"],[10,"ul"],[12],[1,"\\n"],[10,"li"],[12],[1,"The JSON serializer removes attributes with empty arrays "],[10,3],[14,6,"https://github.com/hashicorp/vault/blob/e55c18ed1299e0d36b88e603fa9f12adaf8e75dc/ui/app/serializers/mfa-login-enforcement.js#L37-L44"],[12],[1,"Example in MFA serializer"],[13],[13],[1,"\\n"],[13]],[],false,[]]',moduleName:"vault/templates/docs/serializers-adapters.hbs",isStrictMode:!1})})),define("vault/templates/docs/tests",["exports","@ember/template-factory"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default=(0,t.createTemplateFactory)({id:"xuLXmRdA",block:'[[[10,"h1"],[14,1,"test-helpers-organization"],[12],[1,"Test Helpers Organization"],[13],[1,"\\n"],[10,2],[12],[1,"Our test are constantly evolving, but here\'s a general overview of how we set up and organize tests."],[13],[1,"\\n"],[10,"h2"],[14,1,"folder-organization"],[12],[1,"Folder organization"],[13],[1,"\\n"],[10,"h3"],[14,1,"acceptance"],[12],[1,"/acceptance"],[13],[1,"\\n"],[10,2],[12],[1,"Acceptance tests should test the overall workflows and navigation within Vault. When possible, they should use the real API instead of mocked so that breaking changes from the backend can be caught. Reasons you may opt to use a mocked backend instead of the real one:"],[13],[1,"\\n"],[10,"ul"],[12],[1,"\\n"],[10,"li"],[12],[1,"Using the real backend would cause instability in concurrently-running tests (eg. seal/unseal flow)"],[13],[1,"\\n"],[10,"li"],[12],[1,"There isn\'t a way to set up a 3rd party dependency that the backend needs to run correctly (Database Secrets Engine, Sync Secrets)"],[13],[1,"\\n"],[13],[1,"\\n"],[10,"h3"],[14,1,"helpers"],[12],[1,"/helpers"],[13],[1,"\\n"],[10,2],[12],[1,"Shared helpers such as selectors, common interactions, WebREPL commands, and API response stubs live in this folder. When selectors are only used for a single test, they should be defined on the same file where they are used for the test. Once the selectors are being used for multiple tests, they should be moved to this folder so they can be defined in a single place and shared to wherever they are needed."],[13],[1,"\\n"],[10,2],[12],[1,"Often we will need a set of selectors for \\"workflow\\" tests, or acceptance tests that navigate through an area of the app. For these, the helpers should be organized as such:"],[13],[1,"\\n"],[10,"ul"],[12],[1,"\\n"],[10,"li"],[12],[10,"code"],[12],[1,"/helpers/<area>/<area>-selectors.ts"],[13],[1," - exports selector consts (never default) for each page -- eg. for PKI we would have PKI_OVERVIEW, PKI_ROLE, etc."],[13],[1,"\\n"],[10,"li"],[12],[10,"code"],[12],[1,"/helpers/<area>/<area>-helpers.js"],[13],[1," - exports methods and consts which are otherwise helpful in the tests -- eg. example API responses, common interactions (eg. writeVersionedSecret for KV v2)"],[13],[1,"\\n"],[13],[1,"\\n"],[10,2],[12],[1,"Whenever possible we should try to use the general selectors exported from "],[10,"code"],[12],[1,"/helpers/general-selectors.ts"],[13],[1,"."],[13],[1,"\\n"],[10,"h3"],[14,1,"integration"],[12],[1,"integration"],[13],[1,"\\n"],[10,2],[12],[1,"Integration tests are most often used to test specific components out of context from the rest of the app. Be sure to mock anything that the component needs to work correctly -- for example, if the component has a certain behavior in enterprise than community edition, in your tests for each scenario it should not assume that the underlying Vault binary is in one state or the other, and mock the enterprise/community state in all the scenarios. The exports in "],[10,"code"],[12],[1,"helpers/stubs.js"],[13],[1," might be helpful for these tests, particularly when the component uses a model which fetches capabilities."],[13],[1,"\\n"],[10,"h3"],[14,1,"pages"],[12],[1,"pages"],[13],[1,"\\n"],[10,2],[12],[1,"[DEPRECATED] This file should be removed in favor of selectors within the \\"helpers\\" folder. We are moving away from ember-page-object selectors toward simple strings"],[13],[1,"\\n"],[10,"h3"],[14,1,"unit"],[12],[1,"unit"],[13],[1,"\\n"],[10,2],[12],[1,"Unit tests are most often used to test utils, adapters, serializers, routes, and services functionality."],[13]],[],false,[]]',moduleName:"vault/templates/docs/tests.hbs",isStrictMode:!1})})),define("vault/templates/error",["exports","@ember/template-factory"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default=(0,t.createTemplateFactory)({id:"+PPduXVj",block:'[[[10,0],[14,0,"is-flex-grow-1 is-flex-v-centered"],[12],[1,"\\n  "],[10,0],[14,0,"empty-state-content"],[12],[1,"\\n    "],[10,0],[14,0,"is-flex-v-centered has-bottom-margin-xxl"],[12],[1,"\\n      "],[10,0],[14,0,"brand-icon-large"],[12],[1,"\\n        "],[8,[39,0],null,[["@name","@size","@stretched"],["vault","24",true]],null],[1,"\\n      "],[13],[1,"\\n    "],[13],[1,"\\n    "],[10,0],[14,0,"is-flex-center"],[12],[1,"\\n      "],[10,0],[14,0,"error-icon"],[12],[1,"\\n        "],[8,[39,0],[[24,0,"has-text-grey"]],[["@name","@size","@stretched"],["help","24",true]],null],[1,"\\n      "],[13],[1,"\\n      "],[10,0],[14,0,"has-left-margin-s"],[12],[1,"\\n        "],[10,"h1"],[14,0,"is-size-4 has-text-semibold has-text-grey has-line-height-1"],[12],[1,"\\n"],[41,[28,[37,2],[[30,0,["model","httpStatus"]],403],null],[[[1,"            Not authorized\\n"]],[]],[[[41,[28,[37,2],[[30,0,["model","httpStatus"]],404],null],[[[1,"            Page not found\\n"]],[]],[[[1,"            Error\\n          "]],[]]]],[]]],[1,"        "],[13],[1,"\\n        "],[10,2],[14,0,"has-text-grey is-size-8"],[12],[1,"Error "],[1,[30,0,["model","httpStatus"]]],[13],[1,"\\n      "],[13],[1,"\\n    "],[13],[1,"\\n\\n    "],[10,2],[14,0,"has-text-grey has-top-margin-m has-bottom-padding-l has-border-bottom-light"],[12],[1,"\\n      "],[1,[30,0,["model","message"]]],[1,"\\n      "],[1,[28,[35,3],[". ",[30,0,["model","errors"]]],null]],[1,"\\n    "],[13],[1,"\\n\\n    "],[10,0],[14,0,"is-flex-between has-top-margin-s"],[12],[1,"\\n      "],[8,[39,4],[[24,0,"is-flex-center has-text-semibold"]],[["@href","@sameTab"],["/",true]],[["default"],[[[[1,"\\n        "],[8,[39,5],null,[["@direction"],["left"]],null],[1,"\\n        Go home\\n      "]],[]]]]],[1,"\\n      "],[8,[39,6],null,[["@path"],["/vault/api-docs#http-status-codes"]],[["default"],[[[[1,"\\n        Learn more\\n      "]],[]]]]],[1,"\\n    "],[13],[1,"\\n  "],[13],[1,"\\n"],[13]],[],false,["icon","if","eq","join","external-link","chevron","doc-link"]]',moduleName:"vault/templates/error.hbs",isStrictMode:!1})})),define("vault/templates/loading",["exports","@ember/template-factory"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default=(0,t.createTemplateFactory)({id:"KLNe6lHH",block:'[[[41,[30,0,["isCallback"]],[[[1,"  "],[8,[39,1],null,null,null],[1,"\\n"]],[]],[[[1,"  "],[8,[39,2],null,null,null],[1,"\\n"]],[]]]],[],false,["if","oidc-callback-splash","logo-splash"]]',moduleName:"vault/templates/loading.hbs",isStrictMode:!1})})),define("vault/templates/vault",["exports","@ember/template-factory"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default=(0,t.createTemplateFactory)({id:"ahJju4hJ",block:'[[[46,[28,[37,1],null,null],null,null,null],[1,"\\n\\n"],[8,[39,2],null,null,null]],[],false,["component","-outlet","app-footer"]]',moduleName:"vault/templates/vault.hbs",isStrictMode:!1})})),define("vault/templates/vault/cluster",["exports","@ember/template-factory"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default=(0,t.createTemplateFactory)({id:"u4tDjSB6",block:'[[[8,[39,0],null,null,null],[1,"\\n"],[41,[30,0,["vaultVersion","isEnterprise"]],[[[42,[28,[37,3],[[28,[37,3],[[30,0,["customMessages","bannerMessages"]]],null]],null],null,[[[41,[28,[37,4],[[30,0,["customMessages","bannerState"]],[30,1,["id"]]],null],[[[1,"      "],[8,[39,5],null,[["@type","@color","@onDismiss"],["inline","highlight",[28,[37,6],[[30,0,["customMessages","onBannerDismiss"]],[30,1,["id"]]],null]]],[["default"],[[[[1,"\\n        "],[8,[30,2,["Title"]],null,null,[["default"],[[[[1,[30,1,["title"]]]],[]]]]],[1,"\\n"],[42,[28,[37,3],[[28,[37,3],[[28,[37,7],[[30,1,["message"]]],null]],null]],null],null,[[[1,"          "],[8,[30,2,["Description"]],null,null,[["default"],[[[[1,"\\n            "],[1,[30,3]],[1,"\\n          "]],[]]]]],[1,"\\n"]],[3]],null],[41,[51,[28,[37,9],[[30,1,["link"]]],null]],[[[42,[28,[37,10],[[30,1,["link"]]],null],null,[[[1,"            "],[8,[30,2,["LinkStandalone"]],null,[["@color","@icon","@isHrefExternal","@iconPosition","@text","@href"],["secondary","external-link",true,"trailing",[30,5],[30,4]]],null],[1,"\\n"]],[4,5]],null]],[]],null],[1,"      "]],[2]]]]],[1,"\\n"]],[]],null]],[1]],null],[42,[28,[37,3],[[28,[37,3],[[30,0,["customMessages","modalMessages"]]],null]],null],null,[[[1,"    "],[8,[39,11],[[16,1,[30,6,["id"]]]],[["@size","@color"],["large","warning"]],[["default"],[[[[1,"\\n      "],[8,[30,7,["Header"]],null,null,[["default"],[[[[1,"\\n        "],[1,[30,6,["title"]]],[1,"\\n      "]],[]]]]],[1,"\\n      "],[8,[30,7,["Body"]],null,null,[["default"],[[[[1,"\\n"],[42,[28,[37,3],[[28,[37,3],[[28,[37,7],[[30,6,["message"]]],null]],null]],null],null,[[[41,[28,[37,12],[[30,8],""],null],[[[1,"            "],[10,"br"],[12],[13],[1,"\\n"]],[]],[[[1,"            "],[10,0],[12],[1,"\\n              "],[1,[30,8]],[1,"\\n            "],[13],[1,"\\n"]],[]]]],[8]],null],[41,[51,[28,[37,9],[[30,6,["link"]]],null]],[[[42,[28,[37,10],[[30,6,["link"]]],null],null,[[[1,"            "],[8,[39,13],null,[["@icon","@isHrefExternal","@href"],["external-link",true,[30,9]]],[["default"],[[[[1,[30,10]]],[]]]]],[1,"\\n"]],[9,10]],null]],[]],null],[1,"      "]],[]]]]],[1,"\\n\\n      "],[8,[30,7,["Footer"]],null,null,[["default"],[[[[1,"\\n        "],[8,[39,14],[[4,[38,15],["click",[30,11,["close"]]],null]],[["@text"],["Confirm"]],null],[1,"\\n      "]],[11]]]]],[1,"\\n    "]],[7]]]]],[1,"\\n"]],[6]],null]],[]],null],[10,0],[14,0,"cluster-banners-wrapper"],[12],[1,"\\n"],[41,[30,0,["activeCluster","version","isEnterprise"]],[[[1,"    "],[8,[39,16],null,[["@expiry","@autoloaded"],[[30,0,["activeCluster","licenseExpiry"]],[28,[37,12],[[30,0,["activeCluster","licenseState"]],"autoloaded"],null]]],null],[1,"\\n"]],[]],null],[13],[1,"\\n"],[10,0],[14,0,"global-flash"],[12],[1,"\\n"],[42,[28,[37,3],[[28,[37,3],[[30,0,["flashMessages","queue"]]],null]],null],null,[[[1,"    "],[8,[39,17],null,[["@flash"],[[30,12]]],[["default"],[[[[1,"\\n      "],[8,[39,18],null,[["@flash","@close"],[[30,14],[30,15]]],null],[1,"\\n    "]],[13,14,15]]]]],[1,"\\n"]],[12]],null],[13],[1,"\\n\\n"],[41,[30,0,["auth","isActiveSession"]],[[[1,"  "],[8,[39,19],null,[["@expirationDate","@allowingExpiration"],[[30,0,["auth","tokenExpirationDate"]],[30,0,["auth","allowExpiration"]]]],[["default"],[[[[1,"\\n"],[41,[30,0,["permissionBanner"]],[[[1,"      "],[10,0],[14,0,"has-top-margin-m"],[12],[1,"\\n        "],[8,[39,20],null,[["@isEnterprise","@failType"],[[30,0,["activeCluster","version","isEnterprise"]],[30,0,["permissionBanner"]]]],null],[1,"\\n      "],[13],[1,"\\n"]],[]],null],[1,"    "],[46,[28,[37,22],null,null],null,null,null],[1,"\\n  "]],[]]]]],[1,"\\n"]],[]],[[[1,"  "],[46,[28,[37,22],null,null],null,null,null],[1,"\\n"]],[]]]],["bannerMessage","A","msg","href","title","modalMessage","M","msg","href","title","F","flash","customComponent","flash","close"],false,["sidebar/nav/cluster","if","each","-track-array","get","hds/alert","fn","new-line-split","unless","is-empty-value","-each-in","hds/modal","eq","hds/link/inline","hds/button","on","license-banners","flash-message","flash-toast","token-expire-warning","resultant-acl-banner","component","-outlet"]]',moduleName:"vault/templates/vault/cluster.hbs",isStrictMode:!1})})),define("vault/templates/vault/cluster/access",["exports","@ember/template-factory"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default=(0,t.createTemplateFactory)({id:"GGh8c6fW",block:'[[[8,[39,0],null,null,null],[1,"\\n"],[46,[28,[37,2],null,null],null,null,null]],[],false,["sidebar/nav/access","component","-outlet"]]',moduleName:"vault/templates/vault/cluster/access.hbs",isStrictMode:!1})})),define("vault/templates/vault/cluster/access/control-group-accessor",["exports","@ember/template-factory"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default=(0,t.createTemplateFactory)({id:"WSEEtPLH",block:'[[[41,[28,[37,1],["Control Groups"],null],[[[1,"  "],[8,[39,2],null,null,[["default"],[[[[1,"\\n    "],[8,[30,1,["levelLeft"]],null,null,[["default"],[[[[1,"\\n      "],[10,"h1"],[14,0,"title is-3"],[12],[1,"\\n        Control Groups\\n      "],[13],[1,"\\n    "]],[]]]]],[1,"\\n  "]],[1]]]]],[1,"\\n"],[41,[30,0,["model","canConfigure"]],[[[1,"    "],[8,[39,3],null,null,[["default"],[[[[1,"\\n      "],[8,[39,4],null,null,[["default"],[[[[1,"\\n        "],[8,[39,5],null,[["@route"],["vault.cluster.access.control-groups-configure"]],[["default"],[[[[1,"\\n          Configure\\n        "]],[]]]]],[1,"\\n      "]],[]]]]],[1,"\\n    "]],[]]]]],[1,"\\n"]],[]],null],[1,"  "],[8,[39,6],null,[["@model"],[[30,0,["model"]]]],null],[1,"\\n"]],[]],[[[1,"  "],[8,[39,7],null,[["@title","@minimumEdition"],["Control Groups","Vault Enterprise Premium"]],null],[1,"\\n"]],[]]]],["p"],false,["if","has-feature","page-header","toolbar","toolbar-actions","toolbar-link","control-group","upgrade-page"]]',moduleName:"vault/templates/vault/cluster/access/control-group-accessor.hbs",isStrictMode:!1})})),define("vault/templates/vault/cluster/access/control-groups-configure",["exports","@ember/template-factory"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default=(0,t.createTemplateFactory)({id:"4Cdzr4J8",block:'[[[41,[28,[37,1],["Control Groups"],null],[[[1,"  "],[8,[39,2],null,null,[["default"],[[[[1,"\\n    "],[8,[30,1,["levelLeft"]],null,null,[["default"],[[[[1,"\\n      "],[10,"h1"],[14,0,"title is-3"],[12],[1,"\\n        Control Groups\\n      "],[13],[1,"\\n    "]],[]]]]],[1,"\\n  "]],[1]]]]],[1,"\\n  "],[8,[39,3],null,[["@model","@onSave"],[[30,0,["model"]],[28,[37,4],[[30,0],"onSave"],null]]],null],[1,"\\n"]],[]],[[[1,"  "],[8,[39,5],null,[["@title","@minimumEdition"],["Control Groups","Vault Enterprise Premium"]],null],[1,"\\n"]],[]]]],["p"],false,["if","has-feature","page-header","edit-form","action","upgrade-page"]]',moduleName:"vault/templates/vault/cluster/access/control-groups-configure.hbs",isStrictMode:!1})})),define("vault/templates/vault/cluster/access/control-groups",["exports","@ember/template-factory"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default=(0,t.createTemplateFactory)({id:"++Ec8jOv",block:'[[[41,[28,[37,1],["Control Groups"],null],[[[1,"  "],[8,[39,2],null,null,[["default"],[[[[1,"\\n    "],[8,[30,1,["levelLeft"]],null,null,[["default"],[[[[1,"\\n      "],[10,"h1"],[14,0,"title is-3"],[12],[1,"\\n        Control Groups\\n      "],[13],[1,"\\n    "]],[]]]]],[1,"\\n  "]],[1]]]]],[1,"\\n"],[41,[30,0,["model","canConfigure"]],[[[1,"    "],[8,[39,3],null,null,[["default"],[[[[1,"\\n      "],[8,[39,4],null,null,[["default"],[[[[1,"\\n        "],[8,[39,5],null,[["@route"],["vault.cluster.access.control-groups-configure"]],[["default"],[[[[1,"\\n          Configure\\n        "]],[]]]]],[1,"\\n      "]],[]]]]],[1,"\\n    "]],[]]]]],[1,"\\n"]],[]],null],[1,"  "],[11,"form"],[4,[38,6],[[30,0],[28,[37,7],["vault.cluster.access.control-group-accessor",[30,0,["model","id"]]],null]],[["on"],["submit"]]],[12],[1,"\\n    "],[10,0],[14,0,"box is-sideless is-fullwidth is-marginless"],[12],[1,"\\n      "],[10,2],[14,0,"has-text-grey is-size-8"],[12],[1,"\\n        Control Groups add additional authorization factors to be required before satisfying a request. If you have a Control\\n        Group accessor, provide it here to view the lookup the authorization progress.\\n      "],[13],[1,"\\n      "],[10,"label"],[14,"for","accessor"],[14,0,"is-label"],[12],[1,"\\n        Accessor\\n      "],[13],[1,"\\n      "],[10,0],[14,0,"control"],[12],[1,"\\n        "],[8,[39,8],[[24,0,"input"],[24,"autocomplete","off"],[24,"spellcheck","false"],[24,3,"accessor"]],[["@value"],[[30,0,["model","id"]]]],null],[1,"\\n      "],[13],[1,"\\n    "],[13],[1,"\\n    "],[10,0],[14,0,"field is-grouped box is-fullwidth is-bottomless"],[12],[1,"\\n      "],[8,[39,9],[[16,"disabled",[28,[37,10],[[30,0,["model","id"]]],null]],[24,4,"submit"]],[["@text"],["Lookup"]],null],[1,"\\n    "],[13],[1,"\\n  "],[13],[1,"\\n"]],[]],[[[1,"  "],[8,[39,11],null,[["@title","@minimumEdition"],["Control Groups","Vault Enterprise Premium"]],null],[1,"\\n"]],[]]]],["p"],false,["if","has-feature","page-header","toolbar","toolbar-actions","toolbar-link","action","nav-to-route","input","hds/button","not","upgrade-page"]]',moduleName:"vault/templates/vault/cluster/access/control-groups.hbs",isStrictMode:!1})})),define("vault/templates/vault/cluster/access/error",["exports","@ember/template-factory"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default=(0,t.createTemplateFactory)({id:"0s0FGlSZ",block:'[[[41,[28,[37,1],[[30,0,["model","httpStatus"]],404],null],[[[1,"  "],[8,[39,2],null,[["@model"],[[30,0,["model"]]]],null],[1,"\\n"]],[]],[[[1,"  "],[8,[39,3],null,null,[["default"],[[[[1,"\\n    "],[8,[30,1,["levelLeft"]],null,null,[["default"],[[[[1,"\\n      "],[10,"h1"],[14,0,"title is-3 has-text-grey"],[12],[1,"\\n"],[41,[28,[37,1],[[30,0,["model","httpStatus"]],403],null],[[[1,"          Not authorized\\n"]],[]],[[[1,"          Error\\n"]],[]]],[1,"      "],[13],[1,"\\n    "]],[]]]]],[1,"\\n  "]],[1]]]]],[1,"\\n  "],[10,0],[14,0,"box is-sideless has-background-white-bis has-text-grey has-text-centered"],[12],[1,"\\n"],[41,[30,0,["model","message"]],[[[1,"      "],[10,2],[12],[1,[30,0,["model","message"]]],[13],[1,"\\n"]],[]],null],[42,[28,[37,5],[[28,[37,5],[[30,0,["model","errors"]]],null]],null],null,[[[1,"      "],[10,2],[12],[1,[30,2]],[13],[1,"\\n"]],[2]],null],[1,"  "],[13],[1,"\\n"]],[]]]],["p","error"],false,["if","eq","not-found","page-header","each","-track-array"]]',moduleName:"vault/templates/vault/cluster/access/error.hbs",isStrictMode:!1})})),define("vault/templates/vault/cluster/access/identity/aliases/add",["exports","@ember/template-factory"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default=(0,t.createTemplateFactory)({id:"Hb+RIQNx",block:'[[[8,[39,0],null,null,[["default"],[[[[1,"\\n  "],[8,[30,1,["levelLeft"]],null,null,[["default"],[[[[1,"\\n    "],[10,"h1"],[14,0,"title is-3"],[12],[1,"\\n      Create\\n      "],[1,[28,[35,1],[[28,[37,2],[[30,0,["model","identityType"]]],null]],null]],[1,"\\n      for\\n      "],[1,[30,0,["model","canonicalId"]]],[1,"\\n    "],[13],[1,"\\n  "]],[]]]]],[1,"\\n"]],[1]]]]],[1,"\\n\\n"],[8,[39,3],null,[["@model","@onSave"],[[30,0,["model"]],[28,[37,4],[[30,0],"navAfterSave"],null]]],null]],["p"],false,["page-header","titleize","humanize","identity/edit-form","action"]]',moduleName:"vault/templates/vault/cluster/access/identity/aliases/add.hbs",isStrictMode:!1})})),define("vault/templates/vault/cluster/access/identity/aliases/edit",["exports","@ember/template-factory"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default=(0,t.createTemplateFactory)({id:"UnES0YUQ",block:'[[[8,[39,0],null,null,[["default"],[[[[1,"\\n  "],[8,[30,1,["levelLeft"]],null,null,[["default"],[[[[1,"\\n    "],[10,"h1"],[14,0,"title is-3"],[12],[1,"\\n      Edit\\n      "],[1,[30,0,["model","name"]]],[1,"\\n    "],[13],[1,"\\n  "]],[]]]]],[1,"\\n"]],[1]]]]],[1,"\\n\\n"],[8,[39,1],null,[["@mode","@model","@onSave"],["edit",[30,0,["model"]],[28,[37,2],[[30,0],"navAfterSave"],null]]],null]],["p"],false,["page-header","identity/edit-form","action"]]',moduleName:"vault/templates/vault/cluster/access/identity/aliases/edit.hbs",isStrictMode:!1})})),define("vault/templates/vault/cluster/access/identity/aliases/index",["exports","@ember/template-factory"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default=(0,t.createTemplateFactory)({id:"SWSjsoWv",block:'[[[8,[39,0],null,[["@identityType","@model"],[[30,0,["identityType"]],[30,0,["model"]]]],null],[1,"\\n"],[41,[30,0,["model","meta","total"]],[[[42,[28,[37,3],[[28,[37,3],[[30,0,["model"]]],null]],null],null,[[[1,"    "],[8,[39,4],[[24,0,"list-item-row"]],[["@params"],[[28,[37,5],["vault.cluster.access.identity.aliases.show",[30,1,["id"]],"details"],null]]],[["default"],[[[[1,"\\n      "],[10,0],[14,0,"columns is-mobile"],[12],[1,"\\n        "],[10,0],[14,0,"column is-10"],[12],[1,"\\n          "],[8,[39,6],[[24,0,"is-block has-text-black has-text-weight-semibold"]],[["@route","@models"],["vault.cluster.access.identity.aliases.show",[28,[37,5],[[30,1,["id"]],"details"],null]]],[["default"],[[[[1,"\\n            "],[8,[39,7],[[24,0,"has-text-grey-light"]],[["@name"],["user"]],null],[1,"\\n            "],[10,1],[14,0,"has-text-weight-semibold"],[12],[1,[30,1,["name"]]],[13],[1,"\\n          "]],[]]]]],[1,"\\n          "],[10,0],[14,0,"has-text-grey"],[12],[1,"\\n            "],[1,[30,1,["id"]]],[1,"\\n          "],[13],[1,"\\n          "],[10,1],[14,0,"tag"],[12],[1,[30,1,["mountType"]]],[13],[1,"\\n          "],[10,1],[14,0,"has-text-grey is-size-8"],[12],[1,"\\n            "],[1,[30,1,["mountAccessor"]]],[1,"\\n          "],[13],[1,"\\n        "],[13],[1,"\\n        "],[10,0],[14,0,"column has-text-right"],[12],[1,"\\n          "],[8,[39,8],null,[["@item","@onSuccess"],[[30,1],[28,[37,9],[[30,0],"onDelete"],null]]],null],[1,"\\n        "],[13],[1,"\\n      "],[13],[1,"\\n    "]],[]]]]],[1,"\\n"]],[1]],null],[1,"\\n  "],[8,[39,10],null,[["@currentPage","@currentPageSize","@route","@showSizeSelector","@totalItems","@queryFunction"],[[30,0,["model","meta","currentPage"]],[30,0,["model","meta","pageSize"]],"vault.cluster.access.identity.aliases.index",false,[30,0,["model","meta","total"]],[30,0,["paginationQueryParams"]]]],null],[1,"\\n\\n"]],[]],[[[1,"  "],[8,[39,11],null,[["@title","@message"],[[29,["No ",[30,0,["identityType"]]," aliases yet"]],[29,["A list of ",[30,0,["identityType"]]," aliases in this namespace will be listed here. Choose one of the ",[28,[37,12],[[30,0,["identityType"]]],null]," and click \\"Add alias\\" to get started."]]]],[["default"],[[[[1,"\\n    "],[8,[39,13],null,[["@text","@href","@icon","@iconPosition"],["Identity: entities and groups tutorial",[28,[37,14],["/vault/tutorials/auth-methods/identity"],null],"learn-link","trailing"]],null],[1,"\\n  "]],[]]]]],[1,"\\n"]],[]]]],["item"],false,["identity/entity-nav","if","each","-track-array","linked-block","array","link-to","icon","identity/popup-alias","action","hds/pagination/numbered","empty-state","pluralize","hds/link/standalone","doc-link"]]',moduleName:"vault/templates/vault/cluster/access/identity/aliases/index.hbs",isStrictMode:!1})})),define("vault/templates/vault/cluster/access/identity/aliases/show",["exports","@ember/template-factory"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default=(0,t.createTemplateFactory)({id:"z4/kxzBd",block:'[[[8,[39,0],null,null,[["default"],[[[[1,"\\n  "],[8,[30,1,["top"]],null,null,[["default"],[[[[1,"\\n    "],[8,[39,1],null,null,[["default"],[[[[1,"\\n      "],[8,[39,2],null,[["@text","@route"],[[28,[37,3],[[28,[37,4],[[28,[37,5],[[30,0,["model","identityType"]]],null]],null]],null],"vault.cluster.access.identity.aliases"]],null],[1,"\\n      "],[8,[39,2],null,[["@text","@current"],[[30,0,["model","name"]],true]],null],[1,"\\n    "]],[]]]]],[1,"\\n  "]],[]]]]],[1,"\\n  "],[8,[30,1,["levelLeft"]],null,null,[["default"],[[[[1,"\\n    "],[10,"h1"],[14,0,"title is-3"],[12],[1,"\\n      "],[1,[30,0,["model","name"]]],[1,"\\n    "],[13],[1,"\\n  "]],[]]]]],[1,"\\n"]],[1]]]]],[1,"\\n"],[10,0],[14,0,"tabs-container box is-sideless is-fullwidth is-paddingless is-marginless"],[12],[1,"\\n  "],[10,"nav"],[14,0,"tabs sub-nav"],[14,"aria-label","navigation for managing identity alias"],[12],[1,"\\n    "],[10,"ul"],[12],[1,"\\n"],[42,[28,[37,7],[[28,[37,7],[[28,[37,8],[[30,0,["model","identityType"]]],null]],null]],null],null,[[[1,"        "],[8,[39,9],null,[["@route","@models"],["vault.cluster.access.identity.aliases.show",[28,[37,10],[[30,0,["model","id"]],[30,2]],null]]],[["default"],[[[[1,"\\n          "],[1,[28,[35,3],[[30,2]],null]],[1,"\\n        "]],[]]]]],[1,"\\n"]],[2]],null],[1,"    "],[13],[1,"\\n  "],[13],[1,"\\n"],[13],[1,"\\n"],[8,[39,11],null,null,[["default"],[[[[1,"\\n  "],[8,[39,12],null,null,[["default"],[[[[1,"\\n    "],[8,[39,13],null,[["@route","@model"],["vault.cluster.access.identity.aliases.edit",[30,0,["model","id"]]]],[["default"],[[[[1,"\\n      Edit\\n      "],[1,[28,[35,14],[[28,[37,5],[[30,0,["model","identityType"]]],null]],null]],[1,"\\n    "]],[]]]]],[1,"\\n  "]],[]]]]],[1,"\\n"]],[]]]]],[1,"\\n"],[46,[28,[37,16],["identity/item-alias/alias-",[30,0,["section"]]],null],null,[["model"],[[30,0,["model"]]]],null]],["p","tab"],false,["page-header","hds/breadcrumb","hds/breadcrumb/item","capitalize","pluralize","humanize","each","-track-array","tabs-for-identity-show","link-to","array","toolbar","toolbar-actions","toolbar-link","lowercase","component","concat"]]',moduleName:"vault/templates/vault/cluster/access/identity/aliases/show.hbs",isStrictMode:!1})})),define("vault/templates/vault/cluster/access/identity/create",["exports","@ember/template-factory"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default=(0,t.createTemplateFactory)({id:"MzrhFn2A",block:'[[[8,[39,0],null,null,[["default"],[[[[1,"\\n  "],[8,[30,1,["levelLeft"]],null,null,[["default"],[[[[1,"\\n    "],[10,"h1"],[14,0,"title is-3"],[12],[1,"\\n      Create\\n      "],[1,[28,[35,1],[[30,0,["model","identityType"]]],null]],[1,"\\n    "],[13],[1,"\\n  "]],[]]]]],[1,"\\n"]],[1]]]]],[1,"\\n"],[8,[39,2],null,[["@model","@onSave"],[[30,0,["model"]],[28,[37,3],[[30,0],"navAfterSave"],null]]],null]],["p"],false,["page-header","titleize","identity/edit-form","action"]]',moduleName:"vault/templates/vault/cluster/access/identity/create.hbs",isStrictMode:!1})})),define("vault/templates/vault/cluster/access/identity/edit",["exports","@ember/template-factory"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default=(0,t.createTemplateFactory)({id:"pfpUUMU/",block:'[[[8,[39,0],null,null,[["default"],[[[[1,"\\n  "],[8,[30,1,["levelLeft"]],null,null,[["default"],[[[[1,"\\n    "],[10,"h1"],[14,0,"title is-3"],[12],[1,"\\n      Edit\\n      "],[1,[30,0,["model","name"]]],[1,"\\n    "],[13],[1,"\\n  "]],[]]]]],[1,"\\n"]],[1]]]]],[1,"\\n\\n"],[8,[39,1],null,[["@mode","@model","@onSave"],["edit",[30,0,["model"]],[28,[37,2],[[30,0],"navAfterSave"],null]]],null]],["p"],false,["page-header","identity/edit-form","action"]]',moduleName:"vault/templates/vault/cluster/access/identity/edit.hbs",isStrictMode:!1})})),define("vault/templates/vault/cluster/access/identity/index",["exports","@ember/template-factory"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default=(0,t.createTemplateFactory)({id:"9N84g1/X",block:'[[[8,[39,0],null,[["@identityType","@model"],[[30,0,["identityType"]],[30,0,["model"]]]],null],[1,"\\n"],[41,[30,0,["model","meta","total"]],[[[42,[28,[37,3],[[28,[37,3],[[30,0,["model"]]],null]],null],null,[[[1,"    "],[8,[39,4],[[24,0,"list-item-row"]],[["@params"],[[28,[37,5],["vault.cluster.access.identity.show",[30,1,["id"]],"details"],null]]],[["default"],[[[[1,"\\n      "],[10,0],[14,0,"columns is-mobile"],[12],[1,"\\n        "],[10,0],[14,0,"column is-7-tablet is-10-mobile"],[12],[1,"\\n          "],[8,[39,6],[[24,0,"is-block has-text-black has-text-weight-semibold"]],[["@route","@models"],["vault.cluster.access.identity.show",[28,[37,5],[[30,1,["id"]],"details"],null]]],[["default"],[[[[1,"\\n            "],[8,[39,7],[[24,0,"has-text-grey-light"]],[["@name"],["user"]],null],[1,"\\n            "],[10,1],[14,0,"has-text-weight-semibold"],[12],[1,[30,1,["name"]]],[13],[1,"\\n          "]],[]]]]],[1,"\\n          "],[10,0],[14,0,"has-text-grey is-size-8"],[12],[1,"\\n            "],[1,[30,1,["id"]]],[1,"\\n          "],[13],[1,"\\n        "],[13],[1,"\\n        "],[10,0],[14,0,"column is-3 is-hidden-mobile"],[12],[1,"\\n"],[41,[30,1,["aliases","length"]],[[[1,"            "],[1,[28,[35,8],[[30,1,["aliases","length"]],"alias"],null]],[1,"\\n"]],[]],null],[1,"        "],[13],[1,"\\n        "],[10,0],[14,0,"column has-text-right"],[12],[1,"\\n          "],[8,[39,9],null,[["@isInline","@listPosition"],[true,"bottom-right"]],[["default"],[[[[1,"\\n            "],[8,[30,2,["ToggleIcon"]],[[4,[38,10],["click",[28,[37,11],[[30,0],"reloadRecord",[30,1]],null]],null]],[["@icon","@text","@hasChevron"],["more-horizontal","Identity management options",false]],null],[1,"\\n            "],[8,[30,2,["Interactive"]],null,[["@text","@route","@models"],["Details","vault.cluster.access.identity.show",[28,[37,5],[[30,1,["id"]],"details"],null]]],null],[1,"\\n"],[41,[28,[37,12],[[30,1,["isReloading"]],[30,1,["updatePath","isPending"]],[30,1,["aliasPath","isPending"]]],null],[[[1,"              "],[8,[30,2,["Generic"]],[[24,0,"has-text-center"]],null,[["default"],[[[[1,"\\n                "],[8,[39,13],null,null,null],[1,"\\n              "]],[]]]]],[1,"\\n"]],[]],[[[41,[30,1,["canAddAlias"]],[[[41,[28,[37,12],[[28,[37,14],[[30,0,["identityType"]],"entity"],null],[28,[37,15],[[28,[37,14],[[30,1,["type"]],"external"],null],[28,[37,16],[[30,1,["alias"]]],null]],null]],null],[[[1,"                  "],[8,[30,2,["Interactive"]],null,[["@text","@route","@models"],["Create alias","vault.cluster.access.identity.aliases.add",[28,[37,5],[[28,[37,8],[[30,0,["identityType"]]],null],[30,1,["id"]]],null]]],null],[1,"\\n"]],[]],null]],[]],null],[41,[30,1,["canEdit"]],[[[1,"                "],[8,[30,2,["Interactive"]],null,[["@text","@route","@model"],["Edit","vault.cluster.access.identity.edit",[30,1,["id"]]]],null],[1,"\\n"],[41,[30,1,["disabled"]],[[[1,"                  "],[8,[30,2,["Interactive"]],[[4,[38,10],["click",[28,[37,11],[[30,0],"toggleDisabled",[30,1]],null]],null]],[["@text"],["Enable"]],null],[1,"\\n"]],[]],[[[41,[28,[37,14],[[30,0,["identityType"]],"entity"],null],[[[1,"                  "],[8,[30,2,["Interactive"]],[[4,[38,10],["click",[28,[37,17],[[28,[37,18],[[30,0,["entityToDisable"]]],null],[30,1]],null]],null]],[["@text","@color"],["Disable","critical"]],null],[1,"\\n                "]],[]],null]],[]]]],[]],null],[41,[30,1,["canDelete"]],[[[1,"                "],[8,[30,2,["Interactive"]],[[4,[38,10],["click",[28,[37,17],[[28,[37,18],[[30,0,["itemToDelete"]]],null],[30,1]],null]],null]],[["@text","@color"],["Delete","critical"]],null],[1,"\\n"]],[]],null]],[]]],[1,"          "]],[2]]]]],[1,"\\n        "],[13],[1,"\\n      "],[13],[1,"\\n    "]],[]]]]],[1,"\\n"]],[1]],null],[1,"\\n  "],[8,[39,19],null,[["@currentPage","@currentPageSize","@route","@showSizeSelector","@totalItems","@queryFunction"],[[30,0,["model","meta","currentPage"]],[30,0,["model","meta","pageSize"]],"vault.cluster.access.identity.index",false,[30,0,["model","meta","total"]],[30,0,["paginationQueryParams"]]]],null],[1,"\\n\\n"]],[]],[[[1,"  "],[8,[39,20],null,[["@title","@message"],[[29,["No ",[28,[37,8],[[30,0,["identityType"]]],null]," yet"]],[29,["A list of ",[28,[37,8],[[30,0,["identityType"]]],null]," in this namespace will be listed here. Create your first ",[30,0,["identityType"]]," to get started."]]]],[["default"],[[[[1,"\\n    "],[8,[39,21],null,[["@text","@href","@icon","@iconPosition"],["Identity: entities and groups tutorial",[28,[37,22],["/vault/tutorials/auth-methods/identity"],null],"learn-link","trailing"]],null],[1,"\\n  "]],[]]]]],[1,"\\n"]],[]]],[1,"\\n"],[41,[30,0,["entityToDisable"]],[[[1,"  "],[8,[39,23],null,[["@confirmMessage","@confirmTitle","@onConfirm","@onClose"],["Associated tokens will not be revoked, but cannot be used.","Disable this entity?",[28,[37,11],[[30,0],"toggleDisabled",[30,0,["entityToDisable"]]],null],[28,[37,17],[[28,[37,18],[[30,0,["entityToDisable"]]],null],null],null]]],null],[1,"\\n"]],[]],null],[1,"\\n"],[41,[30,0,["itemToDelete"]],[[[1,"  "],[8,[39,23],null,[["@color","@confirmTitle","@onConfirm","@onClose"],["critical",[29,["Delete this ",[30,0,["identityType"]],"?"]],[28,[37,11],[[30,0],"delete",[30,0,["itemToDelete"]]],null],[28,[37,17],[[28,[37,18],[[30,0,["itemToDelete"]]],null],null],null]]],null],[1,"\\n"]],[]],null]],["item","dd"],false,["identity/entity-nav","if","each","-track-array","linked-block","array","link-to","icon","pluralize","hds/dropdown","on","action","or","loading-dropdown-option","eq","and","not","fn","mut","hds/pagination/numbered","empty-state","hds/link/standalone","doc-link","confirm-modal"]]',moduleName:"vault/templates/vault/cluster/access/identity/index.hbs",isStrictMode:!1})})),define("vault/templates/vault/cluster/access/identity/merge",["exports","@ember/template-factory"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default=(0,t.createTemplateFactory)({id:"zdgRGZih",block:'[[[8,[39,0],null,null,[["default"],[[[[1,"\\n  "],[8,[30,1,["levelLeft"]],null,null,[["default"],[[[[1,"\\n    "],[10,"h1"],[14,0,"title is-3"],[12],[1,"\\n      Merge Entities\\n    "],[13],[1,"\\n  "]],[]]]]],[1,"\\n"]],[1]]]]],[1,"\\n\\n"],[8,[39,1],null,[["@mode","@model","@onSave"],["merge",[30,0,["model"]],[28,[37,2],[[30,0],"navAfterSave"],null]]],null]],["p"],false,["page-header","identity/edit-form","action"]]',moduleName:"vault/templates/vault/cluster/access/identity/merge.hbs",isStrictMode:!1})})),define("vault/templates/vault/cluster/access/identity/show",["exports","@ember/template-factory"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default=(0,t.createTemplateFactory)({id:"x9CMZmwL",block:'[[[8,[39,0],null,null,[["default"],[[[[1,"\\n  "],[8,[30,1,["top"]],null,null,[["default"],[[[[1,"\\n    "],[8,[39,1],null,null,[["default"],[[[[1,"\\n      "],[8,[39,2],null,[["@text","@route"],[[28,[37,3],[[28,[37,4],[[30,0,["model","identityType"]]],null]],null],"vault.cluster.access.identity.index"]],null],[1,"\\n      "],[8,[39,2],null,[["@text","@current"],[[30,0,["model","name"]],true]],null],[1,"\\n    "]],[]]]]],[1,"\\n  "]],[]]]]],[1,"\\n  "],[8,[30,1,["levelLeft"]],null,null,[["default"],[[[[1,"\\n    "],[10,"h1"],[14,0,"title is-3"],[12],[1,"\\n      "],[1,[30,0,["model","name"]]],[1,"\\n    "],[13],[1,"\\n  "]],[]]]]],[1,"\\n"]],[1]]]]],[1,"\\n"],[10,0],[14,0,"tabs-container box is-sideless is-fullwidth is-paddingless is-marginless"],[12],[1,"\\n  "],[10,"nav"],[14,0,"tabs sub-nav"],[15,"aria-label",[29,["navigation for managing ",[30,0,["model","identityType"]]]]],[12],[1,"\\n    "],[10,"ul"],[12],[1,"\\n"],[42,[28,[37,6],[[28,[37,6],[[28,[37,7],[[30,0,["model","identityType"]],[30,0,["model","type"]]],null]],null]],null],null,[[[1,"        "],[8,[39,8],null,[["@route","@models"],["vault.cluster.access.identity.show",[28,[37,9],[[28,[37,4],[[30,0,["model","identityType"]]],null],[30,0,["model","id"]],[30,2]],null]]],[["default"],[[[[1,"\\n          "],[1,[28,[35,3],[[28,[37,10],[[30,2]],null]],null]],[1,"\\n        "]],[]]]]],[1,"\\n"]],[2]],null],[1,"    "],[13],[1,"\\n  "],[13],[1,"\\n"],[13],[1,"\\n"],[8,[39,11],null,null,[["default"],[[[[1,"\\n  "],[8,[39,12],null,null,[["default"],[[[[1,"\\n"],[41,[51,[28,[37,14],[[28,[37,15],[[28,[37,16],[[30,0,["model","identityType"]],"group"],null],[28,[37,16],[[30,0,["model","type"]],"internal"],null]],null],[30,0,["model","alias"]]],null]],[[[1,"      "],[8,[39,17],null,[["@route","@models","@type"],["vault.cluster.access.identity.aliases.add",[28,[37,9],[[28,[37,4],[[30,0,["model","identityType"]]],null],[30,0,["model","id"]]],null],"add"]],[["default"],[[[[1,"\\n        Add alias\\n      "]],[]]]]],[1,"\\n"]],[]],null],[1,"    "],[8,[39,17],null,[["@route","@models"],["vault.cluster.access.identity.edit",[28,[37,9],[[28,[37,4],[[30,0,["model","identityType"]]],null],[30,0,["model","id"]]],null]]],[["default"],[[[[1,"\\n      Edit\\n      "],[1,[30,0,["model","identityType"]]],[1,"\\n    "]],[]]]]],[1,"\\n  "]],[]]]]],[1,"\\n"]],[]]]]],[1,"\\n"],[46,[28,[37,19],["identity/item-",[30,0,["section"]]],null],null,[["model"],[[30,0,["model"]]]],null]],["p","tab"],false,["page-header","hds/breadcrumb","hds/breadcrumb/item","capitalize","pluralize","each","-track-array","tabs-for-identity-show","link-to","array","humanize","toolbar","toolbar-actions","unless","or","and","eq","toolbar-link","component","concat"]]',moduleName:"vault/templates/vault/cluster/access/identity/show.hbs",isStrictMode:!1})})),define("vault/templates/vault/cluster/access/leases/error",["exports","@ember/template-factory"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default=(0,t.createTemplateFactory)({id:"hN0oQL7S",block:'[[[8,[39,0],null,null,[["default"],[[[[1,"\\n  "],[8,[30,1,["levelLeft"]],null,null,[["default"],[[[[1,"\\n    "],[10,"h1"],[14,0,"title is-3"],[12],[1,"\\n      "],[8,[39,1],null,[["@route"],["vault.cluster.access.leases"]],[["default"],[[[[1,"Leases"]],[]]]]],[1,"\\n    "],[13],[1,"\\n  "]],[]]]]],[1,"\\n"]],[1]]]]],[1,"\\n"],[41,[51,[28,[37,3],[[28,[37,4],[[30,0,["model","httpStatus"]],400],null],[28,[37,4],[[30,0,["model","httpStatus"]],404],null]],null]],[[[1,"  "],[1,[30,0,["model","message"]]],[1,"\\n"]],[]],null],[1,"\\n"],[41,[28,[37,4],[[30,0,["model","httpStatus"]],400],null],[[[1,"  "],[8,[39,6],[[24,0,"has-bottom-margin-s"]],[["@type","@color"],["inline","critical"]],[["default"],[[[[1,"\\n    "],[8,[30,2,["Title"]],null,null,[["default"],[[[[1,"Error"]],[]]]]],[1,"\\n    "],[8,[30,2,["Description"]],null,null,[["default"],[[[[1,[30,0,["model","keyId"]]],[1," is not a valid lease ID."]],[]]]]],[1,"\\n  "]],[2]]]]],[1,"\\n"]],[]],[[[41,[28,[37,4],[[30,0,["model","httpStatus"]],404],null],[[[1,"  "],[8,[39,7],null,[["@title","@message"],["No leases with that ID",[29,["Unable to find lease for the ID \\"",[30,0,["model","keyId"]],"\\". Try going back to the lookup and re-entering the ID."]]]],[["default"],[[[[1,"\\n    "],[8,[39,8],null,[["@icon","@text","@route"],["chevron-left","Back to lookup","vault.cluster.access.leases"]],null],[1,"\\n  "]],[]]]]],[1,"\\n"]],[]],[[[41,[28,[37,4],[[30,0,["model","httpStatus"]],403],null],[[[1,"  "],[8,[39,7],null,[["@title","@message"],["You don\'t have access to a lease with that ID","If you think you\'ve reached this page in error, please contact your administrator."]],[["default"],[[[[1,"\\n    "],[8,[39,8],null,[["@icon","@text","@route"],["chevron-left","Back to lookup","vault.cluster.access.leases"]],null],[1,"\\n  "]],[]]]]],[1,"\\n"]],[]],[[[42,[28,[37,10],[[28,[37,10],[[30,0,["model","errors"]]],null]],null],null,[[[1,"    "],[8,[39,6],[[24,0,"has-bottom-margin-s"]],[["@type","@color"],["inline","critical"]],[["default"],[[[[1,"\\n      "],[8,[30,4,["Title"]],null,null,[["default"],[[[[1,"Error"]],[]]]]],[1,"\\n      "],[8,[30,4,["Description"]],null,null,[["default"],[[[[1,[30,3]]],[]]]]],[1,"\\n    "]],[4]]]]],[1,"\\n"]],[3]],null]],[]]]],[]]]],[]]]],["p","A","error","A"],false,["page-header","link-to","unless","or","eq","if","hds/alert","empty-state","hds/link/standalone","each","-track-array"]]',moduleName:"vault/templates/vault/cluster/access/leases/error.hbs",isStrictMode:!1})})),define("vault/templates/vault/cluster/access/leases/index",["exports","@ember/template-factory"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default=(0,t.createTemplateFactory)({id:"egjgIUaS",block:'[[[8,[39,0],null,null,[["default"],[[[[1,"\\n  "],[8,[30,1,["levelLeft"]],null,null,[["default"],[[[[1,"\\n    "],[10,"h1"],[14,0,"title is-3"],[12],[1,"\\n      Lookup a Lease\\n    "],[13],[1,"\\n  "]],[]]]]],[1,"\\n"]],[1]]]]],[1,"\\n\\n"],[11,"form"],[4,[38,1],[[30,0],"lookupLease",[30,0,["leaseId"]]],[["on"],["submit"]]],[12],[1,"\\n  "],[10,0],[14,0,"box is-sideless is-fullwidth is-marginless"],[12],[1,"\\n    "],[10,0],[14,0,"field"],[12],[1,"\\n      "],[10,"label"],[14,"for","lease-id"],[14,0,"is-label"],[12],[1,"Lease ID"],[13],[1,"\\n      "],[10,0],[14,0,"control"],[12],[1,"\\n        "],[8,[39,2],[[24,1,"lease-id"],[24,0,"input"]],[["@value"],[[30,0,["leaseId"]]]],null],[1,"\\n      "],[13],[1,"\\n      "],[10,2],[14,0,"help has-text-grey"],[12],[1,"\\n        If you know the\\n        "],[10,"code"],[12],[1,"id"],[13],[1,"\\n        of a lease, enter it above to lookup details of the lease.\\n      "],[13],[1,"\\n    "],[13],[1,"\\n  "],[13],[1,"\\n  "],[10,0],[14,0,"field is-grouped box is-fullwidth is-bottomless"],[12],[1,"\\n    "],[10,0],[14,0,"control"],[12],[1,"\\n      "],[8,[39,3],[[24,4,"submit"]],[["@text"],["Lookup"]],null],[1,"\\n    "],[13],[1,"\\n  "],[13],[1,"\\n"],[13]],["p"],false,["page-header","action","input","hds/button"]]',moduleName:"vault/templates/vault/cluster/access/leases/index.hbs",isStrictMode:!1})})),define("vault/templates/vault/cluster/access/leases/list",["exports","@ember/template-factory"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default=(0,t.createTemplateFactory)({id:"PrWlsfWe",block:'[[[8,[39,0],null,null,[["default"],[[[[1,"\\n  "],[8,[30,1,["top"]],null,null,[["default"],[[[[1,"\\n    "],[8,[39,1],null,[["@baseKey","@path","@model","@root","@showCurrent"],[[30,0,["baseKey"]],"vault.cluster.access.leases.list",[30,0,["clusterController","model","name"]],[30,0,["backendCrumb"]],true]],null],[1,"\\n  "]],[]]]]],[1,"\\n  "],[8,[30,1,["levelLeft"]],null,null,[["default"],[[[[1,"\\n    "],[10,"h1"],[14,0,"title is-3"],[12],[1,"\\n      "],[8,[39,2],null,[["@route"],["vault.cluster.access.leases.list-root"]],[["default"],[[[[1,"\\n        Leases\\n      "]],[]]]]],[1,"\\n    "],[13],[1,"\\n  "]],[]]]]],[1,"\\n"]],[1]]]]],[1,"\\n\\n"],[8,[39,3],null,null,[["default"],[[[[1,"\\n  "],[8,[39,4],null,null,[["default"],[[[[1,"\\n    "],[8,[39,5],null,[["@filterFocusDidChange","@filterDidChange","@filter","@filterMatchesKey","@firstPartialMatch","@baseKey","@shouldNavigateTree","@mode","@placeholder"],[[28,[37,6],[[30,0],"setFilterFocus"],null],[28,[37,6],[[30,0],"setFilter"],null],[30,0,["filter"]],[30,0,["filterMatchesKey"]],[30,0,["firstPartialMatch"]],[28,[37,7],[[30,0,["baseKey"]],"id"],null],true,"leases","Filter leases"]],null],[1,"\\n"],[41,[30,0,["filterFocused"]],[[[41,[30,0,["filterMatchesKey"]],[[[41,[51,[30,0,["filterIsFolder"]]],[[[1,"          "],[10,2],[14,0,"help has-text-grey is-size-8 has-left-padding-xs"],[12],[1,"\\n            "],[10,"kbd"],[12],[1,"ENTER"],[13],[1,"\\n            to go to see details\\n          "],[13],[1,"\\n"]],[]],null]],[]],null],[41,[30,0,["firstPartialMatch"]],[[[1,"        "],[10,2],[14,0,"help has-text-grey is-size-8 has-left-padding-xs"],[12],[1,"\\n          "],[10,"kbd"],[12],[1,"TAB"],[13],[1,"\\n          to complete\\n        "],[13],[1,"\\n"]],[]],null]],[]],null],[1,"  "]],[]]]]],[1,"\\n  "],[8,[39,10],null,null,[["default"],[[[[1,"\\n"],[41,[28,[37,11],[[30,0,["baseKey","id"]],""],null],[[[1,"      "],[10,0],[14,0,"control"],[12],[1,"\\n"],[41,[28,[37,12],[[30,0,["capabilities","forceRevokePrefix","canUpdate"]],[28,[37,13],[[30,0,["confirmingRevoke"]]],null]],null],[[[1,"          "],[8,[39,14],[[24,0,"toolbar-button"]],[["@buttonText","@buttonColor","@confirmTitle","@confirmMessage","@onConfirmAction"],["Force revoke prefix","secondary","Revoke this?","All leases under this one will also be removed and any errors encountered will be disregarded.",[28,[37,6],[[30,0],"revokePrefix",[30,0,["baseKey","id"]],true],null]]],null],[1,"\\n"]],[]],null],[1,"      "],[13],[1,"\\n      "],[10,0],[14,0,"control"],[12],[1,"\\n"],[41,[28,[37,12],[[30,0,["capabilities","revokePrefix","canUpdate"]],[28,[37,13],[[30,0,["confirmingForceRevoke"]]],null]],null],[[[1,"          "],[8,[39,14],[[24,0,"toolbar-button"]],[["@buttonText","@buttonColor","@confirmTitle","@confirmMessage","@onConfirmAction"],["Revoke prefix","secondary","Revoke this?","All leases under this one will also be removed.",[28,[37,6],[[30,0],"revokePrefix",[30,0,["baseKey","id"]]],null]]],null],[1,"\\n"]],[]],null],[1,"      "],[13],[1,"\\n"]],[]],null],[1,"  "]],[]]]]],[1,"\\n"]],[]]]]],[1,"\\n\\n"],[41,[30,0,["model","meta","total"]],[[[42,[28,[37,16],[[28,[37,16],[[30,0,["model"]]],null]],null],null,[[[1,"    "],[8,[39,2],[[24,0,"list-item-row"]],[["@route","@model"],[[52,[30,2,["isFolder"]],"vault.cluster.access.leases.list","vault.cluster.access.leases.show"],[30,2,["id"]]]],[["default"],[[[[1,"\\n      "],[8,[39,17],[[24,0,"has-text-grey-light"]],[["@name"],[[52,[30,2,["isFolder"]],"folder","file"]]],null],[1,"\\n      "],[10,1],[14,0,"has-text-weight-semibold"],[12],[1,[28,[35,18],[[30,2,["keyWithoutParent"]],[30,2,["id"]]],null]],[13],[1,"\\n    "]],[]]]]],[1,"\\n"]],[2]],[[[1,"    "],[8,[39,19],null,[["@title"],[[29,["There are no leases matching \\"",[30,0,["filter"]],"\\""]]]],null],[1,"\\n"]],[]]],[41,[51,[30,0,["filter"]]],[[[1,"    "],[8,[39,20],null,[["@currentPage","@currentPageSize","@route","@showSizeSelector","@totalItems","@queryFunction"],[[30,0,["model","meta","currentPage"]],[30,0,["model","meta","pageSize"]],[28,[37,21],["vault.cluster.access.leases.list",[52,[51,[30,0,["baseKey","id"]]],"-root"]],null],false,[30,0,["model","meta","total"]],[30,0,["paginationQueryParams"]]]],null],[1,"\\n"]],[]],null]],[]],[[[1,"  "],[8,[39,19],null,[["@title"],[[30,0,["emptyTitle"]]]],null],[1,"\\n"]],[]]]],["p","item"],false,["page-header","key-value-header","link-to","toolbar","toolbar-filters","navigate-input","action","get","if","unless","toolbar-actions","not-eq","and","not","confirm-action","each","-track-array","icon","or","empty-state","hds/pagination/numbered","concat"]]',moduleName:"vault/templates/vault/cluster/access/leases/list.hbs",isStrictMode:!1})})),define("vault/templates/vault/cluster/access/leases/show",["exports","@ember/template-factory"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default=(0,t.createTemplateFactory)({id:"ZzJIHevz",block:'[[[8,[39,0],null,null,[["default"],[[[[1,"\\n  "],[8,[30,1,["top"]],null,null,[["default"],[[[[1,"\\n    "],[8,[39,1],null,[["@baseKey","@path","@root","@showCurrent","@linkToPaths"],[[30,0,["baseKey"]],"vault.cluster.access.leases.list",[30,0,["backendCrumb"]],true,[30,0,["capabilities","leases","canList"]]]],null],[1,"\\n  "]],[]]]]],[1,"\\n  "],[8,[30,1,["levelLeft"]],null,null,[["default"],[[[[1,"\\n    "],[10,"h1"],[14,0,"title is-3"],[12],[1,"\\n      "],[8,[39,2],null,[["@route"],["vault.cluster.access.leases"]],[["default"],[[[[1,"\\n        Leases\\n      "]],[]]]]],[1,"\\n    "],[13],[1,"\\n  "]],[]]]]],[1,"\\n"]],[1]]]]],[1,"\\n\\n"],[41,[30,0,["capabilities","revoke","canUpdate"]],[[[1,"  "],[8,[39,4],null,null,[["default"],[[[[1,"\\n    "],[8,[39,5],null,null,[["default"],[[[[1,"\\n      "],[8,[39,6],[[24,0,"toolbar-button"]],[["@buttonText","@buttonColor","@confirmTitle","@confirmMessage","@onConfirmAction"],["Revoke lease","secondary","Revoke this?","All leases under this one will also be removed.",[28,[37,7],[[30,0],"revokeLease",[30,0,["model"]]],null]]],null],[1,"\\n    "]],[]]]]],[1,"\\n  "]],[]]]]],[1,"\\n"]],[]],null],[1,"\\n"],[10,0],[14,0,"field box is-fullwidth is-sideless is-paddingless is-marginless"],[12],[1,"\\n  "],[8,[39,8],null,[["@label","@value"],["Issue time",[30,0,["model","issueTime"]]]],[["default"],[[[[1,"\\n    "],[1,[28,[35,9],[[30,0,["model","issueTime"]],"MMM dd, yyyy hh:mm:ss a"],null]],[1,"\\n    "],[10,"br"],[12],[13],[1,"\\n    "],[10,"code"],[12],[1,"\\n      "],[1,[30,0,["model","issueTime"]]],[1,"\\n    "],[13],[1,"\\n  "]],[]]]]],[1,"\\n  "],[8,[39,8],null,[["@label","@value"],["Renewable",[30,0,["model","renewable"]]]],null],[1,"\\n  "],[8,[39,8],null,[["@label","@value"],["Last renewal",[30,0,["model","lastRenewal"]]]],[["default"],[[[[1,"\\n    "],[1,[28,[35,9],[[30,0,["model","lastRenewal"]],"MMM dd, yyyy hh:mm:ss a"],null]],[1,"\\n    "],[10,"br"],[12],[13],[1,"\\n    "],[10,"code"],[12],[1,"\\n      "],[1,[30,0,["model","lastRenewal"]]],[1,"\\n    "],[13],[1,"\\n  "]],[]]]]],[1,"\\n"],[41,[30,0,["model","expireTime"]],[[[1,"    "],[8,[39,8],null,[["@label","@value"],["Expiration time",[30,0,["model","expireTime"]]]],[["default"],[[[[1,"\\n      "],[1,[28,[35,9],[[30,0,["model","expireTime"]],"MMM dd, yyyy hh:mm:ss a"],null]],[1,"\\n      "],[10,"br"],[12],[13],[1,"\\n      "],[10,"code"],[12],[1,"\\n        "],[1,[30,0,["model","expireTime"]]],[1,"\\n      "],[13],[1,"\\n    "]],[]]]]],[1,"\\n    "],[8,[39,8],null,[["@label","@value"],["Expires in",[28,[37,10],[[30,0,["model","expireTime"]]],[["increment","hideSuffix"],[1000,true]]]]],null],[1,"\\n"]],[]],null],[1,"  "],[8,[39,8],null,[["@label","@value"],["TTL",[30,0,["model","ttl"]]]],null],[1,"\\n"],[13],[1,"\\n"],[41,[28,[37,11],[[28,[37,12],[[30,0,["model","isAuthLease"]]],null],[30,0,["model","renewable"]],[30,0,["capabilities","renew","canUpdate"]]],null],[[[1,"  "],[10,0],[14,0,"box is-shadowless"],[12],[1,"\\n    "],[10,"h2"],[14,0,"title is-6"],[12],[1,"Renew Lease"],[13],[1,"\\n    "],[11,"form"],[4,[38,7],[[30,0],"renewLease",[30,0,["model"]],[30,0,["increment"]]],[["on"],["submit"]]],[12],[1,"\\n      "],[8,[39,13],null,[["@label","@helperTextEnabled","@helperTextDisabled","@labelClass","@onChange","@unit"],["Increment","Lease will expire after","Vault will use the default lease duration","is-label",[28,[37,7],[[30,0],[28,[37,14],[[30,0,["increment"]]],null]],null],"s"]],null],[1,"\\n      "],[10,0],[14,0,"field has-top-margin-s"],[12],[1,"\\n        "],[10,0],[14,0,"control"],[12],[1,"\\n          "],[8,[39,15],[[24,4,"submit"]],[["@text"],["Renew lease"]],null],[1,"\\n        "],[13],[1,"\\n      "],[13],[1,"\\n    "],[13],[1,"\\n  "],[13],[1,"\\n"]],[]],null]],["p"],false,["page-header","key-value-header","link-to","if","toolbar","toolbar-actions","confirm-action","action","info-table-row","date-format","date-from-now","and","not","ttl-picker","mut","hds/button"]]',moduleName:"vault/templates/vault/cluster/access/leases/show.hbs",isStrictMode:!1})})),define("vault/templates/vault/cluster/access/loading",["exports","@ember/template-factory"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default=(0,t.createTemplateFactory)({id:"ckfPq652",block:'[[[8,[39,0],null,null,null]],[],false,["layout-loading"]]',moduleName:"vault/templates/vault/cluster/access/loading.hbs",isStrictMode:!1})})),define("vault/templates/vault/cluster/access/method/item/create",["exports","@ember/template-factory"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default=(0,t.createTemplateFactory)({id:"V9HfYZ8C",block:'[[[8,[39,0],null,[["@mountPath","@model","@mode","@itemType"],[[30,0,["method"]],[30,0,["model"]],"create",[30,0,["model","itemType"]]]],null]],[],false,["generated-item"]]',moduleName:"vault/templates/vault/cluster/access/method/item/create.hbs",isStrictMode:!1})})),define("vault/templates/vault/cluster/access/method/item/edit",["exports","@ember/template-factory"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default=(0,t.createTemplateFactory)({id:"BSuBF4m2",block:'[[[8,[39,0],null,[["@mountPath","@model","@mode","@itemType"],[[30,0,["method"]],[30,0,["model"]],"edit",[30,0,["itemType"]]]],null]],[],false,["generated-item"]]',moduleName:"vault/templates/vault/cluster/access/method/item/edit.hbs",isStrictMode:!1})})),define("vault/templates/vault/cluster/access/method/item/list",["exports","@ember/template-factory"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default=(0,t.createTemplateFactory)({id:"MX/DXqIs",block:'[[[8,[39,0],null,[["@model","@itemType","@paths","@methodModel"],[[30,0,["model"]],[30,0,["itemType"]],[30,0,["paths"]],[30,0,["methodModel"]]]],null]],[],false,["generated-item-list"]]',moduleName:"vault/templates/vault/cluster/access/method/item/list.hbs",isStrictMode:!1})})),define("vault/templates/vault/cluster/access/method/item/show",["exports","@ember/template-factory"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default=(0,t.createTemplateFactory)({id:"UDSsqy3M",block:'[[[8,[39,0],null,[["@mountPath","@model","@itemType","@mode"],[[30,0,["method"]],[30,0,["model"]],[30,0,["itemType"]],"show"]],null]],[],false,["generated-item"]]',moduleName:"vault/templates/vault/cluster/access/method/item/show.hbs",isStrictMode:!1})})),define("vault/templates/vault/cluster/access/method/section",["exports","@ember/template-factory"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default=(0,t.createTemplateFactory)({id:"xFdf8V8a",block:'[[[8,[39,0],null,null,[["default"],[[[[1,"\\n  "],[8,[30,1,["top"]],null,null,[["default"],[[[[1,"\\n    "],[8,[39,1],null,null,[["default"],[[[[1,"\\n      "],[8,[39,2],null,[["@text","@route"],["Auth Methods","vault.cluster.access.methods"]],null],[1,"\\n      "],[8,[39,2],null,[["@text","@current"],[[30,0,["model","id"]],true]],null],[1,"\\n    "]],[]]]]],[1,"\\n  "]],[]]]]],[1,"\\n  "],[8,[30,1,["levelLeft"]],null,null,[["default"],[[[[1,"\\n    "],[10,"h1"],[14,0,"title is-3"],[12],[1,"\\n      "],[1,[30,0,["model","id"]]],[1,"\\n    "],[13],[1,"\\n  "]],[]]]]],[1,"\\n"]],[1]]]]],[1,"\\n\\n"],[41,[28,[37,4],[[28,[37,5],[[30,0,["model","type"]],[28,[37,6],null,null]],null]],null],[[[1,"  "],[10,0],[14,0,"has-text-grey has-top-bottom-margin"],[12],[1,"\\n    The Vault UI only supports configuration for this authentication method. For management, the\\n    "],[8,[39,7],null,[["@path"],["/vault/api-docs"]],[["default"],[[[[1,"API or CLI"]],[]]]]],[1,"\\n    should be used.\\n  "],[13],[1,"\\n"]],[]],null],[1,"\\n"],[8,[39,8],null,[["@model","@tabType","@paths"],[[30,0,["model"]],"authShow",[30,0,["paths"]]]],null],[1,"\\n\\n"],[41,[28,[37,9],[[30,0,["section"]],"configuration"],null],[[[1,"  "],[8,[39,10],null,null,[["default"],[[[[1,"\\n    "],[8,[39,11],null,null,[["default"],[[[[1,"\\n      "],[8,[39,12],null,[["@route","@model"],["vault.cluster.settings.auth.configure",[30,0,["model","id"]]]],[["default"],[[[[1,"\\n        Configure\\n      "]],[]]]]],[1,"\\n    "]],[]]]]],[1,"\\n  "]],[]]]]],[1,"\\n"]],[]],null],[46,[28,[37,14],["auth-method/",[30,0,["section"]]],null],null,[["model"],[[30,0,["model"]]]],null]],["p"],false,["page-header","hds/breadcrumb","hds/breadcrumb/item","if","not","includes","supported-managed-auth-backends","doc-link","section-tabs","eq","toolbar","toolbar-actions","toolbar-link","component","concat"]]',moduleName:"vault/templates/vault/cluster/access/method/section.hbs",isStrictMode:!1})}))
define("vault/templates/vault/cluster/access/methods",["exports","@ember/template-factory"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default=(0,t.createTemplateFactory)({id:"14X56KEa",block:'[[[8,[39,0],null,null,[["default"],[[[[1,"\\n  "],[8,[30,1,["levelLeft"]],null,null,[["default"],[[[[1,"\\n    "],[10,"h1"],[14,0,"title is-3"],[12],[1,"\\n      Authentication Methods\\n    "],[13],[1,"\\n  "]],[]]]]],[1,"\\n"]],[1]]]]],[1,"\\n\\n"],[8,[39,1],null,null,[["default"],[[[[1,"\\n  "],[8,[39,2],null,null,[["default"],[[[[1,"\\n    "],[8,[39,3],[[24,0,"is-marginless"]],[["@id","@options","@selectLimit","@disallowNewItems","@fallbackComponent","@onChange","@placeholder","@displayInherit","@inputValue","@disabled"],["filter-by-auth-type",[30,0,["authMethodArrayByType"]],"1",true,"input-search",[30,0,["filterAuthType"]],"Filter by auth type",true,[52,[30,0,["selectedAuthType"]],[28,[37,5],[[30,0,["selectedAuthType"]]],null]],[52,[30,0,["selectedAuthName"]],true,false]]],null],[1,"\\n    "],[8,[39,3],[[24,0,"is-marginless has-left-padding-s"]],[["@id","@options","@selectLimit","@disallowNewItems","@fallbackComponent","@onChange","@placeholder","@displayInherit","@inputValue"],["filter-by-auth-name",[30,0,["authMethodArrayByName"]],"1",true,"input-search",[30,0,["filterAuthName"]],"Filter by auth name",true,[52,[30,0,["selectedAuthName"]],[28,[37,5],[[30,0,["selectedAuthName"]]],null]]]],null],[1,"\\n  "]],[]]]]],[1,"\\n  "],[8,[39,6],null,null,[["default"],[[[[1,"\\n    "],[8,[39,7],null,[["@route","@type"],["vault.cluster.settings.auth.enable","add"]],[["default"],[[[[1,"\\n      Enable new method\\n    "]],[]]]]],[1,"\\n  "]],[]]]]],[1,"\\n"]],[]]]]],[1,"\\n\\n"],[42,[28,[37,9],[[28,[37,9],[[28,[30,0,["sortMethods"]],[[30,0,["authMethodList"]]],null]],null]],null],null,[[[1,"  "],[8,[39,10],[[24,0,"list-item-row"]],[["@params"],[[28,[37,5],["vault.cluster.access.method",[30,2,["id"]]],null]]],[["default"],[[[[1,"\\n    "],[10,0],[14,0,"level is-mobile"],[12],[1,"\\n      "],[10,0],[14,0,"level-left"],[12],[1,"\\n        "],[10,0],[12],[1,"\\n          "],[8,[39,11],[[24,"aria-label","Type of auth mount"]],[["@text"],[[30,2,["methodType"]]]],[["default"],[[[[1,"\\n            "],[8,[39,12],[[24,0,"has-text-grey-light"]],[["@name"],[[30,2,["icon"]]]],null],[1,"\\n          "]],[]]]]],[1,"\\n          "],[10,1],[14,0,"has-text-weight-semibold has-text-black"],[12],[1,"\\n            "],[1,[30,2,["path"]]],[1,"\\n          "],[13],[1,"\\n          "],[10,"br"],[12],[13],[1,"\\n          "],[10,"code"],[14,0,"has-text-grey is-size-8"],[12],[1,"\\n            "],[1,[30,2,["accessor"]]],[1,"\\n          "],[13],[1,"\\n        "],[13],[1,"\\n      "],[13],[1,"\\n      "],[10,0],[14,0,"level-right is-flex is-paddingless is-marginless"],[12],[1,"\\n        "],[10,0],[14,0,"level-item"],[12],[1,"\\n          "],[8,[39,13],null,[["@isInline","@listPosition"],[true,"bottom-right"]],[["default"],[[[[1,"\\n            "],[8,[30,3,["ToggleIcon"]],null,[["@icon","@text","@hasChevron"],["more-horizontal","Overflow options",false]],null],[1,"\\n            "],[8,[30,3,["Interactive"]],null,[["@text","@route","@models"],["View configuration","vault.cluster.access.method.section",[28,[37,5],[[30,2,["id"]],"configuration"],null]]],null],[1,"\\n"],[41,[28,[37,14],[[30,2,["canEdit"]],[28,[37,15],[[28,[37,16],[[30,2,["methodType"]],"aws"],null],[30,2,["canEditAws"]]],null]],null],[[[1,"              "],[8,[30,3,["Interactive"]],null,[["@text","@route","@model"],["Edit configuration","vault.cluster.settings.auth.configure",[30,2,["id"]]]],null],[1,"\\n"]],[]],null],[41,[28,[37,15],[[28,[37,17],[[30,2,["methodType"]],"token"],null],[30,2,["canDisable"]]],null],[[[1,"              "],[8,[30,3,["Interactive"]],[[4,[38,18],["click",[28,[37,19],[[28,[37,20],[[30,0,["methodToDisable"]]],null],[30,2]],null]],null]],[["@text","@color"],["Disable","critical"]],null],[1,"\\n"]],[]],null],[1,"          "]],[3]]]]],[1,"\\n        "],[13],[1,"\\n      "],[13],[1,"\\n    "],[13],[1,"\\n  "]],[]]]]],[1,"\\n"]],[2]],null],[1,"\\n"],[41,[30,0,["methodToDisable"]],[[[1,"  "],[8,[39,21],null,[["@color","@confirmTitle","@confirmMessage","@onClose","@onConfirm"],["critical","Disable method?","This may affect access to Vault data.",[28,[37,19],[[28,[37,20],[[30,0,["methodToDisable"]]],null],null],null],[28,[37,22],[[30,0,["disableMethod"]],[30,0,["methodToDisable"]]],null]]],null],[1,"\\n"]],[]],null]],["p","method","dd"],false,["page-header","toolbar","toolbar-filters","search-select","if","array","toolbar-actions","toolbar-link","each","-track-array","linked-block","hds/tooltip-button","icon","hds/dropdown","or","and","eq","not-eq","on","fn","mut","confirm-modal","perform"]]',moduleName:"vault/templates/vault/cluster/access/methods.hbs",isStrictMode:!1})})),define("vault/templates/vault/cluster/access/mfa/enforcements/create",["exports","@ember/template-factory"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default=(0,t.createTemplateFactory)({id:"NND6dJh1",block:'[[[8,[39,0],null,[["@heading"],["New enforcement"]],null],[1,"\\n"],[8,[39,1],[[24,0,"has-top-margin-l"]],[["@model","@onClose","@onSave"],[[30,0,["model"]],[28,[37,2],["vault.cluster.access.mfa.enforcements"],null],[28,[37,2],["vault.cluster.access.mfa.enforcements.enforcement",[30,0,["model","name"]]],null]]],null]],[],false,["mfa/mfa-login-enforcement-header","mfa/mfa-login-enforcement-form","transition-to"]]',moduleName:"vault/templates/vault/cluster/access/mfa/enforcements/create.hbs",isStrictMode:!1})})),define("vault/templates/vault/cluster/access/mfa/enforcements/enforcement/edit",["exports","@ember/template-factory"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default=(0,t.createTemplateFactory)({id:"Z5jRM+xj",block:'[[[8,[39,0],null,[["@heading"],["Update enforcement"]],null],[1,"\\n"],[8,[39,1],[[24,0,"has-top-margin-l"]],[["@model","@onSave","@onClose"],[[30,0,["model"]],[28,[37,2],["vault.cluster.access.mfa.enforcements.enforcement",[30,0,["model","name"]]],null],[28,[37,2],["vault.cluster.access.mfa.enforcements.enforcement",[30,0,["model","name"]]],null]]],null]],[],false,["mfa/mfa-login-enforcement-header","mfa/mfa-login-enforcement-form","transition-to"]]',moduleName:"vault/templates/vault/cluster/access/mfa/enforcements/enforcement/edit.hbs",isStrictMode:!1})})),define("vault/templates/vault/cluster/access/mfa/enforcements/enforcement/index",["exports","@ember/template-factory"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default=(0,t.createTemplateFactory)({id:"sG9PIgT2",block:'[[[8,[39,0],null,null,[["default"],[[[[1,"\\n  "],[8,[30,1,["top"]],null,null,[["default"],[[[[1,"\\n    "],[8,[39,1],null,null,[["default"],[[[[1,"\\n      "],[8,[39,2],null,[["@text","@route"],["Enforcements","vault.cluster.access.mfa.enforcements.index"]],null],[1,"\\n      "],[8,[39,2],null,[["@text","@current"],[[30,0,["model","name"]],true]],null],[1,"\\n    "]],[]]]]],[1,"\\n  "]],[]]]]],[1,"\\n  "],[8,[30,1,["levelLeft"]],null,null,[["default"],[[[[1,"\\n    "],[10,"h1"],[14,0,"title is-3"],[12],[1,"\\n      "],[8,[39,3],null,[["@name","@size"],["lock","24"]],null],[1,"\\n      "],[1,[30,0,["model","name"]]],[1,"\\n    "],[13],[1,"\\n  "]],[]]]]],[1,"\\n"]],[1]]]]],[1,"\\n"],[10,0],[14,0,"tabs-container box is-sideless is-fullwidth is-paddingless is-marginless"],[12],[1,"\\n  "],[10,"nav"],[14,0,"tabs"],[14,"aria-label","Enforcement tabs"],[12],[1,"\\n    "],[10,"ul"],[12],[1,"\\n      "],[8,[39,4],null,[["@route","@query"],["vault.cluster.access.mfa.enforcements.enforcement",[28,[37,5],null,[["tab"],["targets"]]]]],[["default"],[[[[1,"\\n        Targets\\n      "]],[]]]]],[1,"\\n      "],[8,[39,4],null,[["@route","@query"],["vault.cluster.access.mfa.enforcements.enforcement",[28,[37,5],null,[["tab"],["methods"]]]]],[["default"],[[[[1,"\\n        Methods\\n      "]],[]]]]],[1,"\\n    "],[13],[1,"\\n  "],[13],[1,"\\n"],[13],[1,"\\n"],[8,[39,6],null,null,[["default"],[[[[1,"\\n  "],[8,[39,7],null,null,[["default"],[[[[1,"\\n    "],[8,[39,8],[[24,0,"toolbar-button"],[4,[38,9],["click",[28,[37,10],[[30,0],[28,[37,11],[[30,0,["showDeleteConfirmation"]]],null],true],null]],null]],[["@text","@color"],["Delete","secondary"]],null],[1,"\\n    "],[10,0],[14,0,"toolbar-separator"],[12],[13],[1,"\\n    "],[8,[39,12],null,[["@route","@model"],["vault.cluster.access.mfa.enforcements.enforcement.edit",[30,0,["model","id"]]]],[["default"],[[[[1,"\\n      Edit enforcement\\n    "]],[]]]]],[1,"\\n  "]],[]]]]],[1,"\\n"]],[]]]]],[1,"\\n\\n"],[41,[28,[37,14],[[30,0,["tab"]],"targets"],null],[[[41,[30,2,["targets"]],[[[42,[28,[37,16],[[28,[37,16],[[30,2,["targets"]]],null]],null],null,[[[1,"      "],[8,[39,17],[[24,0,"list-item-row"]],[["@disabled","@params"],[[28,[37,18],[[30,3,["link"]]],null],[28,[37,19],[[28,[37,20],[[30,3,["link"]]],null],[30,3,["linkModels"]]],null]]],[["default"],[[[[1,"\\n        "],[10,0],[14,0,"level is-mobile"],[12],[1,"\\n          "],[10,0],[14,0,"level-left"],[12],[1,"\\n            "],[10,0],[12],[1,"\\n              "],[8,[39,3],null,[["@name"],[[30,3,["icon"]]]],null],[1,"\\n              "],[10,1],[14,0,"has-text-weight-semibold has-text-black"],[12],[1,"\\n                "],[1,[30,3,["title"]]],[1,"\\n              "],[13],[1,"\\n              "],[10,0],[14,0,"has-text-grey is-size-8"],[12],[1,"\\n                "],[10,"code"],[12],[1,"\\n                  "],[1,[30,3,["subTitle"]]],[1,"\\n                "],[13],[1,"\\n              "],[13],[1,"\\n            "],[13],[1,"\\n          "],[13],[1,"\\n"],[41,[30,3,["link"]],[[[1,"            "],[10,0],[14,0,"level-right is-flex is-paddingless is-marginless"],[12],[1,"\\n              "],[10,0],[14,0,"level-item"],[12],[1,"\\n                "],[8,[39,21],null,[["@isInline","@listPosition"],[true,"bottom-right"]],[["default"],[[[[1,"\\n                  "],[8,[30,4,["ToggleIcon"]],null,[["@icon","@text","@hasChevron"],["more-horizontal","Manage enforcement target",false]],null],[1,"\\n                  "],[8,[30,4,["Interactive"]],null,[["@text","@route","@models"],["Details",[30,3,["link"]],[30,3,["linkModels"]]]],null],[1,"\\n                "]],[4]]]]],[1,"\\n              "],[13],[1,"\\n            "],[13],[1,"\\n"]],[]],null],[1,"        "],[13],[1,"\\n      "]],[]]]]],[1,"\\n"]],[3]],null]],[]],[[[1,"    "],[8,[39,22],null,[["@title","@message"],["No target exists for this enforcement","A target might have been deleted after the enforcement was created."]],null],[1,"\\n"]],[]]]],[]],[[[41,[28,[37,14],[[30,0,["tab"]],"methods"],null],[[[42,[28,[37,16],[[28,[37,16],[[30,0,["model","mfa_methods"]]],null]],null],null,[[[1,"    "],[8,[39,23],null,[["@model"],[[30,5]]],null],[1,"\\n"]],[5]],null]],[]],null]],[]]],[1,"\\n"],[8,[39,24],null,[["@title","@confirmText","@toConfirmMsg","@buttonText","@isActive","@onClose","@onConfirm"],["Delete enforcement?",[30,0,["model","name"]],"deleting the transformation.","Delete",[30,0,["showDeleteConfirmation"]],[28,[37,10],[[30,0],[28,[37,11],[[30,0,["showDeleteConfirmation"]]],null],false],null],[30,0,["delete"]]]],[["default"],[[[[1,"\\n  "],[10,2],[14,0,"has-bottom-margin-m"],[12],[1,"\\n    Deleting the\\n    "],[10,"strong"],[12],[1,[30,0,["model","name"]]],[13],[1,"\\n    enforcement will mean that the MFA method that depends on it will no longer enforce multi-factor authentication.\\n    "],[10,"br"],[12],[13],[10,"br"],[12],[13],[1,"\\n    Deleting this enforcement cannot be undone; it will have to be recreated.\\n  "],[13],[1,"\\n  "],[8,[39,25],null,[["@model","@errorMessage"],[[30,0,["model"]],[30,0,["deleteError"]]]],null],[1,"\\n"]],[]]]]]],["p","@model","target","dd","method"],false,["page-header","hds/breadcrumb","hds/breadcrumb/item","icon","link-to","hash","toolbar","toolbar-actions","hds/button","on","action","mut","toolbar-link","if","eq","each","-track-array","linked-block","not","union","array","hds/dropdown","empty-state","mfa/method-list-item","confirmation-modal","message-error"]]',moduleName:"vault/templates/vault/cluster/access/mfa/enforcements/enforcement/index.hbs",isStrictMode:!1})})),define("vault/templates/vault/cluster/access/mfa/enforcements/index",["exports","@ember/template-factory"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default=(0,t.createTemplateFactory)({id:"nZjQkzRh",block:'[[[8,[39,0],null,null,[["default"],[[[[1,"\\n  "],[8,[30,1,["levelLeft"]],null,null,[["default"],[[[[1,"\\n    "],[10,"h1"],[14,0,"title is-3"],[12],[1,"\\n      Multi-Factor Authentication\\n    "],[13],[1,"\\n  "]],[]]]]],[1,"\\n"]],[1]]]]],[1,"\\n\\n"],[8,[39,1],null,null,null],[1,"\\n\\n"],[8,[39,2],null,null,[["default"],[[[[1,"\\n  "],[8,[39,3],null,null,[["default"],[[[[1,"\\n    "],[8,[39,4],null,[["@route","@type"],["vault.cluster.access.mfa.enforcements.create","add"]],[["default"],[[[[1,"\\n      New enforcement\\n    "]],[]]]]],[1,"\\n  "]],[]]]]],[1,"\\n"]],[]]]]],[1,"\\n\\n"],[41,[28,[37,6],[[30,0,["model","length"]],0],null],[[[42,[28,[37,8],[[28,[37,8],[[30,0,["model"]]],null]],null],null,[[[1,"    "],[8,[39,9],null,[["@model"],[[30,2]]],null],[1,"\\n"]],[2]],null]],[]],[[[1,"  "],[8,[39,10],null,[["@title","@message"],["No enforcements found.","Add a new one to get started."]],null],[1,"\\n"]],[]]]],["p","item"],false,["page-header","mfa/nav","toolbar","toolbar-actions","toolbar-link","if","gt","each","-track-array","mfa/login-enforcement-list-item","empty-state"]]',moduleName:"vault/templates/vault/cluster/access/mfa/enforcements/index.hbs",isStrictMode:!1})})),define("vault/templates/vault/cluster/access/mfa/index",["exports","@ember/template-factory"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default=(0,t.createTemplateFactory)({id:"UsBFI2nI",block:'[[[8,[39,0],null,null,[["default"],[[[[1,"\\n  "],[8,[30,1,["levelLeft"]],null,null,[["default"],[[[[1,"\\n    "],[10,"h1"],[14,0,"title is-3"],[12],[1,"\\n      Multi-Factor Authentication\\n    "],[13],[1,"\\n  "]],[]]]]],[1,"\\n"]],[1]]]]],[1,"\\n\\n"],[10,0],[14,0,"box is-fullwidth is-sideless is-flex-between is-shadowless is-marginless"],[12],[1,"\\n  "],[10,2],[12],[1,"\\n    Configure and enforce multi-factor authentication (MFA) for users logging into Vault, for any\\n    "],[10,"br"],[12],[13],[1,"\\n    authentication method.\\n    "],[8,[39,1],null,[["@href"],[[28,[37,2],["/vault/tutorials/auth-methods/multi-factor-authentication"],null]]],[["default"],[[[[1,"Learn more"]],[]]]]],[1,"\\n  "],[13],[1,"\\n  "],[8,[39,3],null,[["@text","@route"],["Configure MFA","vault.cluster.access.mfa.methods.create"]],null],[1,"\\n"],[13],[1,"\\n"],[10,0],[14,0,"box is-fullwidth is-shadowless"],[12],[1,"\\n  "],[10,2],[12],[1,"\\n    "],[10,"b"],[12],[1,"Step 1:"],[13],[1,"\\n    Set up an MFA configuration using one of the methods; TOTP, Okta, Duo or Pingid.\\n  "],[13],[1,"\\n  "],[10,2],[12],[1,"\\n    "],[10,"b"],[12],[1,"Step 2:"],[13],[1,"\\n    Set up an enforcement to map the MFA configuration to your chosen auth method(s).\\n  "],[13],[1,"\\n"],[13],[1,"\\n\\n"],[10,0],[14,0,"box is-fullwidth is-shadowless"],[12],[1,"\\n  "],[10,"img"],[15,"src",[28,[37,4],["~/mfa-landing.png"],null]],[14,"alt","MFA configure diagram"],[12],[13],[1,"\\n"],[13]],["p"],false,["page-header","hds/link/inline","doc-link","hds/button","img-path"]]',moduleName:"vault/templates/vault/cluster/access/mfa/index.hbs",isStrictMode:!1})})),define("vault/templates/vault/cluster/access/mfa/methods/create",["exports","@ember/template-factory"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default=(0,t.createTemplateFactory)({id:"3MHr2pBs",block:'[[[8,[39,0],null,null,[["default"],[[[[1,"\\n  "],[8,[30,1,["top"]],null,null,[["default"],[[[[1,"\\n    "],[8,[39,1],null,null,[["default"],[[[[1,"\\n      "],[8,[39,2],null,[["@text","@route"],["Methods","vault.cluster.access.mfa.methods.index"]],null],[1,"\\n      "],[8,[39,2],null,[["@text","@current"],["Configure MFA Method",true]],null],[1,"\\n    "]],[]]]]],[1,"\\n  "]],[]]]]],[1,"\\n  "],[8,[30,1,["levelLeft"]],[[24,0,"has-border-bottom-light"]],null,[["default"],[[[[1,"\\n    "],[10,"h1"],[14,0,"title is-3"],[12],[1,"\\n"],[41,[30,0,["method"]],[[[1,"        Configure\\n        "],[1,[30,0,["method","name"]]],[1,"\\n        MFA\\n"]],[]],[[[1,"        Multi-Factor Authentication\\n"]],[]]],[1,"    "],[13],[1,"\\n  "]],[]]]]],[1,"\\n"]],[1]]]]],[1,"\\n"],[10,0],[14,0,"has-border-top-light has-top-padding-l"],[12],[1,"\\n"],[41,[30,0,["showForms"]],[[[1,"    "],[10,"h3"],[14,0,"is-size-4 has-text-weight-semibold"],[12],[1,"Settings"],[13],[1,"\\n    "],[10,2],[14,0,"has-border-top-light has-top-padding-l"],[12],[1,"\\n      "],[1,[30,0,["description"]]],[1,"\\n      "],[8,[39,4],null,[["@path"],[[28,[37,5],["/vault/api-docs/secret/identity/mfa/",[30,0,["type"]]],null]]],[["default"],[[[[1,"Learn more."]],[]]]]],[1,"\\n    "],[13],[1,"\\n    "],[8,[39,6],[[24,0,"is-shadowless"]],[["@model","@validations"],[[30,0,["method"]],[30,0,["methodErrors"]]]],null],[1,"\\n    "],[8,[39,7],null,[["@isInline","@radioCardGroupValue","@onRadioCardSelect","@onEnforcementSelect"],[true,[30,0,["enforcementPreference"]],[30,0,["onEnforcementPreferenceChange"]],[28,[37,8],[[28,[37,9],[[30,0,["enforcement"]]],null]],null]]],null],[1,"\\n"],[41,[28,[37,10],[[30,0,["enforcementPreference"]],"new"],null],[[[1,"      "],[8,[39,11],[[24,0,"has-top-margin-l"]],[["@model","@isInline","@modelErrors"],[[30,0,["enforcement"]],true,[30,0,["enforcementErrors"]]]],null],[1,"\\n"]],[]],null]],[]],[[[1,"    "],[10,2],[12],[1,"\\n      Multi-factor authentication (MFA) allows you to set up another layer of security on top of existing authentication\\n      methods. Vault has four available methods.\\n      "],[8,[39,4],null,[["@path"],["/vault/api-docs/secret/identity/mfa"]],[["default"],[[[[1,"Learn more."]],[]]]]],[1,"\\n    "],[13],[1,"\\n    "],[10,0],[14,0,"is-flex-row has-top-margin-xl"],[12],[1,"\\n"],[42,[28,[37,13],[[28,[37,13],[[30,0,["methods"]]],null]],null],null,[[[1,"        "],[8,[39,14],null,[["@value","@groupValue","@onChange"],[[28,[37,15],[[30,2,["name"]]],null],[30,0,["type"]],[30,0,["onTypeSelect"]]]],[["default"],[[[[1,"\\n          "],[10,0],[14,0,"radio-card-row is-flex-v-centered"],[12],[1,"\\n            "],[10,0],[12],[1,"\\n              "],[8,[39,16],[[16,0,[52,[28,[37,10],[[30,2,["name"]],"TOTP"],null],"has-text-grey"]]],[["@name","@size"],[[30,2,["icon"]],"24"]],null],[1,"\\n              "],[10,2],[15,0,[29,["has-text-weight-semibold has-text-center\\n                  ",[52,[28,[37,17],[[28,[37,10],[[30,2,["name"]],"Okta"],null],[28,[37,10],[[30,2,["name"]],"TOTP"],null]],null],"has-top-margin-xs"]]]],[12],[1,"\\n                "],[1,[30,2,["name"]]],[1,"\\n              "],[13],[1,"\\n            "],[13],[1,"\\n          "],[13],[1,"\\n        "]],[]]]]],[1,"\\n"]],[2]],null],[1,"    "],[13],[1,"\\n"],[41,[30,0,["type"]],[[[1,"      "],[10,2],[14,0,"has-top-margin-l"],[12],[1,"\\n        "],[1,[30,0,["description"]]],[1,"\\n        "],[8,[39,4],null,[["@path"],[[28,[37,5],["/vault/api-docs/secret/identity/mfa/",[30,0,["type"]]],null]]],[["default"],[[[[1,"Learn more."]],[]]]]],[1,"\\n      "],[13],[1,"\\n"]],[]],null]],[]]],[1,"\\n  "],[10,0],[14,0,"has-top-margin-l has-border-top-light"],[12],[1,"\\n    "],[10,0],[14,0,"has-top-margin-l has-bottom-margin-l"],[12],[1,"\\n"],[41,[30,0,["showForms"]],[[[1,"        "],[8,[39,18],null,null,[["default"],[[[[1,"\\n          "],[8,[39,19],[[4,[38,20],["click",[28,[37,21],[[30,0,["save"]]],null]],null]],[["@text"],["Continue"]],null],[1,"\\n          "],[8,[39,19],[[4,[38,20],["click",[30,0,["cancel"]]],null]],[["@text","@color"],["Cancel","secondary"]],null],[1,"\\n        "]],[]]]]],[1,"\\n"]],[]],[[[41,[30,0,["type"]],[[[1,"        "],[8,[39,19],[[4,[38,20],["click",[30,0,["createModels"]]],null]],[["@text"],["Next"]],null],[1,"\\n      "]],[]],null]],[]]],[1,"    "],[13],[1,"\\n  "],[13],[1,"\\n"],[13]],["p","method"],false,["page-header","hds/breadcrumb","hds/breadcrumb/item","if","doc-link","concat","mfa/method-form","mfa/mfa-login-enforcement-header","fn","mut","eq","mfa/mfa-login-enforcement-form","each","-track-array","radio-card","lowercase","icon","or","hds/button-set","hds/button","on","perform"]]',moduleName:"vault/templates/vault/cluster/access/mfa/methods/create.hbs",isStrictMode:!1})})),define("vault/templates/vault/cluster/access/mfa/methods/index",["exports","@ember/template-factory"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default=(0,t.createTemplateFactory)({id:"+dIYOHZx",block:'[[[8,[39,0],null,null,[["default"],[[[[1,"\\n  "],[8,[30,1,["levelLeft"]],null,null,[["default"],[[[[1,"\\n    "],[10,"h1"],[14,0,"title is-3"],[12],[1,"\\n      Multi-Factor Authentication\\n    "],[13],[1,"\\n  "]],[]]]]],[1,"\\n"]],[1]]]]],[1,"\\n\\n"],[8,[39,1],null,null,null],[1,"\\n\\n"],[8,[39,2],null,null,[["default"],[[[[1,"\\n  "],[8,[39,3],null,null,[["default"],[[[[1,"\\n    "],[8,[39,4],null,[["@route","@type"],["vault.cluster.access.mfa.methods.create","add"]],[["default"],[[[[1,"\\n      New MFA method\\n    "]],[]]]]],[1,"\\n  "]],[]]]]],[1,"\\n"]],[]]]]],[1,"\\n\\n"],[41,[28,[37,6],[[30,0,["model","length"]],0],null],[[[42,[28,[37,8],[[28,[37,8],[[30,0,["model"]]],null]],null],null,[[[1,"    "],[8,[39,9],null,[["@model"],[[30,2]]],null],[1,"\\n"]],[2]],null]],[]],[[[1,"  "],[8,[39,10],null,[["@title","@message"],["No methods found.","Add a new one to get started."]],null],[1,"\\n"]],[]]]],["p","item"],false,["page-header","mfa/nav","toolbar","toolbar-actions","toolbar-link","if","gt","each","-track-array","mfa/method-list-item","empty-state"]]',moduleName:"vault/templates/vault/cluster/access/mfa/methods/index.hbs",isStrictMode:!1})})),define("vault/templates/vault/cluster/access/mfa/methods/method/edit",["exports","@ember/template-factory"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default=(0,t.createTemplateFactory)({id:"Oo1WqiIW",block:'[[[8,[39,0],null,null,[["default"],[[[[1,"\\n  "],[8,[30,1,["levelLeft"]],null,null,[["default"],[[[[1,"\\n    "],[10,"h1"],[14,0,"title is-3"],[12],[1,"\\n      Configure\\n      "],[1,[30,0,["model","method","name"]]],[1,"\\n      MFA\\n    "],[13],[1,"\\n  "]],[]]]]],[1,"\\n"]],[1]]]]],[1,"\\n\\n"],[8,[39,1],null,[["@model","@hasActions","@onSave","@onClose"],[[30,0,["model","method"]],true,[28,[37,2],["vault.cluster.access.mfa.methods.method",[30,0,["model","method","id"]]],null],[28,[37,2],["vault.cluster.access.mfa.methods.method",[30,0,["model","method","id"]]],null]]],null]],["p"],false,["page-header","mfa/method-form","transition-to"]]',moduleName:"vault/templates/vault/cluster/access/mfa/methods/method/edit.hbs",isStrictMode:!1})})),define("vault/templates/vault/cluster/access/mfa/methods/method/index",["exports","@ember/template-factory"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default=(0,t.createTemplateFactory)({id:"O/vEcjLx",block:'[[[8,[39,0],null,null,[["default"],[[[[1,"\\n  "],[8,[30,1,["top"]],null,null,[["default"],[[[[1,"\\n    "],[8,[39,1],null,null,[["default"],[[[[1,"\\n      "],[8,[39,2],null,[["@text","@route"],["Methods","vault.cluster.access.mfa.methods.index"]],null],[1,"\\n      "],[8,[39,2],null,[["@text","@current"],[[30,0,["model","method","name"]],true]],null],[1,"\\n    "]],[]]]]],[1,"\\n  "]],[]]]]],[1,"\\n  "],[8,[30,1,["levelLeft"]],null,null,[["default"],[[[[1,"\\n    "],[10,"h1"],[14,0,"title is-3"],[12],[1,"\\n      "],[8,[39,3],null,[["@size","@name"],["24",[30,0,["model","method","icon"]]]],null],[1,"\\n      "],[1,[30,0,["model","method","name"]]],[1,"\\n    "],[13],[1,"\\n  "]],[]]]]],[1,"\\n"]],[1]]]]],[1,"\\n\\n"],[10,0],[14,0,"tabs-container box is-sideless is-fullwidth is-paddingless is-marginless"],[12],[1,"\\n  "],[10,"nav"],[14,0,"tabs"],[14,"aria-label","tabs"],[12],[1,"\\n    "],[10,"ul"],[12],[1,"\\n      "],[8,[39,4],null,[["@route","@query"],["vault.cluster.access.mfa.methods.method",[28,[37,5],null,[["tab"],["config"]]]]],[["default"],[[[[1,"\\n        Configuration\\n      "]],[]]]]],[1,"\\n      "],[8,[39,4],null,[["@route","@query"],["vault.cluster.access.mfa.methods.method",[28,[37,5],null,[["tab"],["enforcements"]]]]],[["default"],[[[[1,"\\n        Enforcements\\n      "]],[]]]]],[1,"\\n    "],[13],[1,"\\n  "],[13],[1,"\\n"],[13],[1,"\\n\\n"],[41,[28,[37,7],[[30,0,["tab"]],"config"],null],[[[1,"  "],[8,[39,8],null,null,[["default"],[[[[1,"\\n    "],[8,[39,9],null,null,[["default"],[[[[1,"\\n      "],[8,[39,10],[[24,0,"toolbar-button"]],[["@disabledMessage","@buttonColor","@onConfirmAction","@confirmMessage","@buttonText"],[[52,[51,[28,[37,12],[[30,0,["model","enforcements"]]],null]],"This method cannot be deleted until its enforcements are deleted. This can be done from the \'Enforcements\' tab."],"secondary",[30,0,["deleteMethod"]],"Deleting this MFA configuration is permanent, and it will no longer be available.","Delete"]],null],[1,"\\n      "],[8,[39,13],null,[["@route","@model"],["vault.cluster.access.mfa.methods.method.edit",[30,0,["model","method","id"]]]],[["default"],[[[[1,"\\n        Edit\\n      "]],[]]]]],[1,"\\n    "]],[]]]]],[1,"\\n  "]],[]]]]],[1,"\\n  "],[10,0],[14,0,"box is-fullwidth is-sideless is-paddingless is-marginless"],[12],[1,"\\n    "],[8,[39,14],null,[["@label","@value","@addCopyButton"],["ID",[30,0,["model","method","id"]],true]],null],[1,"\\n"],[42,[28,[37,16],[[28,[37,16],[[30,0,["model","method","attrs"]]],null]],null],null,[[[41,[28,[37,7],[[30,2,["type"]],"object"],null],[[[1,"        "],[8,[39,14],null,[["@alwaysRender","@label","@value"],[[28,[37,17],[[28,[37,18],[[28,[37,19],[[30,0,["model","method"]],[30,2,["name"]]],null]],null]],null],[28,[37,20],[[30,2,["options","label"]],[28,[37,21],[[30,2,["name"]]],null]],null],[28,[37,22],[[28,[37,19],[[30,0,["model","method"]],[30,2,["name"]]],null]],null]]],null],[1,"\\n"]],[]],[[[1,"        "],[8,[39,14],null,[["@alwaysRender","@label","@value"],[[28,[37,17],[[28,[37,18],[[28,[37,19],[[30,0,["model","method"]],[30,2,["name"]]],null]],null]],null],[28,[37,20],[[30,2,["options","label"]],[28,[37,21],[[30,2,["name"]]],null]],null],[28,[37,19],[[30,0,["model","method"]],[30,2,["name"]]],null]]],null],[1,"\\n"]],[]]]],[2]],null],[1,"  "],[13],[1,"\\n"]],[]],[[[41,[28,[37,7],[[30,0,["tab"]],"enforcements"],null],[[[1,"  "],[8,[39,8],null,null,[["default"],[[[[1,"\\n    "],[8,[39,9],null,null,[["default"],[[[[1,"\\n      "],[8,[39,13],null,[["@route","@type"],["vault.cluster.access.mfa.enforcements.create","add"]],[["default"],[[[[1,"\\n        New enforcement\\n      "]],[]]]]],[1,"\\n    "]],[]]]]],[1,"\\n  "]],[]]]]],[1,"\\n  "],[10,0],[14,0,"box is-fullwidth is-sideless is-paddingless is-marginless"],[12],[1,"\\n"],[41,[28,[37,12],[[30,0,["model","enforcements"]]],null],[[[1,"      "],[8,[39,23],null,[["@title","@message"],["No enforcements found.","No enforcements are applied to this MFA method. Edit an existing enforcement or add a new one to get started."]],null],[1,"\\n"]],[]],[[[42,[28,[37,16],[[28,[37,16],[[30,0,["model","enforcements"]]],null]],null],null,[[[1,"        "],[8,[39,24],null,[["@model"],[[30,3]]],null],[1,"\\n"]],[3]],null]],[]]],[1,"  "],[13],[1,"\\n"]],[]],null]],[]]]],["p","attr","item"],false,["page-header","hds/breadcrumb","hds/breadcrumb/item","icon","link-to","hash","if","eq","toolbar","toolbar-actions","confirm-action","unless","is-empty","toolbar-link","info-table-row","each","-track-array","not","is-empty-value","get","or","to-label","stringify","empty-state","mfa/login-enforcement-list-item"]]',moduleName:"vault/templates/vault/cluster/access/mfa/methods/method/index.hbs",isStrictMode:!1})})),define("vault/templates/vault/cluster/access/namespaces",["exports","@ember/template-factory"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default=(0,t.createTemplateFactory)({id:"FUyrX9vj",block:'[[[46,[28,[37,1],null,null],null,null,null]],[],false,["component","-outlet"]]',moduleName:"vault/templates/vault/cluster/access/namespaces.hbs",isStrictMode:!1})})),define("vault/templates/vault/cluster/access/namespaces/create",["exports","@ember/template-factory"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default=(0,t.createTemplateFactory)({id:"EZpKHQDH",block:'[[[41,[28,[37,1],["Namespaces"],null],[[[1,"  "],[8,[39,2],null,null,[["default"],[[[[1,"\\n    "],[8,[30,1,["top"]],null,null,[["default"],[[[[1,"\\n      "],[8,[39,3],null,null,[["default"],[[[[1,"\\n        "],[8,[39,4],null,[["@text","@route"],["Namespaces","vault.cluster.access.namespaces.index"]],null],[1,"\\n        "],[8,[39,4],null,[["@text","@current"],["Create",true]],null],[1,"\\n      "]],[]]]]],[1,"\\n    "]],[]]]]],[1,"\\n    "],[8,[30,1,["levelLeft"]],null,null,[["default"],[[[[1,"\\n      "],[10,"h1"],[14,0,"title is-3"],[12],[1,"\\n        Create a Namespace\\n      "],[13],[1,"\\n    "]],[]]]]],[1,"\\n  "]],[1]]]]],[1,"\\n  "],[8,[39,5],null,[["@model","@onSave","@cancelLinkParams"],[[30,0,["model"]],[28,[37,6],[[30,0],"onSave"],null],[28,[37,7],["vault.cluster.access.namespaces.index"],null]]],null],[1,"\\n"]],[]],[[[1,"  "],[8,[39,8],null,[["@title","@minimumEdition"],["Namespaces","Vault Enterprise Pro"]],null],[1,"\\n"]],[]]]],["p"],false,["if","has-feature","page-header","hds/breadcrumb","hds/breadcrumb/item","edit-form","action","array","upgrade-page"]]',moduleName:"vault/templates/vault/cluster/access/namespaces/create.hbs",isStrictMode:!1})})),define("vault/templates/vault/cluster/access/namespaces/index",["exports","@ember/template-factory"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default=(0,t.createTemplateFactory)({id:"rJsiYfqc",block:'[[[41,[28,[37,1],["Namespaces"],null],[[[1,"  "],[8,[39,2],null,null,[["default"],[[[[1,"\\n    "],[8,[30,1,["levelLeft"]],null,null,[["default"],[[[[1,"\\n      "],[10,"h1"],[14,0,"title is-3"],[12],[1,"\\n        Namespaces\\n      "],[13],[1,"\\n    "]],[]]]]],[1,"\\n  "]],[1]]]]],[1,"\\n\\n  "],[8,[39,3],null,null,[["default"],[[[[1,"\\n    "],[8,[39,4],null,null,[["default"],[[[[1,"\\n      "],[8,[39,5],null,[["@route","@type"],["vault.cluster.access.namespaces.create","add"]],[["default"],[[[[1,"\\n        Create namespace\\n      "]],[]]]]],[1,"\\n    "]],[]]]]],[1,"\\n  "]],[]]]]],[1,"\\n\\n  "],[8,[39,6],null,[["@items","@itemNoun","@paginationRouteName"],[[30,0,["model"]],"namespace","vault.cluster.access.namespaces"]],[["default"],[[[[1,"\\n"],[41,[30,2,["empty"]],[[[1,"      "],[8,[30,2,["empty"]],null,null,[["default"],[[[[1,"\\n        "],[8,[39,7],null,[["@icon","@text","@href"],["learn-link","Secure multi-tenancy with namespaces tutorial",[28,[37,8],["/vault/tutorials/enterprise/namespaces"],null]]],null],[1,"\\n      "]],[]]]]],[1,"\\n"]],[]],[[[1,"      "],[8,[39,9],null,null,[["default"],[[[[1,"\\n        "],[8,[30,3,["content"]],null,null,[["default"],[[[[1,"\\n          "],[1,[30,2,["item","id"]]],[1,"\\n        "]],[]]]]],[1,"\\n        "],[8,[30,3,["menu"]],null,null,[["default"],[[[[1,"\\n          "],[8,[39,10],null,[["@isInline","@listPosition"],[true,"bottom-right"]],[["default"],[[[[1,"\\n            "],[8,[30,4,["ToggleIcon"]],null,[["@icon","@text","@hasChevron"],["more-horizontal","More options",false]],null],[1,"\\n"],[44,[[28,[37,12],[[30,0,["currentNamespace"]],[52,[30,0,["currentNamespace"]],"/"],[30,2,["item","id"]]],null]],[[[41,[28,[37,13],[[30,5],[30,0,["accessibleNamespaces"]]],null],[[[1,"                "],[8,[30,4,["Generic"]],null,null,[["default"],[[[[1,"\\n                  "],[8,[39,14],null,[["@targetNamespace","@unparsed","@class"],[[30,5],true,"ns-dropdown-item"]],[["default"],[[[[1,"\\n                    Switch to Namespace\\n                  "]],[]]]]],[1,"\\n                "]],[]]]]],[1,"\\n"]],[]],null]],[5]]],[1,"            "],[8,[30,4,["Interactive"]],[[4,[38,15],["click",[28,[37,16],[[28,[37,17],[[30,0,["nsToDelete"]]],null],[30,2,["item"]]],null]],null]],[["@text","@color"],["Delete","critical"]],null],[1,"\\n          "]],[4]]]]],[1,"\\n"],[41,[28,[37,18],[[30,0,["nsToDelete"]],[30,2,["item"]]],null],[[[1,"            "],[8,[39,19],null,[["@color","@onClose","@onConfirm","@confirmTitle","@confirmMessage"],["critical",[28,[37,16],[[28,[37,17],[[30,0,["nsToDelete"]]],null],null],null],[28,[37,20],[[30,0],[28,[37,21],[[30,3,["callMethod"]],"destroyRecord",[30,0,["nsToDelete"]],[28,[37,12],["Successfully deleted namespace: ",[30,0,["nsToDelete","id"]]],null],"There was an error deleting this namespace: ",[28,[37,20],[[30,0],"refreshNamespaceList"],null]],null]],null],"Delete this namespace?","Any engines or mounts in this namespace will also be removed."]],null],[1,"\\n"]],[]],null],[1,"        "]],[]]]]],[1,"\\n      "]],[3]]]]],[1,"\\n"]],[]]],[1,"  "]],[2]]]]],[1,"\\n"]],[]],[[[1,"  "],[8,[39,22],null,[["@title","@minimumEdition"],["Namespaces","Vault Enterprise Pro"]],null],[1,"\\n"]],[]]]],["p","list","Item","dd","targetNamespace"],false,["if","has-feature","page-header","toolbar","toolbar-actions","toolbar-link","list-view","hds/link/standalone","doc-link","list-item","hds/dropdown","let","concat","includes","namespace-link","on","fn","mut","eq","confirm-modal","action","perform","upgrade-page"]]',moduleName:"vault/templates/vault/cluster/access/namespaces/index.hbs",isStrictMode:!1})})),define("vault/templates/vault/cluster/access/oidc",["exports","@ember/template-factory"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default=(0,t.createTemplateFactory)({id:"vBZxjjaK",block:'[[[41,[30,0,["header"]],[[[1,"  "],[8,[39,1],null,null,[["default"],[[[[1,"\\n    "],[8,[30,1,["levelLeft"]],null,null,[["default"],[[[[1,"\\n      "],[10,"h1"],[14,0,"title is-3"],[12],[1,"\\n        OIDC Provider\\n      "],[13],[1,"\\n    "]],[]]]]],[1,"\\n  "]],[1]]]]],[1,"\\n  "],[10,0],[14,0,"box is-fullwidth is-sideless is-flex-between is-shadowless is-marginless"],[12],[1,"\\n    "],[10,2],[12],[1,"\\n      Configure Vault to act as an OIDC identity provider, and offer\\n      "],[1,"Vault’s"],[1,"\\n      various authentication\\n"],[41,[30,0,["isCta"]],[[[1,"        "],[10,"br"],[12],[13],[1,"\\n"]],[]],null],[1,"      methods and source of identity to any client applications.\\n      "],[8,[39,2],null,[["@href"],[[28,[37,3],["/vault/tutorials/auth-methods/oidc-identity-provider"],null]]],[["default"],[[[[1,"Learn more"]],[]]]]],[1,"\\n    "],[13],[1,"\\n"],[41,[30,0,["isCta"]],[[[1,"      "],[8,[39,4],null,[["@text","@route"],["Create your first app","vault.cluster.access.oidc.clients.create"]],null],[1,"\\n"]],[]],null],[1,"  "],[13],[1,"\\n"],[41,[51,[30,0,["isCta"]]],[[[1,"    "],[10,0],[14,0,"tabs-container box is-sideless is-fullwidth is-paddingless is-marginless"],[12],[1,"\\n      "],[10,"nav"],[14,0,"tabs"],[14,"aria-label","navigation for managing Open ID Connect"],[12],[1,"\\n        "],[10,"ul"],[12],[1,"\\n          "],[8,[39,6],null,[["@route"],["vault.cluster.access.oidc.clients"]],[["default"],[[[[1,"\\n            Applications\\n          "]],[]]]]],[1,"\\n          "],[8,[39,6],null,[["@route"],["vault.cluster.access.oidc.keys"]],[["default"],[[[[1,"\\n            Keys\\n          "]],[]]]]],[1,"\\n          "],[8,[39,6],null,[["@route"],["vault.cluster.access.oidc.assignments"]],[["default"],[[[[1,"\\n            Assignments\\n          "]],[]]]]],[1,"\\n          "],[8,[39,6],null,[["@route"],["vault.cluster.access.oidc.providers"]],[["default"],[[[[1,"\\n            Providers\\n          "]],[]]]]],[1,"\\n          "],[8,[39,6],null,[["@route"],["vault.cluster.access.oidc.scopes"]],[["default"],[[[[1,"\\n            Scopes\\n          "]],[]]]]],[1,"\\n        "],[13],[1,"\\n      "],[13],[1,"\\n    "],[13],[1,"\\n"]],[]],null]],[]],null],[1,"\\n"],[46,[28,[37,8],null,null],null,null,null]],["p"],false,["if","page-header","hds/link/inline","doc-link","hds/button","unless","link-to","component","-outlet"]]',moduleName:"vault/templates/vault/cluster/access/oidc.hbs",isStrictMode:!1})})),define("vault/templates/vault/cluster/access/oidc/assignments/assignment/details",["exports","@ember/template-factory"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default=(0,t.createTemplateFactory)({id:"RHYfCaL2",block:'[[[8,[39,0],null,null,[["default"],[[[[1,"\\n  "],[8,[30,1,["top"]],null,null,[["default"],[[[[1,"\\n    "],[8,[39,1],null,null,[["default"],[[[[1,"\\n      "],[8,[39,2],null,[["@text","@route"],["Assignments","vault.cluster.access.oidc.assignments"]],null],[1,"\\n      "],[8,[39,2],null,[["@text","@current"],[[30,2,["name"]],true]],null],[1,"\\n    "]],[]]]]],[1,"\\n  "]],[]]]]],[1,"\\n  "],[8,[30,1,["levelLeft"]],null,null,[["default"],[[[[1,"\\n    "],[10,"h1"],[14,0,"title is-3"],[12],[1,"\\n      "],[1,[30,2,["name"]]],[1,"\\n    "],[13],[1,"\\n  "]],[]]]]],[1,"\\n"]],[1]]]]],[1,"\\n\\n"],[10,0],[14,0,"tabs-container box is-sideless is-fullwidth is-paddingless is-marginless"],[12],[1,"\\n  "],[10,"nav"],[14,0,"tabs"],[14,"aria-label","tabs"],[12],[1,"\\n    "],[10,"ul"],[12],[1,"\\n      "],[8,[39,3],null,[["@route","@model"],["vault.cluster.access.oidc.assignments.assignment.details",[30,2]]],[["default"],[[[[1,"\\n        Details\\n      "]],[]]]]],[1,"\\n    "],[13],[1,"\\n  "],[13],[1,"\\n"],[13],[1,"\\n\\n"],[8,[39,4],null,null,[["default"],[[[[1,"\\n  "],[8,[39,5],null,null,[["default"],[[[[1,"\\n"],[41,[30,2,["canDelete"]],[[[1,"      "],[8,[39,7],[[24,0,"toolbar-button"]],[["@buttonText","@buttonColor","@onConfirmAction","@confirmTitle","@confirmMessage"],["Delete assignment","secondary",[30,0,["delete"]],"Delete assignment?","This assignment will be permanently deleted. You will not be able to recover it."]],null],[1,"\\n      "],[10,0],[14,0,"toolbar-separator"],[12],[13],[1,"\\n"]],[]],null],[41,[30,2,["canEdit"]],[[[1,"      "],[8,[39,8],null,[["@route","@model"],["vault.cluster.access.oidc.assignments.assignment.edit",[30,2,["name"]]]],[["default"],[[[[1,"\\n        Edit assignment\\n      "]],[]]]]],[1,"\\n"]],[]],null],[1,"  "]],[]]]]],[1,"\\n"]],[]]]]],[1,"\\n\\n"],[10,0],[14,0,"box is-fullwidth is-sideless is-paddingless is-marginless"],[12],[1,"\\n  "],[8,[39,9],null,[["@label","@value"],["Name",[30,2,["name"]]]],null],[1,"\\n  "],[8,[39,9],null,[["@label","@type","@value","@model","@isLink","@renderItemName","@modelType","@itemRoute","@alwaysRender","@toggleViewAll"],["Entities","array",[30,2,["entityIds"]],[30,2],true,true,"identity/entity",[28,[37,10],["vault.cluster.access.identity.show","entities","details"],null],true,true]],null],[1,"\\n  "],[8,[39,9],null,[["@label","@type","@value","@model","@isLink","@renderItemName","@modelType","@itemRoute","@alwaysRender","@doNotTruncate"],["Groups","array",[30,2,["groupIds"]],[30,2],true,true,"identity/group",[28,[37,10],["vault.cluster.access.identity.show","groups","details"],null],true,true]],null],[1,"\\n"],[13]],["p","@model"],false,["page-header","hds/breadcrumb","hds/breadcrumb/item","link-to","toolbar","toolbar-actions","if","confirm-action","toolbar-link","info-table-row","array"]]',moduleName:"vault/templates/vault/cluster/access/oidc/assignments/assignment/details.hbs",isStrictMode:!1})})),define("vault/templates/vault/cluster/access/oidc/assignments/assignment/edit",["exports","@ember/template-factory"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default=(0,t.createTemplateFactory)({id:"ltB7pdWv",block:'[[[8,[39,0],null,null,[["default"],[[[[1,"\\n  "],[8,[30,1,["top"]],null,null,[["default"],[[[[1,"\\n    "],[8,[39,1],null,null,[["default"],[[[[1,"\\n      "],[8,[39,2],null,[["@text","@route","@model"],["Details","vault.cluster.access.oidc.assignments.assignment.details",[30,0,["model","name"]]]],null],[1,"\\n      "],[8,[39,2],null,[["@text","@current"],["Edit Assignment",true]],null],[1,"\\n    "]],[]]]]],[1,"\\n  "]],[]]]]],[1,"\\n  "],[8,[30,1,["levelLeft"]],null,null,[["default"],[[[[1,"\\n    "],[10,"h1"],[14,0,"title is-3"],[12],[1,"\\n      Edit Assignment\\n    "],[13],[1,"\\n  "]],[]]]]],[1,"\\n"]],[1]]]]],[1,"\\n"],[8,[39,3],null,[["@model","@onCancel","@onSave"],[[30,0,["model"]],[28,[37,4],["vault.cluster.access.oidc.assignments.assignment.details",[30,0,["model","name"]]],null],[28,[37,4],["vault.cluster.access.oidc.assignments.assignment.details",[30,0,["model","name"]]],null]]],null]],["p"],false,["page-header","hds/breadcrumb","hds/breadcrumb/item","oidc/assignment-form","transition-to"]]',moduleName:"vault/templates/vault/cluster/access/oidc/assignments/assignment/edit.hbs",isStrictMode:!1})})),define("vault/templates/vault/cluster/access/oidc/assignments/create",["exports","@ember/template-factory"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default=(0,t.createTemplateFactory)({id:"eMUQpatX",block:'[[[8,[39,0],null,null,[["default"],[[[[1,"\\n  "],[8,[30,1,["top"]],null,null,[["default"],[[[[1,"\\n    "],[8,[39,1],null,null,[["default"],[[[[1,"\\n      "],[8,[39,2],null,[["@text","@route"],["Assignments","vault.cluster.access.oidc.assignments"]],null],[1,"\\n      "],[8,[39,2],null,[["@text","@current"],["Create Assignment",true]],null],[1,"\\n    "]],[]]]]],[1,"\\n  "]],[]]]]],[1,"\\n  "],[8,[30,1,["levelLeft"]],null,null,[["default"],[[[[1,"\\n    "],[10,"h1"],[14,0,"title is-3"],[12],[1,"\\n      Create Assignment\\n    "],[13],[1,"\\n  "]],[]]]]],[1,"\\n"]],[1]]]]],[1,"\\n"],[8,[39,3],null,[["@model","@onCancel","@onSave"],[[30,0,["model"]],[28,[37,4],["vault.cluster.access.oidc.assignments"],null],[28,[37,4],["vault.cluster.access.oidc.assignments.assignment.details",[30,0,["model","name"]]],null]]],null]],["p"],false,["page-header","hds/breadcrumb","hds/breadcrumb/item","oidc/assignment-form","transition-to"]]',moduleName:"vault/templates/vault/cluster/access/oidc/assignments/create.hbs",isStrictMode:!1})})),define("vault/templates/vault/cluster/access/oidc/assignments/index",["exports","@ember/template-factory"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default=(0,t.createTemplateFactory)({id:"9pdVNZOq",block:'[[[8,[39,0],null,null,[["default"],[[[[1,"\\n  "],[8,[39,1],null,null,[["default"],[[[[1,"\\n    "],[8,[39,2],null,[["@route","@type"],["vault.cluster.access.oidc.assignments.create","add"]],[["default"],[[[[1,"\\n      Create assignment\\n    "]],[]]]]],[1,"\\n  "]],[]]]]],[1,"\\n"]],[]]]]],[1,"\\n\\n"],[42,[28,[37,4],[[28,[37,4],[[30,0,["model"]]],null]],null],null,[[[1,"  "],[8,[39,5],[[16,0,[29,["list-item-row ",[52,[28,[37,7],[[30,1,["name"]],"allow_all"],null],"is-disabled"]]]]],[["@params","@disabled"],[[28,[37,8],["vault.cluster.access.oidc.assignments.assignment.details",[30,1,["name"]]],null],[28,[37,7],[[30,1,["name"]],"allow_all"],null]]],[["default"],[[[[1,"\\n    "],[10,0],[14,0,"level is-mobile"],[12],[1,"\\n      "],[10,0],[14,0,"level-left"],[12],[1,"\\n        "],[10,0],[12],[1,"\\n          "],[8,[39,9],[[24,0,"has-text-grey-light"]],[["@name"],["users"]],null],[1,"\\n          "],[10,1],[15,0,[29,["has-text-weight-semibold ",[52,[28,[37,10],[[30,1,["name"]],"allow_all"],null],"is-underline"]]]],[12],[1,"\\n            "],[1,[30,1,["name"]]],[1,"\\n          "],[13],[1,"\\n"],[41,[28,[37,7],[[30,1,["name"]],"allow_all"],null],[[[1,"            "],[10,0],[14,0,"is-size-8"],[12],[1,"\\n              This is a built-in assignment that cannot be modified or deleted.\\n              "],[8,[39,11],null,[["@path"],["/vault/docs/concepts/oidc-provider#assignments"]],[["default"],[[[[1,"\\n                Learn more\\n              "]],[]]]]],[1,"\\n            "],[13],[1,"\\n"]],[]],null],[1,"        "],[13],[1,"\\n      "],[13],[1,"\\n"],[41,[28,[37,10],[[30,1,["name"]],"allow_all"],null],[[[1,"        "],[10,0],[14,0,"level-right is-flex is-paddingless is-marginless"],[12],[1,"\\n          "],[10,0],[14,0,"level-item"],[12],[1,"\\n            "],[8,[39,12],null,[["@isInline","@listPosition"],[true,"bottom-right"]],[["default"],[[[[1,"\\n              "],[8,[30,2,["ToggleIcon"]],null,[["@icon","@text","@hasChevron"],["more-horizontal","Assignment nav options",false]],null],[1,"\\n              "],[8,[30,2,["Interactive"]],null,[["@text","@route","@model","@disabled"],["Details","vault.cluster.access.oidc.assignments.assignment.details",[30,1,["name"]],[28,[37,7],[[30,1,["canRead"]],false],null]]],null],[1,"\\n              "],[8,[30,2,["Interactive"]],null,[["@text","@route","@model","@disabled"],["Edit","vault.cluster.access.oidc.assignments.assignment.edit",[30,1,["name"]],[28,[37,7],[[30,1,["canEdit"]],false],null]]],null],[1,"\\n            "]],[2]]]]],[1,"\\n          "],[13],[1,"\\n        "],[13],[1,"\\n"]],[]],null],[1,"    "],[13],[1,"\\n  "]],[]]]]],[1,"\\n"]],[1]],null]],["model","dd"],false,["toolbar","toolbar-actions","toolbar-link","each","-track-array","linked-block","if","eq","array","icon","not-eq","doc-link","hds/dropdown"]]',moduleName:"vault/templates/vault/cluster/access/oidc/assignments/index.hbs",isStrictMode:!1})})),define("vault/templates/vault/cluster/access/oidc/clients/client",["exports","@ember/template-factory"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default=(0,t.createTemplateFactory)({id:"WKeTOO87",block:'[[[41,[30,0,["showHeader"]],[[[1,"  "],[8,[39,1],null,null,[["default"],[[[[1,"\\n    "],[8,[30,1,["top"]],null,null,[["default"],[[[[1,"\\n      "],[8,[39,2],null,null,[["default"],[[[[1,"\\n        "],[8,[39,3],null,[["@text","@route"],["Applications","vault.cluster.access.oidc.clients"]],null],[1,"\\n        "],[8,[39,3],null,[["@text","@current"],[[30,0,["model","name"]],true]],null],[1,"\\n      "]],[]]]]],[1,"\\n    "]],[]]]]],[1,"\\n    "],[8,[30,1,["levelLeft"]],null,null,[["default"],[[[[1,"\\n      "],[10,"h1"],[14,0,"title is-3"],[12],[1,"\\n        "],[1,[30,0,["model","name"]]],[1,"\\n      "],[13],[1,"\\n    "]],[]]]]],[1,"\\n  "]],[1]]]]],[1,"\\n\\n  "],[10,0],[14,0,"tabs-container box is-sideless is-fullwidth is-paddingless is-marginless"],[12],[1,"\\n    "],[10,"nav"],[14,0,"tabs"],[14,"aria-label","tabs"],[12],[1,"\\n      "],[10,"ul"],[12],[1,"\\n        "],[8,[39,4],null,[["@route","@model"],["vault.cluster.access.oidc.clients.client.details",[30,0,["model"]]]],[["default"],[[[[1,"\\n          Details\\n        "]],[]]]]],[1,"\\n        "],[8,[39,4],null,[["@route","@model"],["vault.cluster.access.oidc.clients.client.providers",[30,0,["model"]]]],[["default"],[[[[1,"\\n          Available providers\\n        "]],[]]]]],[1,"\\n      "],[13],[1,"\\n    "],[13],[1,"\\n  "],[13],[1,"\\n"]],[]],null],[1,"\\n"],[46,[28,[37,6],null,null],null,null,null]],["p"],false,["if","page-header","hds/breadcrumb","hds/breadcrumb/item","link-to","component","-outlet"]]',moduleName:"vault/templates/vault/cluster/access/oidc/clients/client.hbs",isStrictMode:!1})})),define("vault/templates/vault/cluster/access/oidc/clients/client/details",["exports","@ember/template-factory"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default=(0,t.createTemplateFactory)({id:"4BOzQEHs",block:'[[[8,[39,0],null,null,[["default"],[[[[1,"\\n  "],[8,[39,1],null,null,[["default"],[[[[1,"\\n"],[41,[30,0,["model","canDelete"]],[[[1,"      "],[8,[39,3],[[24,0,"toolbar-button"]],[["@buttonText","@buttonColor","@onConfirmAction","@confirmTitle","@confirmMessage"],["Delete application","secondary",[30,0,["delete"]],"Delete application?","This application will be permanently deleted. You will need to re-create it to use it again."]],null],[1,"\\n      "],[10,0],[14,0,"toolbar-separator"],[12],[13],[1,"\\n"]],[]],null],[41,[30,0,["model","canEdit"]],[[[1,"      "],[8,[39,4],null,[["@route","@model"],["vault.cluster.access.oidc.clients.client.edit",[30,0,["model","name"]]]],[["default"],[[[[1,"\\n        Edit application\\n      "]],[]]]]],[1,"\\n"]],[]],null],[1,"  "]],[]]]]],[1,"\\n"]],[]]]]],[1,"\\n\\n"],[10,0],[14,0,"box is-fullwidth is-sideless is-paddingless is-marginless"],[12],[1,"\\n  "],[8,[39,5],null,[["@label","@value","@alwaysRender"],["Name",[30,0,["model","name"]],true]],null],[1,"\\n  "],[8,[39,5],null,[["@label","@value","@alwaysRender"],["Type",[30,0,["model","clientType"]],true]],null],[1,"\\n  "],[8,[39,5],null,[["@label","@value","@alwaysRender"],["Redirect URI",[30,0,["model","redirectUris"]],true]],null],[1,"\\n  "],[8,[39,5],null,[["@label","@value","@alwaysRender"],["Assignment",[30,0,["model","assignments"]],true]],null],[1,"\\n  "],[8,[39,5],null,[["@label","@alwaysRender"],["Key",true]],[["default"],[[[[1,"\\n    "],[8,[39,6],null,[["@route","@model"],["vault.cluster.access.oidc.keys.key.details",[30,0,["model","key"]]]],[["default"],[[[[1,"\\n      "],[1,[30,0,["model","key"]]],[1,"\\n    "]],[]]]]],[1,"\\n  "]],[]]]]],[1,"\\n  "],[8,[39,5],null,[["@label","@value","@addCopyButton","@alwaysRender"],["Client ID",[30,0,["model","clientId"]],true,true]],null],[1,"\\n  "],[8,[39,5],null,[["@label"],["Client Secret"]],[["default"],[[[[1,"\\n    "],[8,[39,7],null,[["@value","@displayOnly","@allowCopy","@alwaysRender"],[[30,0,["model","clientSecret"]],true,true,true]],null],[1,"\\n  "]],[]]]]],[1,"\\n  "],[8,[39,5],null,[["@label","@value","@alwaysRender"],["ID Token TTL",[28,[37,8],[[30,0,["model","idTokenTtl"]]],null],true]],null],[1,"\\n  "],[8,[39,5],null,[["@label","@value","@alwaysRender"],["Access Token TTL",[28,[37,8],[[30,0,["model","accessTokenTtl"]]],null],true]],null],[1,"\\n"],[13]],[],false,["toolbar","toolbar-actions","if","confirm-action","toolbar-link","info-table-row","link-to","masked-input","format-duration"]]',moduleName:"vault/templates/vault/cluster/access/oidc/clients/client/details.hbs",isStrictMode:!1})})),define("vault/templates/vault/cluster/access/oidc/clients/client/edit",["exports","@ember/template-factory"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default=(0,t.createTemplateFactory)({id:"gcyQK09b",block:'[[[8,[39,0],null,[["@model","@onCancel","@onSave"],[[30,0,["model"]],[28,[37,1],["vault.cluster.access.oidc.clients.client.details",[30,0,["model","name"]]],null],[28,[37,1],["vault.cluster.access.oidc.clients.client.details",[30,0,["model","name"]]],null]]],null]],[],false,["oidc/client-form","transition-to"]]',moduleName:"vault/templates/vault/cluster/access/oidc/clients/client/edit.hbs",isStrictMode:!1})})),define("vault/templates/vault/cluster/access/oidc/clients/client/providers",["exports","@ember/template-factory"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default=(0,t.createTemplateFactory)({id:"4Bs3M/Oc",block:'[[[8,[39,0],null,null,null],[1,"\\n"],[41,[28,[37,2],[[30,0,["model","length"]],0],null],[[[1,"  "],[8,[39,3],null,[["@model"],[[30,0,["model"]]]],null],[1,"\\n"]],[]],[[[1,"  "],[8,[39,4],null,[["@title","@message"],["No available providers","Edit an existing provider or create a new one to allow this application access for authentication requests."]],[["default"],[[[[1,"\\n    "],[8,[39,5],null,[["@icon","@iconPosition","@text","@route"],["chevron-right","trailing","View providers","vault.cluster.access.oidc.providers"]],null],[1,"\\n  "]],[]]]]],[1,"\\n"]],[]]]],[],false,["toolbar","if","gt","oidc/provider-list","empty-state","hds/link/standalone"]]',moduleName:"vault/templates/vault/cluster/access/oidc/clients/client/providers.hbs",isStrictMode:!1})})),define("vault/templates/vault/cluster/access/oidc/clients/create",["exports","@ember/template-factory"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default=(0,t.createTemplateFactory)({id:"Cg77g94/",block:'[[[8,[39,0],null,[["@model","@onCancel","@onSave"],[[30,0,["model"]],[28,[37,1],["vault.cluster.access.oidc.clients"],null],[28,[37,1],["vault.cluster.access.oidc.clients.client.details",[30,0,["model","name"]]],null]]],null]],[],false,["oidc/client-form","transition-to"]]',moduleName:"vault/templates/vault/cluster/access/oidc/clients/create.hbs",isStrictMode:!1})})),define("vault/templates/vault/cluster/access/oidc/clients/index",["exports","@ember/template-factory"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default=(0,t.createTemplateFactory)({id:"QV+6AcK3",block:'[[[8,[39,0],null,null,[["default"],[[[[1,"\\n  "],[8,[39,1],null,null,[["default"],[[[[1,"\\n    "],[8,[39,2],null,[["@route","@type"],["vault.cluster.access.oidc.clients.create","add"]],[["default"],[[[[1,"\\n      Create application\\n    "]],[]]]]],[1,"\\n  "]],[]]]]],[1,"\\n"]],[]]]]],[1,"\\n\\n"],[8,[39,3],null,[["@model"],[[30,0,["model"]]]],null]],[],false,["toolbar","toolbar-actions","toolbar-link","oidc/client-list"]]',moduleName:"vault/templates/vault/cluster/access/oidc/clients/index.hbs",isStrictMode:!1})})),define("vault/templates/vault/cluster/access/oidc/index",["exports","@ember/template-factory"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default=(0,t.createTemplateFactory)({id:"wFvHtMMk",block:'[[[10,0],[14,0,"box is-fullwidth is-shadowless"],[12],[1,"\\n  "],[10,2],[12],[1,"\\n    "],[10,"b"],[12],[1,"Step 1:"],[13],[1,"\\n    Create an application, and obtain the client ID, client secret and issuer URL.\\n  "],[13],[1,"\\n  "],[10,2],[12],[1,"\\n    "],[10,"b"],[12],[1,"Step 2:"],[13],[1,"\\n    Set up a new auth method for Vault with the client application.\\n  "],[13],[1,"\\n"],[13],[1,"\\n\\n"],[10,0],[14,0,"box is-fullwidth is-shadowless"],[12],[1,"\\n  "],[10,"img"],[15,"src",[28,[37,0],["~/oidc-landing.png"],null]],[14,"alt","OIDC configure diagram"],[12],[13],[1,"\\n"],[13]],[],false,["img-path"]]',moduleName:"vault/templates/vault/cluster/access/oidc/index.hbs",isStrictMode:!1})})),define("vault/templates/vault/cluster/access/oidc/keys/create",["exports","@ember/template-factory"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default=(0,t.createTemplateFactory)({id:"QjEJ5E4b",block:'[[[8,[39,0],null,null,[["default"],[[[[1,"\\n  "],[8,[30,1,["top"]],null,null,[["default"],[[[[1,"\\n    "],[8,[39,1],null,null,[["default"],[[[[1,"\\n      "],[8,[39,2],null,[["@text","@route"],["Keys","vault.cluster.access.oidc.keys"]],null],[1,"\\n      "],[8,[39,2],null,[["@text","@current"],["Create Key",true]],null],[1,"\\n    "]],[]]]]],[1,"\\n  "]],[]]]]],[1,"\\n  "],[8,[30,1,["levelLeft"]],null,null,[["default"],[[[[1,"\\n    "],[10,"h1"],[14,0,"title is-3"],[12],[1,"\\n      Create Key\\n    "],[13],[1,"\\n  "]],[]]]]],[1,"\\n"]],[1]]]]],[1,"\\n\\n"],[8,[39,3],null,[["@model","@onCancel","@onSave"],[[30,0,["model"]],[28,[37,4],["vault.cluster.access.oidc.keys"],null],[28,[37,4],["vault.cluster.access.oidc.keys.key.details",[30,0,["model","name"]]],null]]],null]],["p"],false,["page-header","hds/breadcrumb","hds/breadcrumb/item","oidc/key-form","transition-to"]]',moduleName:"vault/templates/vault/cluster/access/oidc/keys/create.hbs",isStrictMode:!1})})),define("vault/templates/vault/cluster/access/oidc/keys/index",["exports","@ember/template-factory"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default=(0,t.createTemplateFactory)({id:"dBDF0kwo",block:'[[[8,[39,0],null,null,[["default"],[[[[1,"\\n  "],[8,[39,1],null,null,[["default"],[[[[1,"\\n    "],[8,[39,2],null,[["@route","@type"],["vault.cluster.access.oidc.keys.create","add"]],[["default"],[[[[1,"\\n      Create key\\n    "]],[]]]]],[1,"\\n  "]],[]]]]],[1,"\\n"]],[]]]]],[1,"\\n\\n"],[42,[28,[37,4],[[28,[37,4],[[30,0,["model"]]],null]],null],null,[[[1,"  "],[8,[39,5],[[24,0,"list-item-row"]],[["@params"],[[28,[37,6],["vault.cluster.access.oidc.keys.key.details",[30,1,["name"]]],null]]],[["default"],[[[[1,"\\n    "],[10,0],[14,0,"level is-mobile"],[12],[1,"\\n      "],[10,0],[14,0,"level-left"],[12],[1,"\\n        "],[10,0],[12],[1,"\\n          "],[8,[39,7],[[24,0,"has-text-grey-light"]],[["@name"],["key"]],null],[1,"\\n          "],[10,1],[14,0,"has-text-weight-semibold is-underline"],[12],[1,"\\n            "],[1,[30,1,["name"]]],[1,"\\n          "],[13],[1,"\\n        "],[13],[1,"\\n      "],[13],[1,"\\n      "],[10,0],[14,0,"level-right is-flex is-paddingless is-marginless"],[12],[1,"\\n        "],[10,0],[14,0,"level-item"],[12],[1,"\\n          "],[8,[39,8],null,[["@isInline","@listPosition"],[true,"bottom-right"]],[["default"],[[[[1,"\\n            "],[8,[30,2,["ToggleIcon"]],null,[["@icon","@text","@hasChevron"],["more-horizontal","Key nav options",false]],null],[1,"\\n            "],[8,[30,2,["Interactive"]],null,[["@text","@route","@model","@disabled"],["Details","vault.cluster.access.oidc.keys.key.details",[30,1,["name"]],[28,[37,9],[[30,1,["canRead"]],false],null]]],null],[1,"\\n            "],[8,[30,2,["Interactive"]],null,[["@text","@route","@model","@disabled"],["Edit","vault.cluster.access.oidc.keys.key.edit",[30,1,["name"]],[28,[37,9],[[30,1,["canEdit"]],false],null]]],null],[1,"\\n          "]],[2]]]]],[1,"\\n        "],[13],[1,"\\n      "],[13],[1,"\\n    "],[13],[1,"\\n  "]],[]]]]],[1,"\\n"]],[1]],null]],["model","dd"],false,["toolbar","toolbar-actions","toolbar-link","each","-track-array","linked-block","array","icon","hds/dropdown","eq"]]',moduleName:"vault/templates/vault/cluster/access/oidc/keys/index.hbs",isStrictMode:!1})})),define("vault/templates/vault/cluster/access/oidc/keys/key",["exports","@ember/template-factory"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default=(0,t.createTemplateFactory)({id:"wiKEKxCw",block:'[[[41,[30,0,["showHeader"]],[[[1,"  "],[8,[39,1],null,null,[["default"],[[[[1,"\\n    "],[8,[30,1,["top"]],null,null,[["default"],[[[[1,"\\n      "],[8,[39,2],null,null,[["default"],[[[[1,"\\n        "],[8,[39,3],null,[["@text","@route"],["Keys","vault.cluster.access.oidc.keys"]],null],[1,"\\n        "],[8,[39,3],null,[["@text","@current"],[[30,0,["model","name"]],true]],null],[1,"\\n      "]],[]]]]],[1,"\\n    "]],[]]]]],[1,"\\n    "],[8,[30,1,["levelLeft"]],null,null,[["default"],[[[[1,"\\n      "],[10,"h1"],[14,0,"title is-3"],[12],[1,"\\n        "],[1,[30,0,["model","name"]]],[1,"\\n      "],[13],[1,"\\n    "]],[]]]]],[1,"\\n  "]],[1]]]]],[1,"\\n\\n  "],[10,0],[14,0,"tabs-container box is-sideless is-fullwidth is-paddingless is-marginless"],[12],[1,"\\n    "],[10,"nav"],[14,0,"tabs"],[14,"aria-label","tabs"],[12],[1,"\\n      "],[10,"ul"],[12],[1,"\\n        "],[8,[39,4],null,[["@route","@model"],["vault.cluster.access.oidc.keys.key.details",[30,0,["model"]]]],[["default"],[[[[1,"\\n          Details\\n        "]],[]]]]],[1,"\\n        "],[8,[39,4],null,[["@route","@model"],["vault.cluster.access.oidc.keys.key.clients",[30,0,["model"]]]],[["default"],[[[[1,"\\n          Applications\\n        "]],[]]]]],[1,"\\n      "],[13],[1,"\\n    "],[13],[1,"\\n  "],[13],[1,"\\n"]],[]],null],[1,"\\n"],[46,[28,[37,6],null,null],null,null,null]],["p"],false,["if","page-header","hds/breadcrumb","hds/breadcrumb/item","link-to","component","-outlet"]]',moduleName:"vault/templates/vault/cluster/access/oidc/keys/key.hbs",isStrictMode:!1})})),define("vault/templates/vault/cluster/access/oidc/keys/key/clients",["exports","@ember/template-factory"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default=(0,t.createTemplateFactory)({id:"UxP/u79g",block:'[[[8,[39,0],null,null,null],[1,"\\n\\n"],[41,[28,[37,2],[[30,0,["model","length"]],0],null],[[[1,"  "],[8,[39,3],null,[["@model"],[[30,0,["model"]]]],null],[1,"\\n"]],[]],[[[1,"  "],[8,[39,4],null,[["@title","@message"],["No applications allowed","Access to this key has been limited, and no applications are allowed to use it. Edit the key to allow access."]],[["default"],[[[[1,"\\n    "],[8,[39,5],null,[["@icon","@iconPosition","@text","@route"],["chevron-right","trailing","Edit key","vault.cluster.access.oidc.keys.key.edit"]],null],[1,"\\n  "]],[]]]]],[1,"\\n"]],[]]]],[],false,["toolbar","if","gt","oidc/client-list","empty-state","hds/link/standalone"]]',moduleName:"vault/templates/vault/cluster/access/oidc/keys/key/clients.hbs",isStrictMode:!1})})),define("vault/templates/vault/cluster/access/oidc/keys/key/details",["exports","@ember/template-factory"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default=(0,t.createTemplateFactory)({id:"/nKoj0X3",block:'[[[8,[39,0],null,null,[["default"],[[[[1,"\\n  "],[8,[39,1],null,null,[["default"],[[[[1,"\\n"],[41,[28,[37,3],[[28,[37,4],[[30,0,["model","name"]],"default"],null],[30,0,["model","canDelete"]]],null],[[[1,"      "],[8,[39,5],[[24,0,"toolbar-button"]],[["@buttonText","@buttonColor","@onConfirmAction","@confirmTitle","@confirmMessage"],["Delete key","secondary",[30,0,["delete"]],"Delete key?","This key will be permanently deleted. You will not be able to recover it."]],null],[1,"\\n      "],[10,0],[14,0,"toolbar-separator"],[12],[13],[1,"\\n"]],[]],null],[41,[30,0,["model","canRotate"]],[[[1,"      "],[8,[39,5],[[24,0,"toolbar-button"]],[["@buttonText","@buttonColor","@onConfirmAction","@confirmTitle","@confirmMessage","@modalColor","@isRunning"],["Rotate key","secondary",[28,[37,6],[[30,0,["rotateKey"]]],null],"Rotate this key?","After rotation, a new public/private key pair will be generated.","warning",[30,0,["rotateKey","isRunning"]]]],null],[1,"\\n"]],[]],null],[41,[30,0,["model","canEdit"]],[[[1,"      "],[8,[39,7],null,[["@route","@model"],["vault.cluster.access.oidc.keys.key.edit",[30,0,["model","name"]]]],[["default"],[[[[1,"\\n        Edit key\\n      "]],[]]]]],[1,"\\n"]],[]],null],[1,"  "]],[]]]]],[1,"\\n"]],[]]]]],[1,"\\n\\n"],[10,0],[14,0,"box is-fullwidth is-sideless is-paddingless is-marginless"],[12],[1,"\\n  "],[8,[39,8],null,[["@label","@value","@alwaysRender"],["Name",[30,0,["model","name"]],true]],null],[1,"\\n  "],[8,[39,8],null,[["@label","@value","@alwaysRender"],["Algorithm",[30,0,["model","algorithm"]],true]],null],[1,"\\n  "],[8,[39,8],null,[["@label","@value","@alwaysRender"],["Rotation period",[28,[37,9],[[30,0,["model","rotationPeriod"]]],null],true]],null],[1,"\\n  "],[8,[39,8],null,[["@label","@value","@alwaysRender"],["Verification TTL",[28,[37,9],[[30,0,["model","verificationTtl"]]],null],true]],null],[1,"\\n"],[13]],[],false,["toolbar","toolbar-actions","if","and","not-eq","confirm-action","perform","toolbar-link","info-table-row","format-duration"]]',moduleName:"vault/templates/vault/cluster/access/oidc/keys/key/details.hbs",isStrictMode:!1})}))
define("vault/templates/vault/cluster/access/oidc/keys/key/edit",["exports","@ember/template-factory"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default=(0,t.createTemplateFactory)({id:"QOPrXodA",block:'[[[8,[39,0],null,null,[["default"],[[[[1,"\\n  "],[8,[30,1,["top"]],null,null,[["default"],[[[[1,"\\n    "],[8,[39,1],null,null,[["default"],[[[[1,"\\n      "],[8,[39,2],null,[["@text","@route"],["Keys","vault.cluster.access.oidc.keys"]],null],[1,"\\n      "],[8,[39,2],null,[["@text","@route","@model"],["Details","vault.cluster.access.oidc.keys.key.details",[30,0,["model","name"]]]],null],[1,"\\n      "],[8,[39,2],null,[["@text","@current"],["Edit Key",true]],null],[1,"\\n    "]],[]]]]],[1,"\\n  "]],[]]]]],[1,"\\n  "],[8,[30,1,["levelLeft"]],null,null,[["default"],[[[[1,"\\n    "],[10,"h1"],[14,0,"title is-3"],[12],[1,"\\n      Edit Key\\n    "],[13],[1,"\\n  "]],[]]]]],[1,"\\n"]],[1]]]]],[1,"\\n\\n"],[8,[39,3],null,[["@model","@onCancel","@onSave"],[[30,0,["model"]],[28,[37,4],["vault.cluster.access.oidc.keys.key.details",[30,0,["model","name"]]],null],[28,[37,4],["vault.cluster.access.oidc.keys.key.details",[30,0,["model","name"]]],null]]],null]],["p"],false,["page-header","hds/breadcrumb","hds/breadcrumb/item","oidc/key-form","transition-to"]]',moduleName:"vault/templates/vault/cluster/access/oidc/keys/key/edit.hbs",isStrictMode:!1})})),define("vault/templates/vault/cluster/access/oidc/providers/create",["exports","@ember/template-factory"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default=(0,t.createTemplateFactory)({id:"F2+qwpkr",block:'[[[8,[39,0],null,[["@model","@onCancel","@onSave"],[[30,0,["model"]],[28,[37,1],["vault.cluster.access.oidc.providers"],null],[28,[37,1],["vault.cluster.access.oidc.providers.provider.details",[30,0,["model","name"]]],null]]],null]],[],false,["oidc/provider-form","transition-to"]]',moduleName:"vault/templates/vault/cluster/access/oidc/providers/create.hbs",isStrictMode:!1})})),define("vault/templates/vault/cluster/access/oidc/providers/index",["exports","@ember/template-factory"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default=(0,t.createTemplateFactory)({id:"rJNF5z/Z",block:'[[[8,[39,0],null,null,[["default"],[[[[1,"\\n  "],[8,[39,1],null,null,[["default"],[[[[1,"\\n    "],[8,[39,2],null,[["@route","@type"],["vault.cluster.access.oidc.providers.create","add"]],[["default"],[[[[1,"\\n      Create provider\\n    "]],[]]]]],[1,"\\n  "]],[]]]]],[1,"\\n"]],[]]]]],[1,"\\n\\n"],[8,[39,3],null,[["@model"],[[30,0,["model"]]]],null]],[],false,["toolbar","toolbar-actions","toolbar-link","oidc/provider-list"]]',moduleName:"vault/templates/vault/cluster/access/oidc/providers/index.hbs",isStrictMode:!1})})),define("vault/templates/vault/cluster/access/oidc/providers/provider",["exports","@ember/template-factory"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default=(0,t.createTemplateFactory)({id:"EfO4MgaD",block:'[[[41,[30,0,["showHeader"]],[[[1,"  "],[8,[39,1],null,null,[["default"],[[[[1,"\\n    "],[8,[30,1,["top"]],null,null,[["default"],[[[[1,"\\n      "],[8,[39,2],null,null,[["default"],[[[[1,"\\n        "],[8,[39,3],null,[["@text","@route"],["Providers","vault.cluster.access.oidc.providers"]],null],[1,"\\n        "],[8,[39,3],null,[["@text","@current"],[[30,0,["model","name"]],true]],null],[1,"\\n      "]],[]]]]],[1,"\\n    "]],[]]]]],[1,"\\n    "],[8,[30,1,["levelLeft"]],null,null,[["default"],[[[[1,"\\n      "],[10,"h1"],[14,0,"title is-3"],[12],[1,"\\n        "],[1,[30,0,["model","name"]]],[1,"\\n      "],[13],[1,"\\n    "]],[]]]]],[1,"\\n  "]],[1]]]]],[1,"\\n\\n  "],[10,0],[14,0,"tabs-container box is-sideless is-fullwidth is-paddingless is-marginless"],[12],[1,"\\n    "],[10,"nav"],[14,0,"tabs"],[14,"aria-label","tabs"],[12],[1,"\\n      "],[10,"ul"],[12],[1,"\\n        "],[8,[39,4],null,[["@route","@model"],["vault.cluster.access.oidc.providers.provider.details",[30,0,["model"]]]],[["default"],[[[[1,"\\n          Details\\n        "]],[]]]]],[1,"\\n        "],[8,[39,4],null,[["@route","@model"],["vault.cluster.access.oidc.providers.provider.clients",[30,0,["model"]]]],[["default"],[[[[1,"\\n          Applications\\n        "]],[]]]]],[1,"\\n      "],[13],[1,"\\n    "],[13],[1,"\\n  "],[13],[1,"\\n"]],[]],null],[1,"\\n"],[46,[28,[37,6],null,null],null,null,null]],["p"],false,["if","page-header","hds/breadcrumb","hds/breadcrumb/item","link-to","component","-outlet"]]',moduleName:"vault/templates/vault/cluster/access/oidc/providers/provider.hbs",isStrictMode:!1})})),define("vault/templates/vault/cluster/access/oidc/providers/provider/clients",["exports","@ember/template-factory"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default=(0,t.createTemplateFactory)({id:"v9IR2Zgy",block:'[[[8,[39,0],null,null,null],[1,"\\n\\n"],[41,[28,[37,2],[[30,0,["model","length"]],0],null],[[[1,"  "],[8,[39,3],null,[["@model"],[[30,0,["model"]]]],null],[1,"\\n"]],[]],[[[1,"  "],[8,[39,4],null,[["@title","@message"],["No applications allowed","Access to this provider has been limited, and no applications are allowed to use it. Edit the provider to allow access."]],[["default"],[[[[1,"\\n    "],[8,[39,5],null,[["@icon","@iconPosition","@text","@route"],["chevron-right","trailing","Edit provider","vault.cluster.access.oidc.providers.provider.edit"]],null],[1,"\\n  "]],[]]]]],[1,"\\n"]],[]]]],[],false,["toolbar","if","gt","oidc/client-list","empty-state","hds/link/standalone"]]',moduleName:"vault/templates/vault/cluster/access/oidc/providers/provider/clients.hbs",isStrictMode:!1})})),define("vault/templates/vault/cluster/access/oidc/providers/provider/details",["exports","@ember/template-factory"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default=(0,t.createTemplateFactory)({id:"fH+7KX/A",block:'[[[8,[39,0],null,null,[["default"],[[[[1,"\\n  "],[8,[39,1],null,null,[["default"],[[[[1,"\\n"],[41,[28,[37,3],[[28,[37,4],[[30,0,["model","name"]],"default"],null],[30,0,["model","canDelete"]]],null],[[[1,"      "],[8,[39,5],[[24,0,"toolbar-button"]],[["@buttonText","@buttonColor","@onConfirmAction","@confirmTitle","@confirmMessage"],["Delete provider","secondary",[30,0,["delete"]],"Delete provider?","This provider will be permanently deleted. You will need to re-create it to use it again."]],null],[1,"\\n      "],[10,0],[14,0,"toolbar-separator"],[12],[13],[1,"\\n"]],[]],null],[41,[30,0,["model","canEdit"]],[[[1,"      "],[8,[39,6],null,[["@route","@model"],["vault.cluster.access.oidc.providers.provider.edit",[30,0,["model","name"]]]],[["default"],[[[[1,"\\n        Edit provider\\n      "]],[]]]]],[1,"\\n"]],[]],null],[1,"  "]],[]]]]],[1,"\\n"]],[]]]]],[1,"\\n"],[10,0],[14,0,"box is-fullwidth is-sideless is-paddingless is-marginless"],[12],[1,"\\n  "],[8,[39,7],null,[["@label","@value","@alwaysRender"],["Name",[30,0,["model","name"]],true]],null],[1,"\\n  "],[8,[39,7],null,[["@label","@value","@addCopyButton","@alwaysRender"],["Issuer URL",[30,0,["model","issuer"]],true,true]],null],[1,"\\n  "],[8,[39,7],null,[["@label","@type","@value","@model","@isLink","@modelType","@itemRoute","@alwaysRender","@doNotTruncate"],["Scopes","array",[30,1,["scopesSupported"]],[30,1],true,"oidc/scope","vault.cluster.access.oidc.scopes.scope.details",true,true]],null],[1,"\\n"],[13]],["@model"],false,["toolbar","toolbar-actions","if","and","not-eq","confirm-action","toolbar-link","info-table-row"]]',moduleName:"vault/templates/vault/cluster/access/oidc/providers/provider/details.hbs",isStrictMode:!1})})),define("vault/templates/vault/cluster/access/oidc/providers/provider/edit",["exports","@ember/template-factory"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default=(0,t.createTemplateFactory)({id:"gCT4vbV1",block:'[[[8,[39,0],null,[["@model","@onCancel","@onSave"],[[30,0,["model"]],[28,[37,1],["vault.cluster.access.oidc.providers.provider.details",[30,0,["model","name"]]],null],[28,[37,1],["vault.cluster.access.oidc.providers.provider.details",[30,0,["model","name"]]],null]]],null]],[],false,["oidc/provider-form","transition-to"]]',moduleName:"vault/templates/vault/cluster/access/oidc/providers/provider/edit.hbs",isStrictMode:!1})})),define("vault/templates/vault/cluster/access/oidc/scopes/create",["exports","@ember/template-factory"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default=(0,t.createTemplateFactory)({id:"yuKh3mB3",block:'[[[8,[39,0],null,[["@model","@onCancel","@onSave"],[[30,0,["model"]],[28,[37,1],["vault.cluster.access.oidc.scopes"],null],[28,[37,1],["vault.cluster.access.oidc.scopes.scope.details",[30,0,["model","name"]]],null]]],null]],[],false,["oidc/scope-form","transition-to"]]',moduleName:"vault/templates/vault/cluster/access/oidc/scopes/create.hbs",isStrictMode:!1})})),define("vault/templates/vault/cluster/access/oidc/scopes/index",["exports","@ember/template-factory"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default=(0,t.createTemplateFactory)({id:"yF77CJos",block:'[[[8,[39,0],null,null,[["default"],[[[[1,"\\n  "],[8,[39,1],null,null,[["default"],[[[[1,"\\n    "],[8,[39,2],null,[["@route","@type"],["vault.cluster.access.oidc.scopes.create","add"]],[["default"],[[[[1,"\\n      Create scope\\n    "]],[]]]]],[1,"\\n  "]],[]]]]],[1,"\\n"]],[]]]]],[1,"\\n\\n"],[41,[28,[37,4],[[30,0,["model","length"]],0],null],[[[42,[28,[37,6],[[28,[37,6],[[30,0,["model"]]],null]],null],null,[[[1,"    "],[8,[39,7],[[24,0,"list-item-row"]],[["@params"],[[28,[37,8],["vault.cluster.access.oidc.scopes.scope.details",[30,1,["name"]]],null]]],[["default"],[[[[1,"\\n      "],[10,0],[14,0,"level is-mobile"],[12],[1,"\\n        "],[10,0],[14,0,"level-left"],[12],[1,"\\n          "],[10,0],[12],[1,"\\n            "],[8,[39,9],[[24,0,"has-text-grey-light"]],[["@name"],["file"]],null],[1,"\\n            "],[10,1],[14,0,"has-text-weight-semibold is-underline"],[12],[1,"\\n              "],[1,[30,1,["name"]]],[1,"\\n            "],[13],[1,"\\n          "],[13],[1,"\\n        "],[13],[1,"\\n        "],[10,0],[14,0,"level-right is-flex is-paddingless is-marginless"],[12],[1,"\\n          "],[10,0],[14,0,"level-item"],[12],[1,"\\n            "],[8,[39,10],null,[["@isInline","@listPosition"],[true,"bottom-right"]],[["default"],[[[[1,"\\n              "],[8,[30,2,["ToggleIcon"]],null,[["@icon","@text","@hasChevron"],["more-horizontal","Assignment nav options",false]],null],[1,"\\n              "],[8,[30,2,["Interactive"]],null,[["@text","@route","@model","@disabled"],["Details","vault.cluster.access.oidc.scopes.scope.details",[30,1,["name"]],[28,[37,11],[[30,1,["canRead"]],false],null]]],null],[1,"\\n              "],[8,[30,2,["Interactive"]],null,[["@text","@route","@model","@disabled"],["Edit","vault.cluster.access.oidc.scopes.scope.edit",[30,1,["name"]],[28,[37,11],[[30,1,["canEdit"]],false],null]]],null],[1,"\\n            "]],[2]]]]],[1,"\\n          "],[13],[1,"\\n        "],[13],[1,"\\n      "],[13],[1,"\\n    "]],[]]]]],[1,"\\n"]],[1]],null]],[]],[[[1,"  "],[8,[39,12],null,[["@title","@message"],["No scopes yet","Use scope to define identity information about the authenticated user."]],[["default"],[[[[1,"\\n    "],[8,[39,13],null,[["@iconPosition","@icon","@text","@href"],["trailing","docs-link","OIDC provider scopes",[28,[37,14],["/vault/docs/concepts/oidc-provider#scopes"],null]]],null],[1,"\\n  "]],[]]]]],[1,"\\n"]],[]]]],["model","dd"],false,["toolbar","toolbar-actions","toolbar-link","if","gt","each","-track-array","linked-block","array","icon","hds/dropdown","eq","empty-state","hds/link/standalone","doc-link"]]',moduleName:"vault/templates/vault/cluster/access/oidc/scopes/index.hbs",isStrictMode:!1})})),define("vault/templates/vault/cluster/access/oidc/scopes/scope/details",["exports","@ember/template-factory"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default=(0,t.createTemplateFactory)({id:"QrP9cqfL",block:'[[[8,[39,0],null,null,[["default"],[[[[1,"\\n  "],[8,[30,1,["top"]],null,null,[["default"],[[[[1,"\\n    "],[8,[39,1],null,null,[["default"],[[[[1,"\\n      "],[8,[39,2],null,[["@text","@route"],["Scopes","vault.cluster.access.oidc.scopes"]],null],[1,"\\n      "],[8,[39,2],null,[["@text","@current"],[[30,0,["model","name"]],true]],null],[1,"\\n    "]],[]]]]],[1,"\\n  "]],[]]]]],[1,"\\n  "],[8,[30,1,["levelLeft"]],null,null,[["default"],[[[[1,"\\n    "],[10,"h1"],[14,0,"title is-3"],[12],[1,"\\n      "],[1,[30,0,["model","name"]]],[1,"\\n    "],[13],[1,"\\n  "]],[]]]]],[1,"\\n"]],[1]]]]],[1,"\\n\\n"],[10,0],[14,0,"tabs-container box is-sideless is-fullwidth is-paddingless is-marginless"],[12],[1,"\\n  "],[10,"nav"],[14,0,"tabs"],[14,"aria-label","tabs"],[12],[1,"\\n    "],[10,"ul"],[12],[1,"\\n      "],[8,[39,3],null,[["@route","@model"],["vault.cluster.access.oidc.scopes.scope.details",[30,0,["model"]]]],[["default"],[[[[1,"\\n        Details\\n      "]],[]]]]],[1,"\\n    "],[13],[1,"\\n  "],[13],[1,"\\n"],[13],[1,"\\n\\n"],[8,[39,4],null,null,[["default"],[[[[1,"\\n  "],[8,[39,5],null,null,[["default"],[[[[1,"\\n"],[41,[30,0,["model","canDelete"]],[[[1,"      "],[8,[39,7],[[24,0,"toolbar-button"]],[["@buttonText","@buttonColor","@onConfirmAction","@confirmTitle","@confirmMessage"],["Delete scope","secondary",[30,0,["delete"]],"Delete scope?","This scope will be permanently deleted. You will not be able to recover it."]],null],[1,"\\n      "],[10,0],[14,0,"toolbar-separator"],[12],[13],[1,"\\n"]],[]],null],[41,[30,0,["model","canEdit"]],[[[1,"      "],[8,[39,8],null,[["@route","@model"],["vault.cluster.access.oidc.scopes.scope.edit",[30,0,["model","name"]]]],[["default"],[[[[1,"\\n        Edit scope\\n      "]],[]]]]],[1,"\\n"]],[]],null],[1,"  "]],[]]]]],[1,"\\n"]],[]]]]],[1,"\\n\\n"],[10,0],[14,0,"box is-fullwidth is-sideless is-paddingless is-marginless"],[12],[1,"\\n  "],[8,[39,9],null,[["@label","@value"],["Name",[30,0,["model","name"]]]],null],[1,"\\n  "],[8,[39,9],null,[["@label","@value"],["Description",[30,0,["model","description"]]]],null],[1,"\\n  "],[8,[39,10],[[24,0,"has-top-margin-xl has-bottom-margin-xl"]],[["@title","@mode","@value","@readOnly"],["JSON Template","ruby",[30,0,["model","template"]],true]],null],[1,"\\n"],[13]],["p"],false,["page-header","hds/breadcrumb","hds/breadcrumb/item","link-to","toolbar","toolbar-actions","if","confirm-action","toolbar-link","info-table-row","json-editor"]]',moduleName:"vault/templates/vault/cluster/access/oidc/scopes/scope/details.hbs",isStrictMode:!1})})),define("vault/templates/vault/cluster/access/oidc/scopes/scope/edit",["exports","@ember/template-factory"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default=(0,t.createTemplateFactory)({id:"6lmf+raM",block:'[[[8,[39,0],null,[["@model","@onCancel","@onSave"],[[30,0,["model"]],[28,[37,1],["vault.cluster.access.oidc.scopes.scope.details",[30,0,["model","name"]]],null],[28,[37,1],["vault.cluster.access.oidc.scopes.scope.details",[30,0,["model","name"]]],null]]],null]],[],false,["oidc/scope-form","transition-to"]]',moduleName:"vault/templates/vault/cluster/access/oidc/scopes/scope/edit.hbs",isStrictMode:!1})})),define("vault/templates/vault/cluster/access/reset-password-error",["exports","@ember/template-factory"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default=(0,t.createTemplateFactory)({id:"uCvE+evN",block:'[[[8,[39,0],null,null,[["default"],[[[[1,"\\n  "],[8,[30,1,["levelLeft"]],null,null,[["default"],[[[[1,"\\n    "],[10,"h1"],[14,0,"title is-3"],[12],[1,"\\n      Reset password\\n    "],[13],[1,"\\n  "]],[]]]]],[1,"\\n"]],[1]]]]],[1,"\\n\\n"],[8,[39,1],null,[["@title","@message"],["No password reset access",[30,0,["model","message"]]]],[["default"],[[[[1,"\\n  "],[8,[39,2],null,[["@iconPosition","@icon","@text","@href"],["trailing","docs-link","Update password API docs",[28,[37,3],["/vault/api-docs/auth/userpass#update-password-on-user"],null]]],null],[1,"\\n"]],[]]]]]],["p"],false,["page-header","empty-state","hds/link/standalone","doc-link"]]',moduleName:"vault/templates/vault/cluster/access/reset-password-error.hbs",isStrictMode:!1})})),define("vault/templates/vault/cluster/access/reset-password",["exports","@ember/template-factory"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default=(0,t.createTemplateFactory)({id:"2AZbBoJ9",block:'[[[8,[39,0],null,[["@backend","@username"],[[30,0,["model","backend"]],[30,0,["model","username"]]]],null]],[],false,["page/userpass-reset-password"]]',moduleName:"vault/templates/vault/cluster/access/reset-password.hbs",isStrictMode:!1})})),define("vault/templates/vault/cluster/auth",["exports","@ember/template-factory"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default=(0,t.createTemplateFactory)({id:"y2S1jMzk",block:'[[[8,[39,0],null,[["@authMethodQueryParam","@cluster","@namespaceQueryParam","@oidcProviderQueryParam","@onAuthSuccess","@onNamespaceUpdate","@wrappedToken"],[[30,0,["authMethod"]],[30,0,["model"]],[30,0,["namespaceQueryParam"]],[30,0,["oidcProvider"]],[28,[37,1],[[30,0],"authSuccess"],null],[28,[37,2],[[30,0,["updateNamespace"]]],null],[30,0,["wrappedToken"]]]],null]],[],false,["auth/page","action","perform"]]',moduleName:"vault/templates/vault/cluster/auth.hbs",isStrictMode:!1})})),define("vault/templates/vault/cluster/clients",["exports","@ember/template-factory"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default=(0,t.createTemplateFactory)({id:"JizCW/QE",block:'[[[8,[39,0],null,[["@canReadConfig"],[[30,0,["model","config","canRead"]]]],null],[1,"\\n"],[46,[28,[37,2],null,null],null,null,null]],[],false,["sidebar/nav/clients","component","-outlet"]]',moduleName:"vault/templates/vault/cluster/clients.hbs",isStrictMode:!1})})),define("vault/templates/vault/cluster/clients/config",["exports","@ember/template-factory"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default=(0,t.createTemplateFactory)({id:"6TTv4kam",block:'[[[8,[39,0],null,null,[["default"],[[[[1,"\\n  "],[8,[30,1,["levelLeft"]],null,null,[["default"],[[[[1,"\\n    "],[10,"h1"],[14,0,"title is-3"],[12],[1,"\\n      Configuration\\n    "],[13],[1,"\\n  "]],[]]]]],[1,"\\n"]],[1]]]]],[1,"\\n\\n"],[8,[39,1],null,null,[["default"],[[[[1,"\\n  "],[8,[39,2],null,null,[["default"],[[[[1,"\\n"],[41,[30,2,["canEdit"]],[[[1,"      "],[8,[39,4],[[24,0,"toolbar-link"]],[["@route"],["vault.cluster.clients.edit"]],[["default"],[[[[1,"\\n        Edit configuration\\n      "]],[]]]]],[1,"\\n"]],[]],null],[1,"  "]],[]]]]],[1,"\\n"]],[]]]]],[1,"\\n\\n"],[8,[39,5],null,[["@model"],[[30,2]]],null]],["p","@model"],false,["page-header","toolbar","toolbar-actions","if","link-to","clients/config"]]',moduleName:"vault/templates/vault/cluster/clients/config.hbs",isStrictMode:!1})})),define("vault/templates/vault/cluster/clients/counts",["exports","@ember/template-factory"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default=(0,t.createTemplateFactory)({id:"deATlTmv",block:'[[[8,[39,0],null,[["@activity","@activityError","@config","@endTimestamp","@mountPath","@namespace","@onFilterChange","@startTimestamp","@versionHistory"],[[30,0,["model","activity"]],[30,0,["model","activityError"]],[30,0,["model","config"]],[30,0,["model","endTimestamp"]],[30,0,["mountPath"]],[30,0,["ns"]],[30,0,["updateQueryParams"]],[30,0,["model","startTimestamp"]],[30,0,["model","versionHistory"]]]],[["default"],[[[[1,"\\n  "],[46,[28,[37,2],null,null],null,null,null],[1,"\\n"]],[]]]]]],[],false,["clients/page/counts","component","-outlet"]]',moduleName:"vault/templates/vault/cluster/clients/counts.hbs",isStrictMode:!1})})),define("vault/templates/vault/cluster/clients/counts/acme",["exports","@ember/template-factory"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default=(0,t.createTemplateFactory)({id:"ws2XdSHe",block:'[[[8,[39,0],null,[["@activity","@versionHistory","@startTimestamp","@endTimestamp","@namespace","@mountPath"],[[30,0,["model","activity"]],[30,0,["model","versionHistory"]],[30,0,["model","startTimestamp"]],[30,0,["model","endTimestamp"]],[30,0,["countsController","ns"]],[30,0,["countsController","mountPath"]]]],null]],[],false,["clients/page/acme"]]',moduleName:"vault/templates/vault/cluster/clients/counts/acme.hbs",isStrictMode:!1})})),define("vault/templates/vault/cluster/clients/counts/overview",["exports","@ember/template-factory"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default=(0,t.createTemplateFactory)({id:"+UzHiQXm",block:'[[[8,[39,0],null,[["@activity","@versionHistory","@startTimestamp","@endTimestamp","@namespace","@mountPath"],[[30,0,["model","activity"]],[30,0,["model","versionHistory"]],[30,0,["model","startTimestamp"]],[30,0,["model","endTimestamp"]],[30,0,["countsController","ns"]],[30,0,["countsController","mountPath"]]]],null]],[],false,["clients/page/overview"]]',moduleName:"vault/templates/vault/cluster/clients/counts/overview.hbs",isStrictMode:!1})})),define("vault/templates/vault/cluster/clients/counts/sync",["exports","@ember/template-factory"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default=(0,t.createTemplateFactory)({id:"N3bjDGKf",block:'[[[8,[39,0],null,[["@activity","@versionHistory","@startTimestamp","@endTimestamp","@namespace","@mountPath"],[[30,0,["model","activity"]],[30,0,["model","versionHistory"]],[30,0,["model","startTimestamp"]],[30,0,["model","endTimestamp"]],[30,0,["countsController","ns"]],[30,0,["countsController","mountPath"]]]],null]],[],false,["clients/page/sync"]]',moduleName:"vault/templates/vault/cluster/clients/counts/sync.hbs",isStrictMode:!1})})),define("vault/templates/vault/cluster/clients/counts/token",["exports","@ember/template-factory"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default=(0,t.createTemplateFactory)({id:"yyWJ/zXH",block:'[[[8,[39,0],null,[["@activity","@versionHistory","@startTimestamp","@endTimestamp","@namespace","@mountPath"],[[30,0,["model","activity"]],[30,0,["model","versionHistory"]],[30,0,["model","startTimestamp"]],[30,0,["model","endTimestamp"]],[30,0,["countsController","ns"]],[30,0,["countsController","mountPath"]]]],null]],[],false,["clients/page/token"]]',moduleName:"vault/templates/vault/cluster/clients/counts/token.hbs",isStrictMode:!1})})),define("vault/templates/vault/cluster/clients/edit",["exports","@ember/template-factory"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default=(0,t.createTemplateFactory)({id:"funn918f",block:'[[[8,[39,0],null,null,[["default"],[[[[1,"\\n  "],[8,[30,1,["levelLeft"]],null,null,[["default"],[[[[1,"\\n    "],[10,"h1"],[14,0,"title is-3"],[12],[1,"\\n      Edit Configuration\\n    "],[13],[1,"\\n  "]],[]]]]],[1,"\\n"]],[1]]]]],[1,"\\n\\n"],[8,[39,1],null,[["@model","@mode"],[[30,2],"edit"]],null]],["p","@model"],false,["page-header","clients/config"]]',moduleName:"vault/templates/vault/cluster/clients/edit.hbs",isStrictMode:!1})})),define("vault/templates/vault/cluster/clients/error",["exports","@ember/template-factory"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default=(0,t.createTemplateFactory)({id:"cxDxWsRk",block:'[[[41,[28,[37,1],[[30,1,["httpStatus"]],404],null],[[[1,"  "],[8,[39,2],null,[["@model"],[[30,0,["model"]]]],null],[1,"\\n"]],[]],[[[1,"  "],[8,[39,3],null,[["@title","@subTitle","@icon"],[[52,[28,[37,1],[[30,1,["httpStatus"]],403],null],"You are not authorized","Error"],[29,["Error ",[30,1,["httpStatus"]]]],"skip"]],[["default"],[[[[1,"\\n"],[41,[28,[37,1],[[30,1,["httpStatus"]],403],null],[[[1,"      "],[10,2],[12],[1,"\\n        You must be granted permissions to view this page. Ask your administrator if you think you should have access to the\\n        "],[10,"code"],[12],[1,[30,1,["path"]]],[13],[1,"\\n        endpoint.\\n      "],[13],[1,"\\n"]],[]],[[[1,"      "],[10,"ul"],[12],[1,"\\n"],[41,[30,1,["message"]],[[[1,"          "],[10,"li"],[12],[1,[30,1,["message"]]],[13],[1,"\\n          "],[10,"hr"],[12],[13],[1,"\\n"]],[]],null],[42,[28,[37,5],[[28,[37,5],[[30,1,["errors"]]],null]],null],null,[[[1,"          "],[10,"li"],[12],[1,"\\n            "],[1,[30,2]],[1,"\\n          "],[13],[1,"\\n"]],[2]],null],[1,"      "],[13],[1,"\\n"]],[]]],[1,"  "]],[]]]]],[1,"\\n"]],[]]]],["@model","error"],false,["if","eq","not-found","empty-state","each","-track-array"]]',moduleName:"vault/templates/vault/cluster/clients/error.hbs",isStrictMode:!1})})),define("vault/templates/vault/cluster/clients/loading",["exports","@ember/template-factory"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default=(0,t.createTemplateFactory)({id:"lofDQTZq",block:'[[[8,[39,0],null,null,null]],[],false,["layout-loading"]]',moduleName:"vault/templates/vault/cluster/clients/loading.hbs",isStrictMode:!1})})),define("vault/templates/vault/cluster/dashboard",["exports","@ember/template-factory"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default=(0,t.createTemplateFactory)({id:"MV1LcJH4",block:'[[[8,[39,0],null,[["@replication","@secretsEngines","@isRootNamespace","@version","@vaultConfiguration","@refreshModel","@replicationUpdatedAt"],[[30,0,["model","replication"]],[30,0,["model","secretsEngines"]],[30,0,["model","isRootNamespace"]],[30,0,["model","version"]],[30,0,["model","vaultConfiguration"]],[30,0,["refreshModel"]],[30,0,["replicationUpdatedAt"]]]],null]],[],false,["dashboard/overview"]]',moduleName:"vault/templates/vault/cluster/dashboard.hbs",isStrictMode:!1})})),define("vault/templates/vault/cluster/error",["exports","@ember/template-factory"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default=(0,t.createTemplateFactory)({id:"gfWP//g3",block:'[[[41,[28,[37,1],[[30,0,["model","httpStatus"]],404],null],[[[1,"  "],[8,[39,2],null,[["@model"],[[30,0,["model"]]]],null],[1,"\\n"]],[]],[[[1,"  "],[8,[39,3],null,null,[["default"],[[[[1,"\\n    "],[8,[30,1,["levelLeft"]],null,null,[["default"],[[[[1,"\\n      "],[10,"h1"],[14,0,"title is-3 has-text-grey"],[12],[1,"\\n"],[41,[28,[37,1],[[30,0,["model","httpStatus"]],403],null],[[[1,"          Not authorized\\n"]],[]],[[[1,"          Error\\n"]],[]]],[1,"      "],[13],[1,"\\n    "]],[]]]]],[1,"\\n  "]],[1]]]]],[1,"\\n  "],[10,0],[14,0,"box is-sideless has-background-white-bis has-text-grey has-text-centered"],[12],[1,"\\n"],[41,[28,[37,4],[[28,[37,1],[[30,0,["model","httpStatus"]],403],null],[28,[37,1],[[30,0,["model","policyPath"]],"sys/capabilities-self"],null]],null],[[[1,"      "],[10,2],[12],[1,"\\n        Your auth token does not have access to\\n        "],[10,"code"],[12],[1,[30,0,["model","policyPath"]]],[13],[1,". Vault Enterprise uses this endpoint to determine what actions are allowed in\\n        the interface.\\n      "],[13],[1,"\\n      "],[10,2],[12],[1,"\\n        Make sure the policy for the path\\n        "],[10,"code"],[12],[1,[30,0,["model","policyPath"]]],[13],[1,"\\n        includes\\n        "],[10,"code"],[12],[1,"capabilities = [\'update\']"],[13],[1,".\\n      "],[13],[1,"\\n"]],[]],[[[41,[30,0,["model","message"]],[[[1,"        "],[10,2],[12],[1,[30,0,["model","message"]]],[13],[1,"\\n"]],[]],null],[42,[28,[37,6],[[28,[37,6],[[30,0,["model","errors"]]],null]],null],null,[[[1,"        "],[10,2],[12],[1,"\\n          "],[1,[30,2]],[1,"\\n        "],[13],[1,"\\n"]],[2]],null]],[]]],[1,"  "],[13],[1,"\\n"]],[]]]],["p","error"],false,["if","eq","not-found","page-header","and","each","-track-array"]]',moduleName:"vault/templates/vault/cluster/error.hbs",isStrictMode:!1})})),define("vault/templates/vault/cluster/init",["exports","@ember/template-factory"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default=(0,t.createTemplateFactory)({id:"A091NUrO",block:'[[[8,[39,0],null,null,[["header","content"],[[[[1,"\\n"],[41,[28,[37,2],[[30,0,["model","usingRaft"]],[28,[37,3],[[30,0,["prefersInit"]]],null]],null],[[[1,"      "],[10,"h1"],[14,0,"title is-4"],[12],[1,"\\n        Raft Storage\\n      "],[13],[1,"\\n"]],[]],[[[41,[30,0,["keyData"]],[[[44,[[28,[37,5],[[30,0,["keyData","recovery_keys"]],[30,0,["keyData","keys"]]],null]],[[[1,"        "],[10,"h1"],[14,0,"title is-4"],[12],[1,"\\n          Vault has been initialized!\\n"],[41,[28,[37,6],[[30,1,["length"]],1],null],[[[1,"            Here is your key.\\n"]],[]],[[[1,"            Here are your\\n            "],[1,[28,[35,7],[[30,1,["length"]],"key"],null]],[1,".\\n"]],[]]],[1,"        "],[13],[1,"\\n"]],[1]]]],[]],[[[1,"      "],[10,"h1"],[14,0,"title h5"],[12],[1,"\\n        Let\'s set up the initial set of root keys that you will need in case of an emergency.\\n      "],[13],[1,"\\n    "]],[]]]],[]]],[1,"  "]],[]],[[[1,"\\n"],[41,[28,[37,2],[[30,0,["model","usingRaft"]],[28,[37,3],[[30,0,["prefersInit"]]],null]],null],[[[1,"      "],[8,[39,8],null,[["@onDismiss"],[[28,[37,9],[[30,0],[28,[37,10],[[30,0,["prefersInit"]]],null],true],null]]],null],[1,"\\n"]],[]],[[[41,[30,0,["keyData"]],[[[1,"      "],[10,0],[14,0,"box is-marginless is-shadowless"],[12],[1,"\\n        "],[10,0],[14,0,"content"],[12],[1,"\\n          "],[10,2],[12],[1,"\\n"],[41,[30,0,["keyData","recovery_keys"]],[[[1,"              Please securely distribute the keys below. Certain privileged operations in Vault such as rekeying the barrier\\n              or generating a new root token will require you to provide at least\\n              "],[10,"strong"],[14,0,"has-text-danger"],[12],[1,[30,0,["secret_threshold"]]],[13],[1,"\\n              of these keys to perform the operation.\\n"]],[]],[[[1,"              Please securely distribute the keys below. When the Vault is re-sealed, restarted, or stopped, you must provide\\n              at least\\n              "],[10,"strong"],[14,0,"has-text-danger"],[12],[1,[30,0,["secret_threshold"]]],[13],[1,"\\n              of these keys to unseal it again. Vault does not store the root key. Without at least\\n              "],[10,"strong"],[14,0,"has-text-danger"],[12],[1,[30,0,["secret_threshold"]]],[13],[1,"\\n              keys, your Vault will remain permanently sealed.\\n"]],[]]],[1,"          "],[13],[1,"\\n        "],[13],[1,"\\n        "],[10,0],[14,0,"message is-list is-highlight"],[12],[1,"\\n          "],[10,0],[14,0,"message-body"],[12],[1,"\\n            "],[10,"h4"],[14,0,"title is-7 is-marginless"],[12],[1,"\\n              Initial root token\\n            "],[13],[1,"\\n            "],[8,[39,11],null,[["@class","@displayOnly","@value","@allowCopy"],["is-highlight has-label",true,[30,0,["keyData","root_token"]],true]],null],[1,"\\n          "],[13],[1,"\\n        "],[13],[1,"\\n"],[42,[28,[37,13],[[28,[37,13],[[28,[37,5],[[30,0,["keyData","recovery_keys_base64"]],[30,0,["keyData","recovery_keys"]],[30,0,["keyData","keys_base64"]],[30,0,["keyData","keys"]]],null]],null]],null],null,[[[1,"          "],[10,0],[14,0,"message is-list"],[12],[1,"\\n            "],[10,0],[14,0,"message-body"],[12],[1,"\\n              "],[10,"h4"],[14,0,"title is-7 is-marginless"],[12],[1,"\\n                Key\\n                "],[1,[28,[35,14],[[30,3],1],null]],[1,"\\n              "],[13],[1,"\\n              "],[8,[39,11],null,[["@class","@displayOnly","@value","@allowCopy"],["has-label",true,[30,2],true]],null],[1,"\\n            "],[13],[1,"\\n          "],[13],[1,"\\n"]],[2,3]],null],[1,"      "],[13],[1,"\\n      "],[10,0],[14,0,"box is-marginless is-shadowless"],[12],[1,"\\n        "],[8,[39,15],null,null,[["default"],[[[[1,"\\n"],[41,[28,[37,2],[[30,0,["model","sealed"]],[28,[37,3],[[30,0,["keyData","recovery_keys"]]],null]],null],[[[1,"            "],[8,[39,16],null,[["@text","@color","@route","@model"],["Continue to Unseal","primary","vault.cluster.unseal",[30,0,["model","name"]]]],null],[1,"\\n"]],[]],[[[1,"            "],[8,[39,16],[[16,"disabled",[30,0,["model","sealed"]]]],[["@text","@color","@route","@model","@icon"],["Continue to Authenticate","primary","vault.cluster.auth",[30,0,["model","name"]],[52,[30,0,["model","sealed"]],"loading"]]],null],[1,"\\n"]],[]]],[1,"          "],[8,[39,17],null,[["@color","@filename","@data","@extension","@stringify","@text"],["tertiary",[30,0,["keyFilename"]],[30,0,["keyData"]],"json",true,"Download keys"]],null],[1,"\\n        "]],[]]]]],[1,"\\n      "],[13],[1,"\\n"]],[]],[[[1,"      "],[11,"form"],[24,1,"init"],[4,[38,9],[[30,0],"initCluster",[28,[37,18],null,[["secret_shares","secret_threshold","pgp_keys","use_pgp","use_pgp_for_root","root_token_pgp_key"],[[30,0,["secret_shares"]],[30,0,["secret_threshold"]],[30,0,["pgp_keys"]],[30,0,["use_pgp"]],[30,0,["use_pgp_for_root"]],[30,0,["root_token_pgp_key"]]]]]],[["on"],["submit"]]],[12],[1,"\\n        "],[10,0],[14,0,"box is-marginless is-shadowless"],[12],[1,"\\n          "],[8,[39,19],null,[["@errors"],[[30,0,["errors"]]]],null],[1,"\\n          "],[10,0],[14,0,"field"],[12],[1,"\\n            "],[10,"label"],[14,"for","key-shares"],[14,0,"is-label"],[12],[1,"\\n              Key shares\\n            "],[13],[1,"\\n            "],[10,0],[14,0,"control"],[12],[1,"\\n              "],[8,[39,20],[[24,0,"input"],[24,"autocomplete","off"],[24,"spellcheck","false"],[24,3,"key-shares"],[24,"step","1"],[24,"min","1"],[24,"pattern","[0-9]*"]],[["@type","@value"],["number",[30,0,["secret_shares"]]]],null],[1,"\\n            "],[13],[1,"\\n            "],[10,2],[14,0,"help has-text-grey"],[12],[1,"\\n              The number of key shares to split the root key into\\n            "],[13],[1,"\\n          "],[13],[1,"\\n          "],[10,0],[14,0,"field"],[12],[1,"\\n            "],[10,"label"],[14,"for","key-threshold"],[14,0,"is-label"],[12],[1,"\\n              Key threshold\\n            "],[13],[1,"\\n            "],[10,0],[14,0,"control"],[12],[1,"\\n              "],[8,[39,20],[[24,0,"input"],[24,"autocomplete","off"],[24,"spellcheck","false"],[24,3,"key-threshold"],[24,"step","1"],[24,"min","1"],[24,"pattern","[0-9]*"]],[["@type","@value"],["number",[30,0,["secret_threshold"]]]],null],[1,"\\n            "],[13],[1,"\\n            "],[10,2],[14,0,"help has-text-grey"],[12],[1,"\\n              The number of key shares required to reconstruct the root key\\n            "],[13],[1,"\\n          "],[13],[1,"\\n          "],[8,[39,21],[[24,0,"is-block"]],[["@isOpen","@openLabel","@closedLabel","@onClick"],[[30,0,["use_pgp"]],"Encrypt output with PGP","Encrypt output with PGP",[28,[37,22],[[28,[37,10],[[30,0,["use_pgp"]]],null]],null]]],null],[1,"\\n"],[41,[30,0,["use_pgp"]],[[[1,"            "],[10,0],[14,0,"box init-box"],[12],[1,"\\n              "],[10,2],[14,0,"help has-text-grey"],[12],[1,"\\n                The output unseal keys will be encrypted and hex-encoded, in order, with the given public keys.\\n              "],[13],[1,"\\n              "],[8,[39,23],null,[["@listLength","@onDataUpdate"],[[30,0,["secret_shares"]],[28,[37,9],[[30,0],"setKeys"],null]]],null],[1,"\\n            "],[13],[1,"\\n"]],[]],null],[1,"          "],[8,[39,21],[[24,0,"is-block"]],[["@isOpen","@openLabel","@closedLabel","@onClick"],[[30,0,["use_pgp_for_root"]],"Encrypt root token with PGP","Encrypt root token with PGP",[28,[37,22],[[28,[37,10],[[30,0,["use_pgp_for_root"]]],null]],null]]],null],[1,"\\n"],[41,[30,0,["use_pgp_for_root"]],[[[1,"            "],[10,0],[14,0,"box init-box"],[12],[1,"\\n              "],[10,2],[14,0,"help has-text-grey"],[12],[1,"\\n                The root unseal key will be encrypted and hex-encoded with the given public key.\\n              "],[13],[1,"\\n              "],[8,[39,23],null,[["@listLength","@onDataUpdate"],[1,[28,[37,9],[[30,0],"setRootKey"],null]]],null],[1,"\\n            "],[13],[1,"\\n"]],[]],null],[1,"        "],[13],[1,"\\n        "],[10,0],[14,0,"box is-marginless is-shadowless"],[12],[1,"\\n          "],[8,[39,16],[[16,"disabled",[30,0,["loading"]]],[24,4,"submit"]],[["@text","@icon"],["Initialize",[52,[30,0,["loading"]],"loading"]]],null],[1,"\\n          "],[10,0],[14,0,"init-illustration"],[12],[1,"\\n            "],[1,[28,[35,24],["initialize"],null]],[1,"\\n          "],[13],[1,"\\n        "],[13],[1,"\\n      "],[13],[1,"\\n    "]],[]]]],[]]],[1,"  "]],[]]]]]],["keyArray","key","index"],false,["splash-page","if","and","not","let","or","eq","pluralize","raft-join","action","mut","masked-input","each","-track-array","add","hds/button-set","hds/button","download-button","hash","message-error","input","toggle-button","fn","pgp-list","svg-jar"]]',moduleName:"vault/templates/vault/cluster/init.hbs",isStrictMode:!1})})),define("vault/templates/vault/cluster/license",["exports","@ember/template-factory"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default=(0,t.createTemplateFactory)(
/*
    {{!
    Copyright (c) HashiCorp, Inc.
    SPDX-License-Identifier: BUSL-1.1
  ~}}
  
  <LicenseInfo
    @startTime={{this.model.startTime}}
    @expirationTime={{this.model.expirationTime}}
    @licenseId={{this.model.licenseId}}
    @features={{this.model.features}}
    @autoloaded={{this.model.autoloaded}}
    @performanceStandbyCount={{this.model.performanceStandbyCount}}
  />
  */
{id:"Mi0tS7Cx",block:'[[[8,[39,0],null,[["@startTime","@expirationTime","@licenseId","@features","@autoloaded","@performanceStandbyCount"],[[30,0,["model","startTime"]],[30,0,["model","expirationTime"]],[30,0,["model","licenseId"]],[30,0,["model","features"]],[30,0,["model","autoloaded"]],[30,0,["model","performanceStandbyCount"]]]],null]],[],false,["license-info"]]',moduleName:"vault/templates/vault/cluster/license.hbs",isStrictMode:!1})})),define("vault/templates/vault/cluster/loading",["exports","@ember/template-factory"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default=(0,t.createTemplateFactory)({id:"8Wz6my0v",block:'[[[8,[39,0],null,null,null]],[],false,["layout-loading"]]',moduleName:"vault/templates/vault/cluster/loading.hbs",isStrictMode:!1})})),define("vault/templates/vault/cluster/mfa-setup",["exports","@ember/template-factory"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default=(0,t.createTemplateFactory)({id:"5O+lm+GE",block:'[[[8,[39,0],null,null,[["header","content"],[[[[1,"\\n    "],[10,"h1"],[14,0,"title is-4"],[12],[1,"MFA setup"],[13],[1,"\\n  "]],[]],[[[1,"\\n    "],[10,0],[14,0,"auth-form"],[12],[1,"\\n      "],[10,0],[14,0,"box"],[12],[1,"\\n"],[41,[28,[37,2],[[30,0,["onStep"]],1],null],[[[1,"          "],[8,[39,3],null,[["@isUUIDVerified","@restartFlow","@saveUUIDandQrCode","@showWarning"],[[30,0,["isUUIDVerified"]],[30,0,["restartFlow"]],[30,0,["saveUUIDandQrCode"]],[30,0,["showWarning"]]]],null],[1,"\\n"]],[]],null],[41,[28,[37,2],[[30,0,["onStep"]],2],null],[[[1,"          "],[8,[39,4],null,[["@entityId","@uuid","@qrCode","@restartFlow","@warning"],[[30,0,["entityId"]],[30,0,["uuid"]],[30,0,["qrCode"]],[30,0,["restartFlow"]],[30,0,["warning"]]]],null],[1,"\\n"]],[]],null],[1,"      "],[13],[1,"\\n    "],[13],[1,"\\n  "]],[]]]]]],[],false,["splash-page","if","eq","mfa/mfa-setup-step-one","mfa/mfa-setup-step-two"]]',moduleName:"vault/templates/vault/cluster/mfa-setup.hbs",isStrictMode:!1})}))
define("vault/templates/vault/cluster/not-found",["exports","@ember/template-factory"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default=(0,t.createTemplateFactory)({id:"eZ5R/9LL",block:'[[[8,[39,0],null,[["@model"],[[30,0,["model"]]]],null]],[],false,["not-found"]]',moduleName:"vault/templates/vault/cluster/not-found.hbs",isStrictMode:!1})})),define("vault/templates/vault/cluster/oidc-callback",["exports","@ember/template-factory"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default=(0,t.createTemplateFactory)({id:"DvHvXe5O",block:'[[[40,[[[1,"  "],[8,[39,2],null,null,null],[1,"\\n"]],[]],"%cursor:0%",[28,[37,1],[[30,0,["pageContainer"]]],null]]],[],false,["in-element","-in-el-null","oidc-callback-splash"]]',moduleName:"vault/templates/vault/cluster/oidc-callback.hbs",isStrictMode:!1})})),define("vault/templates/vault/cluster/oidc-provider-ns",["exports","@ember/template-factory"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default=(0,t.createTemplateFactory)({id:"Ry1GShHN",block:'[[[10,0],[14,0,"splash-page-container section is-flex-v-centered-tablet is-flex-grow-1 is-fullwidth"],[12],[1,"\\n  "],[10,0],[14,0,"columns is-centered is-gapless is-fullwidth"],[12],[1,"\\n    "],[10,0],[14,0,"column is-4-desktop is-6-tablet"],[12],[1,"\\n"],[41,[30,0,["model","error"]],[[[1,"        "],[10,0],[14,0,"box is-shadowless is-flex-v-centered"],[12],[1,"\\n          "],[8,[39,1],null,null,null],[1,"\\n        "],[13],[1,"\\n        "],[8,[39,2],[[24,0,"has-bottom-margin-s"]],[["@type","@color"],["inline","critical"]],[["default"],[[[[1,"\\n          "],[8,[30,1,["Title"]],null,null,[["default"],[[[[1,[30,0,["model","error","title"]]]],[]]]]],[1,"\\n          "],[8,[30,1,["Description"]],null,null,[["default"],[[[[1,[30,0,["model","error","message"]]]],[]]]]],[1,"\\n        "]],[1]]]]],[1,"\\n"]],[]],[[[41,[30,0,["model","consent"]],[[[1,"        "],[8,[39,3],null,[["@code","@state","@redirect","@onSuccess"],[[30,0,["model","consent","code"]],[30,0,["model","consent","state"]],[30,0,["model","consent","redirect"]],[30,0,["_handleSuccess"]]]],null],[1,"\\n"]],[]],[[[41,[30,0,["model","redirectUrl"]],[[[1,"        "],[10,0],[12],[1,[30,0,["model","redirectUrl"]]],[13],[1,"\\n"]],[]],[[[1,"        "],[8,[39,4],null,null,null],[1,"\\n      "]],[]]]],[]]]],[]]],[1,"    "],[13],[1,"\\n  "],[13],[1,"\\n"],[13]],["A"],false,["if","logo-edition","hds/alert","oidc-consent-block","vault-logo-spinner"]]',moduleName:"vault/templates/vault/cluster/oidc-provider-ns.hbs",isStrictMode:!1})})),define("vault/templates/vault/cluster/oidc-provider",["exports","@ember/template-factory"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default=(0,t.createTemplateFactory)({id:"m39+5IEX",block:'[[[10,0],[14,0,"splash-page-container section is-flex-v-centered-tablet is-flex-grow-1 is-fullwidth"],[12],[1,"\\n  "],[10,0],[14,0,"columns is-centered is-gapless is-fullwidth"],[12],[1,"\\n    "],[10,0],[14,0,"column is-4-desktop is-6-tablet"],[12],[1,"\\n"],[41,[30,0,["model","error"]],[[[1,"        "],[10,0],[14,0,"box is-shadowless is-flex-v-centered"],[12],[1,"\\n          "],[8,[39,1],null,null,null],[1,"\\n        "],[13],[1,"\\n        "],[8,[39,2],[[24,0,"has-bottom-margin-s"]],[["@type","@color"],["inline","critical"]],[["default"],[[[[1,"\\n          "],[8,[30,1,["Title"]],null,null,[["default"],[[[[1,[30,0,["model","error","title"]]]],[]]]]],[1,"\\n          "],[8,[30,1,["Description"]],null,null,[["default"],[[[[1,[30,0,["model","error","message"]]]],[]]]]],[1,"\\n        "]],[1]]]]],[1,"\\n"]],[]],[[[41,[30,0,["model","consent"]],[[[1,"        "],[8,[39,3],null,[["@code","@state","@redirect","@onSuccess"],[[30,0,["model","consent","code"]],[30,0,["model","consent","state"]],[30,0,["model","consent","redirect"]],[30,0,["_handleSuccess"]]]],null],[1,"\\n"]],[]],[[[41,[30,0,["model","redirectUrl"]],[[[1,"        "],[8,[39,4],null,null,null],[1,"\\n        "],[10,2],[12],[1,"If you are not automatically redirected,\\n          "],[10,3],[15,6,[30,0,["model","redirectUrl"]]],[12],[1,"click here to go back to app."],[13],[13],[1,"\\n"]],[]],[[[1,"        "],[8,[39,4],null,null,null],[1,"\\n      "]],[]]]],[]]]],[]]],[1,"    "],[13],[1,"\\n  "],[13],[1,"\\n"],[13]],["A"],false,["if","logo-edition","hds/alert","oidc-consent-block","vault-logo-spinner"]]',moduleName:"vault/templates/vault/cluster/oidc-provider.hbs",isStrictMode:!1})})),define("vault/templates/vault/cluster/policies",["exports","@ember/template-factory"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default=(0,t.createTemplateFactory)({id:"q0rq5uLx",block:'[[[8,[39,0],null,null,null],[1,"\\n"],[46,[28,[37,2],null,null],null,null,null]],[],false,["sidebar/nav/policies","component","-outlet"]]',moduleName:"vault/templates/vault/cluster/policies.hbs",isStrictMode:!1})})),define("vault/templates/vault/cluster/policies/create",["exports","@ember/template-factory"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default=(0,t.createTemplateFactory)({id:"ZAicHHWR",block:'[[[8,[39,0],null,null,[["default"],[[[[1,"\\n  "],[8,[30,1,["top"]],null,null,[["default"],[[[[1,"\\n    "],[8,[39,1],null,null,[["default"],[[[[1,"\\n      "],[8,[39,2],null,[["@text","@route","@model"],[[29,[[28,[37,3],[[30,0,["policyType"]]],null]," policies"]],"vault.cluster.policies",[30,0,["policyType"]]]],null],[1,"\\n      "],[8,[39,2],null,[["@text","@current"],["Create",true]],null],[1,"\\n    "]],[]]]]],[1,"\\n  "]],[]]]]],[1,"\\n  "],[8,[30,1,["levelLeft"]],null,null,[["default"],[[[[1,"\\n    "],[10,"h1"],[14,0,"title is-3"],[12],[1,"\\n      Create\\n      "],[1,[28,[35,3],[[30,0,["policyType"]]],null]],[1,"\\n      Policy\\n    "],[13],[1,"\\n  "]],[]]]]],[1,"\\n"]],[1]]]]],[1,"\\n\\n"],[10,"hr"],[14,0,"has-background-gray-300 is-marginless"],[12],[13],[1,"\\n\\n"],[8,[39,4],null,[["@model","@onSave","@onCancel","@renderPolicyExampleModal"],[[30,0,["model"]],[28,[37,5],["vault.cluster.policy.show",[30,0,["model","policyType"]],[30,0,["model","name"]]],null],[28,[37,5],["vault.cluster.policies.index"],null],true]],null]],["p"],false,["page-header","hds/breadcrumb","hds/breadcrumb/item","uppercase","policy-form","transition-to"]]',moduleName:"vault/templates/vault/cluster/policies/create.hbs",isStrictMode:!1})})),define("vault/templates/vault/cluster/policies/error",["exports","@ember/template-factory"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default=(0,t.createTemplateFactory)({id:"MR94qMnL",block:'[[[41,[28,[37,1],[[30,0,["model","httpStatus"]],404],null],[[[1,"  "],[8,[39,2],null,[["@model"],[[30,0,["model"]]]],null],[1,"\\n"]],[]],[[[1,"  "],[8,[39,3],null,null,[["default"],[[[[1,"\\n    "],[8,[30,1,["levelLeft"]],null,null,[["default"],[[[[1,"\\n      "],[10,"h1"],[14,0,"title is-3 has-text-grey"],[12],[1,"\\n"],[41,[28,[37,1],[[30,0,["model","httpStatus"]],403],null],[[[1,"          Not authorized\\n"]],[]],[[[1,"          Error\\n"]],[]]],[1,"      "],[13],[1,"\\n    "]],[]]]]],[1,"\\n  "]],[1]]]]],[1,"\\n  "],[10,0],[14,0,"box is-sideless has-background-white-bis has-text-grey has-text-centered"],[12],[1,"\\n"],[41,[30,0,["model","message"]],[[[1,"      "],[10,2],[12],[1,[30,0,["model","message"]]],[13],[1,"\\n"]],[]],null],[42,[28,[37,5],[[28,[37,5],[[30,0,["model","errors"]]],null]],null],null,[[[1,"      "],[10,2],[12],[1,[30,2]],[13],[1,"\\n"]],[2]],null],[1,"  "],[13],[1,"\\n"]],[]]]],["p","error"],false,["if","eq","not-found","page-header","each","-track-array"]]',moduleName:"vault/templates/vault/cluster/policies/error.hbs",isStrictMode:!1})})),define("vault/templates/vault/cluster/policies/index",["exports","@ember/template-factory"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default=(0,t.createTemplateFactory)({id:"60bciktJ",block:'[[[41,[28,[37,1],[[28,[37,2],[[30,0,["policyType"]],"acl"],null],[28,[37,3],["Sentinel"],null]],null],[[[1,"  "],[8,[39,4],null,null,[["default"],[[[[1,"\\n    "],[8,[30,1,["levelLeft"]],null,null,[["default"],[[[[1,"\\n      "],[10,"h1"],[14,0,"title is-3"],[12],[1,"\\n        "],[1,[28,[35,5],[[30,0,["policyType"]]],null]],[1,"\\n        Policies\\n"],[41,[28,[37,6],[[30,0,["policyType"]],"acl"],null],[[[1,"          "],[10,1],[14,0,"tag"],[15,"aria-label",[29,["Enforcement level: ",[30,0,["model","enforcementLevel"]]]]],[12],[1,"\\n            Sentinel\\n          "],[13],[1,"\\n"]],[]],null],[1,"      "],[13],[1,"\\n    "]],[]]]]],[1,"\\n  "]],[1]]]]],[1,"\\n  "],[8,[39,7],null,null,[["default"],[[[[1,"\\n"],[41,[30,0,["model","meta","total"]],[[[1,"      "],[8,[39,8],null,null,[["default"],[[[[1,"\\n        "],[8,[39,9],null,[["@filterFocusDidChange","@filterDidChange","@filter","@filterMatchesKey","@firstPartialMatch","@extraNavParams","@placeholder","@mode"],[[28,[37,10],[[30,0],"setFilterFocus"],null],[28,[37,10],[[30,0],"setFilter"],null],[30,0,["filter"]],[30,0,["filterMatchesKey"]],[30,0,["firstPartialMatch"]],[30,0,["policyType"]],"Filter policies","policy"]],null],[1,"\\n"],[41,[30,0,["filterFocused"]],[[[41,[30,0,["filterMatchesKey"]],[[[1,"            "],[10,2],[14,0,"input-hint"],[12],[1,"\\n              "],[10,"kbd"],[12],[1,"ENTER"],[13],[1,"\\n              to go to\\n              "],[10,"code"],[12],[1,[28,[35,1],[[30,0,["pageFilter"]],[30,0,["filter"]]],null]],[13],[1,"\\n            "],[13],[1,"\\n"]],[]],null],[41,[30,0,["firstPartialMatch"]],[[[1,"            "],[10,2],[14,0,"input-hint"],[12],[1,"\\n              "],[10,"kbd"],[12],[1,"TAB"],[13],[1,"\\n              to complete\\n              "],[10,"code"],[12],[1,[30,0,["firstPartialMatch","id"]]],[13],[1,"\\n            "],[13],[1,"\\n"]],[]],null]],[]],null],[1,"      "]],[]]]]],[1,"\\n"]],[]],null],[1,"    "],[8,[39,11],null,null,[["default"],[[[[1,"\\n      "],[8,[39,12],null,[["@route","@type"],["vault.cluster.policies.create","add"]],[["default"],[[[[1,"\\n        Create\\n        "],[1,[28,[35,5],[[30,0,["policyType"]]],null]],[1,"\\n        policy\\n      "]],[]]]]],[1,"\\n    "]],[]]]]],[1,"\\n  "]],[]]]]],[1,"\\n"],[41,[30,0,["model","meta","total"]],[[[42,[28,[37,14],[[28,[37,14],[[30,0,["model"]]],null]],null],null,[[[41,[28,[37,2],[[30,2,["id"]],"root"],null],[[[1,"        "],[10,0],[14,0,"list-item-row is-flex"],[12],[1,"\\n          "],[8,[39,15],[[24,0,"has-text-grey-light"]],[["@name"],["file"]],null],[1,"\\n          "],[10,0],[12],[1,"\\n            "],[10,1],[14,0,"has-text-weight-semibold has-text-grey"],[12],[1,"\\n              "],[1,[30,2,["id"]]],[1,"\\n            "],[13],[1,"\\n            "],[10,2],[14,0,"help has-text-grey"],[12],[1,"\\n              The\\n              "],[10,"code"],[12],[1,"root"],[13],[1,"\\n              policy does not contain any rules but can do anything within Vault. It should be used with extreme care.\\n            "],[13],[1,"\\n          "],[13],[1,"\\n        "],[13],[1,"\\n"]],[]],[[[1,"        "],[8,[39,16],[[24,0,"list-item-row"]],[["@params"],[[28,[37,17],["vault.cluster.policy.show",[30,0,["policyType"]],[30,2,["id"]]],null]]],[["default"],[[[[1,"\\n          "],[10,0],[14,0,"columns is-mobile"],[12],[1,"\\n            "],[10,0],[14,0,"column is-10"],[12],[1,"\\n              "],[8,[39,18],[[24,0,"has-text-black has-text-weight-semibold"]],[["@route","@models"],["vault.cluster.policy.show",[28,[37,17],[[30,0,["policyType"]],[30,2,["id"]]],null]]],[["default"],[[[[1,"\\n                "],[8,[39,15],[[24,0,"has-text-grey-light"]],[["@name"],["file"]],null],[1,"\\n                "],[10,1],[14,0,"is-underline"],[12],[1,[30,2,["id"]]],[13],[1,"\\n              "]],[]]]]],[1,"\\n            "],[13],[1,"\\n            "],[10,0],[14,0,"column has-text-right"],[12],[1,"\\n              "],[8,[39,19],null,[["@isInline","@listPosition"],[true,"bottom-right"]],[["default"],[[[[1,"\\n                "],[8,[30,3,["ToggleIcon"]],null,[["@icon","@text","@hasChevron"],["more-horizontal","Policy nav menu",false]],null],[1,"\\n"],[41,[30,2,["updatePath","isPending"]],[[[1,"                  "],[8,[30,3,["Generic"]],[[24,0,"has-text-center"]],null,[["default"],[[[[1,"\\n                    "],[8,[39,20],null,null,null],[1,"\\n                  "]],[]]]]],[1,"\\n"]],[]],[[[41,[30,2,["canRead"]],[[[1,"                    "],[8,[30,3,["Interactive"]],null,[["@text","@route","@models"],["Details","vault.cluster.policy.show",[28,[37,17],[[30,0,["policyType"]],[30,2,["id"]]],null]]],null],[1,"\\n"]],[]],null],[41,[30,2,["canEdit"]],[[[1,"                    "],[8,[30,3,["Interactive"]],null,[["@text","@route","@models"],["Edit","vault.cluster.policy.edit",[28,[37,17],[[30,0,["policyType"]],[30,2,["id"]]],null]]],null],[1,"\\n"]],[]],null],[41,[28,[37,21],[[30,2,["canDelete"]],[28,[37,6],[[30,2,["name"]],"default"],null]],null],[[[1,"                    "],[8,[30,3,["Interactive"]],[[4,[38,22],["click",[28,[37,23],[[28,[37,24],[[30,0,["policyToDelete"]]],null],[30,2]],null]],null]],[["@text","@color"],["Delete","critical"]],null],[1,"\\n"]],[]],null]],[]]],[1,"              "]],[3]]]]],[1,"\\n            "],[13],[1,"\\n          "],[13],[1,"\\n        "]],[]]]]],[1,"\\n"]],[]]]],[2]],[[[1,"      "],[8,[39,25],null,[["@title"],[[29,["No policies matching \\"",[30,0,["pageFilter"]],"\\""]]]],null],[1,"\\n"]],[]]],[41,[51,[30,0,["pageFilter"]]],[[[1,"      "],[8,[39,27],null,[["@currentPage","@currentPageSize","@route","@showSizeSelector","@totalItems","@queryFunction"],[[30,0,["model","meta","currentPage"]],[30,0,["model","meta","pageSize"]],"vault.cluster.policies.index",false,[30,0,["model","meta","total"]],[30,0,["paginationQueryParams"]]]],null],[1,"\\n"]],[]],null]],[]],[[[1,"    "],[8,[39,25],null,[["@title","@message"],[[29,["No ",[28,[37,5],[[30,0,["policyType"]]],null]," policies yet"]],[29,["A list of policies will be listed here. Create your first ",[28,[37,5],[[30,0,["policyType"]]],null]," policy to get started."]]]],[["default"],[[[[1,"\\n"],[41,[28,[37,2],[[30,0,["policyType"]],"acl"],null],[[[1,"        "],[8,[39,28],null,[["@iconPosition","@icon","@text","@href"],["trailing","learn-link","Getting started with policies",[28,[37,29],["/vault/tutorials/getting-started/getting-started-policies"],null]]],null],[1,"\\n"]],[]],[[[1,"        "],[8,[39,28],null,[["@iconPosition","@icon","@text","@href"],["trailing","learn-link","Sentinel policies tutorial",[28,[37,29],["/vault/tutorials/policies/sentinel"],null]]],null],[1,"\\n"]],[]]],[1,"    "]],[]]]]],[1,"\\n"]],[]]]],[]],[[[1,"  "],[8,[39,30],null,[["@title","@minimumEdition"],["Sentinel","Vault Enterprise Premium"]],null],[1,"\\n"]],[]]],[1,"\\n"],[41,[30,0,["policyToDelete"]],[[[1,"  "],[8,[39,31],null,[["@color","@confirmTitle","@confirmMessage","@onClose","@onConfirm"],["critical","Delete this policy?","This will permanently delete this policy and may affect access to some data.",[28,[37,23],[[28,[37,24],[[30,0,["policyToDelete"]]],null],null],null],[28,[37,10],[[30,0],"deletePolicy",[30,0,["policyToDelete"]]],null]]],null],[1,"\\n"]],[]],null]],["p","item","dd"],false,["if","or","eq","has-feature","page-header","uppercase","not-eq","toolbar","toolbar-filters","navigate-input","action","toolbar-actions","toolbar-link","each","-track-array","icon","linked-block","array","link-to","hds/dropdown","loading-dropdown-option","and","on","fn","mut","empty-state","unless","hds/pagination/numbered","hds/link/standalone","doc-link","upgrade-page","confirm-modal"]]',moduleName:"vault/templates/vault/cluster/policies/index.hbs",isStrictMode:!1})})),define("vault/templates/vault/cluster/policies/loading",["exports","@ember/template-factory"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default=(0,t.createTemplateFactory)({id:"Z04k0LRB",block:'[[[8,[39,0],null,null,null]],[],false,["layout-loading"]]',moduleName:"vault/templates/vault/cluster/policies/loading.hbs",isStrictMode:!1})})),define("vault/templates/vault/cluster/policy",["exports","@ember/template-factory"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default=(0,t.createTemplateFactory)({id:"TECrMPwW",block:'[[[8,[39,0],null,null,null],[1,"\\n"],[46,[28,[37,2],null,null],null,null,null]],[],false,["sidebar/nav/policies","component","-outlet"]]',moduleName:"vault/templates/vault/cluster/policy.hbs",isStrictMode:!1})})),define("vault/templates/vault/cluster/policy/edit",["exports","@ember/template-factory"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default=(0,t.createTemplateFactory)({id:"NzgciFPq",block:'[[[8,[39,0],null,null,[["default"],[[[[1,"\\n  "],[8,[30,1,["top"]],null,null,[["default"],[[[[1,"\\n    "],[8,[39,1],null,null,[["default"],[[[[1,"\\n      "],[8,[39,2],null,[["@text","@route","@model"],[[29,[[28,[37,3],[[30,0,["policyType"]]],null]," policies"]],"vault.cluster.policies",[30,0,["policyType"]]]],null],[1,"\\n      "],[8,[39,2],null,[["@text","@route","@model"],[[30,0,["model","id"]],"vault.cluster.policy.show",[30,0,["model","id"]]]],null],[1,"\\n      "],[8,[39,2],null,[["@text","@current"],["Edit",true]],null],[1,"\\n    "]],[]]]]],[1,"\\n  "]],[]]]]],[1,"\\n  "],[8,[30,1,["levelLeft"]],null,null,[["default"],[[[[1,"\\n    "],[10,"h1"],[14,0,"title is-3"],[12],[1,"\\n      "],[1,[30,0,["model","id"]]],[1,"\\n"],[41,[30,0,["model","enforcementLevel"]],[[[1,"        "],[10,1],[14,0,"tag is-medium"],[15,"aria-label",[29,["Enforcement level: ",[30,0,["model","enforcementLevel"]]]]],[12],[1,"\\n          "],[1,[30,0,["model","enforcementLevel"]]],[1,"\\n        "],[13],[1,"\\n"]],[]],null],[1,"    "],[13],[1,"\\n  "]],[]]]]],[1,"\\n"]],[1]]]]],[1,"\\n"],[41,[28,[37,5],[[28,[37,6],[[30,0,["model","id"]],"root"],null],[28,[37,7],[[30,0,["capabilities","canUpdate"]],[30,0,["capabilities","canDelete"]]],null]],null],[[[1,"  "],[8,[39,8],null,null,[["default"],[[[[1,"\\n    "],[8,[39,9],null,null,[["default"],[[[[1,"\\n"],[41,[28,[37,5],[[28,[37,6],[[30,0,["model","id"]],"default"],null],[30,0,["capabilities","canDelete"]]],null],[[[1,"        "],[8,[39,10],[[24,0,"toolbar-button"]],[["@buttonText","@buttonColor","@confirmMessage","@onConfirmAction"],["Delete policy","secondary","Deleting this policy may affect access to Vault data.",[30,0,["deletePolicy"]]]],null],[1,"\\n        "],[10,0],[14,0,"toolbar-separator"],[12],[13],[1,"\\n"]],[]],null],[1,"      "],[8,[39,11],null,[["@route","@model"],["vault.cluster.policy.show",[30,0,["model","id"]]]],[["default"],[[[[1,"\\n        Back to policy\\n      "]],[]]]]],[1,"\\n    "]],[]]]]],[1,"\\n  "]],[]]]]],[1,"\\n"]],[]],null],[1,"\\n"],[8,[39,12],null,[["@model","@onSave","@onCancel","@renderPolicyExampleModal"],[[30,0,["model"]],[28,[37,13],["vault.cluster.policy.show",[30,0,["model","policyType"]],[30,0,["model","name"]]],null],[28,[37,13],["vault.cluster.policy.show",[30,0,["model","policyType"]],[30,0,["model","name"]]],null],true]],null]],["p"],false,["page-header","hds/breadcrumb","hds/breadcrumb/item","uppercase","if","and","not-eq","or","toolbar","toolbar-actions","confirm-action","toolbar-link","policy-form","transition-to"]]',moduleName:"vault/templates/vault/cluster/policy/edit.hbs",isStrictMode:!1})})),define("vault/templates/vault/cluster/policy/error",["exports","@ember/template-factory"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default=(0,t.createTemplateFactory)({id:"NogJi/f1",block:'[[[41,[28,[37,1],[[30,0,["model","httpStatus"]],404],null],[[[1,"  "],[8,[39,2],null,[["@model"],[[30,0,["model"]]]],null],[1,"\\n"]],[]],[[[1,"  "],[8,[39,3],null,null,[["default"],[[[[1,"\\n    "],[8,[30,1,["levelLeft"]],null,null,[["default"],[[[[1,"\\n      "],[10,"h1"],[14,0,"title is-3 has-text-grey"],[12],[1,"\\n"],[41,[28,[37,1],[[30,0,["model","httpStatus"]],403],null],[[[1,"          Not authorized\\n"]],[]],[[[1,"          Error\\n"]],[]]],[1,"      "],[13],[1,"\\n    "]],[]]]]],[1,"\\n  "]],[1]]]]],[1,"\\n  "],[10,0],[14,0,"box is-sideless has-background-white-bis has-text-grey has-text-centered"],[12],[1,"\\n"],[41,[30,0,["model","message"]],[[[1,"      "],[10,2],[12],[1,[30,0,["model","message"]]],[13],[1,"\\n"]],[]],null],[42,[28,[37,5],[[28,[37,5],[[30,0,["model","errors"]]],null]],null],null,[[[1,"      "],[10,2],[12],[1,[30,2]],[13],[1,"\\n"]],[2]],null],[1,"  "],[13],[1,"\\n"]],[]]]],["p","error"],false,["if","eq","not-found","page-header","each","-track-array"]]',moduleName:"vault/templates/vault/cluster/policy/error.hbs",isStrictMode:!1})})),define("vault/templates/vault/cluster/policy/loading",["exports","@ember/template-factory"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default=(0,t.createTemplateFactory)({id:"E54hDU8H",block:'[[[8,[39,0],null,null,null]],[],false,["layout-loading"]]',moduleName:"vault/templates/vault/cluster/policy/loading.hbs",isStrictMode:!1})})),define("vault/templates/vault/cluster/policy/show",["exports","@ember/template-factory"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default=(0,t.createTemplateFactory)({id:"5EKVE6Jt",block:'[[[8,[39,0],null,null,[["default"],[[[[1,"\\n  "],[8,[30,1,["top"]],null,null,[["default"],[[[[1,"\\n    "],[8,[39,1],null,null,[["default"],[[[[1,"\\n      "],[8,[39,2],null,[["@text","@route","@model"],[[29,[[28,[37,3],[[30,0,["policyType"]]],null]," policies"]],"vault.cluster.policies",[30,0,["policyType"]]]],null],[1,"\\n      "],[8,[39,2],null,[["@text","@current"],[[30,0,["model","id"]],true]],null],[1,"\\n    "]],[]]]]],[1,"\\n  "]],[]]]]],[1,"\\n  "],[8,[30,1,["levelLeft"]],null,null,[["default"],[[[[1,"\\n    "],[10,"h1"],[14,0,"title is-3"],[12],[1,"\\n      "],[1,[30,0,["model","id"]]],[1,"\\n"],[41,[30,0,["model","enforcementLevel"]],[[[1,"        "],[10,1],[14,0,"tag"],[15,"aria-label",[29,["Enforcement level: ",[30,0,["model","enforcementLevel"]]]]],[12],[1,"\\n          "],[1,[30,0,["model","enforcementLevel"]]],[1,"\\n        "],[13],[1,"\\n"]],[]],null],[1,"    "],[13],[1,"\\n  "]],[]]]]],[1,"\\n"]],[1]]]]],[1,"\\n"],[8,[39,5],null,null,[["default"],[[[[1,"\\n  "],[8,[39,6],null,null,[["default"],[[[[1,"\\n    "],[8,[39,7],[[24,0,"toolbar-button"]],[["@color","@filename","@data","@extension","@text"],["secondary",[30,0,["model","name"]],[30,0,["model","policy"]],[52,[28,[37,8],[[30,0,["policyType"]],"acl"],null],[30,0,["model","format"]],"sentinel"],"Download policy"]],null],[1,"\\n"],[41,[28,[37,9],[[28,[37,10],[[30,0,["model","id"]],"root"],null],[28,[37,11],[[30,0,["capabilities","canUpdate"]],[30,0,["capabilities","canDelete"]]],null]],null],[[[1,"      "],[8,[39,12],null,[["@route","@models"],["vault.cluster.policy.edit",[28,[37,13],[[30,0,["policyType"]],[30,0,["model","id"]]],null]]],[["default"],[[[[1,"\\n        Edit policy\\n      "]],[]]]]],[1,"\\n"]],[]],null],[1,"  "]],[]]]]],[1,"\\n"]],[]]]]],[1,"\\n"],[10,0],[14,0,"box is-bottomless is-fullwidth is-marginless"],[12],[1,"\\n  "],[10,0],[14,0,"field"],[12],[1,"\\n    "],[8,[39,14],null,[["@title","@subTitle","@value","@readOnly","@mode"],["Policy",[52,[28,[37,8],[[30,0,["policyType"]],"acl"],null],[28,[37,15],[[30,0,["uppercase"]],[30,0,["model","format"]]," format"],null]],[30,0,["model","policy"]],true,"ruby"]],null],[1,"\\n  "],[13],[1,"\\n"],[41,[30,0,["model","paths"]],[[[1,"    "],[10,0],[14,0,"field box is-shadowless no-bottom-padding is-marginless"],[12],[1,"\\n      "],[10,"h2"],[14,0,"title is-6"],[12],[1,"Paths"],[13],[1,"\\n      "],[10,"ul"],[12],[1,"\\n"],[42,[28,[37,17],[[28,[37,17],[[30,0,["model","paths"]]],null]],null],null,[[[1,"          "],[10,"li"],[14,0,"box has-slim-padding no-top-shadow is-marginless"],[12],[1,"\\n            "],[10,"code"],[14,0,"has-text-black"],[12],[1,[30,2]],[13],[1,"\\n          "],[13],[1,"\\n"]],[2]],null],[1,"      "],[13],[1,"\\n    "],[13],[1,"\\n"]],[]],null],[13]],["p","path"],false,["page-header","hds/breadcrumb","hds/breadcrumb/item","uppercase","if","toolbar","toolbar-actions","download-button","eq","and","not-eq","or","toolbar-link","array","json-editor","concat","each","-track-array"]]',moduleName:"vault/templates/vault/cluster/policy/show.hbs",isStrictMode:!1})})),define("vault/templates/vault/cluster/redirect",["exports","@ember/template-factory"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default=(0,t.createTemplateFactory)({id:"3qsY9GDc",block:'[[[8,[39,0],null,null,null]],[],false,["logo-splash"]]',moduleName:"vault/templates/vault/cluster/redirect.hbs",isStrictMode:!1})})),define("vault/templates/vault/cluster/replication-dr-promote/details",["exports","@ember/template-factory"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default=(0,t.createTemplateFactory)({id:"QfDIAevF",block:'[[[10,"section"],[14,0,"section"],[12],[1,"\\n  "],[10,0],[14,0,"container is-widescreen"],[12],[1,"\\n    "],[8,[39,0],null,[["@model"],[[30,0,["model"]]]],[["default"],[[[[1,"\\n      "],[8,[30,1,["header"]],null,[["@showTabs"],[true]],null],[1,"\\n"],[41,[30,1,["isDisabled"]],[[[1,"        "],[8,[39,2],[[24,0,"is-shadowless"]],[["@title","@message","@icon","@bottomBorder"],["Disaster Recovery secondary not set up",[30,1,["message"]],"alert-circle",true]],[["default"],[[[[1,"\\n          "],[8,[39,3],null,[["@icon","@text","@route"],["chevron-left","Go back","vault.cluster.secrets.backends"]],null],[1,"\\n          "],[8,[39,3],null,[["@icon","@iconPosition","@color","@text","@href"],["learn-link","trailing","secondary","Disaster recovery tutorial",[28,[37,4],["/vault/tutorials/enterprise/disaster-recovery"],null]]],null],[1,"\\n        "]],[]]]]],[1,"\\n"]],[]],[[[1,"        "],[8,[30,1,["dashboard"]],null,[["@componentToRender"],["replication-secondary-card"]],[["default"],[[[[1,"\\n          "],[8,[30,2,["card"]],null,[["@title"],["Status"]],null],[1,"\\n          "],[8,[30,2,["card"]],null,[["@title"],["Primary cluster"]],null],[1,"\\n          "],[8,[30,2,["rows"]],null,null,null],[1,"\\n        "]],[2]]]]],[1,"\\n"]],[]]],[1,"    "]],[1]]]]],[1,"\\n  "],[13],[1,"\\n"],[13]],["Page","Dashboard"],false,["replication-page","if","empty-state","hds/link/standalone","doc-link"]]',moduleName:"vault/templates/vault/cluster/replication-dr-promote/details.hbs",isStrictMode:!1})})),define("vault/templates/vault/cluster/replication-dr-promote/index",["exports","@ember/template-factory"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default=(0,t.createTemplateFactory)({id:"vWMOWEE0",block:'[[[10,"section"],[14,0,"section"],[12],[1,"\\n  "],[10,0],[14,0,"container is-widescreen"],[12],[1,"\\n    "],[8,[39,0],null,[["@model"],[[30,0,["model"]]]],[["default"],[[[[1,"\\n      "],[8,[30,1,["header"]],null,[["@showTabs"],[true]],null],[1,"\\n"],[41,[30,1,["isDisabled"]],[[[1,"        "],[8,[39,2],null,[["@title","@message","@icon","@bottomBorder"],["Disaster Recovery secondary not set up",[30,1,["message"]],"alert-circle",true]],[["default"],[[[[1,"\\n          "],[8,[39,3],null,[["@icon","@text","@route"],["chevron-left","Go back","vault.cluster.secrets.backends"]],null],[1,"\\n          "],[8,[39,3],null,[["@icon","@iconPosition","@color","@text","@href"],["learn-link","trailing","secondary","Disaster recovery tutorial",[28,[37,4],["/vault/tutorials/enterprise/disaster-recovery"],null]]],null],[1,"\\n        "]],[]]]]],[1,"\\n"]],[]],[[[1,"        "],[10,"section"],[12],[1,"\\n          "],[8,[39,5],null,[["@replicationMode","@model","@onPromote"],["dr",[30,0,["model"]],[28,[37,6],[[30,0],"onPromote"],null]]],null],[1,"\\n        "],[13],[1,"\\n"]],[]]],[1,"    "]],[1]]]]],[1,"\\n  "],[13],[1,"\\n"],[13]],["Page"],false,["replication-page","if","empty-state","hds/link/standalone","doc-link","replication-actions","action"]]',moduleName:"vault/templates/vault/cluster/replication-dr-promote/index.hbs",isStrictMode:!1})})),define("vault/templates/vault/cluster/secrets/backend/configuration",["exports","@ember/template-factory"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default=(0,t.createTemplateFactory)({id:"rRcbo+vk",block:'[[[46,[28,[37,1],null,null],null,null,null]],[],false,["component","-outlet"]]',moduleName:"vault/templates/vault/cluster/secrets/backend/configuration.hbs",isStrictMode:!1})})),define("vault/templates/vault/cluster/secrets/backend/configuration/edit",["exports","@ember/template-factory"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default=(0,t.createTemplateFactory)({id:"0qfTC4dP",block:'[[[8,[39,0],null,null,[["default"],[[[[1,"\\n  "],[8,[30,1,["top"]],null,null,[["default"],[[[[1,"\\n    "],[8,[39,1],null,[["@baseKey","@path","@root","@showCurrent"],[[30,0,["model"]],"vault.cluster.secrets.backend",[30,0,["root"]],true]],null],[1,"\\n  "]],[]]]]],[1,"\\n  "],[8,[30,1,["levelLeft"]],null,null,[["default"],[[[[1,"\\n    "],[10,"h1"],[14,0,"title is-3"],[12],[1,"\\n      Configure\\n      "],[1,[28,[35,2],[[28,[37,3],[[30,0,["model","type"]]],null],"displayName"],null]],[1,"\\n    "],[13],[1,"\\n  "]],[]]]]],[1,"\\n"]],[1]]]]],[1,"\\n\\n"],[8,[39,4],null,null,[["default"],[[[[1,"\\n  "],[8,[39,5],null,null,[["default"],[[[[1,"\\n    "],[8,[39,6],null,[["@route","@model"],["vault.cluster.secrets.backend",[30,0,["model","id"]]]],[["default"],[[[[1,"\\n      View backend\\n    "]],[]]]]],[1,"\\n  "]],[]]]]],[1,"\\n"]],[]]]]],[1,"\\n\\n"],[41,[28,[37,8],[[30,0,["model","type"]],"aws"],null],[[[1,"  "],[8,[39,9],null,[["@leaseConfig","@rootConfig","@issuerConfig","@backendPath"],[[30,0,["model","aws-lease-config"]],[30,0,["model","aws-root-config"]],[30,0,["model","identity-oidc-config"]],[30,0,["model","id"]]]],null],[1,"\\n"]],[]],[[[41,[28,[37,8],[[30,0,["model","type"]],"ssh"],null],[[[1,"  "],[8,[39,10],null,[["@model","@id"],[[30,0,["model","ssh-ca-config"]],[30,0,["model","id"]]]],null],[1,"\\n"]],[]],null]],[]]]],["p"],false,["page-header","key-value-header","get","options-for-backend","toolbar","toolbar-actions","toolbar-link","if","eq","secret-engine/configure-aws","secret-engine/configure-ssh"]]',moduleName:"vault/templates/vault/cluster/secrets/backend/configuration/edit.hbs",isStrictMode:!1})})),define("vault/templates/vault/cluster/secrets/backend/configuration/index",["exports","@ember/template-factory"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default=(0,t.createTemplateFactory)({id:"NLrOQGjY",block:'[[[8,[39,0],null,[["@model","@backendCrumb","@isConfigure"],[[30,0,["model","secretEngineModel"]],[28,[37,1],null,[["label","text","path","model"],[[30,0,["model","secretEngineModel","id"]],[30,0,["model","secretEngineModel","id"]],"vault.cluster.secrets.backend.list-root",[30,0,["model","secretEngineModel","id"]]]]],true]],null],[1,"\\n\\n"],[41,[30,0,["isConfigurable"]],[[[1,"  "],[8,[39,3],null,null,[["default"],[[[[1,"\\n    "],[8,[39,4],null,null,[["default"],[[[[1,"\\n      "],[8,[39,5],null,[["@route","@model"],["vault.cluster.secrets.backend.configuration.edit",[30,0,["model","secretEngineModel","id"]]]],[["default"],[[[[1,"\\n        Configure\\n      "]],[]]]]],[1,"\\n    "]],[]]]]],[1,"\\n  "]],[]]]]],[1,"\\n\\n  "],[8,[39,6],null,[["@configModels","@typeDisplay","@id"],[[30,0,["model","configModels"]],[30,0,["typeDisplay"]],[30,0,["modelId"]]]],null],[1,"\\n\\n  "],[8,[39,7],[[24,0,"has-top-margin-xl has-bottom-margin-xl"]],[["@model"],[[30,0,["model","secretEngineModel"]]]],null],[1,"\\n\\n"]],[]],[[[1,"  "],[10,0],[14,0,"box is-fullwidth is-sideless is-paddingless is-marginless"],[12],[1,"\\n"],[42,[28,[37,9],[[28,[37,9],[[30,0,["model","secretEngineModel","attrs"]]],null]],null],null,[[[41,[28,[37,10],[[30,1,["type"]],"object"],null],[[[1,"        "],[8,[39,11],null,[["@alwaysRender","@label","@value"],[[28,[37,12],[[28,[37,13],[[28,[37,14],[[30,0,["model","secretEngineModel"]],[30,1,["name"]]],null]],null]],null],[28,[37,15],[[30,1,["options","label"]],[28,[37,16],[[30,1,["name"]]],null]],null],[28,[37,17],[[28,[37,14],[[30,0,["model","secretEngineModel"]],[28,[37,15],[[30,1,["options","fieldValue"]],[30,1,["name"]]],null]],null]],null]]],null],[1,"\\n"]],[]],[[[1,"        "],[8,[39,11],null,[["@alwaysRender","@formatTtl","@label","@value"],[[28,[37,18],[[28,[37,12],[[28,[37,13],[[28,[37,14],[[30,0,["model","secretEngineModel"]],[30,1,["name"]]],null]],null]],null],[28,[37,19],[[30,1,["name"]],"version"],null]],null],[28,[37,10],[[30,1,["options","editType"]],"ttl"],null],[28,[37,15],[[30,1,["options","label"]],[28,[37,16],[[30,1,["name"]]],null]],null],[28,[37,14],[[30,0,["model","secretEngineModel"]],[28,[37,15],[[30,1,["options","fieldValue"]],[30,1,["name"]]],null]],null]]],null],[1,"\\n"]],[]]]],[1]],null],[1,"  "],[13],[1,"\\n"]],[]]]],["attr"],false,["secret-list-header","hash","if","toolbar","toolbar-actions","toolbar-link","secret-engine/configuration-details","secrets-engine-mount-config","each","-track-array","eq","info-table-row","not","is-empty-value","get","or","to-label","stringify","and","not-eq"]]',moduleName:"vault/templates/vault/cluster/secrets/backend/configuration/index.hbs",isStrictMode:!1})})),define("vault/templates/vault/cluster/secrets/backend/credentials",["exports","@ember/template-factory"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default=(0,t.createTemplateFactory)({id:"zMYVwyB5",block:'[[[41,[28,[37,1],[[30,0,["model","backendType"]],"database"],null],[[[1,"  "],[8,[39,2],null,[["@backendPath","@roleName","@roleType","@model"],[[30,0,["model","backendPath"]],[30,0,["model","roleName"]],[30,0,["model","dbCred","roleType"]],[30,0,["model","dbCred"]]]],null],[1,"\\n"]],[]],[[[1,"  "],[8,[39,3],null,[["@backendPath","@backendType","@roleName","@awsRoleType"],[[30,0,["model","backendPath"]],[30,0,["model","backendType"]],[30,0,["model","roleName"]],[30,0,["model","awsRoleType"]]]],null],[1,"\\n"]],[]]]],[],false,["if","eq","generate-credentials-database","generate-credentials"]]',moduleName:"vault/templates/vault/cluster/secrets/backend/credentials.hbs",isStrictMode:!1})})),define("vault/templates/vault/cluster/secrets/backend/error",["exports","@ember/template-factory"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default=(0,t.createTemplateFactory)({id:"N9INAQh8",block:'[[[10,0],[14,0,"box is-shadowless"],[12],[1,"\\n  "],[8,[39,0],null,null,[["default"],[[[[1,"\\n    "],[8,[30,1,["top"]],null,null,[["default"],[[[[1,"\\n      "],[8,[39,1],null,null,[["default"],[[[[1,"\\n        "],[8,[39,2],null,[["@text","@route"],[[52,[30,0,["model","backend"]],[30,0,["model","backend"]],"Secrets"],[52,[30,0,["model","backend"]],"vault.cluster.secrets.backend.list-root","vault.cluster.secrets"]]],null],[1,"\\n      "]],[]]]]],[1,"\\n    "]],[]]]]],[1,"\\n    "],[8,[30,1,["levelLeft"]],null,null,[["default"],[[[[1,"\\n      "],[10,"h1"],[14,0,"title is-3 has-text-grey"],[12],[1,"\\n"],[41,[28,[37,4],[[30,0,["model","httpStatus"]],404],null],[[[1,"          404 Not Found\\n"]],[]],[[[41,[28,[37,4],[[30,0,["model","httpStatus"]],403],null],[[[1,"          Not Authorized\\n"]],[]],[[[1,"          Error\\n        "]],[]]]],[]]],[1,"      "],[13],[1,"\\n    "]],[]]]]],[1,"\\n  "]],[1]]]]],[1,"\\n  "],[10,0],[14,0,"box is-sideless has-background-white-bis has-text-grey has-text-centered"],[12],[1,"\\n"],[41,[28,[37,4],[[30,0,["model","httpStatus"]],404],null],[[[1,"      "],[10,2],[12],[1,"\\n        Unable to find secret at\\n        "],[10,"code"],[12],[1,[28,[35,5],[[30,0,["model","backend"]],"/",[30,0,["model","secret"]]],null]],[13],[1,". Try going back to the\\n        "],[8,[39,6],null,[["@route"],[[52,[30,0,["model","backend"]],"vault.cluster.secrets.backend.list-root","vault.cluster.secrets"]]],[["default"],[[[[1,"\\n          root\\n        "]],[]]]]],[1,"\\n        and navigating from there.\\n      "],[13],[1,"\\n"]],[]],[[[41,[28,[37,4],[[30,0,["model","httpStatus"]],403],null],[[[41,[28,[37,4],[[30,0,["model","policyPath"]],"sys/capabilities-self"],null],[[[1,"        "],[10,2],[12],[1,"\\n          Your auth token does not have access to\\n          "],[10,"code"],[12],[1,[30,0,["model","policyPath"]]],[13],[1,". Vault Enterprise uses this endpoint to determine what actions are allowed\\n          in the interface.\\n        "],[13],[1,"\\n        "],[10,2],[12],[1,"\\n          Make sure the policy for the path\\n          "],[10,"code"],[12],[1,[30,0,["model","policyPath"]]],[13],[1,"\\n          includes\\n          "],[10,"code"],[12],[1,"capabilities = [\'update\']"],[13],[1,".\\n        "],[13],[1,"\\n"]],[]],[[[1,"        "],[10,2],[12],[1,"\\n          You don\'t have access to\\n          "],[10,"code"],[12],[1,"\\n            "],[1,[52,[30,0,["model","secret"]],[28,[37,5],[[30,0,["model","backend"]],"/",[30,0,["model","secret"]]],null],[28,[37,5],[[30,0,["model","backend"]],"/"],null]]],[1,"\\n          "],[13],[1,". If you think you\'ve reached this page in error, please contact your administrator.\\n        "],[13],[1,"\\n        "],[10,2],[12],[1,"\\n"],[41,[30,0,["model","secret"]],[[[1,"            "],[8,[39,6],null,[["@route"],["vault.cluster.secrets.backend.list-root"]],[["default"],[[[[1,"Navigate back to the root"]],[]]]]],[1,".\\n"]],[]],[[[1,"            "],[8,[39,6],null,[["@route"],["vault.cluster"]],[["default"],[[[[1,"Go back home"]],[]]]]],[1,".\\n"]],[]]],[1,"        "],[13],[1,"\\n"]],[]]]],[]],[[[41,[30,0,["model","message"]],[[[1,"        "],[10,2],[12],[1,[30,0,["model","message"]]],[13],[1,"\\n"]],[]],null],[42,[28,[37,8],[[28,[37,8],[[30,0,["model","errors"]]],null]],null],null,[[[1,"        "],[10,2],[14,0,"message"],[12],[1,"\\n          "],[1,[30,2]],[1,"\\n        "],[13],[1,"\\n"]],[2]],null],[1,"    "]],[]]]],[]]],[1,"  "],[13],[1,"\\n"],[13]],["p","error"],false,["page-header","hds/breadcrumb","hds/breadcrumb/item","if","eq","concat","link-to","each","-track-array"]]',moduleName:"vault/templates/vault/cluster/secrets/backend/error.hbs",isStrictMode:!1})})),define("vault/templates/vault/cluster/secrets/backend/list",["exports","@ember/template-factory"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default=(0,t.createTemplateFactory)({id:"K8kVdw5f",block:'[[[8,[39,0],null,[["@isCertTab","@model","@baseKey","@backendCrumb","@filter"],[[28,[37,1],[[30,0,["tab"]],"cert"],null],[30,0,["backendModel"]],[30,0,["baseKey"]],[30,0,["backendCrumb"]],[30,0,["filter"]]]],null],[1,"\\n"],[44,[[28,[37,3],[[30,0,["backendType"]],[30,0,["tab"]]],null]],[[[41,[28,[37,5],[[30,0,["model","meta","total"]],[28,[37,6],[[30,0,["isConfigurableTab"]]],null]],null],[[[1,"    "],[8,[39,7],null,null,[["default"],[[[[1,"\\n      "],[8,[39,8],null,null,[["default"],[[[[1,"\\n        "],[8,[39,9],null,[["@enterpriseProduct","@filterFocusDidChange","@filterDidChange","@filter","@filterMatchesKey","@firstPartialMatch","@baseKey","@shouldNavigateTree","@placeholder","@mode"],["vault",[28,[37,10],[[30,0],"setFilterFocus"],null],[28,[37,10],[[30,0],"setFilter"],null],[30,0,["filter"]],[30,0,["filterMatchesKey"]],[30,0,["firstPartialMatch"]],[28,[37,11],[[30,0,["baseKey"]],"id"],null],[30,1,["navigateTree"]],[30,1,["searchPlaceholder"]],[52,[28,[37,1],[[30,0,["tab"]],"cert"],null],"secrets-cert","secrets"]]],null],[1,"\\n"],[41,[30,0,["filterFocused"]],[[[41,[30,0,["filterMatchesKey"]],[[[41,[51,[30,0,["filterIsFolder"]]],[[[1,"              "],[10,2],[14,0,"input-hint"],[12],[1,"\\n                "],[10,"kbd"],[12],[1,"Enter"],[13],[1,"\\n                to view\\n                "],[1,[30,0,["filter"]]],[1,"\\n              "],[13],[1,"\\n"]],[]],null]],[]],null],[41,[30,0,["firstPartialMatch"]],[[[1,"            "],[10,2],[14,0,"input-hint"],[12],[1,"\\n              "],[10,"kbd"],[12],[1,"Tab"],[13],[1,"\\n              to autocomplete\\n            "],[13],[1,"\\n"]],[]],null]],[]],null],[1,"      "]],[]]]]],[1,"\\n\\n      "],[8,[39,13],null,null,[["default"],[[[[1,"\\n        "],[8,[39,14],null,[["@secret","@mode","@backend","@type","@queryParams"],["","create",[30,0,["backendModel","id"]],"add",[28,[37,15],null,[["initialKey","itemType"],[[28,[37,5],[[30,0,["filter"]],[30,0,["baseKey","id"]]],null],[30,0,["tab"]]]]]]],[["default"],[[[[1,"\\n          "],[1,[30,1,["create"]]],[1,"\\n        "]],[]]]]],[1,"\\n      "]],[]]]]],[1,"\\n    "]],[]]]]],[1,"\\n"]],[]],null],[1,"\\n"],[41,[30,0,["model","meta","total"]],[[[42,[28,[37,17],[[28,[37,17],[[30,0,["model"]]],null]],null],null,[[[44,[[50,[30,1,["listItemPartial"]],0,null,null]],[[[1,"        "],[8,[30,3],null,[["@item","@backendModel","@backendType","@delete","@itemPath","@itemType","@modelType","@options","@toggleZeroAddress","@loadingToggleZeroAddress"],[[30,2],[30,0,["backendModel"]],[30,0,["backendType"]],[28,[37,10],[[30,0],"delete",[30,2],"secret"],null],[28,[37,19],[[30,1,["modelPrefix"]],[30,2,["id"]]],null],[30,1,["item"]],[30,4],[30,1],[28,[37,10],[[30,0],"toggleZeroAddress",[30,2],[30,0,["backendModel"]]],null],[28,[37,11],[[30,0],[28,[37,19],["loading-",[30,2,["id"]]],null]],null]]],null],[1,"\\n"]],[3]]]],[2]],[[[1,"      "],[8,[39,20],null,[["@title"],[[29,["There are no ",[28,[37,21],[[30,1,["item"]]],null]," matching \\"",[30,0,["filter"]],"\\". ",[52,[30,0,["filterFocused"]],"Press ENTER to add one."]]]]],null],[1,"\\n\\n"]],[]]],[1,"\\n"],[41,[30,0,["model","length"]],[[[1,"      "],[8,[39,22],null,[["@currentPage","@currentPageSize","@route","@model","@showSizeSelector","@totalItems","@queryFunction"],[[30,0,["model","meta","currentPage"]],[30,0,["model","meta","pageSize"]],[28,[37,19],["vault.cluster.secrets.backend.list",[52,[51,[30,0,["baseKey","id"]]],"-root"]],null],[30,0,["backendModel","id"]],false,[30,0,["model","meta","total"]],[30,0,["paginationQueryParams"]]]],null],[1,"\\n"]],[]],null]],[]],[[[41,[28,[37,1],[[30,0,["baseKey","id"]],""],null],[[[41,[28,[37,23],[[30,1,["firstStep"]],[28,[37,6],[[30,0,["tab"]]],null]],null],[[[1,"        "],[8,[39,20],null,[["@title","@message"],[[29,["Get started with ",[28,[37,24],[[30,0,["backendType"]]],null]]],[30,1,["firstStep"]]]],null],[1,"\\n"]],[]],[[[1,"        "],[8,[39,20],null,[["@title","@message"],[[29,["No ",[28,[37,21],[[30,1,["item"]]],null]," in this backend"]],[29,[[28,[37,21],[[28,[37,24],[[30,1,["item"]]],null]],null],"\\n            in this backend will be listed here.\\n            ",[28,[37,5],[[30,1,["message"]],[28,[37,19],["Add a ",[30,1,["item"]]," to get started."],null]],null]]]]],null],[1,"\\n"]],[]]]],[]],[[[41,[30,0,["filterIsFolder"]],[[[1,"        "],[8,[39,20],null,[["@title"],[[52,[28,[37,1],[[30,0,["filter"]],[30,0,["baseKey","id"]]],null],[28,[37,19],["No ",[28,[37,21],[[30,1,["item"]]],null]," under \\"",[30,0,["filter"]],"\\"."],null],[28,[37,19],["No folders matching \\"",[30,0,["filter"]],"\\"."],null]]]],[["default"],[[[[1,"\\n          "],[8,[39,25],null,[["@route","@model"],["vault.cluster.secrets.backend.list-root",[30,0,["backend"]]]],[["default"],[[[[1,"\\n            Back to root\\n          "]],[]]]]],[1,"\\n        "]],[]]]]],[1,"\\n"]],[]],[[[1,"        "],[8,[39,20],null,[["@title"],[[28,[37,19],["No ",[28,[37,21],[[30,1,["item"]]],null]," matching \\"",[30,0,["filter"]],"\\"."],null]]],[["default"],[[[[1,"\\n          "],[8,[39,25],null,[["@route","@model"],["vault.cluster.secrets.backend.list-root",[30,0,["backend"]]]],[["default"],[[[[1,"\\n            Back to root\\n          "]],[]]]]],[1,"\\n        "]],[]]]]],[1,"\\n"]],[]]]],[]]]],[]]]],[1]]]],["options","item","Component","@modelType"],false,["secret-list-header","eq","let","options-for-backend","if","or","not","toolbar","toolbar-filters","navigate-input","action","get","unless","toolbar-actions","toolbar-secret-link","hash","each","-track-array","component","concat","empty-state","pluralize","hds/pagination/numbered","and","capitalize","link-to"]]',moduleName:"vault/templates/vault/cluster/secrets/backend/list.hbs",isStrictMode:!1})})),define("vault/templates/vault/cluster/secrets/backend/overview",["exports","@ember/template-factory"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default=(0,t.createTemplateFactory)({id:"w9obCBvQ",block:'[[[8,[39,0],null,[["@isCertTab","@model","@baseKey","@backendCrumb","@filter"],[[28,[37,1],[[30,0,["tab"]],"cert"],null],[30,0,["model"]],[30,0,["baseKey"]],[30,0,["backendCrumb"]],[30,0,["filter"]]]],null],[1,"\\n\\n"],[41,[30,0,["showEmptyState"]],[[[1,"  "],[10,0],[14,0,"box is-fullwidth is-shadowless is-sideless is-paddingless is-marginless"],[12],[1,"\\n    "],[8,[39,3],null,null,null],[1,"\\n    "],[8,[39,4],null,[["@title","@message"],["Connect a database",[30,0,["emptyStateMessage"]]]],[["default"],[[[[1,"\\n"],[41,[28,[37,5],[[30,0,["model","connectionCapabilities","canCreate"]],[30,0,["model","connectionCapabilities","canUpdate"]]],null],[[[1,"        "],[8,[39,6],null,[["@icon","@text","@query","@route"],["plus","Connect a database",[28,[37,7],null,[["itemType"],["connection"]]],"vault.cluster.secrets.backend.create-root"]],null],[1,"\\n"]],[]],null],[1,"    "]],[]]]]],[1,"\\n  "],[13],[1,"\\n"]],[]],[[[1,"  "],[10,0],[14,0,"box is-fullwidth is-shadowless has-tall-padding"],[12],[1,"\\n    "],[10,0],[15,0,[29,["selectable-card-container ",[52,[28,[37,8],[[28,[37,1],[[30,0,["model","connections"]],403],null],[28,[37,1],[[30,0,["model","roles"]],403],null]],null],"one-card"]]]],[12],[1,"\\n"],[41,[30,0,["model","connectionCapabilities","canList"]],[[[1,"        "],[8,[39,9],null,[["@cardTitle","@subText"],["Connections","The total number of connections to external databases that you have access to."]],[["action","content"],[[[[1,"\\n            "],[8,[39,6],null,[["@text","@route","@query","@icon","@iconPosition"],["Configure new","vault.cluster.secrets.backend.create-root",[28,[37,7],null,[["itemType"],["connection"]]],"plus","trailing"]],null],[1,"\\n          "]],[]],[[[1,"\\n            "],[8,[39,10],[[24,0,"has-top-padding-m"]],[["@tag","@size"],["h2","500"]],[["default"],[[[[1,"\\n              "],[1,[28,[35,11],[[52,[28,[37,1],[[30,0,["model","connections"]],404],null],0,[30,0,["model","connections","length"]]]],null]],[1,"\\n            "]],[]]]]],[1,"\\n          "]],[]]]]],[1,"\\n"]],[]],null],[41,[28,[37,5],[[30,0,["model","roleCapabilities","canList"]],[30,0,["model","staticRoleCapabilities","canList"]]],null],[[[1,"        "],[8,[39,9],null,[["@cardTitle","@subText"],["Roles","The total number of roles configured that you have permissions to list."]],[["action","content"],[[[[1,"\\n            "],[8,[39,6],null,[["@text","@route","@query","@icon","@iconPosition"],["Create new","vault.cluster.secrets.backend.create-root",[28,[37,7],null,[["itemType"],["role"]]],"plus","trailing"]],null],[1,"\\n          "]],[]],[[[1,"\\n            "],[8,[39,10],[[24,0,"has-top-padding-m"]],[["@tag","@size"],["h2","500"]],[["default"],[[[[1,"\\n              "],[1,[28,[35,11],[[52,[28,[37,1],[[30,0,["model","roles"]],404],null],0,[30,0,["model","roles","length"]]]],null]],[1,"\\n            "]],[]]]]],[1,"\\n          "]],[]]]]],[1,"\\n"]],[]],null],[1,"      "],[8,[39,12],null,[["@title","@searchLabel","@backend","@models"],["Get Credentials","Role to use",[30,0,["model","backend"]],[28,[37,13],["database/role"],null]]],null],[1,"\\n    "],[13],[1,"\\n  "],[13],[1,"\\n"]],[]]]],[],false,["secret-list-header","eq","if","toolbar","empty-state","or","hds/link/standalone","hash","and","overview-card","hds/text/display","format-number","get-credentials-card","array"]]',moduleName:"vault/templates/vault/cluster/secrets/backend/overview.hbs",isStrictMode:!1})})),define("vault/templates/vault/cluster/secrets/backend/secret-edit-layout",["exports","@ember/template-factory"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default=(0,t.createTemplateFactory)({id:"tLvSkoPm",block:'[[[46,[28,[37,1],[[28,[37,2],[[30,0,["backendType"]],[30,0,["model","idPrefix"]]],null],"editComponent"],null],null,[["key","tab","model","mode","root","capabilities","onRefresh","onToggleAdvancedEdit","initialKey","baseKey","preferAdvancedEdit"],[[30,0,["model"]],[30,0,["tab"]],[30,0,["model"]],[30,0,["mode"]],[30,0,["backendCrumb"]],[30,0,["capabilities"]],[28,[37,3],[[30,0],"refresh"],null],[28,[37,3],[[30,0],"toggleAdvancedEdit"],null],[30,0,["initialKey"]],[30,0,["baseKey"]],[30,0,["preferAdvancedEdit"]]]],null]],[],false,["component","get","options-for-backend","action"]]',moduleName:"vault/templates/vault/cluster/secrets/backend/secret-edit-layout.hbs",isStrictMode:!1})})),define("vault/templates/vault/cluster/secrets/backend/sign",["exports","@ember/template-factory"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default=(0,t.createTemplateFactory)({id:"fXBEtkn3",block:'[[[8,[39,0],null,null,[["default"],[[[[1,"\\n  "],[8,[30,1,["top"]],null,null,[["default"],[[[[1,"\\n    "],[8,[39,1],null,null,[["default"],[[[[1,"\\n      "],[8,[39,2],null,[["@text","@route","@model"],["SSH","vault.cluster.secrets.backend",[30,0,["backend","id"]]]],null],[1,"\\n      "],[8,[39,2],null,[["@text","@route","@model"],["Sign","vault.cluster.secrets.backend",[30,0,["backend","id"]]]],null],[1,"\\n      "],[8,[39,2],null,[["@text","@route","@model"],[[30,0,["model","role","name"]],"vault.cluster.secrets.backend.show",[30,0,["model","role","name"]]]],null],[1,"\\n      "],[8,[39,2],null,[["@text","@current"],["Sign SSH Key",true]],null],[1,"\\n    "]],[]]]]],[1,"\\n  "]],[]]]]],[1,"\\n  "],[8,[30,1,["levelLeft"]],null,null,[["default"],[[[[1,"\\n    "],[10,"h1"],[14,0,"title is-3"],[12],[1,"\\n      Sign SSH Key\\n    "],[13],[1,"\\n  "]],[]]]]],[1,"\\n"]],[1]]]]],[1,"\\n\\n"],[41,[30,0,["model","signedKey"]],[[[1,"  "],[10,0],[14,0,"box is-fullwidth is-sideless is-paddingless is-marginless"],[12],[1,"\\n    "],[8,[39,4],[[24,0,"has-top-margin-s has-bottom-margin-s"]],[["@type","@color"],["inline","warning"]],[["default"],[[[[1,"\\n      "],[8,[30,2,["Title"]],null,null,[["default"],[[[[1,"Warning"]],[]]]]],[1,"\\n      "],[8,[30,2,["Description"]],null,null,[["default"],[[[[1,"\\n        You will not be able to access this information later, so please copy the information below.\\n      "]],[]]]]],[1,"\\n    "]],[2]]]]],[1,"\\n"],[42,[28,[37,6],[[28,[37,6],[[30,0,["model","attrs"]]],null]],null],null,[[[41,[28,[37,7],[[30,3,["type"]],"object"],null],[[[1,"        "],[8,[39,8],null,[["@label","@value"],[[28,[37,9],[[28,[37,10],[[30,3,["options","label"]],[28,[37,11],[[28,[37,12],[[30,3,["name"]]],null]],null]],null]],null],[28,[37,13],[[28,[37,14],[[30,0,["model"]],[30,3,["name"]]],null]],null]]],null],[1,"\\n"]],[]],[[[1,"        "],[8,[39,8],null,[["@label","@value"],[[28,[37,9],[[28,[37,10],[[30,3,["options","label"]],[28,[37,11],[[28,[37,12],[[30,3,["name"]]],null]],null]],null]],null],[28,[37,14],[[30,0,["model"]],[30,3,["name"]]],null]]],null],[1,"\\n"]],[]]]],[3]],null],[1,"  "],[13],[1,"\\n  "],[10,0],[14,0,"field is-grouped box is-fullwidth is-bottomless"],[12],[1,"\\n    "],[10,0],[14,0,"control"],[12],[1,"\\n      "],[8,[39,15],[[24,0,"primary"]],[["@text","@textToCopy","@onError"],["Copy key",[30,0,["model","signedKey"]],[28,[37,16],[[28,[37,17],["Clipboard copy failed. The Clipboard API requires a secure context.","danger"],null]],null]]],null],[1,"\\n    "],[13],[1,"\\n"],[41,[30,0,["model","leaseId"]],[[[1,"      "],[10,0],[14,0,"control"],[12],[1,"\\n        "],[8,[39,15],[[24,0,"secondary"]],[["@text","@textToCopy","@onError"],["Copy lease ID",[30,0,["model","leaseId"]],[28,[37,16],[[28,[37,17],["Clipboard copy failed. The Clipboard API requires a secure context.","danger"],null]],null]]],null],[1,"\\n      "],[13],[1,"\\n"]],[]],null],[1,"    "],[10,0],[14,0,"control"],[12],[1,"\\n      "],[8,[39,18],[[4,[38,19],["click",[28,[37,20],[[30,0],"newModel"],null]],null]],[["@text","@color"],["Back","secondary"]],null],[1,"\\n    "],[13],[1,"\\n  "],[13],[1,"\\n"]],[]],[[[1,"  "],[11,"form"],[4,[38,20],[[30,0],"sign"],[["on"],["submit"]]],[12],[1,"\\n    "],[10,0],[14,0,"box is-sideless is-fullwidth is-marginless"],[12],[1,"\\n      "],[8,[39,21],null,[["@model"],[[30,0,["model"]]]],null],[1,"\\n      "],[8,[39,22],null,[["@mode","@noun"],["sign","SSH key"]],null],[1,"\\n"],[41,[30,0,["model","attrs"]],[[[44,[[28,[37,24],["name","publicKey",[30,0,["model","attrs"]]],null]],[[[1,"          "],[8,[39,25],null,[["@attr","@model"],[[30,4],[30,0,["model"]]]],null],[1,"\\n"]],[4]]],[44,[[28,[37,24],["name","validPrincipals",[30,0,["model","attrs"]]],null]],[[[1,"          "],[8,[39,25],null,[["@attr","@model"],[[30,5],[30,0,["model"]]]],null],[1,"\\n"]],[5]]],[1,"        "],[8,[39,26],null,[["@isOpen","@onClick"],[[30,0,["showOptions"]],[28,[37,16],[[28,[37,27],[[30,0,["showOptions"]]],null]],null]]],null],[1,"\\n"],[41,[30,0,["showOptions"]],[[[1,"          "],[10,0],[14,0,"box is-marginless"],[12],[1,"\\n"],[42,[28,[37,6],[[28,[37,6],[[30,0,["model","attrs"]]],null]],null],null,[[[41,[28,[37,28],[[28,[37,29],[[30,6,["name"]],[28,[37,30],["publicKey","validPrincipals"],null]],null]],null],[[[1,"                "],[8,[39,25],null,[["@attr","@model","@updateTtl","@emptyData","@codemirrorUpdated"],[[30,6],[30,0,["model"]],[28,[37,20],[[30,0],"updateTtl",[30,6,["name"]]],null],[30,0,["emptyData"]],[28,[37,20],[[30,0],"codemirrorUpdated",[30,6,["name"]]],null]]],null],[1,"\\n"]],[]],null]],[6]],null],[1,"          "],[13],[1,"\\n"]],[]],null]],[]],null],[1,"    "],[13],[1,"\\n    "],[8,[39,31],[[24,0,"has-top-bottom-margin"]],null,[["default"],[[[[1,"\\n      "],[8,[39,18],[[16,"disabled",[30,0,["loading"]]],[24,4,"submit"]],[["@text","@icon"],["Sign",[52,[30,0,["loading"]],"loading"]]],null],[1,"\\n      "],[8,[39,18],null,[["@text","@color","@route","@model"],["Cancel","secondary","vault.cluster.secrets.backend.list-root",[30,0,["backend","id"]]]],null],[1,"\\n    "]],[]]]]],[1,"\\n  "],[13],[1,"\\n"]],[]]]],["p","A","attr","attr","attr","attr"],false,["page-header","hds/breadcrumb","hds/breadcrumb/item","if","hds/alert","each","-track-array","eq","info-table-row","capitalize","or","humanize","dasherize","stringify","get","hds/copy/button","fn","set-flash-message","hds/button","on","action","message-error","namespace-reminder","let","find-by","form-field-from-model","toggle-button","mut","not","includes","array","hds/button-set"]]',moduleName:"vault/templates/vault/cluster/secrets/backend/sign.hbs",isStrictMode:!1})})),define("vault/templates/vault/cluster/secrets/backend/transit-actions-layout",["exports","@ember/template-factory"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default=(0,t.createTemplateFactory)({id:"JSUqoM/g",block:'[[[10,0],[14,0,"columns"],[12],[1,"\\n  "],[10,0],[14,0,"column"],[12],[1,"\\n    "],[8,[39,0],null,null,[["default"],[[[[1,"\\n      "],[8,[30,1,["top"]],null,null,[["default"],[[[[1,"\\n        "],[8,[39,1],null,[["@breadcrumbs"],[[30,0,["breadcrumbs"]]]],null],[1,"\\n      "]],[]]]]],[1,"\\n      "],[8,[30,1,["levelLeft"]],null,null,[["default"],[[[[1,"\\n        "],[10,"h1"],[14,0,"title is-3"],[12],[1,"\\n          "],[8,[39,2],[[24,0,"is-inline has-text-info"]],[["@secret","@backend","@mode","@replace","@queryParams"],[[30,0,["model","id"]],[30,0,["model","backend"]],"show",true,[28,[37,3],null,[["tab"],["actions"]]]]],[["default"],[[[[1,"\\n            "],[8,[39,4],null,[["@name"],["arrow-left"]],null],[1,"\\n          "]],[]]]]],[1,"\\n          Key Actions\\n        "],[13],[1,"\\n      "]],[]]]]],[1,"\\n    "]],[1]]]]],[1,"\\n\\n    "],[10,0],[14,0,"tabs-container box is-sideless is-fullwidth is-paddingless is-marginless"],[12],[1,"\\n      "],[10,"nav"],[14,0,"tabs"],[12],[1,"\\n        "],[10,"ul"],[12],[1,"\\n"],[42,[28,[37,6],[[28,[37,6],[[30,0,["model","supportedActions"]]],null]],null],null,[[[1,"            "],[10,"li"],[15,0,[52,[28,[37,8],[[30,2,["name"]],[30,0,["selectedAction"]]],null],"is-active"]],[12],[1,"\\n              "],[8,[39,2],null,[["@mode","@backend","@secret","@queryParams"],["actions",[30,0,["model","backend"]],[30,0,["model","id"]],[28,[37,3],null,[["action"],[[30,2,["name"]]]]]]],[["default"],[[[[1,"\\n"],[41,[28,[37,8],[[30,2,["name"]],"export"],null],[[[1,"                  Export Key\\n"]],[]],[[[41,[28,[37,8],[[30,2,["name"]],"hmac"],null],[[[1,"                  HMAC\\n"]],[]],[[[1,"                  "],[1,[28,[35,9],[[30,2,["name"]]],null]],[1,"\\n                "]],[]]]],[]]],[1,"              "]],[]]]]],[1,"\\n            "],[13],[1,"\\n"]],[2]],null],[1,"        "],[13],[1,"\\n      "],[13],[1,"\\n    "],[13],[1,"\\n    "],[8,[39,10],null,[["@selectedAction","@key"],[[30,0,["selectedAction"]],[30,0,["model"]]]],null],[1,"\\n  "],[13],[1,"\\n"],[13]],["p","supportedAction"],false,["page-header","page/breadcrumbs","secret-link","hash","icon","each","-track-array","if","eq","humanize","transit-key-actions"]]',moduleName:"vault/templates/vault/cluster/secrets/backend/transit-actions-layout.hbs",isStrictMode:!1})})),define("vault/templates/vault/cluster/secrets/backends",["exports","@ember/template-factory"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default=(0,t.createTemplateFactory)({id:"XbK8oRKp",block:'[[[8,[39,0],null,null,[["default"],[[[[1,"\\n  "],[8,[30,1,["levelLeft"]],null,null,[["default"],[[[[1,"\\n    "],[10,"h1"],[14,0,"title is-3"],[12],[1,"\\n      Secrets Engines\\n    "],[13],[1,"\\n  "]],[]]]]],[1,"\\n"]],[1]]]]],[1,"\\n\\n"],[8,[39,1],null,null,[["default"],[[[[1,"\\n  "],[8,[39,2],null,null,[["default"],[[[[1,"\\n    "],[8,[39,3],[[24,0,"is-marginless"]],[["@id","@options","@selectLimit","@disallowNewItems","@fallbackComponent","@onChange","@placeholder","@displayInherit","@inputValue","@disabled"],["filter-by-engine-type",[30,0,["secretEngineArrayByType"]],"1",true,"input-search",[30,0,["filterEngineType"]],"Filter by engine type",true,[52,[30,0,["selectedEngineType"]],[28,[37,5],[[30,0,["selectedEngineType"]]],null]],[52,[30,0,["selectedEngineName"]],true,false]]],null],[1,"\\n    "],[8,[39,3],[[24,0,"is-marginless has-left-padding-s"]],[["@id","@options","@selectLimit","@disallowNewItems","@fallbackComponent","@onChange","@placeholder","@displayInherit","@inputValue"],["filter-by-engine-name",[30,0,["secretEngineArrayByName"]],"1",true,"input-search",[30,0,["filterEngineName"]],"Filter by engine name",true,[52,[30,0,["selectedEngineName"]],[28,[37,5],[[30,0,["selectedEngineName"]]],null]]]],null],[1,"\\n  "]],[]]]]],[1,"\\n  "],[8,[39,6],null,null,[["default"],[[[[1,"\\n    "],[8,[39,7],null,[["@route","@type"],["vault.cluster.settings.mount-secret-backend","add"]],[["default"],[[[[1,"\\n      Enable new engine\\n    "]],[]]]]],[1,"\\n  "]],[]]]]],[1,"\\n"]],[]]]]],[1,"\\n\\n"],[42,[28,[37,9],[[28,[37,9],[[30,0,["sortedDisplayableBackends"]]],null]],null],null,[[[1,"  "],[8,[39,10],[[24,0,"list-item-row linked-block-item is-no-underline"]],[["@params","@disabled"],[[28,[37,5],[[30,2,["backendLink"]],[30,2,["id"]]],null],[28,[37,11],[[30,2,["isSupportedBackend"]]],null]]],[["default"],[[[[1,"\\n    "],[10,0],[12],[1,"\\n      "],[10,0],[14,0,"has-text-grey"],[12],[1,"\\n"],[41,[30,2,["icon"]],[[[1,"          "],[8,[39,12],[[24,"aria-label","Type of backend"]],[["@text"],[[28,[37,13],[[30,2,["engineType"]],[30,2,["path"]]],null]]],[["default"],[[[[1,"\\n            "],[8,[39,14],[[24,0,"has-text-grey-light"]],[["@name"],[[30,2,["icon"]]]],null],[1,"\\n          "]],[]]]]],[1,"\\n"]],[]],null],[41,[30,2,["path"]],[[[41,[30,2,["isSupportedBackend"]],[[[1,"            "],[8,[39,15],[[24,0,"has-text-black has-text-weight-semibold"]],[["@route","@model"],[[30,2,["backendLink"]],[30,2,["id"]]]],[["default"],[[[[1,"\\n              "],[1,[30,2,["path"]]],[1,"\\n            "]],[]]]]],[1,"\\n"]],[]],[[[1,"            "],[10,1],[12],[1,[30,2,["path"]]],[13],[1,"\\n"]],[]]]],[]],null],[1,"      "],[13],[1,"\\n"],[41,[30,2,["accessor"]],[[[1,"        "],[10,"code"],[14,0,"has-text-grey is-size-8"],[12],[1,"\\n          "],[1,[52,[28,[37,16],[[30,2,["version"]],2],null],[28,[37,17],["v2 ",[30,2,["accessor"]]],null],[30,2,["accessor"]]]],[1,"\\n        "],[13],[1,"\\n"]],[]],null],[41,[30,2,["description"]],[[[1,"        "],[8,[39,18],null,null,[["default"],[[[[1,"\\n          "],[1,[30,2,["description"]]],[1,"\\n        "]],[]]]]],[1,"\\n"]],[]],null],[1,"    "],[13],[1,"\\n    "],[10,0],[14,0,"linked-block-popup-menu"],[12],[1,"\\n      "],[8,[39,19],null,[["@isInline"],[true]],[["default"],[[[[1,"\\n        "],[8,[30,3,["ToggleIcon"]],null,[["@icon","@text","@hasChevron"],["more-horizontal",[29,[[52,[30,2,["isSupportedBackend"]],"supported","unsupported"]," secrets engine menu"]],false]],null],[1,"\\n        "],[8,[30,3,["Interactive"]],null,[["@text","@route","@model"],["View configuration",[30,2,["backendConfigurationLink"]],[30,2,["id"]]]],null],[1,"\\n"],[41,[28,[37,20],[[30,2,["type"]],"cubbyhole"],null],[[[1,"          "],[8,[30,3,["Interactive"]],[[4,[38,21],["click",[28,[37,22],[[28,[37,23],[[30,0,["engineToDisable"]]],null],[30,2]],null]],null]],[["@text","@color"],["Disable","critical"]],null],[1,"\\n"]],[]],null],[1,"      "]],[3]]]]],[1,"\\n    "],[13],[1,"\\n  "]],[]]]]],[1,"\\n"]],[2]],null],[1,"\\n"],[41,[30,0,["engineToDisable"]],[[[1,"  "],[8,[39,24],null,[["@color","@confirmMessage","@confirmTitle","@onClose","@onConfirm"],["critical","Any data in this engine will be permanently deleted.","Disable engine?",[28,[37,22],[[28,[37,23],[[30,0,["engineToDisable"]]],null],null],null],[28,[37,25],[[30,0,["disableEngine"]],[30,0,["engineToDisable"]]],null]]],null],[1,"\\n"]],[]],null]],["p","backend","dd"],false,["page-header","toolbar","toolbar-filters","search-select","if","array","toolbar-actions","toolbar-link","each","-track-array","linked-block","not","hds/tooltip-button","or","icon","link-to","eq","concat","read-more","hds/dropdown","not-eq","on","fn","mut","confirm-modal","perform"]]',moduleName:"vault/templates/vault/cluster/secrets/backends.hbs",isStrictMode:!1})})),define("vault/templates/vault/cluster/settings",["exports","@ember/template-factory"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default=(0,t.createTemplateFactory)({id:"AhHv5MwW",block:'[[[46,[28,[37,1],null,null],null,null,null]],[],false,["component","-outlet"]]',moduleName:"vault/templates/vault/cluster/settings.hbs",isStrictMode:!1})})),define("vault/templates/vault/cluster/settings/auth",["exports","@ember/template-factory"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default=(0,t.createTemplateFactory)({id:"9r6T/MWi",block:'[[[8,[39,0],null,null,null],[1,"\\n"],[46,[28,[37,2],null,null],null,null,null]],[],false,["sidebar/nav/access","component","-outlet"]]',moduleName:"vault/templates/vault/cluster/settings/auth.hbs",isStrictMode:!1})}))
define("vault/templates/vault/cluster/settings/auth/configure",["exports","@ember/template-factory"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default=(0,t.createTemplateFactory)({id:"mwDq44AB",block:'[[[8,[39,0],null,null,[["default"],[[[[1,"\\n  "],[8,[30,1,["top"]],null,null,[["default"],[[[[1,"\\n    "],[8,[39,1],null,null,[["default"],[[[[1,"\\n      "],[8,[39,2],null,[["@text","@route"],["Auth Methods","vault.cluster.access.methods"]],null],[1,"\\n      "],[8,[39,2],null,[["@text","@route","@model"],[[30,0,["model","id"]],"vault.cluster.access.method",[30,0,["model","id"]]]],null],[1,"\\n      "],[8,[39,2],null,[["@text","@current"],["Configure",true]],null],[1,"\\n    "]],[]]]]],[1,"\\n  "]],[]]]]],[1,"\\n  "],[8,[30,1,["levelLeft"]],null,null,[["default"],[[[[1,"\\n    "],[10,"h1"],[14,0,"title is-3"],[12],[1,"\\n      Configure\\n      "],[1,[28,[35,3],[[28,[37,4],["type",[30,0,["model","type"]],[28,[37,5],null,null]],null],"displayName"],null]],[1,"\\n    "],[13],[1,"\\n  "]],[]]]]],[1,"\\n"]],[1]]]]],[1,"\\n\\n"],[8,[39,6],null,[["@model"],[[30,0,["model"]]]],null],[1,"\\n\\n"],[8,[39,7],null,null,[["default"],[[[[1,"\\n  "],[8,[39,8],null,null,[["default"],[[[[1,"\\n    "],[8,[39,9],null,[["@route","@model"],["vault.cluster.access.method",[30,0,["model","id"]]]],[["default"],[[[[1,"\\n      View method\\n    "]],[]]]]],[1,"\\n  "]],[]]]]],[1,"\\n"]],[]]]]],[1,"\\n\\n"],[46,[28,[37,11],null,null],null,null,null]],["p"],false,["page-header","hds/breadcrumb","hds/breadcrumb/item","get","find-by","mountable-auth-methods","section-tabs","toolbar","toolbar-actions","toolbar-link","component","-outlet"]]',moduleName:"vault/templates/vault/cluster/settings/auth/configure.hbs",isStrictMode:!1})})),define("vault/templates/vault/cluster/settings/auth/configure/section",["exports","@ember/template-factory"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default=(0,t.createTemplateFactory)({id:"/tWUK56o",block:'[[[41,[28,[37,1],[[30,0,["model","section"]],"options"],null],[[[1,"  "],[8,[39,2],null,[["@model"],[[30,0,["model","model"]]]],null],[1,"\\n"]],[]],[[[1,"  "],[8,[39,3],null,[["@model"],[[30,0,["model","model"]]]],null],[1,"\\n"]],[]]]],[],false,["if","eq","auth-config-form/options","auth-config-form/config"]]',moduleName:"vault/templates/vault/cluster/settings/auth/configure/section.hbs",isStrictMode:!1})})),define("vault/templates/vault/cluster/settings/auth/enable",["exports","@ember/template-factory"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default=(0,t.createTemplateFactory)({id:"4bobQvic",block:'[[[8,[39,0],null,[["@mountModel","@onMountSuccess"],[[30,0,["model"]],[28,[37,1],[[30,0],"onMountSuccess"],null]]],null]],[],false,["mount-backend-form","action"]]',moduleName:"vault/templates/vault/cluster/settings/auth/enable.hbs",isStrictMode:!1})})),define("vault/templates/vault/cluster/settings/mount-secret-backend",["exports","@ember/template-factory"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default=(0,t.createTemplateFactory)({id:"qHTMQ1IH",block:'[[[8,[39,0],null,[["@mountModel","@mountType","@onMountSuccess"],[[30,0,["model"]],"secret",[28,[37,1],[[30,0],"onMountSuccess"],null]]],null]],[],false,["mount-backend-form","action"]]',moduleName:"vault/templates/vault/cluster/settings/mount-secret-backend.hbs",isStrictMode:!1})})),define("vault/templates/vault/cluster/settings/seal",["exports","@ember/template-factory"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default=(0,t.createTemplateFactory)({id:"dJz7HRCV",block:'[[[8,[39,0],null,null,[["default"],[[[[1,"\\n  "],[8,[30,1,["levelLeft"]],null,null,[["default"],[[[[1,"\\n    "],[10,"h1"],[14,0,"title is-3"],[12],[1,"\\n      Seal this Vault\\n    "],[13],[1,"\\n  "]],[]]]]],[1,"\\n"]],[1]]]]],[1,"\\n\\n"],[41,[30,0,["model","seal","canUpdate"]],[[[1,"  "],[8,[39,2],null,[["@onSeal"],[[28,[37,3],[[30,0],"seal"],null]]],null],[1,"\\n"]],[]],[[[1,"  "],[8,[39,4],null,[["@title"],["This token does not have sufficient capabilities to seal this vault"]],null],[1,"\\n"]],[]]]],["p"],false,["page-header","if","seal-action","action","empty-state"]]',moduleName:"vault/templates/vault/cluster/settings/seal.hbs",isStrictMode:!1})})),define("vault/templates/vault/cluster/storage-restore",["exports","@ember/template-factory"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default=(0,t.createTemplateFactory)({id:"S/xzjJiL",block:'[[[8,[39,0],null,null,null]],[],false,["raft-storage-restore"]]',moduleName:"vault/templates/vault/cluster/storage-restore.hbs",isStrictMode:!1})})),define("vault/templates/vault/cluster/storage",["exports","@ember/template-factory"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default=(0,t.createTemplateFactory)({id:"MjXaPDSw",block:'[[[8,[39,0],null,[["@model"],[[30,0,["model"]]]],null]],[],false,["raft-storage-overview"]]',moduleName:"vault/templates/vault/cluster/storage.hbs",isStrictMode:!1})})),define("vault/templates/vault/cluster/tools",["exports","@ember/template-factory"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default=(0,t.createTemplateFactory)({id:"vtwKT3W3",block:'[[[8,[39,0],null,null,null],[1,"\\n"],[46,[28,[37,2],null,null],null,null,null]],[],false,["sidebar/nav/tools","component","-outlet"]]',moduleName:"vault/templates/vault/cluster/tools.hbs",isStrictMode:!1})})),define("vault/templates/vault/cluster/tools/error",["exports","@ember/template-factory"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default=(0,t.createTemplateFactory)({id:"rWNDHaM0",block:'[[[8,[39,0],null,[["@model"],[[30,0,["model"]]]],null]],[],false,["not-found"]]',moduleName:"vault/templates/vault/cluster/tools/error.hbs",isStrictMode:!1})})),define("vault/templates/vault/cluster/tools/tool",["exports","@ember/template-factory"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default=(0,t.createTemplateFactory)({id:"ci5TAnP6",block:'[[[41,[28,[37,1],[[30,0,["selectedAction"]],"hash"],null],[[[1,"  "],[8,[39,2],null,null,null],[1,"\\n"]],[]],[[[41,[28,[37,1],[[30,0,["selectedAction"]],"random"],null],[[[1,"  "],[8,[39,3],null,null,null],[1,"\\n"]],[]],[[[41,[28,[37,1],[[30,0,["selectedAction"]],"rewrap"],null],[[[1,"  "],[8,[39,4],null,null,null],[1,"\\n"]],[]],[[[41,[28,[37,1],[[30,0,["selectedAction"]],"unwrap"],null],[[[1,"  "],[8,[39,5],null,null,null],[1,"\\n"]],[]],[[[41,[28,[37,1],[[30,0,["selectedAction"]],"lookup"],null],[[[1,"  "],[8,[39,6],null,null,null],[1,"\\n"]],[]],[[[41,[28,[37,1],[[30,0,["selectedAction"]],"wrap"],null],[[[1,"  "],[8,[39,7],null,null,null],[1,"\\n"]],[]],[[[1,"  "],[8,[39,8],null,[["@title"],["Tool not available"]],null],[1,"\\n"]],[]]]],[]]]],[]]]],[]]]],[]]]],[]]]],[],false,["if","eq","tools/hash","tools/random","tools/rewrap","tools/unwrap","tools/lookup","tools/wrap","empty-state"]]',moduleName:"vault/templates/vault/cluster/tools/tool.hbs",isStrictMode:!1})})),define("vault/templates/vault/cluster/unseal",["exports","@ember/template-factory"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default=(0,t.createTemplateFactory)({id:"nK4YXbGv",block:'[[[41,[30,0,["showLicenseError"]],[[[1,"  "],[10,0],[14,0,"section is-flex-v-centered-tablet is-flex-grow-1 is-fullwidth"],[12],[1,"\\n    "],[10,0],[14,0,"columns is-centered is-gapless is-fullwidth"],[12],[1,"\\n      "],[8,[39,1],[[24,0,"empty-state-transparent"]],[["@title","@subTitle","@icon","@bottomBorder","@message"],["License required","Vault license has terminated","skip",true,"Your Vault license has terminated and Vault is sealed. To unseal, add a current license to your configuration and restart Vault."]],[["default"],[[[[1,"\\n        "],[8,[39,2],null,[["@icon","@iconPosition","@text","@href"],["learn-link","trailing","Install an enterprise license tutorial",[28,[37,3],["/vault/tutorials/enterprise/hashicorp-enterprise-license"],null]]],null],[1,"\\n      "]],[]]]]],[1,"\\n    "],[13],[1,"\\n  "],[13],[1,"\\n"]],[]],[[[1,"  "],[8,[39,4],null,null,[["header","content","footer"],[[[[1,"\\n      "],[10,"h1"],[14,0,"title is-3"],[12],[1,"\\n        Unseal Vault\\n      "],[13],[1,"\\n    "]],[]],[[[1,"\\n      "],[10,0],[14,0,"box is-borderless is-shadowless is-marginless"],[12],[1,"\\n        "],[10,2],[14,0,"title is-5"],[12],[1,"\\n          "],[1,[28,[35,5],[[30,0,["model","name"]]],null]],[1,"\\n          is\\n          "],[1,[52,[30,0,["model","unsealed"]],"unsealed","sealed"]],[1,"\\n        "],[13],[1,"\\n"],[41,[30,0,["model","unsealed"]],[[[1,"          "],[10,2],[12],[1,"Please wait while we redirect you."],[13],[1,"\\n          "],[8,[39,2],null,[["@route","@model","@text","@icon"],["vault.cluster.auth",[30,0,["model","id"]],"Continue to log in","sign-in"]],null],[1,"\\n"]],[]],[[[1,"          "],[10,2],[12],[1,"\\n            Unseal Vault by entering portions of the unseal key. This can be done via multiple mechanisms on multiple\\n            computers. Once all portions are entered, the root key will be decrypted and Vault will unseal.\\n          "],[13],[1,"\\n          "],[8,[39,6],[[24,0,"has-top-margin-m"]],[["@action","@threshold","@progress","@updateProgress","@inputLabel","@buttonText","@onLicenseError","@checkComplete","@onShamirSuccess"],["unseal",[30,0,["model","sealThreshold"]],[30,0,["model","sealProgress"]],[28,[37,7],[[30,0],"reloadCluster"],null],"Unseal Key Portion","Unseal",[28,[37,7],[[30,0],"handleLicenseError"],null],[28,[37,7],[[30,0],"isUnsealed"],null],[28,[37,8],["vault.cluster",[30,0,["model","name"]]],null]]],null],[1,"\\n"]],[]]],[1,"      "],[13],[1,"\\n    "]],[]],[[[1,"\\n      "],[10,0],[14,0,"box is-borderless is-shadowless"],[12],[1,"\\n        "],[10,2],[12],[1,"\\n          "],[8,[39,9],null,[["@href"],["https://developer.hashicorp.com/vault/docs/concepts/seal"]],[["default"],[[[[1,"\\n            Seal/unseal documentation\\n          "]],[]]]]],[1,"\\n        "],[13],[1,"\\n      "],[13],[1,"\\n    "]],[]]]]],[1,"\\n"]],[]]]],[],false,["if","empty-state","hds/link/standalone","doc-link","splash-page","capitalize","shamir/flow","action","transition-to","external-link"]]',moduleName:"vault/templates/vault/cluster/unseal.hbs",isStrictMode:!1})})),define("vault/templates/vault/error",["exports","@ember/template-factory"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default=(0,t.createTemplateFactory)({id:"/9BzYF81",block:'[[[10,0],[14,0,"is-flex-grow-1 is-flex-v-centered"],[12],[1,"\\n  "],[10,0],[14,0,"empty-state-content"],[12],[1,"\\n    "],[10,0],[14,0,"is-flex-v-centered has-bottom-margin-xxl"],[12],[1,"\\n      "],[10,0],[14,0,"brand-icon-large"],[12],[1,"\\n        "],[8,[39,0],null,[["@name","@size","@stretched"],["vault","24",true]],null],[1,"\\n      "],[13],[1,"\\n    "],[13],[1,"\\n    "],[10,0],[14,0,"is-flex-center"],[12],[1,"\\n      "],[10,0],[14,0,"error-icon"],[12],[1,"\\n        "],[8,[39,0],[[24,0,"has-text-grey"]],[["@name","@size","@stretched"],["help","24",true]],null],[1,"\\n      "],[13],[1,"\\n      "],[10,0],[14,0,"has-left-margin-s"],[12],[1,"\\n        "],[10,"h1"],[14,0,"is-size-4 has-text-semibold has-text-grey has-line-height-1"],[12],[1,"\\n"],[41,[28,[37,2],[[30,0,["model","httpStatus"]],403],null],[[[1,"            Not authorized\\n"]],[]],[[[41,[28,[37,2],[[30,0,["model","httpStatus"]],404],null],[[[1,"            Page not found\\n"]],[]],[[[1,"            Error\\n          "]],[]]]],[]]],[1,"        "],[13],[1,"\\n        "],[10,2],[14,0,"has-text-grey is-size-8"],[12],[1,"Error "],[1,[30,0,["model","httpStatus"]]],[13],[1,"\\n      "],[13],[1,"\\n    "],[13],[1,"\\n\\n    "],[10,2],[14,0,"has-text-grey has-top-margin-m has-bottom-padding-l has-border-bottom-light"],[12],[1,"\\n"],[41,[28,[37,2],[[30,0,["model","httpStatus"]],404],null],[[[1,"        Sorry, we were unable to find any content at that URL. Double check it or go back home.\\n"]],[]],[[[1,"        "],[1,[30,0,["model","message"]]],[1,"\\n        "],[1,[28,[35,3],[". ",[30,0,["model","errors"]]],null]],[1,"\\n"]],[]]],[1,"    "],[13],[1,"\\n\\n    "],[10,0],[14,0,"is-flex-between has-top-margin-s"],[12],[1,"\\n      "],[8,[39,4],[[24,0,"is-flex-center has-text-semibold"]],[["@href","@sameTab"],["/",true]],[["default"],[[[[1,"\\n        "],[8,[39,5],null,[["@direction"],["left"]],null],[1,"\\n        Go home\\n      "]],[]]]]],[1,"\\n      "],[8,[39,6],null,[["@path"],["/vault/api-docs#http-status-codes"]],[["default"],[[[[1,"\\n        Learn more\\n      "]],[]]]]],[1,"\\n    "],[13],[1,"\\n  "],[13],[1,"\\n"],[13]],[],false,["icon","if","eq","join","external-link","chevron","doc-link"]]',moduleName:"vault/templates/vault/error.hbs",isStrictMode:!1})})),define("vault/templates/vault/not-found",["exports","@ember/template-factory"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default=(0,t.createTemplateFactory)({id:"u2m6ji5O",block:'[[[8,[39,0],null,[["@model"],[[30,0,["model"]]]],null]],[],false,["not-found"]]',moduleName:"vault/templates/vault/not-found.hbs",isStrictMode:!1})})),define("vault/transforms/array",["exports","@ember-data/serializer/transform","@ember/array"],(function(e,t,n){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
class l extends t.default{deserialize(e){return(0,n.isArray)(e)?[...e]:[]}serialize(e){return(0,n.isArray)(e)?[...e]:[]}}e.default=l})),define("vault/transforms/boolean",["exports","@ember-data/serializer/-private"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.BooleanTransform}})})),define("vault/transforms/comma-string",["exports","@ember-data/serializer/transform"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
class n extends t.default{deserialize(e){return Array.isArray(e)?e.join(","):e}serialize(e){return"string"==typeof e?e.split(","):e}}e.default=n})),define("vault/transforms/date-time-local",["exports","@ember-data/serializer/transform","core/utils/date-formatters","date-fns"],(function(e,t,n,l){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
class i extends t.default{getISODateFormat(e){return e?"object"==typeof e||"string"==typeof e&&!e.includes("Z")?new Date(e).toISOString():e:null}deserialize(e){return e?(0,l.format)(new Date(e),n.datetimeLocalStringFormat):null}serialize(e){return this.getISODateFormat(e)}}e.default=i})),define("vault/transforms/date",["exports","@ember-data/serializer/-private"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.DateTransform}})})),define("vault/transforms/mount-visibility",["exports","@ember-data/serializer/transform"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
class n extends t.default{deserialize(e){return"unauth"===e}serialize(e){return!0===e?"unauth":"hidden"}}e.default=n})),define("vault/transforms/number",["exports","@ember-data/serializer/-private"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.NumberTransform}})})),define("vault/transforms/object",["exports","@ember-data/serializer/transform","@ember/utils"],(function(e,t,n){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
class l extends t.default{deserialize(e){return"object"!==(0,n.typeOf)(e)?{}:e}serialize(e){return"object"!==(0,n.typeOf)(e)?{}:e}}e.default=l})),define("vault/transforms/string",["exports","@ember-data/serializer/-private"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.StringTransform}})})),define("vault/utils/action-params",["exports","pki/utils/action-params"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"keyParamsByType",{enumerable:!0,get:function(){return t.keyParamsByType}})})),define("vault/utils/advanced-secret",["exports","core/utils/advanced-secret"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"isAdvancedSecret",{enumerable:!0,get:function(){return t.isAdvancedSecret}})})),define("vault/utils/api-path",["exports","@ember/debug"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(e,...t){return function(n){const l=n||{},i=[e[0]]
return t.forEach(((t,n)=>{i.push(l[t],e[n+1])})),i.join("")}}})),define("vault/utils/b64",["exports","core/utils/b64"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"decodeString",{enumerable:!0,get:function(){return t.decodeString}}),Object.defineProperty(e,"encodeString",{enumerable:!0,get:function(){return t.encodeString}})})),define("vault/utils/camelize-object-keys",["exports","@ember/string"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(e){const n={}
return Object.entries(e).forEach((([e,l])=>{n[(0,t.camelize)(e)]=l})),n}})),define("vault/utils/chart-helpers",["exports","d3-format","d3-array"],(function(e,t,n){Object.defineProperty(e,"__esModule",{value:!0}),e.UPGRADE_WARNING=e.TRANSLATE=e.SVG_DIMENSIONS=e.GREY=e.BAR_WIDTH=e.BAR_PALETTE=void 0,e.calculateAverage=function(e,t){if(!Array.isArray(e)||!t||!e.some((e=>Object.keys(e).includes(t))))return null
const l=e.map((e=>e[t]?e[t]:0))
return l.every((e=>Number.isInteger(e)))?Math.round((0,n.mean)(l)):null},e.calculateSum=function(e){if(!Array.isArray(e)||e.some((e=>"number"!=typeof e)))return null
return e.reduce(((e,t)=>e+t),0)},e.numericalAxisLabel=function(e){return e<1e3?e:e<1100?(0,t.format)(".1s")(e):e<2e3?(0,t.format)(".2s")(e):e<1e4?(0,t.format)(".1s")(e):(0,t.format)(".2s")(e).replace("G","B")}
e.BAR_PALETTE=["#CCE3FE","#1060FF","#C2C5CB","#656A76"],e.UPGRADE_WARNING="#FDEEBA",e.GREY="#EBEEF2",e.TRANSLATE={left:-11},e.SVG_DIMENSIONS={height:190,width:500},e.BAR_WIDTH=7})),define("vault/utils/clamp",["exports"],(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(e,t,n){let l
l="number"!=typeof e?t:e
return Math.min(Math.max(l,t),n)}})),define("vault/utils/database-helpers",["exports"],(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.STATEMENT_FIELDS=e.ROLE_FIELDS=e.AVAILABLE_PLUGIN_TYPES=void 0,e.getRoleFields=function(e){return e?t[e]:null},e.getStatementFields=function(e,t){if(!e)return null
let l=n[e].default
n[e][t]&&(l=n[e][t])
return l}
e.AVAILABLE_PLUGIN_TYPES=[{value:"elasticsearch-database-plugin",displayName:"Elasticsearch",fields:[{attr:"plugin_name"},{attr:"name"},{attr:"verify_connection",show:!1},{attr:"password_policy"},{attr:"url",group:"pluginConfig"},{attr:"username",group:"pluginConfig",show:!1},{attr:"password",group:"pluginConfig",show:!1},{attr:"ca_cert",group:"pluginConfig"},{attr:"ca_path",group:"pluginConfig"},{attr:"client_cert",group:"pluginConfig"},{attr:"client_key",group:"pluginConfig"},{attr:"tls_server_name",group:"pluginConfig"},{attr:"insecure",group:"pluginConfig"},{attr:"username_template",group:"pluginConfig"}]},{value:"mongodb-database-plugin",displayName:"MongoDB",fields:[{attr:"plugin_name"},{attr:"name"},{attr:"connection_url"},{attr:"verify_connection",show:!1},{attr:"password_policy"},{attr:"username",group:"pluginConfig",show:!1},{attr:"password",group:"pluginConfig",show:!1},{attr:"write_concern",group:"pluginConfig"},{attr:"username_template",group:"pluginConfig"},{attr:"tls",group:"pluginConfig",subgroup:"TLS options"},{attr:"tls_ca",group:"pluginConfig",subgroup:"TLS options"},{attr:"root_rotation_statements",group:"statements"}]},{value:"mssql-database-plugin",displayName:"MSSQL",fields:[{attr:"plugin_name"},{attr:"name"},{attr:"connection_url"},{attr:"verify_connection",show:!1},{attr:"password_policy"},{attr:"username",group:"pluginConfig",show:!1},{attr:"password",group:"pluginConfig",show:!1},{attr:"username_template",group:"pluginConfig"},{attr:"max_open_connections",group:"pluginConfig"},{attr:"max_idle_connections",group:"pluginConfig"},{attr:"max_connection_lifetime",group:"pluginConfig"},{attr:"root_rotation_statements",group:"statements"}]},{value:"mysql-aurora-database-plugin",displayName:"MySQL (Aurora)",fields:[{attr:"plugin_name"},{attr:"name"},{attr:"verify_connection",show:!1},{attr:"password_policy"},{attr:"connection_url",group:"pluginConfig"},{attr:"username",group:"pluginConfig",show:!1},{attr:"password",group:"pluginConfig",show:!1},{attr:"max_open_connections",group:"pluginConfig"},{attr:"max_idle_connections",group:"pluginConfig"},{attr:"max_connection_lifetime",group:"pluginConfig"},{attr:"username_template",group:"pluginConfig"},{attr:"tls",group:"pluginConfig",subgroup:"TLS options"},{attr:"tls_ca",group:"pluginConfig",subgroup:"TLS options"},{attr:"root_rotation_statements",group:"statements"}]},{value:"mysql-legacy-database-plugin",displayName:"MySQL (Legacy)",fields:[{attr:"plugin_name"},{attr:"name"},{attr:"verify_connection",show:!1},{attr:"password_policy"},{attr:"connection_url",group:"pluginConfig"},{attr:"username",group:"pluginConfig",show:!1},{attr:"password",group:"pluginConfig",show:!1},{attr:"max_open_connections",group:"pluginConfig"},{attr:"max_idle_connections",group:"pluginConfig"},{attr:"max_connection_lifetime",group:"pluginConfig"},{attr:"username_template",group:"pluginConfig"},{attr:"tls",group:"pluginConfig",subgroup:"TLS options"},{attr:"tls_ca",group:"pluginConfig",subgroup:"TLS options"},{attr:"root_rotation_statements",group:"statements"}]},{value:"mysql-database-plugin",displayName:"MySQL/MariaDB",fields:[{attr:"plugin_name"},{attr:"name"},{attr:"verify_connection",show:!1},{attr:"password_policy"},{attr:"connection_url",group:"pluginConfig"},{attr:"username",group:"pluginConfig",show:!1},{attr:"password",group:"pluginConfig",show:!1},{attr:"max_open_connections",group:"pluginConfig"},{attr:"max_idle_connections",group:"pluginConfig"},{attr:"max_connection_lifetime",group:"pluginConfig"},{attr:"username_template",group:"pluginConfig"},{attr:"tls",group:"pluginConfig",subgroup:"TLS options"},{attr:"tls_ca",group:"pluginConfig",subgroup:"TLS options"},{attr:"root_rotation_statements",group:"statements"}]},{value:"mysql-rds-database-plugin",displayName:"MySQL (RDS)",fields:[{attr:"plugin_name"},{attr:"name"},{attr:"verify_connection",show:!1},{attr:"password_policy"},{attr:"connection_url",group:"pluginConfig"},{attr:"username",group:"pluginConfig",show:!1},{attr:"password",group:"pluginConfig",show:!1},{attr:"max_open_connections",group:"pluginConfig"},{attr:"max_idle_connections",group:"pluginConfig"},{attr:"max_connection_lifetime",group:"pluginConfig"},{attr:"username_template",group:"pluginConfig"},{attr:"tls",group:"pluginConfig",subgroup:"TLS options"},{attr:"tls_ca",group:"pluginConfig",subgroup:"TLS options"},{attr:"root_rotation_statements",group:"statements"}]},{value:"vault-plugin-database-oracle",displayName:"Oracle",fields:[{attr:"plugin_name"},{attr:"name"},{attr:"verify_connection",show:!1},{attr:"password_policy"},{attr:"connection_url",group:"pluginConfig"},{attr:"username",group:"pluginConfig",show:!1},{attr:"password",group:"pluginConfig",show:!1},{attr:"max_open_connections",group:"pluginConfig"},{attr:"max_idle_connections",group:"pluginConfig"},{attr:"max_connection_lifetime",group:"pluginConfig"},{attr:"username_template",group:"pluginConfig"},{attr:"root_rotation_statements",group:"statements"}]},{value:"postgresql-database-plugin",displayName:"PostgreSQL",fields:[{attr:"plugin_name"},{attr:"name"},{attr:"verify_connection",show:!1},{attr:"password_policy"},{attr:"connection_url",group:"pluginConfig"},{attr:"username",group:"pluginConfig",show:!1},{attr:"password",group:"pluginConfig",show:!1},{attr:"max_open_connections",group:"pluginConfig"},{attr:"max_idle_connections",group:"pluginConfig"},{attr:"max_connection_lifetime",group:"pluginConfig"},{attr:"username_template",group:"pluginConfig"},{attr:"root_rotation_statements",group:"statements"}]}]
const t=e.ROLE_FIELDS={static:["username","rotation_period"],dynamic:["default_ttl","max_ttl"]},n=e.STATEMENT_FIELDS={static:{default:["rotation_statements"],"elasticsearch-database-plugin":[],"mongodb-database-plugin":[],"mssql-database-plugin":[],"mysql-database-plugin":[],"mysql-aurora-database-plugin":[],"mysql-legacy-database-plugin":[],"mysql-rds-database-plugin":[],"vault-plugin-database-oracle":[],"postgresql-database-plugin":[]},dynamic:{default:["creation_statements","revocation_statements","rollback_statements","renew_statements"],"elasticsearch-database-plugin":["creation_statement"],"mongodb-database-plugin":["creation_statement","revocation_statement"],"mssql-database-plugin":["creation_statements","revocation_statements"],"mysql-database-plugin":["creation_statements","revocation_statements"],"mysql-aurora-database-plugin":["creation_statements","revocation_statements"],"mysql-legacy-database-plugin":["creation_statements","revocation_statements"],"mysql-rds-database-plugin":["creation_statements","revocation_statements"],"vault-plugin-database-oracle":["creation_statements","revocation_statements"],"postgresql-database-plugin":["creation_statements","revocation_statements","rollback_statements","renew_statements"]}}}))
define("vault/utils/error-message",["exports"],(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(e,t="An error occurred, please try again"){if(e instanceof Error&&e?.errors&&"string"==typeof e.errors[0])return e.errors.join(", ")
return e?.message||t}})),define("vault/utils/field-to-attrs",["exports","@ember/object/computed"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(e,t){return t.map((t=>{const l=Object.keys(t)[0],i=n(e,t[l])
return{[l]:i}}))},e.expandAttributeMeta=void 0
const n=function(e,n){const l=[]
n.map((e=>(0,t.expandProperties)(e,(e=>l.push(e)))))
const i={},r=(e,t)=>(i[e.modelName]||(i[e.modelName]=[],e.eachAttribute(((t,n)=>{i[e.modelName].push(n)}))),i[e.modelName].find((e=>e.name===t)))
return l.map((t=>{let n={}
if(t.includes(".")){const[l,i]=t.split("."),a=e.belongsTo(l),o=e.store.modelFor(a.type)
n=r(o,i)}else n=r(e,t)
const{type:l,options:i}=n||{}
return{name:t,type:l,options:i}}))}
e.expandAttributeMeta=n})),define("vault/utils/identity-manager",["exports","uuid"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
e.default=class{constructor(){this.ids=new Set}fetch(){let e=(0,t.v4)()
for(;this.ids.has(e);)e=(0,t.v4)()
return this.ids.add(e),e}set(e){if(this.ids.has(e))throw new Error(`ID ${e} is in use.`)
this.ids.add(e)}reset(){this.ids.clear()}}})),define("vault/utils/key-utils",["exports","core/utils/key-utils"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"ancestorKeysForKey",{enumerable:!0,get:function(){return t.ancestorKeysForKey}}),Object.defineProperty(e,"keyIsFolder",{enumerable:!0,get:function(){return t.keyIsFolder}}),Object.defineProperty(e,"keyPartsForKey",{enumerable:!0,get:function(){return t.keyPartsForKey}}),Object.defineProperty(e,"keyWithoutParentKey",{enumerable:!0,get:function(){return t.keyWithoutParentKey}}),Object.defineProperty(e,"parentKeyForKey",{enumerable:!0,get:function(){return t.parentKeyForKey}})})),define("vault/utils/kv-breadcrumbs",["exports","kv/utils/kv-breadcrumbs"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.breadcrumbsForSecret}})})),define("vault/utils/kv-deleted",["exports","kv/utils/kv-deleted"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.isDeleted}})})),define("vault/utils/kv-path",["exports","core/utils/sanitize-path","vault/utils/path-encoding-helpers","vault/utils/query-param-string"],(function(e,t,n,l){function i(e,l,i,r){const a=(0,t.sanitizeStart)(l),o=`${(0,n.encodePath)(e)}/${i}/${(0,n.encodePath)(a)}`
return r?`${o}?version=${r}`:o}Object.defineProperty(e,"__esModule",{value:!0}),e.buildKvPath=i,e.kvDataPath=function(e,t,n){return i(e,t,"data",n)},e.kvDeletePath=function(e,t,n){return i(e,t,"delete",n)},e.kvDestroyPath=function(e,t){return i(e,t,"destroy")},e.kvMetadataPath=function(e,t){return i(e,t,"metadata")},e.kvSubkeysPath=function(e,t,n){const r=i(e,t,"subkeys"),a=(0,l.default)({depth:n?.depth??void 0,version:n?.version??void 0})
return`${r}${a}`},e.kvUndeletePath=function(e,t){return i(e,t,"undelete")}})),define("vault/utils/openapi-helpers",["exports","@ember/string","ember-inflector"],(function(e,t,n){Object.defineProperty(e,"__esModule",{value:!0}),e._getPathParam=i,e.filterPathsByItemType=function(e,t){if(!t)return e.paths
return e.paths.filter((e=>t===e.itemType))},e.getHelpUrlForModel=function(e,t){const n=r[e]
return n?n(t):null},e.pathToHelpUrlSegment=function(e){return e?e.replaceAll(l,"example"):""},e.reducePathsByPathName=function(e,l){const r=l[0],a=l[1],o=a["x-vault-displayAttrs"]
if(!o)return e
let s,u
if(o.itemType){s=o.itemType
let e=s.split(":")
u=e[e.length-1],e=e.map((e=>(0,t.dasherize)((0,n.singularize)(e.toLowerCase())))),s=e.join("~*")}s&&!e.itemTypes.includes(s)&&e.itemTypes.push(s)
const c=[]
a.get&&c.push("get")
a.post&&c.push("post")
a.delete&&c.push("delete")
a.get&&a.get.parameters&&"list"===a.get.parameters[0]?.name&&c.push("list")
return e.paths.push({path:r,itemType:s||o.itemType,itemName:u||e.itemType||o.itemType,operations:c,action:o.action,navigation:!0===o.navigation,param:i(r)}),e}
const l=new RegExp(/\{\w+\}/,"g")
function i(e){if(!e)return!1
const t=e.match(l)
return t&&t[0]?.replace(new RegExp("{|}","g"),"")||!1}const r={"auth-config/azure":e=>`/v1/auth/${e}/config?help=1`,"auth-config/cert":e=>`/v1/auth/${e}/config?help=1`,"auth-config/gcp":e=>`/v1/auth/${e}/config?help=1`,"auth-config/github":e=>`/v1/auth/${e}/config?help=1`,"auth-config/jwt":e=>`/v1/auth/${e}/config?help=1`,"auth-config/kubernetes":e=>`/v1/auth/${e}/config?help=1`,"auth-config/ldap":e=>`/v1/auth/${e}/config?help=1`,"auth-config/oidc":e=>`/v1/auth/${e}/config?help=1`,"auth-config/okta":e=>`/v1/auth/${e}/config?help=1`,"auth-config/radius":e=>`/v1/auth/${e}/config?help=1`,"kmip/config":e=>`/v1/${e}/config?help=1`,"kmip/role":e=>`/v1/${e}/scope/example/role/example?help=1`,"pki/certificate/generate":e=>`/v1/${e}/issue/example?help=1`,"pki/certificate/sign":e=>`/v1/${e}/sign/example?help=1`,"pki/config/acme":e=>`/v1/${e}/config/acme?help=1`,"pki/config/cluster":e=>`/v1/${e}/config/cluster?help=1`,"pki/config/urls":e=>`/v1/${e}/config/urls?help=1`,"pki/role":e=>`/v1/${e}/roles/example?help=1`,"pki/sign-intermediate":e=>`/v1/${e}/issuer/example/sign-intermediate?help=1`,"pki/tidy":e=>`/v1/${e}/config/auto-tidy?help=1`,"role-ssh":e=>`/v1/${e}/roles/example?help=1`}})),define("vault/utils/openapi-to-attrs",["exports","@ember-data/model","@ember/string"],(function(e,t,n){Object.defineProperty(e,"__esModule",{value:!0}),e.expandOpenApiProps=e.combineFields=e.combineFieldGroups=e.combineAttributes=void 0
e.expandOpenApiProps=function(e){const t={}
for(const l in e){const i=e[l]
let{description:r,items:a,type:o,format:s,isId:u,deprecated:c}=i
if(!0===c)continue
let{name:d,value:p,group:f,sensitive:m,editType:h,description:b}=i["x-vault-displayAttrs"]||{}
"integer"===o&&(o="number"),b&&(r=b),h=h||o,"seconds"===s||"duration"===s?h="ttl":a&&(h=a.type+(0,n.capitalize)(o))
const y={editType:h,helpText:r,possibleValues:i.enum,fieldValue:u?"mutableId":null,fieldGroup:f||"default",readOnly:u,defaultValue:p||null}
"object"===o&&p&&(y.defaultValue=()=>p),m&&(y.sensitive=!0),d&&(y.label=d),"ttl"!==h&&"array"!==o&&(y.type=o)
for(const e in y)null==y[e]&&delete y[e]
t[(0,n.camelize)(l)]=y}return t}
e.combineAttributes=function(e,n){const l={},i=[]
e&&e.forEach((function(e,i){n[i]?l[i]=(0,t.attr)(n[i].type,{...n[i],...e.options}):l[i]=(0,t.attr)(e.type,e.options)}))
for(const r in n)l[r]||(l[r]=(0,t.attr)(n[r].type,n[r]),i.push(r))
return{attrs:l,newFields:i}}
e.combineFields=function(e,t,n){const l=t.filter((t=>!e.includes(t)&&!n.includes(t)))
return l.length&&(e=e.concat(l)),e}
e.combineFieldGroups=function(e,t,n){let l=[]
for(const r of e){const e=Object.keys(r)[0]
l=l.concat(r[e])}const i=t.filter((e=>!l.includes(e)&&!n.includes(e)))
return i.length&&(e[0].default=e[0].default.concat(i)),e}})),define("vault/utils/parse-pki-cert-oids",["exports"],(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.parsedParameterKeys=e.SUBJECT_OIDs=e.SIGNATURE_ALGORITHM_OIDs=e.SAN_TYPES=e.OTHER_OIDs=e.KEY_USAGE_BITS=e.EXTENSION_OIDs=void 0
const t=e.SUBJECT_OIDs={common_name:"2.5.4.3",subject_serial_number:"2.5.4.5",ou:"2.5.4.11",organization:"2.5.4.10",country:"2.5.4.6",locality:"2.5.4.7",province:"2.5.4.8",street_address:"2.5.4.9",postal_code:"2.5.4.17"},n=e.EXTENSION_OIDs={key_usage:"2.5.29.15",subject_alt_name:"2.5.29.17",basic_constraints:"2.5.29.19",name_constraints:"2.5.29.30"},l=(e.OTHER_OIDs={authority_key_identifier:"2.5.29.35",authority_access_info:"1.3.6.1.5.5.7.1.1",subject_key_identifier:"2.5.29.14"},e.KEY_USAGE_BITS=["DigitalSignature","ContentCommitment","KeyEncipherment","DataEncipherment","KeyAgreement","CertSign","CRLSign","EncipherOnly","DecipherOnly"],e.SAN_TYPES={other_sans:0,alt_names:2,uri_sans:6,ip_sans:7})
e.SIGNATURE_ALGORITHM_OIDs={"1.2.840.113549.1.1.2":"0","1.2.840.113549.1.1.4":"0","1.2.840.113549.1.1.5":"0","1.2.840.113549.1.1.11":"256","1.2.840.113549.1.1.12":"384","1.2.840.113549.1.1.13":"512","1.2.840.113549.1.1.10":{"2.16.840.1.101.3.4.2.1":"256","2.16.840.1.101.3.4.2.2":"384","2.16.840.1.101.3.4.2.3":"512"},"1.2.840.10040.4.3":"0","2.16.840.1.101.3.4.3.2":"256","1.2.840.10045.4.1":"0","1.2.840.10045.4.3.2":"256","1.2.840.10045.4.3.3":"384","1.2.840.10045.4.3.4":"512","1.3.101.112":"0"},e.parsedParameterKeys=[...Object.keys(t),...Object.keys(n),...Object.keys(l),"use_pss","not_valid_before","not_valid_after"]})),define("vault/utils/parse-pki-cert",["exports","asn1js","pvutils","pkijs","date-fns","vault/utils/parse-pki-cert-oids"],(function(e,t,n,l,i,r){function a(e){const i=e.replace(/(-----(BEGIN|END) CERTIFICATE-----|\n)/g,""),r=(0,n.fromBase64)(i),a=t.fromBER((0,n.stringToArrayBuffer)(r))
return new l.Certificate({schema:a.result})}function o(e){let t,n
try{t=a(e)}catch(p){return console.debug("DEBUG: Converting Certificate",p),{can_parse:!1}}try{const e=c(t?.subject?.typesAndValues),l=d(t?.extensions),[i,a]=function(e){const{algorithmId:t}=e
if("1.2.840.113549.1.1.10"===t){const n=e.algorithmParams?.valueBlock?.value[0]?.valueBlock?.value[0]?.valueBlock?.value[0].toString().split(" : ")[1]
return[r.SIGNATURE_ALGORITHM_OIDs[t][n],!0]}return[r.SIGNATURE_ALGORITHM_OIDs[t],!1]}(t?.signatureAlgorithm)
n={...s(e,l),signature_bits:i,use_pss:a}}catch(p){console.debug("DEBUG: Parsing Certificate",p),n={parsing_errors:[new Error("error parsing certificate values")]}}const l=t?.notAfter?.value,o=t?.notBefore?.value,u=`${(0,i.differenceInHours)(l,o)}h`
return{...n,can_parse:!0,not_valid_after:(0,i.getUnixTime)(l),not_valid_before:(0,i.getUnixTime)(o),ttl:u}}function s(e,t){if(!e||!t)return{parsing_errors:[new Error("error formatting certificate values")]}
const{subjValues:n,subjErrors:l}=e,{extValues:i,extErrors:r}=t,a=[...l,...r],o=i.alt_names?.length>0&&!i.alt_names?.includes(n?.common_name)
for(const s in i)Array.isArray(i[s])&&(i[s]=0!==i[s].length?i[s].join(", "):null)
return{...n,...i,parsing_errors:a,exclude_cn_from_sans:o}}async function u(e,t){try{return await t.verify(e)}catch(n){const t=e.extensions.find((e=>e.extnID===r.OTHER_OIDs.subject_key_identifier)),l=e.extensions.find((e=>e.extnID===r.OTHER_OIDs.authority_key_identifier))
if(!t||!l)return!1
const i=new Uint8Array(t.parsedValue.valueBlock.valueHex)
return new Uint8Array(l.extnValue.valueBlock.valueHex).toString().includes(i.toString())}}function c(e){if(!e)return null
const t={},n=[],l=e=>!Object.values(r.SUBJECT_OIDs).includes(e.type)
if(e.any(l)){const t=e.filter(l).map((e=>e.type))
n.push(new Error("certificate contains unsupported subject OIDs: "+t.join(", ")))}return Object.keys(r.SUBJECT_OIDs).forEach((n=>t[n]=(t=>{const n=e.filter((e=>e?.type===t)).map((e=>e?.value?.valueBlock?.value))
return n&&n?.length?n[0]:null})(r.SUBJECT_OIDs[n]))),{subjValues:t,subjErrors:n}}function d(e){if(!e)return null
const t={},n=[],l=Object.values({...r.EXTENSION_OIDs,...r.OTHER_OIDs}),i=e=>!l.includes(e.extnID)
if(e.any(i)){const t=e.filter(i).map((e=>e.extnID))
n.push(new Error("certificate contains unsupported extension OIDs: "+t.join(", ")))}for(const a in r.EXTENSION_OIDs)t[a]=e.find((e=>e.extnID===r.EXTENSION_OIDs[a]))?.parsedValue
if(t.subject_alt_name){const e=Object.values(r.SAN_TYPES),l=Object.keys(r.SAN_TYPES),i=t.subject_alt_name?.altNames
i?i.any((t=>!e.includes(t.type)))?(n.push(new Error("subjectAltName contains unsupported types")),i.any((t=>e.includes(t.type)))&&l.forEach((e=>{t[e]=i.filter((t=>t.type===Number(r.SAN_TYPES[e]))).map((e=>e.value))}))):i.every((t=>e.includes(t.type)))?l.forEach((e=>{t[e]=i.filter((t=>t.type===Number(r.SAN_TYPES[e]))).map((e=>e.value))})):n.push(new Error("unsupported subjectAltName values")):n.push(new Error("certificate contains an unsupported subjectAltName construction"))}if(t.name_constraints){const e=t.name_constraints
Object.keys(e).includes("excludedSubtrees")?n.push(new Error("nameConstraints contains excludedSubtrees")):e.permittedSubtrees.any((e=>0!==e.minimum))?n.push(new Error("nameConstraints permittedSubtree contains non-zero minimums")):e.permittedSubtrees.any((e=>e.maximum))?n.push(new Error("nameConstraints permittedSubtree contains maximum")):e.permittedSubtrees.any((e=>2!==e.base.type))?(n.push(new Error("nameConstraints permittedSubtree can only contain dnsName (type 2)")),e.permittedSubtrees.any((e=>2===e.base.type))&&(t.permitted_dns_domains=e.permittedSubtrees.filter((e=>2===e.base.type)).map((e=>e.base.value)))):e.permittedSubtrees.every((e=>2===e.base.type))?t.permitted_dns_domains=e.permittedSubtrees.map((e=>e.base.value)):n.push(new Error("unsupported nameConstraints values"))}if(t.basic_constraints&&(t.max_path_length=t.basic_constraints?.pathLenConstraint),t.ip_sans){const e=[]
for(const l of t.ip_sans){const t=l.valueBlock.unusedBits
if(null!=t&&0!==t){n.push(new Error("unsupported ip_san value: non-zero unused bits in encoding"))
continue}const i=new Uint8Array(l.valueBlock.valueHex)
if(4===i.length){const t=i.join(".")
e.push(t)}else if(16===i.length){let t=new Array(...i).map((e=>"0"+new Number(e).toString(16))).map((e=>e.slice(e.length-2,3))).map(((e,t)=>t%2==0?e:e+":")).join("")
t=":"===t.slice(-1)?t.slice(0,-1):t,e.push(t)}else n.push(new Error("unsupported ip_san value: unknown IP address size (should be 4 or 16 bytes, was "+parseInt(i.length/2)+")"))}t.ip_sans=e}if(t.key_usage){const e=t.key_usage.valueBlock.unusedBits,l=new Uint8Array(t.key_usage.valueBlock.valueHex),i=[]
for(const t in r.KEY_USAGE_BITS){const n=parseInt(t/8),a=parseInt(t%8),o=r.KEY_USAGE_BITS[t],s=1<<8-a
if(n>=l.length)break
let u=l[n]
n+1===l.length&&e>0&&(u=parseInt(u<<e));(s&u)===s&&i.push(o)}const a=["CertSign","CRLSign"],o=e=>!a.includes(e)
if(i.any(o)){const e=i.filter(o)
n.push(new Error("unsupported key usage value on issuer certificate: "+e.join(", ")))}t.key_usage=i}if(t.other_sans){const e=[]
for(const n of t.other_sans){let[t,l]=n.valueBlock.value
t=t.toJSON().valueBlock.value,l=l.valueBlock.value[0].toJSON()
const{blockName:i}=l,r=l.valueBlock.value
e.push(`${t};${i.replace("String","")}:${r}`)}t.other_sans=e}return delete t.subject_alt_name,delete t.basic_constraints,delete t.name_constraints,{extValues:t,extErrors:n}}Object.defineProperty(e,"__esModule",{value:!0}),e.formatValues=s,e.jsonToCertObject=a,e.parseCertificate=o,e.parseExtensions=d,e.parsePkiCert=function(e){if(!e.certificate||e.certificate.includes("BEGIN X509 CRL"))return
return o(e.certificate)},e.parseSubject=c,e.verifyCertificates=async function(e,t,n){const l=a(e),i=a(t)
if(n){const e=a(n),t=await u(l,e),r=await u(i,e),o=e.issuer.isEqual(l.subject),s=e.issuer.isEqual(i.subject)
return t&&r&&o&&s}return await u(l,i)&&l.issuer.isEqual(i.subject)},e.verifySignature=u})),define("vault/utils/path-encoding-helpers",["exports"],(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.encodePath=function(e){return e?e.split("/").map((e=>encodeURIComponent(e))).join("/"):e},e.normalizePath=function(e){return e?e.split("/").map((e=>decodeURIComponent(e))).join("/"):""}})),define("vault/utils/query-param-string",["exports","core/helpers/is-empty-value"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(e){return!e||(0,t.isEmptyValue)(e)||"object"!=typeof e||Array.isArray(e)||Object.values(e).every((e=>n.includes(e)))?"":Object.keys(e).reduce(((t,l)=>{const i=e[l]
if(n.includes(i))return t
const r=`${encodeURIComponent(l)}=${encodeURIComponent(i)}`
return"?"===t?`${t}${r}`:`${t}&${r}`}),"?")}
const n=[void 0,null,""]})),define("vault/utils/remove-record",["exports"],(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(e,t){const n=t.path||t.id
if(n){const l=[]
t.eachRelationship(((e,{kind:t})=>{l.push({key:e,kind:t})})),e.push({data:{id:n,type:t.constructor.modelName,relationships:l.reduce(((e,t)=>(e[t.key]={data:"hasMany"===t.kind?[]:null},e)),{})}})}e.unloadRecord(t)}})),define("vault/utils/sanitize-path",["exports","core/utils/sanitize-path"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"ensureTrailingSlash",{enumerable:!0,get:function(){return t.ensureTrailingSlash}}),Object.defineProperty(e,"getRelativePath",{enumerable:!0,get:function(){return t.getRelativePath}}),Object.defineProperty(e,"sanitizePath",{enumerable:!0,get:function(){return t.sanitizePath}}),Object.defineProperty(e,"sanitizeStart",{enumerable:!0,get:function(){return t.sanitizeStart}})})),define("vault/utils/sort-objects",["exports"],(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(e,t){if(Array.isArray(e)&&e?.every((e=>e[t]&&"string"==typeof e[t])))return e.sort(((e,n)=>{const l=e[t].toUpperCase(),i=n[t].toUpperCase()
return l<i?-1:l>i?1:0}))
return e}})),define("vault/utils/timestamp",["exports","core/utils/timestamp"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.default}})})),define("vault/utils/titleize",["exports","ember-cli-string-helpers/utils/titleize"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.default}})})),define("vault/utils/trim-right",["exports"],(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(e,t=[],n=!0){const l=n?"\\":"",i=new RegExp(t.map((e=>`${l}${e}$`)).join("|"))
return e.replace(i,"")}})),define("vault/utils/validators",["exports","@ember/utils","@ember/string"],(function(e,t,n){Object.defineProperty(e,"__esModule",{value:!0}),e.presence=e.number=e.length=e.isNonString=e.hasWhitespace=e.endsInSlash=e.default=e.containsWhiteSpace=e.WHITESPACE_WARNING=e.NON_STRING_WARNING=void 0
const l=e=>(0,t.isPresent)(e)
e.presence=l
const i=(e,{nullable:t=!1,min:n,max:l}={})=>{if(!n&&!l)return
const i=e?.toString().length
if(i){return!(n&&i<n)&&!(l&&i>l)}return t}
e.length=i
const r=(e,{nullable:t=!1}={})=>e||0===e?!isNaN(e):t
e.number=r
const a=e=>!s(e)
e.containsWhiteSpace=a
const o=e=>!new RegExp("/$").test(e)
e.endsInSlash=o
const s=e=>new RegExp("\\s","g").test(e)
e.hasWhitespace=s
const u=e=>{try{return JSON.parse(e),!0}catch(t){return!1}}
e.isNonString=u
const c=e=>`${(0,n.capitalize)(e)} contains whitespace. If this is desired, you'll need to encode it with %20 in API requests.`
e.WHITESPACE_WARNING=c
const d=e.NON_STRING_WARNING="This value will be saved as a string. If you need to save a non-string value, please use the JSON editor."
e.default={presence:l,length:i,number:r,containsWhiteSpace:a,endsInSlash:o,isNonString:u,hasWhitespace:s,WHITESPACE_WARNING:c,NON_STRING_WARNING:d}})),define("vault/config/environment",[],(function(){try{var e="vault/config/environment",t=document.querySelector('meta[name="'+e+'"]').getAttribute("content"),n={default:JSON.parse(decodeURIComponent(t))}
return Object.defineProperty(n,"__esModule",{value:!0}),n}catch(l){throw new Error('Could not read config from meta tag with name "'+e+'".')}})),runningTests||require("vault/app").default.create({POLLING_URLS:["sys/health","sys/replication/status","sys/seal-status"],NAMESPACE_ROOT_URLS:["sys/health","sys/seal-status","sys/license/features","sys/internal/counters/config"],DEFAULT_PAGE_SIZE:100})
