import{c as e,s,g as t,v as a,x as l,z as r,K as n,y as c,A as o,e as i,D as d,B as m,C as u,F as p,b0 as f,N as v,I as y,J as x,b1 as b,G as h,aX as _,az as k}from"./base-lib.js?v=1761009159";import{u as w,V as g,e as j,f as C,_ as P}from"./utils-lib.js?v=1761009159";import{_ as z}from"./index107.js?v=1761009159";import{aJ as L,aK as q,b as A}from"./validator.js?v=1761009159";import{H as E}from"./store3.js?v=1761009159";import"./__commonjsHelpers__.js?v=1761009159";import"./index106.js?v=1761009159";import"./column.js?v=1761009159";import"./store4.js?v=1761009159";const H={class:"flex flex-col p-[10px] user-info-popover"},I={class:"flex justify-between mb-[14px]"},J={key:0},K={class:"flex mb-[14px]"},M={key:0,class:"user-ltd-info p-[1.4rem] h-[4.6rem] flex items-center justify-between"},T={class:"flex items-center"},B={key:1,class:"user-ltd-info p-[1rem] pl-[1.4rem] pr-[1.4rem] h-[7.2rem] mt-[-0.5rem]"},D={class:"flex items-center"},F={class:"ml-[0.4rem] text-small text-secondary"},G={class:"flex justify-between items-end"},N={class:"product-card-content"},U={key:0,class:"advantage-item"},V={class:"flex flex-col"},X={class:"menu-item"},O={class:"svgtofont-free-customer ltd-customer-tips"},Q={class:"qrcode-wechat"},R={class:"qrcode-content"},S=P(e({__name:"index",setup(e){const P=E(),{authExpirationTime:S,bindUser:W,authType:Y,advantageList:Z,v2AdvantageList:$}=s(P),{forceLtd:ee,aliyunEcsLtd:se}=w(),te=t(()=>{switch(Y.value){case"ltd":return"icon-paid-ltd";case"pro":return"icon-paid-pro";default:return"icon-unpaid-ltd"}}),ae=t(()=>"ltd"===Y.value?"续费":"立即升级"),le=async()=>{A(W.value?"切换宝塔账号":"绑定宝塔账号，享受更多服务")},re=t(()=>{const e=g(S.value,"yyyy-MM-dd");switch(Y.value){case"ltd":return"".concat(e,"到期");case"pro":return 0===S.value?"永久授权":"".concat(e,"到期");default:return""}}),ne=t(()=>"https://www.bt.cn/new/wechat_customer?".concat("ltd"===Y.value?"vip=":"")),ce=t(()=>"ltd"===Y.value?"您的专属客服":"帮助与客服");return(e,s)=>{const t=b,w=h,g=z,A=j,E=_,Z=C,ee=k;return a(),l("div",H,[r("div",I,[r("span",{class:n({"cursor-pointer":!c(W)}),onClick:le},o(c(W)||"未绑定帐号，点击绑定"),3),!c(se)&&c(W)?(a(),l("span",J,[r("span",{class:"user-operate",onClick:le},"切换"),i(t,{direction:"vertical"}),r("span",{class:"user-operate",onClick:s[0]||(s[0]=(...e)=>c(L)&&c(L)(...e))},"解绑")])):d("",!0)]),r("div",K,[i(E,{shadow:"never",class:"!border-none"},{default:m(()=>["pro"!==c(Y)?(a(),l("div",M,[r("div",T,[r("span",{class:n(["h-[2.2rem] leading-[2rem] mt-[0.2rem] bg-left bg-no-repeat cursor-pointer",c(te)]),onClick:s[1]||(s[1]=(...e)=>c(P).productPayment&&c(P).productPayment(...e))},null,2),r("div",{class:n([c(S)?"text-secondary":"text-danger","ml-[0.4rem] text-small"])},o(c(re)),3)]),i(w,{class:"payment-btn",type:"primary",size:"small",onClick:c(P).productPayment},{default:m(()=>[u(o(c(ae)),1)]),_:1},8,["onClick"])])):(a(),l("div",B,[r("div",D,[r("span",{class:n(["h-[2.4rem] w-[6rem] mt-[0.2rem] bg-left bg-no-repeat cursor-pointer",c(te)]),onClick:s[2]||(s[2]=(...e)=>c(P).productPayment&&c(P).productPayment(...e))},null,2),r("div",F,o(c(re)),1)]),r("div",G,[s[3]||(s[3]=r("span",{class:"ml-[0.4rem] leading-none"},"企业版享有以下特权",-1)),i(w,{type:"primary",size:"small",onClick:c(P).productPayment},{default:m(()=>[u(o(c(ae)),1)]),_:1},8,["onClick"])])])),r("div",N,[(a(!0),l(p,null,f(c($),(e,s)=>(a(),l(p,{key:s},["other"!==e[0]?(a(),l("div",U,[i(g,{name:"tools-".concat(e[0]),size:"18",class:"mr-[4px]"},null,8,["name"]),r("span",null,o(e[1]),1)])):d("",!0),"other"===e[0]?(a(),v(A,{key:1,class:"advantage-item other",href:"https://www.bt.cn/new/pricing.html"},{default:m(()=>[u(o(e[1]),1)]),_:2},1024)):d("",!0)],64))),128))])]),_:1})]),r("div",V,[i(ee,{width:"172","show-arrow":!1,placement:"right"},{reference:m(()=>[r("div",X,[r("span",null,o(c(ce)),1),y(r("i",O,null,512),[[x,"ltd"===c(Y)]])])]),default:m(()=>[r("div",Q,[i(A,{href:c(ne),class:"seek-link",target:"_blank"},{default:m(()=>s[4]||(s[4]=[u(" 点击咨询客服",-1),r("i",{class:"svgtofont-arrow text-primary"},null,-1)])),_:1,__:[4]},8,["href"]),r("div",R,[i(Z,{src:"/customer/customer-qrcode.png"})]),s[6]||(s[6]=r("div",{class:"wechat-title flex items-center justify-center"},[r("i",{class:"svgtofont-icon-scan !text-subtitleLarge"}),r("div",{class:"scan-title text-medium ml-[.4rem] text-secondary font-bold"},"扫一扫")],-1)),"ltd"===c(Y)?(a(),v(A,{key:0,class:"survey-link",onClick:c(q)},{default:m(()=>s[5]||(s[5]=[u(" 企业版用户专属调研 ",-1)])),_:1,__:[5]},8,["onClick"])):d("",!0)])]),_:1})])])}}}),[["__scopeId","data-v-44cf1b8b"]]);export{S as default};
