File: /www/server/panel/BTPanel/static/js/index112.js
import{c as E,bN as A,d8 as v,fM as L,_ as y,cZ as T}from"./utils-lib.js?v=1777008528";import V from"./index392.js?v=1777008528";import{_ as N}from"./index122.js?v=1777008528";import{c as M,r as a,o as P,n as q,k as d,p as t,C as _,y as i,O as I,q as o,x as k,e as r,v as p,M as O,j as n,aB as b,d as x}from"./base-lib.js?v=1777008528";import"./__commonjsHelpers__.js?v=1777008528";import"./index119.js?v=1777008528";import"./index120.js?v=1777008528";import"./useController.js?v=1777008528";const R={key:3,class:"list-disc help-text-info -ml-7rem"},S={key:4},j=M({__name:"index",setup(z){const{mainHeight:w,forceLtd:B,aliyunEcsLtd:c,isRecomCert:G}=E(),s=a(!0),m=a("bind"),f=a({client:0,login:0}),g=a("div"),h=l=>{m.value=l},C=async()=>{var l;try{const e=await L();if(s.value=!0,e.status&&((l=e.data)==null?void 0:l.login)!==0){const u={1:x(()=>y(()=>import("./tencent-bind-user.js?v=1777008528"),__vite__mapDeps([]),import.meta.url)),2:x(()=>y(()=>import("./ali-bind-user.js?v=1777008528"),__vite__mapDeps([]),import.meta.url))};f.value={client:e.data.client,login:e.data.login},g.value=u[e.data.client]||"div",s.value=!1}}catch(e){s.value=!0}};return P(()=>{A(),q(C)}),(l,e)=>{const u=N,D=V;return n(),d("div",{class:"flex flex-col items-center",style:O({"min-height":t(w)-200+"px"})},[t(B)?(n(),_(u,{key:0,class:"w-[44rem]",closable:!1,type:"warning",title:"温馨提醒:Linux 面板企业版为付费版本,绑账号试用14天,试用结束后可选择需续费企业版或者继续使用免费版。(付费插件功能不可继续使用,功能与直接安装免费版无任何区别)"})):i("",!0),t(s)?(n(),_(D,{key:1,class:"w-[44rem]",compData:{title:"绑定宝塔官网账号",btn:"登录",isDialog:!1,redirect:"/"}})):i("",!0),!t(s)&&!t(c)?(n(),_(I(t(g)),{key:2,class:"w-[44rem]",compData:{title:"绑定宝塔官网账号",btn:"登录",authData:t(f),onChangeType:h,isDialog:!1,redirect:"/"}},null,8,["compData"])):i("",!0),t(m)==="bind"&&!t(c)?(n(),d("ul",R,[e[2]||(e[2]=o("li",null,"为了您能更好的体验面板功能,请先绑定堡塔账号;",-1)),e[3]||(e[3]=o("li",null,"单个宝塔帐号支持多台服务器绑定;",-1)),e[4]||(e[4]=o("li",null,"绑定帐号没有接管服务器的功能权限,请放心使用;",-1)),e[5]||(e[5]=o("li",null,"帐号绑定过程中遇到问题请联系客服处理;",-1)),e[6]||(e[6]=o("li",null,"客服电话:0769-23030556",-1)),o("li",null,[e[1]||(e[1]=k(" 客服咨询: ",-1)),r(t(b),{placement:"bottom",width:"150",trigger:"hover","popper-class":"white-tips-popover",class:"inline-block relative leading-[2.4rem]"},{reference:p(()=>[...e[0]||(e[0]=[o("span",{class:"bt-link"},"查看二维码",-1)])]),default:p(()=>[r(t(v),{width:"150",src:"/other/customer-qrcode.png",alt:"客服咨询"})]),_:1})])])):i("",!0),t(m)==="other"&&!t(c)?(n(),d("li",S,[e[8]||(e[8]=k(" 如果遇到问题,请联系客服处理: ",-1)),r(t(b),{placement:"bottom",width:"150",trigger:"hover","popper-class":"white-tips-popover",class:"inline-block relative leading-[2.4rem]"},{reference:p(()=>[...e[7]||(e[7]=[o("span",{class:"bt-link"},"查看二维码",-1)])]),default:p(()=>[r(t(v),{width:"150",src:"/other/customer-qrcode.png",alt:"客服咨询"})]),_:1})])):i("",!0)],4)}}}),W=T(j,[["__scopeId","data-v-cd42a106"]]);export{W as default};
function __vite__mapDeps(indexes) {
if (!__vite__mapDeps.viteFileDeps) {
__vite__mapDeps.viteFileDeps = []
}
return indexes.map((i) => __vite__mapDeps.viteFileDeps[i])
}