import{u as e,e as a,_ as s}from"./utils-lib.js?v=1761009159";import{p as t}from"./validator.js?v=1761009159";import{c as o,t as l,g as r,v as n,x as i,z as d,A as m,y as p,K as c,F as u,N as f,B as b,C as y,D as v}from"./base-lib.js?v=1761009159";const x={class:"leading-[1.6rem] ml-[.5rem]"},_=s(o({__name:"index",props:{disablePro:{type:Boolean,default:!1},isHome:{type:Boolean,default:!1}},setup(s){const{authRemainingDays:o,authExpirationTime:_,payment:h,aliyunEcsLtd:g,forceLtd:P}=e(),{recommendAuth:k,authType:C}=l(h.value),j=s,B=r(()=>!g.value||"ltd"===h.value.authType),T=()=>{const e={disablePro:!0};"pro"===C.value&&(e.disablePro=!1),t({disablePro:e.disablePro,sourceId:27,showClose:B.value})};return(e,s)=>{const t=a;return n(),i("div",{class:c(["flex items-center mr-[1.2rem]",p(C)+"-theme"])},[d("span",{class:c(("free"!==p(C)||j.isHome?"icon-end-time-free ":"icon-end-time ")+"icon-"+("free"===p(C)?"un":"")+"paid-"+("free"===p(C)?p(k):p(C))+" text-small"),onClick:T},m("ltd"===p(C)?"企业版":"pro"===p(C)?"专业版":"企业版"),3),"free"!==p(C)?(n(),i(u,{key:0},[d("span",x,[d("span",{class:c(["font-bold !mr-2 text-small",{"text-danger":p(o)<7,"text-warning":p(o)>=7}])},m(p(_)),3)]),0!==p(o)&&"永久授权"!==p(_)?(n(),f(t,{key:0,class:"!align-top font-bold",onClick:T},{default:b(()=>s[0]||(s[0]=[y(" 续费 ",-1)])),_:1,__:[0]})):v("",!0)],64)):v("",!0)],2)}}}),[["__scopeId","data-v-402b09ab"]]);export{_};
