1import{aP as V,i as N,D as z,r as h,dG as P,g as T,_ as j,bf as B,ar as f,as as a,aZ as l,at as o,b1 as r,b0 as M,a_ as c,ba as i,cV as D,b3 as I,b6 as E,aW as G,cS as O,bc as g,cT as b,cP as q,p,bd as F,cD as v}from"./thPyMNxu.js";import{_ as H}from"./qHV1S-TH.js";import{u as R}from"./CAs92uqW.js";const U={class:"flex flex-col","data-test-id":"nc-setup-main"},W={class:"flex justify-center items-center h-5 w-5"},Z={"data-rec":"true"},J={class:"nc-content-max-w flex-1 max-h-[calc(100vh_-_100px)] overflow-y-auto nc-scrollbar-thin flex flex-col items-center gap-6 p-6"},K={class:"flex flex-col gap-6 w-150"},Q=["data-testid","onClick"],X={class:"flex gap-3 items-center","data-rec":"true"},Y={class:"font-bold text-base"},ee={class:"text-nc-content-gray-subtle2 text-sm"},te={class:"flex justify-between mt-4"},se={class:"flex gap-2 items-center"},oe={class:"flex gap-2 items-center"},ne=V({__name:"Setup",setup(ae){const{t:d}=N(),{loadSetupApps:C,emailConfigured:x,storageConfigured:k,listModalDlg:m}=R(),w=z(P,h(!1)),y=h(null),u=(t,s)=>{if(w.value){const n={tab:`setup-${t}`};s&&(n.app=s),v({path:"/admin",query:n})}else v(`/account/setup/${t}${s?`/${s}`:""}`)},S=T(()=>[{title:d("labels.configLabel",{label:d("labels.email")}),key:"email",description:"Configure your preferred email service to manage how your application sends alerts, notifications and other essential emails.",docsLink:"https://nocodb.com/docs/product-docs/account-settings/oss-specific-details#configure-email",buttonClick:()=>{var t;u("email",(t=x.value)==null?void 0:t.title)},itemClick:()=>{u("email")},configured:x.value},{title:d("labels.configLabel",{label:d("labels.storage")}),key:"storage",description:"Set up and manage your preferred storage solution for securely handling and storing your application's data.",docsLink:"https://nocodb.com/docs/product-docs/account-settings/oss-specific-details#configure-storage",buttonClick:()=>{var t;u("storage",(t=k.value)==null?void 0:t.title)},itemClick:()=>{u("storage")},configured:k.value}]);return j(async()=>{await C()}),(t,s)=>{const n=D,L=H,$=O,_=q,A=B("LazyAccountSetupListModal");return a(),f("div",U,[l(L,null,{icon:c(()=>[o("div",W,[l(n,{icon:"ncSliders",class:"flex-none text-[20px]"})])]),title:c(()=>[o("span",Z,i(t.$t("labels.setup")),1)]),_:1}),o("div",J,[o("div",K,[(a(!0),f(I,null,E(p(S),e=>(a(),f("div",{key:e.key,class:G(["flex flex-col border-1 rounded-2xl border-nc-border-gray-medium p-6 gap-2 hover:shadow hover:bg-gray-10 hover:dark:bg-nc-bg-gray-extralight",{"cursor-pointer":e.itemClick}]),"data-testid":`nc-setup-${e.key}`,onClick:e.itemClick},[o("div",X,[!e.configured||e.isPending?(a(),r($,{key:0},{title:c(()=>[o("span",null,i(t.$t("activity.pending")),1)]),default:c(()=>[l(n,{icon:"ncAlertCircle",class:"text-nc-content-orange-medium -mt-1 w-6 h-6 nc-pending"})]),_:1})):(a(),r(n,{key:1,icon:"circleCheckSolid",class:"text-success w-6 h-6 nc-configured"}
1)),o("span",Y,i(e.title),1)]),o("div",ee,i(e.description),1),o("div",te,[l(_,{size:"small",type:"text",href:e.docsLink,target:"_blank",class:"!flex items-center !no-underline",rel:"noopener noreferer",onClick:s[0]||(s[0]=b(()=>{},["stop"]))},{default:c(()=>[o("div",se,[s[2]||(s[2]=g(" Go to docs ")),l(n,{icon:"ncExternalLink"})])]),_:2},1032,["href"]),e.configured?(a(),r(_,{key:0,size:"small",type:"text",onClick:b(e.buttonClick,["stop"])},{default:c(()=>[o("div",oe,[l(n,{icon:"ncEdit3"}),g(" "+i(t.$t("general.edit")),1)])]),_:2},1032,["onClick"])):(a(),r(_,{key:1,size:"small",onClick:b(e.buttonClick,["stop"])},{default:c(()=>[g(i(t.$t("general.configure")),1)]),_:2},1032,["onClick"]))])],10,Q))),128))])]),p(y)?(a(),r(A,{key:0,modelValue:p(m),"onUpdate:modelValue":s[1]||(s[1]=e=>F(m)?m.value=e:null),category:p(y)},null,8,["modelValue","category"])):M("",!0)])}}}),re=Object.assign(ne,{__name:"AccountSetup"});export{re 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.