1import{d as W,bH as me,b as ee,e as H,c as te,o,f as U,U as se,g as e,w as m,h as n,j as i,k as N,v as Y,n as T,l as c,r as O,M as b,F as P,s as g,i as k,y as ae,A as ne,I as D,B as Q,K as q,bA as he,ag as ve,E as fe,t as J,a7 as oe,ba as x,bB as K,L as pe,z as ge,ae as Z,bC as $e,az as Ae,bD as _e,bE as be,bI as Ee,bJ as Se,bF as Ie,a1 as Fe,b1 as ke}from"./index-DsnUaa-w.js";import{_ as Ke}from"./app-header.vue_vue_type_script_setup_true_lang-DpcxBFlr.js";import{a as Le,u as we,_ as De,A as Re,b as Me}from"./gcp-access-docs.vue_vue_type_style_index_0_lang-Df1eXYz1.js";import{_ as ie}from"./back-button.vue_vue_type_script_setup_true_lang-DEOR0_Rs.js";import{a as re}from"./utils-CyhINU3H.js";import{u as ce}from"./account-details.composable-BnZSw-Kh.js";import{U as le}from"./ui-config-section-DmO35axK.js";import{_ as Te}from"./ui-copy-button.vue_vue_type_script_setup_true_lang-DWhwhVZr.js";import{C as ue}from"./const-BlYlD48C.js";import{U as Pe}from"./ui-config-section-separator-oz4rADUe.js";import"./markdown.composable-D1GlNdII.js";/*! 2 * CloudAvocado client application v2.1.3-patch.3 [2026-10-01T07:16:34.792Z] 3 * © 2021-2026 CloudAvocado Inc. 4 */const Ue={class:"form-group"},Ve={for:"client-id-input"},Oe=["id"],We={key:0},Ne={class:"form-group"},Ye={for:"client-secret-input"},qe=["id"],Be={key:0},je={key:1},ze={key:2},Ge={class:"d-flex justify-content-end"},Xe=["disabled"],xe={class:"ml-2"},He=W({__name:"atlas-access-form",props:{account:{type:Object,required:!0}},emits:["account-saved"],setup(y,{emit:C}){function _(){const d=D({clientId:"",clientSecret:""}),s=D({wrongCredentials:!1,invalidCredentials:!1,customMessage:""}),a=D({clientId:{required:Q,maxLength:q(512),invalidCredentials:()=>!s.invalidCredentials,wrongCredentials:()=>!s.wrongCredentials},clientSecret:{required:Q,maxLength:q(512),invalidCredentials:()=>!s.invalidCredentials,wrongCredentials:()=>!s.wrongCredentials}}),t=ne(a,d);async function B(){return await t.value.$validate()?d:null}function j(z){s.invalidCredentials=!0,s.customMessage=z??""}function G(){s.wrongCredentials=!0}function X(){s.invalidCredentials=!1,s.wrongCredentials=!1,s.customMessage=""}return{v$:t,formData:d,formErrors:s,validateForm:B,showInvalidCredentialsError:j,showWrongCredentialsError:G,resetFormErrors:X}}const $=y,p=C,{account:l}=me($),{v$:r,formErrors:u,validateForm:E,showInvalidCredentialsError:w,showWrongCredentialsError:S,resetFormErrors:I}=_(),[v,A]=ee(!1);async function R(){var d,s;try{A(!0),I();const a=await E();if(!a)return;await he.updateAccess(l.value.id,{cloudAccess:{clientId:a.clientId,clientSecret:a.clientSecret}}),p("account-saved"),h()}catch(a){if(ve(a))w((s=(d=a==null?void 0:a.response)==null?void 0:d.data)==null?void 0:s.message);else if(fe(a))S();else throw a;F()}finally{A(!1)}}const{t:V}=H(),{showError:M,showInfo:f}=te();function h(){const d=V("cloud.accounts.accountSaved",{name:l.value.name});f({message:d})}function F(){const d=V("cloud.accounts.accountSaveFailed",{name:l.value.name});M({message:d})}return(d,s)=>(o(),U(se,{show:e(v)},{default:m(()=>[n("form",{id:"atlas-access-form",onSubmit:ae(R,["prevent"])},[n("div",Ue,[n("label",Ve,i(d.$t("atlas.accounts.clientId")),1),N(n("input",{id:"client-id-input","onUpdate:modelValue":s[0]||(s[0]=a=>e(r).clientId.$model=a),autocomplete:"new-password",placeholder:"mdb_sa_id_########################",type:"text",class:T(["form-control",{"is-invalid":e(r).clientId.$error}]),onInput:s[1]||(s[1]=(...a)=>e(I)&&e(I)(...a))},null,34),[[Y,e(r).clientId.$model,void 0,{trim:!0}
4]]),(o(!0),c(P,null,O(e(r).clientId.$errors,a=>(o(),c("div",{id:`error-${a.$validator}`,key:a.$uid,class:"invalid-feedback"},[["invalidCredentials","wrongCredentials"].includes(a.$validator)?b("",!0):(o(),c("div",We,i(d.$t(`validation.${a.$validator}`,{attribute:d.$t("atlas.accounts.clientId")})),1))],8,Oe))),128))]),n("div",Ne,[n("label",Ye,i(d.$t("atlas.accounts.clientSecret")),1),N(n("input",{id:"client-secret-input","onUpdate:modelValue":s[2]||(s[2]=a=>e(r).clientSecret.$model=a),placeholder:"mdb_sa_sk_######################################",autocomplete:"new-password",type:"password",class:T(["form-control",{"is-invalid":e(r).clientSecret.$error}]),onInput:s[3]||(s[3]=(...a)=>e(I)&&e(I)(...a))},null,34),[[Y,e(r).clientSecret.$model,void 0,{trim:!0}]]),(o(!0),c(P,null,O(e(r).clientSecret.$errors,a=>(o(),c("div",{id:`error-${a.$validator}`,key:a.$uid,class:"invalid-feedback"},[a.$validator==="invalidCredentials"?(o(),c("div",Be,i(e(u).customMessage||d.$t("cloud.accounts.validation.invalidCredentials")),1)):a.$validator==="wrongCredentials"?(o(),c("div",je,i(d.$t("cloud.accounts.validation.wrongCredentials",{accountId:e(l).id})),1)):(o(),c("div",ze,i(d.$t(`validation.${a.$validator}`,{attribute:d.$t("atlas.accounts.clientSecret")})),1))],8,qe))),128))]),n("div",Ge,[g(ie,{class:"btn btn-outline-secondary w-md mr-1"},{default:m(()=>[k(i(d.$t("action.cancel")),1)]),_:1}),n("button",{disabled:e(v)||e(re)(e(l)),class:"btn btn-primary w-md",type:"submit","data-elem-name":"cloud-account-save-button"},[s[4]||(s[4]=n("i",{"aria-hidden":"true",class:"fas fa-save"},null,-1)),n("span",xe,i(d.$t("action.save")),1)],8,Xe)])],32)]),_:1},8,["show"]))}}),Je=W({__name:"atlas-access-config",props:{accountId:{type:String,required:!0}},setup(y){const C=y,{accountId:_}=J(C),{account:$}=ce(_),p=oe();async function l(){await p.push({name:x,params:{accountId:_.value}})}return(r,u)=>e($)?(o(),U(le,{key:0},{title:m(()=>[k(i(r.$t("cloud.accounts.cloudAccess")),1)]),description:m(()=>[k(i(r.$t("cloud.accounts.cloudAccess.description")),1)]),docs:m(()=>[g(Le,{class:"mt-xl-4"})]),default:m(()=>[g(He,{account:e($),onAccountSaved:l},null,8,["account"])]),_:1})):b("",!0)}}),Ze={key:0,class:"form-group"},Qe={for:"access-key-id-input"},et=["disabled"],tt=["id"],st={key:0},at={key:1,class:"form-group"},nt={for:"secret-access-key-input"},ot=["disabled"],it=["id"],rt={key:0},ct={key:1},lt={key:2},dt={key:2,class:"form-group"},ut={for:"role-arn-input"},mt=["disabled"],vt=["id"],ft={key:0},pt={key:3,class:"form-group"},$t={for:"external-id-input"},_t=["disabled"],wt={class:"form-text text-muted"},yt=["id"],Ct={key:0},ht={key:1},gt={key:2},At={class:"d-flex justify-content-end"},bt=["disabled"],Et={class:"ml-2"},St=W({__name:"aws-access-form",props:{account:{type:Object,required:!0}},emits:["account-saved"],setup(y,{emit:C}){function _(){const{accessType:s}=we(),a=D({accessKeyId:"",secretAccessKey:"",roleArn:"",externalId:""}),t=D({wrongCredentials:!1,invalidCredentials:!1,customMessage:""}),B=D({accessKeyId:{required:Z(()=>s.value===K.AWS_ACCESS_TYPE.ACCESS_KEY),maxLength:q(500),invalidCredentials:()=>!t.invalidCredentials,wrongCredentials:()=>!t.wrongCredentials},secretAccessKey:{required:Z(()=>s.value===K.AWS_ACCESS_TYPE.ACCESS_KEY),maxLength:q(500),invalidCredentials:()=>!t.invalidCredentials,wrongCredentials:()=>!t.wrongCredentials},roleArn:{required:Z(()=>s.value===K.AWS_ACCESS_TYPE.ROLE_ARN),minLength:pe(20),maxLength:q(2048),invalidCredentials:()=>!t.invalidCredentials,wrongCredentials:()=>!t.wrongCredentials},externalId:{required:Z(()=>s.value===K.AWS_ACCESS_TYPE.ROLE_ARN),invalid:ge.regex(K.RoleArnAccessDto.EXTERNAL_ID_PATTERN),minLength:pe(2),maxLength:q(500),invalidCredentials:()=>!t.invalidCredentials,wrongCredentials:()=>!t.wrongCredentials}}),j=ne(B,a);async function G(){return await j.value.$validate()?a:null}function X(L){t.invalidCredentials=!0,t.customMessage=L??""}function z(){t.wrongCredentials=!0}function de(){t.invalidCredentials=!1,t.wrongCredentials=!1,t.customMessage=""}return{v$:j,formData:a,formErrors:t,validateForm:G,showInvalidCredentialsError:X,showWrongCredentialsError:z,resetFormErrors:de}}const $=y,p=C,{account:l}=me($),{accessType:r}=we(),{v$:u,formErrors:E,validateForm:w,showInvalidCredentialsError:S,showWrongCredentialsError:I,resetFormErrors:v}=_(),[A,R]=ee(!1);async function V(){var s,a;try{R(!0),v();const t=await w();if(!t)return;if(r.value===K.AWS_ACCESS_TYPE.ROLE_ARN)await $e.updateAccess(l.value.id,{cloudAccess:{type:r.value,roleArn:t.roleArn,externalId:t.externalId}});else if(r.value===K.AWS_ACCESS_TYPE.ACCESS_KEY)await $e.updateAccess(l.value.id,{cloudAccess:{type:r.value,accessKeyId:t.accessKeyId,secretAccessKey:t.secretAccessKey}});else throw new TypeError(`Invalid access type: "${r.value}".`);p("account-saved"),F()}catch(t){if(ve(t))S((a=(s=t==null?void 0:t.response)==null?void 0:s.data)==null?void 0:a.message);else if(fe(t))I();else throw t;d()}finally{R(!1)}}const{t:M}=H(),{showError:f,showInfo:h}=te();function F(){const s=M("cloud.accounts.accountSaved",{name:l.value.name});h({message:s})}function d(){const s=M("cloud.accounts.accountSaveFailed",{name:l.value.name});f({message:s})}return(s,a)=>(o(),U(se,{show:e(A)},{default:m(()=>[n("form",{id:"aws-access-form",onSubmit:ae(V,["prevent"])},[g(De),e(r)===e(K.AWS_ACCESS_TYPE).ACCESS_KEY?(o(),c("div",Ze,[n("label",Qe,i(s.$t("aws.accounts.accessKeyId")),1),N(n("input",{id:"access-key-id-input","onUpdate:modelValue":a[0]||(a[0]=t=>e(u).accessKeyId.$model=t),disabled:e(A),autocomplete:"new-password",placeholder:"AKIAIOSFODNN7EXAMPLE",type:"password",class:T(["form-control",{"is-invalid":e(u).accessKeyId.$error}]),onInput:a[1]||(a[1]=(...t)=>e(v)&&e(v)(...t))}
4,null,42,et),[[Y,e(u).accessKeyId.$model,void 0,{trim:!0}]]),(o(!0),c(P,null,O(e(u).accessKeyId.$errors,t=>(o(),c("div",{id:`error-${t.$validator}`,key:t.$uid,class:"invalid-feedback"},[["invalidCredentials","wrongCredentials"].includes(t.$validator)?b("",!0):(o(),c("div",st,i(s.$t(`validation.${t.$validator}`,{attribute:s.$t("aws.accounts.accessKeyId")})),1))],8,tt))),128))])):b("",!0),e(r)===e(K.AWS_ACCESS_TYPE).ACCESS_KEY?(o(),c("div",at,[n("label",nt,i(s.$t("aws.accounts.secretAccessKey")),1),N(n("input",{id:"secret-access-key-input","onUpdate:modelValue":a[2]||(a[2]=t=>e(u).secretAccessKey.$model=t),disabled:e(A),autocomplete:"new-password",placeholder:"wJalrXUtnFEMI/K7MDENG/bPxRfiCYEXAMPLEKEY",type:"password",class:T(["form-control",{"is-invalid":e(u).secretAccessKey.$error}]),onInput:a[3]||(a[3]=(...t)=>e(v)&&e(v)(...t))},null,42,ot),[[Y,e(u).secretAccessKey.$model,void 0,{trim:!0}]]),(o(!0),c(P,null,O(e(u).secretAccessKey.$errors,t=>(o(),c("div",{id:`error-${t.$validator}`,key:t.$uid,class:"invalid-feedback"},[t.$validator==="invalidCredentials"?(o(),c("div",rt,i(e(E).customMessage||s.$t("cloud.accounts.validation.invalidCredentials")),1)):t.$validator==="wrongCredentials"?(o(),c("div",ct,i(s.$t("cloud.accounts.validation.wrongCredentials",{accountId:e(l).id})),1)):(o(),c("div",lt,i(s.$t(`validation.${t.$validator}`,{attribute:s.$t("aws.accounts.secretAccessKey")})),1))],8,it))),128))])):b("",!0),e(r)===e(K.AWS_ACCESS_TYPE).ROLE_ARN?(o(),c("div",dt,[n("label",ut,i(s.$t("aws.accounts.roleArn")),1),N(n("input",{id:"role-arn-input","onUpdate:modelValue":a[4]||(a[4]=t=>e(u).roleArn.$model=t),disabled:e(A),autocomplete:"new-password",placeholder:"arn:aws:iam::############:role/CloudAvocadoRole",type:"text",class:T(["form-control",{"is-invalid":e(u).roleArn.$error}]),onInput:a[5]||(a[5]=(...t)=>e(v)&&e(v)(...t))},null,42,mt),[[Y,e(u).roleArn.$model,void 0,{trim:!0}
4]]),(o(!0),c(P,null,O(e(u).roleArn.$errors,t=>(o(),c("div",{id:`error-${t.$validator}`,key:t.$uid,class:"invalid-feedback"},[["invalidCredentials","wrongCredentials"].includes(t.$validator)?b("",!0):(o(),c("div",ft,i(s.$t(`validation.${t.$validator}`,{attribute:s.$t("aws.accounts.roleArn")})),1))],8,vt))),128))])):b("",!0),e(r)===e(K.AWS_ACCESS_TYPE).ROLE_ARN?(o(),c("div",pt,[n("label",$t,i(s.$t("aws.accounts.externalId")),1),N(n("input",{id:"external-id-input","onUpdate:modelValue":a[6]||(a[6]=t=>e(u).externalId.$model=t),disabled:e(A),autocomplete:"new-password",type:"password",class:T(["form-control",{"is-invalid":e(u).externalId.$error}]),onInput:a[7]||(a[7]=(...t)=>e(v)&&e(v)(...t))},null,42,_t),[[Y,e(u).externalId.$model,void 0,{trim:!0}]]),n("small",wt,i(s.$t("aws.accounts.inputHint.externalId")),1),(o(!0),c(P,null,O(e(u).externalId.$errors,t=>(o(),c("div",{id:`error-${t.$validator}`,key:t.$uid,class:"invalid-feedback"},[t.$validator==="invalidCredentials"?(o(),c("div",Ct,i(e(E).customMessage||s.$t("cloud.accounts.validation.invalidCredentials")),1)):t.$validator==="wrongCredentials"?(o(),c("div",ht,i(s.$t("cloud.accounts.validation.wrongCredentials",{accountId:e(l).id})),1)):(o(),c("div",gt,i(s.$t(`validation.${t.$validator}`,{attribute:s.$t("aws.accounts.externalId")})),1))],8,yt))),128))])):b("",!0),n("div",At,[g(ie,{class:"btn btn-outline-secondary w-md mr-1"},{default:m(()=>[k(i(s.$t("action.cancel")),1)]),_:1}),n("button",{disabled:e(A)||e(re)(e(l)),class:"btn btn-primary w-md",type:"submit","data-elem-name":"cloud-account-save-button"},[a[8]||(a[8]=n("i",{"aria-hidden":"true",class:"fas fa-save"},null,-1)),n("span",Et,i(s.$t("action.save")),1)],8,bt)])],32)]),_:1},8,["show"]))}}),It=W({__name:"aws-access-config",props:{accountId:{type:String,required:!0}},setup(y){const C=y,{accountId:_}=J(C),{account:$}=ce(_),p=oe();async function l(){await p.push({name:x,params:{accountId:_.value}})}return(r,u)=>e($)?(o(),U(le,{key:0},{title:m(()=>[k(i(r.$t("cloud.accounts.cloudAccess")),1)]),description:m(()=>[k(i(r.$t("cloud.accounts.cloudAccess.description")),1)]),docs:m(()=>[g(Re,{class:"mt-xl-4"})]),default:m(()=>[g(St,{account:e($),onAccountSaved:l},null,8,["account"])]),_:1})):b("",!0)}}),Ft={class:"form-group"},kt={for:"account-id-input"},Kt={class:"input-group"},Lt=["value"],Dt={class:"input-group-append"},Rt={class:"form-group"},Mt={for:"name-input"},Tt=["disabled"],Pt=["id"],Ut={class:"d-flex justify-content-end"},Vt=["disabled"],Ot={class:"ml-2"},Wt=W({__name:"account-details-edit-form",props:{account:{type:Object,required:!0}},emits:["account-saved"],setup(y,{emit:C}){function _(f){const h=D({name:f.value.name}),F=D({name:{required:Q,maxLength:q(100)}}),d=ne(F,h);async function s(){return await d.value.$validate()?h:null}function a(){h.name=f.value.name}return{v$:d,formData:h,validateForm:s,resetForm:a}}const $=y,p=C,{account:l}=J($),{v$:r,formData:u,validateForm:E}=_(l),[w,S]=ee(!1);async function I(){try{S(!0);const f=await E();f&&(await Ae.renameAccount(l.value.id,f.name),p("account-saved"),V())}catch{M()}finally{S(!1)}}const{t:v}=H(),{showError:A,showInfo:R}=te();function V(){const f=v("cloud.accounts.accountRenamed",{oldName:l.value.name,newName:u.name});R({message:f})}function M(){const f=v("cloud.accounts.accountRenameFailed",{name:l.value.name});A({message:f})}return(f,h)=>(o(),U(se,{show:e(w)},{default:m(()=>[n("form",{id:"account-details-edit-form",onSubmit:ae(I,["prevent"])},[n("div",Ft,[n("label",kt,i(f.$t("cloud.accounts.accountId")),1),n("div",Kt,[n("input",{id:"account-id-input",value:e(l).externalId,class:"form-control",readonly:""},null,8,Lt),n("div",Dt,[g(Te,{type:"button",class:"btn btn-outline-primary",value:e(l).externalId},null,8,["value"])])])]),n("div",Rt,[n("label",Mt,i(f.$t("cloud.accounts.name")),1),N(n("input",{id:"name-input","onUpdate:modelValue":h[0]||(h[0]=F=>e(r).name.$model=F),disabled:e(w),class:T(["form-control",{"is-invalid":e(r).name.$error}])},null,10,Tt),[[Y,e(r).name.$model,void 0,{trim:!0}
4]]),(o(!0),c(P,null,O(e(r).name.$errors,F=>(o(),c("div",{id:`error-${F.$validator}`,key:F.$uid,class:"invalid-feedback"},i(f.$t("validation.invalid",{attribute:f.$t("cloud.accounts.name")})),9,Pt))),128))]),n("div",Ut,[g(ie,{class:"btn btn-outline-secondary w-md mr-1"},{default:m(()=>[k(i(f.$t("action.cancel")),1)]),_:1}),n("button",{disabled:e(w)||e(re)(e(l)),class:"btn btn-primary w-md",type:"submit","data-elem-name":"cloud-account-save-button"},[h[1]||(h[1]=n("i",{"aria-hidden":"true",class:"fas fa-save"},null,-1)),n("span",Ot,i(f.$t("action.save")),1)],8,Vt)])],32)]),_:1},8,["show"]))}}),Nt={class:"form-group"},Yt={for:"key-file-input"},qt={class:"custom-file-label",for:"key-file-input"},Bt={class:"form-text text-muted"},jt=["id"],zt={key:0},Gt={key:1},Xt={key:2},xt={class:"d-flex justify-content-end"},Ht=["disabled"],Jt={class:"ml-2"},Zt=W({__name:"gcp-access-form",props:{account:{type:Object,required:!0}},emits:["account-saved"],setup(y,{emit:C}){function _(){const s=D({keyFile:null}),a=D({wrongCredentials:!1,invalidCredentials:!1,customMessage:""}),B=ne({keyFile:{required:Q,sizeTooLarge:L=>L?!(L.size>_e.GCP_KEY_FILE_MAX_SIZE):!0,invalidCredentials:()=>!a.invalidCredentials}},s);async function j(){return await B.value.$validate()?s:null}function G(L){a.invalidCredentials=!0,a.customMessage=L??""}function X(){a.wrongCredentials=!0}function z(){a.invalidCredentials=!1,a.wrongCredentials=!1,a.customMessage=""}function de(L){const ye=L.target,[Ce]=ye.files??[];s.keyFile=Ce}return{v$:B,formData:s,formErrors:a,validateForm:j,showInvalidCredentialsError:G,showWrongCredentialsError:X,resetFormErrors:z,selectKeyFile:de}}const $=y,p=C,{account:l}=me($),{v$:r,formErrors:u,validateForm:E,showInvalidCredentialsError:w,showWrongCredentialsError:S,resetFormErrors:I,selectKeyFile:v}=_(),[A,R]=ee(!1);async function V(){var s,a;try{R(!0),I();const t=await E();if(!t)return;await be.updateAccess(l.value.id,{keyFile:t.keyFile}),p("account-saved"),F()}catch(t){if(ve(t))w((a=(s=t==null?void 0:t.response)==null?void 0:s.data)==null?void 0:a.message);else if(fe(t))S();else throw t;d()}finally{R(!1)}}const{t:M}=H(),{showError:f,showInfo:h}=te();function F(){const s=M("cloud.accounts.accountSaved",{name:l.value.name});h({message:s})}function d(){const s=M("cloud.accounts.accountSaveFailed",{name:l.value.name});f({message:s})}return(s,a)=>(o(),U(se,{show:e(A)},{default:m(()=>[n("form",{id:"atlas-access-form",onSubmit:ae(V,["prevent"])},[n("div",Nt,[n("label",Yt,i(s.$t("gcp.keyFile")),1),n("div",{class:T(["custom-file",{"is-invalid":e(r).keyFile.$error}])},[n("input",{id:"key-file-input",type:"file",accept:".json",class:T(["custom-file-input",{"is-invalid":e(r).keyFile.$error}]),onChange:a[0]||(a[0]=(...t)=>e(v)&&e(v)(...t))},null,34),n("label",qt,i(e(r).keyFile.$model?e(r).keyFile.$model.name:"Choose "+s.$t("gcp.keyFile")),1)],2),n("small",Bt,i(s.$t("gcp.keyFile.description",{fileMaxSize:e(_e.GCP_KEY_FILE_MAX_SIZE)/1e3}
4)),1),(o(!0),c(P,null,O(e(r).keyFile.$errors,t=>(o(),c("div",{id:`error-${t.$validator}`,key:t.$uid,class:"invalid-feedback"},[t.$validator==="invalidCredentials"?(o(),c("div",zt,i(e(u).customMessage||s.$t("cloud.accounts.validation.invalidCredentials")),1)):t.$validator==="accountAlreadyExists"?(o(),c("div",Gt,i(s.$t("cloud.accounts.validation.accountAlreadyExists")),1)):(o(),c("div",Xt,i(s.$t(`validation.${t.$validator}`,{attribute:s.$t("gcp.keyFile")})),1))],8,jt))),128))]),n("div",xt,[g(ie,{class:"btn btn-outline-secondary w-md mr-1"},{default:m(()=>[k(i(s.$t("action.cancel")),1)]),_:1}),n("button",{disabled:e(A)||e(re)(e(l)),class:"btn btn-primary w-md",type:"submit","data-elem-name":"cloud-account-save-button"},[a[1]||(a[1]=n("i",{"aria-hidden":"true",class:"fas fa-save"},null,-1)),n("span",Jt,i(s.$t("action.save")),1)],8,Ht)])],32)]),_:1},8,["show"]))}}),Qt=W({__name:"gcp-access-config",props:{accountId:{type:String,required:!0}},setup(y){const C=y,{accountId:_}=J(C),{account:$}=ce(_),p=oe();async function l(){await p.push({name:x,params:{accountId:_.value}})}return(r,u)=>e($)?(o(),U(le,{key:0},{title:m(()=>[k(i(r.$t("cloud.accounts.cloudAccess")),1)]),description:m(()=>[k(i(r.$t("cloud.accounts.cloudAccess.description")),1)]),docs:m(()=>[g(Me,{class:"mt-xl-4"})]),default:m(()=>[g(Zt,{account:e($),onAccountSaved:l},null,8,["account"])]),_:1})):b("",!0)}}),es={class:"card"},ts={key:0,class:"card-body"},vs=W({__name:"account-edit-page",props:{accountId:{type:String,required:!0}},setup(y){function C(w){const{t:S}=H();return{breadcrumbs:Fe(()=>{const v=[{text:S("cloud.accounts"),to:{name:ke}}];return w.value&&v.push({text:w.value.name,to:{name:x,params:{accountId:w.value.id}}}),v.push({text:S("cloud.editAccount")}),v})}}const _=y,{accountId:$}=J(_),{account:p}=ce($),{breadcrumbs:l}=C(p),r=oe();async function u(){p.value!=null&&await r.push({name:x,params:{accountId:$.value}})}const E=new Map([[ue.AWS,It],[ue.MONGODB_ATLAS,Je],[ue.GCP,Qt]]);return(w,S)=>(o(),c(P,null,[g(Ke,{breadcrumbs:e(l)},null,8,["breadcrumbs"]),n("div",es,[e(p)?(o(),c("div",ts,[g(le,null,{title:m(()=>[k(i(w.$t("cloud.accounts.accountDetails")),1)]),description:m(()=>[k(i(w.$t("cloud.accounts.accountDetails.description")),1)]),default:m(()=>[g(Wt,{account:e(p),onAccountSaved:u},null,8,["account"])]),_:1}),e(E).has(e(p).cloudProvider)?(o(),U(Pe,{key:0})):b("",!0),e(E).has(e(p).cloudProvider)?(o(),U(Ie(e(E).get(e(p).cloudProvider)),Ee(Se({key:1},w.$props)),null,16)):b("",!0)])):b("",!0)])],64))}});export{vs as default};
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.