import{c as e,r as s,q as t,v as a,x as l,z as i,e as n,B as c,y as r,C as o,A as p,N as d,F as m,b0 as x,aE as u,f as b,aC as f}from"./base-lib.js?v=1761009159";import{_ as w}from"./index109.js?v=1761009159";import{u as v,fU as _,fV as y,e as g,L as h,b as k,_ as j}from"./utils-lib.js?v=1761009159";import{_ as C}from"./we-com.js?v=1761009159";import{m as z,e as N,p as E,k as q}from"./validator.js?v=1761009159";import"./__commonjsHelpers__.js?v=1761009159";import"./index106.js?v=1761009159";import"./column.js?v=1761009159";const I={class:"px-12px !bg-transparent"},L={class:"module-ui"},T={class:"py-52px flex justify-center flex-col items-center"},A={class:"flex mb-16px justify-center"},B={key:0,class:"text-center mb-40px"},F={key:1,class:"text-center mb-40px"},H={key:0,class:"text-medium"},P={key:1,class:""},U={class:"w-76% rounded-base overflow-hidden"},V={class:"rounded-base overflow-hidden text-0"},W=j(e({__name:"index",setup(e){const{load:j,request:W}=k(),{payment:D,plugin:G}=v(),{install:J}=_(),K=s([["用户列表","account.png"],["资源包","package.png"],["存储","storage.png"],["虚拟主机概览","overview.png"],["虚拟主机网站","site.png"]]),M=async()=>{const e=j("正在初始化安装信息，请稍后...");try{const e=await y();W(e),z()}catch(s){}finally{e.close()}},O=e=>"https://www.bt.cn/Public/new/plugin/vhost/".concat(e);return t(async()=>{1===J.value&&z()}),(e,s)=>{const t=g,v=h,_=w,y=b,k=f,j=u;return a(),l("div",I,[i("div",L,[i("div",T,[s[10]||(s[10]=i("div",{class:"mb-12px text-center text-subtitleLarge font-bold"},"宝塔多用户虚拟主机面板",-1)),i("div",A,[s[6]||(s[6]=i("div",{class:"text-center text-base mr-[10px] color-desc text-tertiary"},"划分服务器资源当作虚拟主机给多个不同的用户单独管理",-1)),n(t,{href:"https://www.bt.cn/new/wechat_customer",class:"!text-base mr-[10px]"},{default:c(()=>s[3]||(s[3]=[i("img",{src:C,class:"w-[16px] h-[16px]"},null,-1),i("span",null,"联系客服",-1)])),_:1,__:[3]}),i("div",{class:"flex items-center mr-[10px]",onClick:s[0]||(s[0]=e=>r(N)({name:"用户管理",type:35,id:62}))},s[4]||(s[4]=[i("i",{class:"svgtofont-desired !text-medium mr-[4px]"},null,-1),i("span",{class:"bt-link !text-base"},"需求反馈",-1)])),n(t,{href:"https://www.bt.cn/bbs/thread-141273-1-1.html",class:"!text-base mr-[4px]"},{default:c(()=>s[5]||(s[5]=[o(">> 使用文档",-1)])),_:1,__:[5]})]),s[11]||(s[11]=i("div",{class:"mb-16px"},[i("ul",{class:"ul-style"},[i("li",null,"单独的管理系统"),i("li",null,"资源配额"),i("li",null,"权限分离")])],-1)),r(D).authExpirationTime<0?(a(),l("div",B,[n(v,{type:"primary",size:"large",class:"!text-medium w-[140px]",onClick:s[1]||(s[1]=e=>r(E)({sourceId:361}))},{default:c(()=>[o(p("立即".concat(-1===r(D).authExpirationTime?"购买":"续费")),1)]),_:1})])):(a(),l("div",F,["nginx"===r(G).webserver?(a(),d(v,{key:0,type:"primary",size:"large",class:"!text-medium w-[140px]",onClick:M},{default:c(()=>s[7]||(s[7]=[o("立即安装",-1)])),_:1,__:[7]})):(a(),d(_,{key:1,class:"install-tips inline-flex w-auto mx-auto",type:"warning"},{default:c(()=>[r(G).webserver?(a(),l("div",H,"仅支持Nginx，检测到web服务器为: "+p(r(G).webserver)+"，请将切换web服务器为Nginx，切换前请备份相关数据。",1)):(a(),l("div",P,[s[9]||(s[9]=o("Web 服务器当前未安装，请先安装 ",-1)),n(t,{onClick:s[2]||(s[2]=e=>r(q)({name:"nginx",type:"i"}))},{default:c(()=>s[8]||(s[8]=[o("安装Nginx",-1)])),_:1,__:[8]})]))]),_:1}))])),i("div",U,[n(j,{"tab-position":"left",class:"carousel"},{default:c(()=>[(a(!0),l(m,null,x(r(K),(e,s)=>(a(),d(k,{label:e[0],lazy:"",key:s},{default:c(()=>[i("div",V,[n(y,{src:O(e[1]),class:"max-h-[100%] object-scale-down","preview-src-list":[O(e[1])]},null,8,["src","preview-src-list"])])]),_:2},1032,["label"]))),128))]),_:1})])])])])}}}),[["__scopeId","data-v-8744499d"]]);export{W as default};
