import{s as V}from"./workbench-6b38294d.js";import{M as k,J as z,T as N,S as w,L,b as T}from"./ui-ba7aaa7e.js";import{e as F,l as M,r as P,P as s,a3 as r,a4 as n,I as j,Q as v,a7 as t,f as g,H as c,ab as a,a9 as A,F as E,aa as H,ac as J,ad as O}from"./vue-bf422dc1.js";import{_ as Q}from"./index-8db2df2c.js";import"./icons-a8498fb6.js";import"./libs-51817cd7.js";import"./plugins-ca970193.js";import"./others-9f318174.js";import"./echarts-bf9d612c.js";const i=l=>(J("data-v-5803d8c6"),l=l(),O(),l),q={key:1},G={class:"flex leading-9"},K=i(()=>t("div",{class:"w-20"},"当前版本",-1)),R={class:"flex leading-9"},U=i(()=>t("div",{class:"w-20"},"程序作者",-1)),W={class:"flex leading-9"},X=i(()=>t("div",{class:"w-20"},"技术栈",-1)),Y={class:"flex leading-9"},Z=i(()=>t("div",{class:"w-20"},"相关链接",-1)),$=F({__name:"SystemCard",setup(l){const e=M({version:"",authorize:{status:!1,end_time:0},author:{name:"",email:""},framework:{frontend:"",backend:""},license:[]}),d=P(!0),y=Array.from({length:4}).map(()=>[{type:"rect",flex:"1",width:"80px",height:"10px"},{type:"rect",flex:"1",width:"100%",height:"10px"}]);return(async()=>{const _=await V();Object.assign(e,_.data),e.authorize.status===!1&&k.error({content:"软件未授权，部分功能被限制",duration:0,closeBtn:!0}),d.value=!1})(),(_,D)=>{const x=z,S=N,m=w,C=L,B=T;return s(),r(B,{title:"版本信息","hover-shadow":""},{default:n(()=>{var p,u,f,h;return[d.value?(s(),r(x,{key:0,"row-col":j(y)},null,8,["row-col"])):(s(),v("div",q,[t("div",G,[K,t("span",null,[g(m,null,{default:n(()=>{var o;return[c(a(e==null?void 0:e.version)+" ",1),(o=e==null?void 0:e.authorize)!=null&&o.status?(s(),r(S,{key:0,theme:"success",hover:"color",variant:"light"},{default:n(()=>[c(" 免费授权版 ")]),_:1})):A("",!0)]}),_:1})])]),t("div",R,[U,t("span",null,a((p=e==null?void 0:e.author)==null?void 0:p.name)+"("+a((u=e==null?void 0:e.author)==null?void 0:u.email)+")",1)]),t("div",W,[X,t("span",null,a((f=e==null?void 0:e.framework)==null?void 0:f.frontend)+" "+a((h=e==null?void 0:e.framework)==null?void 0:h.backend),1)]),t("div",Y,[Z,g(m,null,{default:n(()=>[(s(!0),v(E,null,H(e==null?void 0:e.license,(o,I)=>(s(),r(C,{key:I,underline:"",theme:"primary",href:o.url,target:"_blank",class:"ml-3",type:"primary",size:"small"},{default:n(()=>[c("《"+a(o.name)+"》",1)]),_:2},1032,["href"]))),128))]),_:1})])]))]}),_:1})}}});const ce=Q($,[["__scopeId","data-v-5803d8c6"]]);export{ce as default};
