import{o as s,m as a}from"./useMethod2.js?v=20260328163632";import{u as e,l as t}from"./utils-lib.js?v=20260328163632";import{k as n,c as o,V as r,W as p,X as l,Z as i,Y as c,O as m,a1 as y}from"./base-lib.js?v=20260328163632";import{A as u}from"./naive-ui.js?v=20260328163632";const g={class:"content-mask flex items-center"},v={class:"mr-8px"},x={key:0},b=n({__name:"index",props:{type:{default:""}},setup(n){const{isAaPanel:b}=e(),f=n,k=o((()=>{var s;return"PgSql"===f.type?"pgsql_manager":null==(s=f.type)?void 0:s.toLowerCase()}));return o((()=>"".concat("SqlServer"!==f.type?"当前未安装".concat(f.type,"环境/远程数据库"):"当前未添加远程数据库"))),(e,n)=>{const o=u;return r(),p("div",g,[n[2]||(n[2]=l("i",{class:"text-orange !text-[22px] svgtofont-el-warning mr-4px"},null,-1)),l("span",v,i(c(b)&&"MongoDB"===e.type||"gbase8s"===e.type?c(t)("当前未添加远程数据库"):c(t)("当前未安装{0}环境/远程数据库",[e.type])),1),l("span",{class:"bt-link",onClick:n[0]||(n[0]=(...a)=>c(s)&&c(s)(...a))},i(c(t)("添加远程数据库")),1),(c(b)&&"MongoDB"!==e.type||!c(b))&&"gbase8s"!==e.type?(r(),p("div",x,[m(o,{vertical:""}),l("span",{class:"bt-link",onClick:n[1]||(n[1]=s=>c(a)(c(k)||""))},i(c(t)("安装{0}环境",[e.type])),1)])):y("",!0)])}}});export{b as _};
