import{t as b,l as k,Q as v,i as y,c as P}from"./index-BTglIPU2.js?v=1773287522785";import{k as z,a6 as B,r as d,$ as S,Z as C,_ as u,a0 as n,j as a,aa as t,a9 as o,S as N}from"./vue-core-DJjvd5ZC.js?v=1773287522785";import{a as $}from"./index-oaByoBTF.js?v=1773287522785";import{aR as I,B as T}from"./naive-ui--dJnpVcV.js?v=1773287522785";import"./prismjs-BZPoR7_J.js?v=1773287522785";const V={class:"text-center p-20px"},W={class:"login-tips-box"},h=z({__name:"index",props:{data:{}},setup(m){const i=m.data,f=b(),{isPro:g}=B(f),l=d(""),c=d(!1),w=()=>{if(!g.value){v({source:213});return}window.open(i.login_url,"_blank")},x=()=>{window.open(l.value,"_blank")};return(async()=>{const{message:e}=await $({s_id:i.id});y(e)&&(l.value=e.login_url,c.value=e.maintenance)})(),(e,r)=>{const s=k,p=I,_=T;return S(),C("div",V,[u("div",W,[n(s,{name:"wp-wp",size:"20"}),r[0]||(r[0]=a()),u("span",null,t(e.$t("WP.index_23")),1)]),n(_,{onClick:w,size:"large",type:"primary",disabled:N(c)},{icon:o(()=>[n(p,null,{default:o(()=>[n(s,{name:"wp-free",size:"20"})]),_:1})]),default:o(()=>[a(" "+t(e.$t("WP.index_22")),1)]),_:1},8,["disabled"]),n(_,{class:"ml-24px",size:"large",onClick:x},{icon:o(()=>[n(p,null,{default:o(()=>[n(s,{name:"wp-login",size:"18"})]),_:1})]),default:o(()=>[a(" "+t(e.$t("Site.TableOP.index_1")),1)]),_:1})])}}}),M=P(h,[["__scopeId","data-v-01864afc"]]);export{M as default};