import{k as e,a9 as t,c as s,V as a,W as l,X as n,Y as c,_ as i,a3 as r,j as p,Z as o,a1 as d,O as u,K as x,F as f,L as m,l as v,v as w}from"./base-lib.js?v=20260328163632";import{u as h,l as y,Y as g,dX as b,s as _,h as k,O as j,as as C,_ as q}from"./utils-lib.js?v=20260328163632";import{aB as z,A as P,B as A,d as B,g as E}from"./naive-ui.js?v=20260328163632";import"./__commonjsHelpers__.js?v=20260328163632";import"./env-lib.js?v=20260328163632";const I={class:"flex flex-col p-[10px]"},L={class:"flex justify-between mb-[14px]"},M={class:"flex mb-[14px]"},O={key:0,class:"user-ltd-info p-14px h-46px flex items-center justify-between"},S={class:"flex items-center"},T=["title"],X={key:1,class:"user-ltd-info p-10px pl-14px pr-14px h-72px"},Y={class:"flex items-center"},F={class:"ml-4px text-12px text-{#666}"},H={class:"flex justify-between items-end"},K={class:"ml-4px leading-none"},U={class:"product-card-content"},V={key:0,class:"advantage-item"},W=["title"],Z={key:1,class:"advantage-item other justify-center"},D={class:"flex flex-col"},G={class:"menu-item"},J={class:"truncate"},N={class:"svgtofont-free-customer ltd-customer-tips"},Q={class:"qrcode-wechat"},R=["title"],$={class:"qrcode-content"},ee={class:"wechat-title flex items-center justify-center"},te={class:"scan-title text-16px ml-10px text-[var(--text-color-2)] font-bold"},se=q(e({__name:"index",setup(e){const{payment:q,isAaPanel:se}=h(),{isExpire:ae,bindUser:le,authType:ne,authExpirationTime:ce}=t(q.value),ie=[["plunge",y("30+款付费插件")],["function",y("20+企业版专享功能")],["certificate",y("2张SSL商用证书")],["message",y("1000条免费短信")],["time",y("5分钟极速响应")],["other",y("更多特权>>")]],re=s((()=>{switch(ne.value){case"ltd":return"icon-paid-ltd";case"pro":return"icon-paid-pro";default:return"icon-unpaid-ltd"}})),pe=s((()=>"ltd"===ne.value?y("续费"):y("立即升级"))),oe=async()=>{j({title:y("切换{0}官网账号",[se.value?"aaPanel":y("宝塔")]),btn:y("切换账号")})},de=s((()=>{const e=g(ce.value,"yyyy-MM-dd");switch(ne.value){case"ltd":return y("{0}到期",[e]);case"pro":return 0===ce.value?y("永久授权"):y("{0}到期",[e]);default:return y("免费版")}})),ue=s((()=>"https://www.bt.cn/new/wechat_customer?".concat("ltd"===ne.value?"vip=":""))),xe=s((()=>"ltd"===ne.value?y("您的专属客服"):y("帮助与客服"))),fe=()=>{C({disablePro:!0,sourceId:300})};return(e,t)=>{const s=z,h=P,g=A,j=B,C=E;return a(),l("div",I,[n("div",L,[n("span",null,[c(ae)?(a(),i(s,{key:0,class:"mr-4px",size:"small",type:"warning"},{default:r((()=>[p(o(c(y)("体验账号")),1)])),_:1})):d("",!0),p(o(c(le)),1)]),n("span",null,[n("span",{class:"user-operate",onClick:oe},o(c(y)("切换")),1),u(h,{vertical:""}),n("span",{class:"user-operate",onClick:t[0]||(t[0]=(...e)=>c(b)&&c(b)(...e))},o(c(y)("解绑")),1)])]),n("div",M,[u(j,{class:"is-always-shadow !border-[#efefef]","content-class":"!p-0"},{default:r((()=>["pro"!==c(ne)?(a(),l("div",O,[n("div",S,[n("span",{class:x(["h-24px w-60px bg-left bg-no-repeat cursor-pointer",c(re)]),onClick:fe},null,2),n("div",{class:x([c(ce)||"free"===c(ne)?"text-{#666}":"text-danger","ml-4px text-12px truncate max-w-170px"]),title:c(de)},o(c(de)),11,T),c(ae)?(a(),l(f,{key:0},[p(o(c(y)("（到期后面板无法使用）")),1)],64)):d("",!0)]),c(ae)?d("",!0):(a(),i(g,{key:0,class:"payment-btn",type:"primary",size:"tiny",onClick:fe},{default:r((()=>[p(o(c(y)(c(pe))),1)])),_:1}))])):(a(),l("div",X,[n("div",Y,[n("span",{class:x(["h-24px w-60px mt-2px bg-left bg-no-repeat cursor-pointer",c(re)]),onClick:fe},null,2),n("div",F,o(c(de)),1)]),n("div",H,[n("span",K,o(c(y)("企业版享有以下特权")),1),u(g,{type:"primary",size:"small",onClick:fe},{default:r((()=>[p(o(c(pe)),1)])),_:1})])])),n("div",U,[(a(),l(f,null,m(ie,((e,t)=>(a(),l(f,{key:t},["other"!==e[0]?(a(),l("div",V,[n("i",{class:x("svgtofont-free-".concat(e[0],"-icon text-18px  mr-[4px] text-[#9e6700]"))},null,2),n("span",{class:"truncate",title:e[1]},o(e[1]),9,W)])):d("",!0),"other"===e[0]?(a(),l("div",Z,[u(c(_),{href:c(se)?"https://www.aapanel.com/new/pricing.html":"https://www.bt.cn/new/pricing.html#windows"},{default:r((()=>[p(o(e[1]),1)])),_:2},1032,["href"])])):d("",!0)],64)))),64))])])),_:1})]),n("div",D,[u(C,{width:172,"show-arrow":!1,placement:"right","content-class":"!pt-10px"},{trigger:r((()=>[n("div",G,[n("span",J,o(c(y)(c(xe))),1),v(n("i",N,null,512),[[w,"ltd"===c(ne)]])])])),default:r((()=>[n("div",Q,[u(c(_),{href:c(ue),class:"seek-link",target:"_blank"},{default:r((()=>[n("span",{class:"truncate",title:c(y)("点击咨询客服")},o(c(y)("点击咨询客服")),9,R),t[1]||(t[1]=n("i",{class:"svgtofont-arrow text-[#20a53a]"},null,-1))])),_:1},8,["href"]),n("div",$,[u(c(k),{all:!0,src:"/static/images/customer/customer-qrcode.png",class:"bg-white border-2px border-lightest rounded-[2px] w-128px h-128px"})]),n("div",ee,[t[2]||(t[2]=n("i",{class:"svgtofont-icon-scan text-24px"},null,-1)),n("div",te,o(c(y)("扫一扫")),1)])])])),_:1})])])}}}),[["__scopeId","data-v-f561409f"]]);export{se as default};
