medicine/Medicine-Server/admin/assets/index-83d00502.js

154 lines
30 KiB
JavaScript

import{c as Ee,bb as je,bc as oe,b9 as re,b as X,x as N,e as ie,a7 as Be,g as I,d as ne,u as xe,k as ue,I as we,j as q,bd as Ae,ba as W,n as $e,r as J,h as H,q as Fe,a1 as We,s as De,be as Me,a4 as Ve,N as Ne,bf as Ye,bg as Ue,bh as Ge,bi as Ke,A as qe,bj as ke,bk as Ie,D as Ce,bl as Je,i as ye,bm as Ze,o as pe,w as Te,m as Qe,bn as Xe,E as et,bo as tt,aP as ot,a9 as rt,ae as Y,ah as de,ai as K,ao as G,ag as z,ap as Se,am as Q,aj as ve,af as le,ar as Oe,G as _e,as as Pe,b3 as Re,at as nt,au as st,bp as ze,bq as at,br as it,an as lt,av as ct,aC as dt,a$ as ut,bs as ft}from"./index-f507b509.js";import{i as me,o as ht}from"./utils-789cdfe0.js";import{t as vt,N as gt}from"./Tag-fab96183.js";import{_ as Le,a as He}from"./Grid-9efe8f4f.js";import{_ as bt}from"./_plugin-vue_export-helper-c27b6911.js";import{N as pt}from"./Space-7d7b52c6.js";import"./next-frame-once-7035a838.js";const mt=r=>{const{lineHeight:n,borderRadius:l,fontWeightStrong:g,baseColor:p,dividerColor:d,actionColor:y,textColor1:i,textColor2:h,closeColorHover:C,closeColorPressed:w,closeIconColor:m,closeIconColorHover:x,closeIconColorPressed:b,infoColor:v,successColor:O,warningColor:D,errorColor:R,fontSize:E}=r;return Object.assign(Object.assign({},je),{fontSize:E,lineHeight:n,titleFontWeight:g,borderRadius:l,border:`1px solid ${d}`,color:y,titleTextColor:i,iconColor:h,contentTextColor:h,closeBorderRadius:l,closeColorHover:C,closeColorPressed:w,closeIconColor:m,closeIconColorHover:x,closeIconColorPressed:b,borderInfo:`1px solid ${oe(p,re(v,{alpha:.25}))}`,colorInfo:oe(p,re(v,{alpha:.08})),titleTextColorInfo:i,iconColorInfo:v,contentTextColorInfo:h,closeColorHoverInfo:C,closeColorPressedInfo:w,closeIconColorInfo:m,closeIconColorHoverInfo:x,closeIconColorPressedInfo:b,borderSuccess:`1px solid ${oe(p,re(O,{alpha:.25}))}`,colorSuccess:oe(p,re(O,{alpha:.08})),titleTextColorSuccess:i,iconColorSuccess:O,contentTextColorSuccess:h,closeColorHoverSuccess:C,closeColorPressedSuccess:w,closeIconColorSuccess:m,closeIconColorHoverSuccess:x,closeIconColorPressedSuccess:b,borderWarning:`1px solid ${oe(p,re(D,{alpha:.33}))}`,colorWarning:oe(p,re(D,{alpha:.08})),titleTextColorWarning:i,iconColorWarning:D,contentTextColorWarning:h,closeColorHoverWarning:C,closeColorPressedWarning:w,closeIconColorWarning:m,closeIconColorHoverWarning:x,closeIconColorPressedWarning:b,borderError:`1px solid ${oe(p,re(R,{alpha:.25}))}`,colorError:oe(p,re(R,{alpha:.08})),titleTextColorError:i,iconColorError:R,contentTextColorError:h,closeColorHoverError:C,closeColorPressedError:w,closeIconColorError:m,closeIconColorHoverError:x,closeIconColorPressedError:b})},_t={name:"Alert",common:Ee,self:mt},xt=_t,$t=X("alert",`
line-height: var(--n-line-height);
border-radius: var(--n-border-radius);
position: relative;
transition: background-color .3s var(--n-bezier);
background-color: var(--n-color);
text-align: start;
word-break: break-word;
`,[N("border",`
border-radius: inherit;
position: absolute;
left: 0;
right: 0;
top: 0;
bottom: 0;
transition: border-color .3s var(--n-bezier);
border: var(--n-border);
pointer-events: none;
`),ie("closable",[X("alert-body",[N("title",`
padding-right: 24px;
`)])]),N("icon",{color:"var(--n-icon-color)"}),X("alert-body",{padding:"var(--n-padding)"},[N("title",{color:"var(--n-title-text-color)"}),N("content",{color:"var(--n-content-text-color)"})]),Be({originalTransition:"transform .3s var(--n-bezier)",enterToProps:{transform:"scale(1)"},leaveToProps:{transform:"scale(0.9)"}}),N("icon",`
position: absolute;
left: 0;
top: 0;
align-items: center;
justify-content: center;
display: flex;
width: var(--n-icon-size);
height: var(--n-icon-size);
font-size: var(--n-icon-size);
margin: var(--n-icon-margin);
`),N("close",`
transition:
color .3s var(--n-bezier),
background-color .3s var(--n-bezier);
position: absolute;
right: 0;
top: 0;
margin: var(--n-close-margin);
`),ie("show-icon",[X("alert-body",{paddingLeft:"calc(var(--n-icon-margin-left) + var(--n-icon-size) + var(--n-icon-margin-right))"})]),ie("right-adjust",[X("alert-body",{paddingRight:"calc(var(--n-close-size) + var(--n-padding) + 2px)"})]),X("alert-body",`
border-radius: var(--n-border-radius);
transition: border-color .3s var(--n-bezier);
`,[N("title",`
transition: color .3s var(--n-bezier);
font-size: 16px;
line-height: 19px;
font-weight: var(--n-title-font-weight);
`,[I("& +",[N("content",{marginTop:"9px"})])]),N("content",{transition:"color .3s var(--n-bezier)",fontSize:"var(--n-font-size)"})]),N("icon",{transition:"color .3s var(--n-bezier)"})]),yt=Object.assign(Object.assign({},ue.props),{title:String,showIcon:{type:Boolean,default:!0},type:{type:String,default:"default"},bordered:{type:Boolean,default:!0},closable:Boolean,onClose:Function,onAfterLeave:Function,onAfterHide:Function}),Ct=ne({name:"Alert",inheritAttrs:!1,props:yt,setup(r){const{mergedClsPrefixRef:n,mergedBorderedRef:l,inlineThemeDisabled:g,mergedRtlRef:p}=xe(r),d=ue("Alert","-alert",$t,xt,r,n),y=we("Alert",p,n),i=q(()=>{const{common:{cubicBezierEaseInOut:b},self:v}=d.value,{fontSize:O,borderRadius:D,titleFontWeight:R,lineHeight:E,iconSize:c,iconMargin:$,iconMarginRtl:T,closeIconSize:S,closeBorderRadius:B,closeSize:Z,closeMargin:V,closeMarginRtl:M,padding:_}=v,{type:L}=r,{left:ee,right:a}=Ae($);return{"--n-bezier":b,"--n-color":v[W("color",L)],"--n-close-icon-size":S,"--n-close-border-radius":B,"--n-close-color-hover":v[W("closeColorHover",L)],"--n-close-color-pressed":v[W("closeColorPressed",L)],"--n-close-icon-color":v[W("closeIconColor",L)],"--n-close-icon-color-hover":v[W("closeIconColorHover",L)],"--n-close-icon-color-pressed":v[W("closeIconColorPressed",L)],"--n-icon-color":v[W("iconColor",L)],"--n-border":v[W("border",L)],"--n-title-text-color":v[W("titleTextColor",L)],"--n-content-text-color":v[W("contentTextColor",L)],"--n-line-height":E,"--n-border-radius":D,"--n-font-size":O,"--n-title-font-weight":R,"--n-icon-size":c,"--n-icon-margin":$,"--n-icon-margin-rtl":T,"--n-close-size":Z,"--n-close-margin":V,"--n-close-margin-rtl":M,"--n-padding":_,"--n-icon-margin-left":ee,"--n-icon-margin-right":a}}),h=g?$e("alert",q(()=>r.type[0]),i,r):void 0,C=J(!0),w=()=>{const{onAfterLeave:b,onAfterHide:v}=r;b&&b(),v&&v()};return{rtlEnabled:y,mergedClsPrefix:n,mergedBordered:l,visible:C,handleCloseClick:()=>{var b;Promise.resolve((b=r.onClose)===null||b===void 0?void 0:b.call(r)).then(v=>{v!==!1&&(C.value=!1)})},handleAfterLeave:()=>{w()},mergedTheme:d,cssVars:g?void 0:i,themeClass:h==null?void 0:h.themeClass,onRender:h==null?void 0:h.onRender}},render(){var r;return(r=this.onRender)===null||r===void 0||r.call(this),H(Ve,{onAfterLeave:this.handleAfterLeave},{default:()=>{const{mergedClsPrefix:n,$slots:l}=this,g={class:[`${n}-alert`,this.themeClass,this.closable&&`${n}-alert--closable`,this.showIcon&&`${n}-alert--show-icon`,!this.title&&this.closable&&`${n}-alert--right-adjust`,this.rtlEnabled&&`${n}-alert--rtl`],style:this.cssVars,role:"alert"};return this.visible?H("div",Object.assign({},Fe(this.$attrs,g)),this.closable&&H(We,{clsPrefix:n,class:`${n}-alert__close`,onClick:this.handleCloseClick}),this.bordered&&H("div",{class:`${n}-alert__border`}),this.showIcon&&H("div",{class:`${n}-alert__icon`,"aria-hidden":"true"},De(l.icon,()=>[H(Ne,{clsPrefix:n},{default:()=>{switch(this.type){case"success":return H(Ke,null);case"info":return H(Ge,null);case"warning":return H(Ue,null);case"error":return H(Ye,null);default:return null}}})])),H("div",{class:[`${n}-alert-body`,this.mergedBordered&&`${n}-alert-body--bordered`]},Me(l.header,p=>{const d=p||this.title;return d?H("div",{class:`${n}-alert-body__title`},d):null}),l.default&&H("div",{class:`${n}-alert-body__content`},l))):null}})}}),St=qe("n-avatar-group"),zt=X("avatar",`
width: var(--n-merged-size);
height: var(--n-merged-size);
color: #FFF;
font-size: var(--n-font-size);
display: inline-flex;
position: relative;
overflow: hidden;
text-align: center;
border: var(--n-border);
border-radius: var(--n-border-radius);
--n-merged-color: var(--n-color);
background-color: var(--n-merged-color);
transition:
border-color .3s var(--n-bezier),
background-color .3s var(--n-bezier),
color .3s var(--n-bezier);
`,[ke(I("&","--n-merged-color: var(--n-color-modal);")),Ie(I("&","--n-merged-color: var(--n-color-popover);")),I("img",`
width: 100%;
height: 100%;
`),N("text",`
white-space: nowrap;
display: inline-block;
position: absolute;
left: 50%;
top: 50%;
`),X("icon",`
vertical-align: bottom;
font-size: calc(var(--n-merged-size) - 6px);
`),N("text","line-height: 1.25")]),wt=Object.assign(Object.assign({},ue.props),{size:[String,Number],src:String,circle:{type:Boolean,default:void 0},objectFit:String,round:{type:Boolean,default:void 0},bordered:{type:Boolean,default:void 0},onError:Function,fallbackSrc:String,intersectionObserverOptions:Object,lazy:Boolean,onLoad:Function,renderPlaceholder:Function,renderFallback:Function,imgProps:Object,color:String}),Dt=ne({name:"Avatar",props:wt,setup(r){const{mergedClsPrefixRef:n,inlineThemeDisabled:l}=xe(r),g=J(!1);let p=null;const d=J(null),y=J(null),i=()=>{const{value:c}=d;if(c&&(p===null||p!==c.innerHTML)){p=c.innerHTML;const{value:$}=y;if($){const{offsetWidth:T,offsetHeight:S}=$,{offsetWidth:B,offsetHeight:Z}=c,V=.9,M=Math.min(T/B*V,S/Z*V,1);c.style.transform=`translateX(-50%) translateY(-50%) scale(${M})`}}},h=Ce(St,null),C=q(()=>{const{size:c}=r;if(c)return c;const{size:$}=h||{};return $||"medium"}),w=ue("Avatar","-avatar",zt,Je,r,n),m=Ce(vt,null),x=q(()=>{if(h)return!0;const{round:c,circle:$}=r;return c!==void 0||$!==void 0?c||$:m?m.roundRef.value:!1}),b=q(()=>h?!0:r.bordered||!1),v=c=>{var $;if(!R.value)return;g.value=!0;const{onError:T,imgProps:S}=r;($=S==null?void 0:S.onError)===null||$===void 0||$.call(S,c),T&&T(c)};ye(()=>r.src,()=>g.value=!1);const O=q(()=>{const c=C.value,$=x.value,T=b.value,{color:S}=r,{self:{borderRadius:B,fontSize:Z,color:V,border:M,colorModal:_,colorPopover:L},common:{cubicBezierEaseInOut:ee}}=w.value;let a;return typeof c=="number"?a=`${c}px`:a=w.value.self[W("height",c)],{"--n-font-size":Z,"--n-border":T?M:"none","--n-border-radius":$?"50%":B,"--n-color":S||V,"--n-color-modal":S||_,"--n-color-popover":S||L,"--n-bezier":ee,"--n-merged-size":`var(--n-avatar-size-override, ${a})`}}),D=l?$e("avatar",q(()=>{const c=C.value,$=x.value,T=b.value,{color:S}=r;let B="";return c&&(typeof c=="number"?B+=`a${c}`:B+=c[0]),$&&(B+="b"),T&&(B+="c"),S&&(B+=Ze(S)),B}),O,r):void 0,R=J(!r.lazy);pe(()=>{if(me)return;let c;const $=Te(()=>{c==null||c(),c=void 0,r.lazy&&(c=ht(y.value,r.intersectionObserverOptions,R))});Qe(()=>{$(),c==null||c()})});const E=J(!r.lazy);return{textRef:d,selfRef:y,mergedRoundRef:x,mergedClsPrefix:n,fitTextTransform:i,cssVars:l?void 0:O,themeClass:D==null?void 0:D.themeClass,onRender:D==null?void 0:D.onRender,hasLoadError:g,handleError:v,shouldStartLoading:R,loaded:E,mergedOnLoad:c=>{var $;const{onLoad:T,imgProps:S}=r;T==null||T(c),($=S==null?void 0:S.onLoad)===null||$===void 0||$.call(S,c),E.value=!0}}},render(){var r,n;const{$slots:l,src:g,mergedClsPrefix:p,lazy:d,onRender:y,mergedOnLoad:i,shouldStartLoading:h,loaded:C,hasLoadError:w}=this;y==null||y();let m;const x=!C&&!w&&(this.renderPlaceholder?this.renderPlaceholder():(n=(r=this.$slots).placeholder)===null||n===void 0?void 0:n.call(r));return this.hasLoadError?m=this.renderFallback?this.renderFallback():De(l.fallback,()=>[H("img",{src:this.fallbackSrc,style:{objectFit:this.objectFit}})]):m=Me(l.default,b=>{if(b)return H(Xe,{onResize:this.fitTextTransform},{default:()=>H("span",{ref:"textRef",class:`${p}-avatar__text`},b)});if(g){const{imgProps:v}=this;return H("img",Object.assign(Object.assign({},v),{loading:me&&!this.intersectionObserverOptions&&d?"lazy":"eager",src:me||h||C?g:void 0,onLoad:i,"data-image-src":g,onError:this.handleError,style:[v==null?void 0:v.style,{objectFit:this.objectFit},x?{height:"0",width:"0",visibility:"hidden",position:"absolute"}:""]}))}}),H("span",{ref:"selfRef",class:[`${p}-avatar`,this.themeClass],style:this.cssVars},m,d&&x)}}),Mt=I([X("table",`
font-size: var(--n-font-size);
font-variant-numeric: tabular-nums;
line-height: var(--n-line-height);
width: 100%;
border-radius: var(--n-border-radius) var(--n-border-radius) 0 0;
text-align: left;
border-collapse: separate;
border-spacing: 0;
overflow: hidden;
background-color: var(--n-td-color);
border-color: var(--n-merged-border-color);
transition:
background-color .3s var(--n-bezier),
border-color .3s var(--n-bezier),
color .3s var(--n-bezier);
--n-merged-border-color: var(--n-border-color);
`,[I("th",`
white-space: nowrap;
transition:
background-color .3s var(--n-bezier),
border-color .3s var(--n-bezier),
color .3s var(--n-bezier);
text-align: inherit;
padding: var(--n-th-padding);
vertical-align: inherit;
text-transform: none;
border: 0px solid var(--n-merged-border-color);
font-weight: var(--n-th-font-weight);
color: var(--n-th-text-color);
background-color: var(--n-th-color);
border-bottom: 1px solid var(--n-merged-border-color);
border-right: 1px solid var(--n-merged-border-color);
`,[I("&:last-child",`
border-right: 0px solid var(--n-merged-border-color);
`)]),I("td",`
transition:
background-color .3s var(--n-bezier),
border-color .3s var(--n-bezier),
color .3s var(--n-bezier);
padding: var(--n-td-padding);
color: var(--n-td-text-color);
background-color: var(--n-td-color);
border: 0px solid var(--n-merged-border-color);
border-right: 1px solid var(--n-merged-border-color);
border-bottom: 1px solid var(--n-merged-border-color);
`,[I("&:last-child",`
border-right: 0px solid var(--n-merged-border-color);
`)]),ie("bordered",`
border: 1px solid var(--n-merged-border-color);
border-radius: var(--n-border-radius);
`,[I("tr",[I("&:last-child",[I("td",`
border-bottom: 0 solid var(--n-merged-border-color);
`)])])]),ie("single-line",[I("th",`
border-right: 0px solid var(--n-merged-border-color);
`),I("td",`
border-right: 0px solid var(--n-merged-border-color);
`)]),ie("single-column",[I("tr",[I("&:not(:last-child)",[I("td",`
border-bottom: 0px solid var(--n-merged-border-color);
`)])])]),ie("striped",[I("tr:nth-of-type(even)",[I("td","background-color: var(--n-td-color-striped)")])]),et("bottom-bordered",[I("tr",[I("&:last-child",[I("td",`
border-bottom: 0px solid var(--n-merged-border-color);
`)])])])]),ke(X("table",`
background-color: var(--n-td-color-modal);
--n-merged-border-color: var(--n-border-color-modal);
`,[I("th",`
background-color: var(--n-th-color-modal);
`),I("td",`
background-color: var(--n-td-color-modal);
`)])),Ie(X("table",`
background-color: var(--n-td-color-popover);
--n-merged-border-color: var(--n-border-color-popover);
`,[I("th",`
background-color: var(--n-th-color-popover);
`),I("td",`
background-color: var(--n-td-color-popover);
`)]))]),kt=Object.assign(Object.assign({},ue.props),{bordered:{type:Boolean,default:!0},bottomBordered:{type:Boolean,default:!0},singleLine:{type:Boolean,default:!0},striped:Boolean,singleColumn:Boolean,size:{type:String,default:"medium"}}),It=ne({name:"Table",props:kt,setup(r){const{mergedClsPrefixRef:n,inlineThemeDisabled:l,mergedRtlRef:g}=xe(r),p=ue("Table","-table",Mt,tt,r,n),d=we("Table",g,n),y=q(()=>{const{size:h}=r,{self:{borderColor:C,tdColor:w,tdColorModal:m,tdColorPopover:x,thColor:b,thColorModal:v,thColorPopover:O,thTextColor:D,tdTextColor:R,borderRadius:E,thFontWeight:c,lineHeight:$,borderColorModal:T,borderColorPopover:S,tdColorStriped:B,tdColorStripedModal:Z,tdColorStripedPopover:V,[W("fontSize",h)]:M,[W("tdPadding",h)]:_,[W("thPadding",h)]:L},common:{cubicBezierEaseInOut:ee}}=p.value;return{"--n-bezier":ee,"--n-td-color":w,"--n-td-color-modal":m,"--n-td-color-popover":x,"--n-td-text-color":R,"--n-border-color":C,"--n-border-color-modal":T,"--n-border-color-popover":S,"--n-border-radius":E,"--n-font-size":M,"--n-th-color":b,"--n-th-color-modal":v,"--n-th-color-popover":O,"--n-th-font-weight":c,"--n-th-text-color":D,"--n-line-height":$,"--n-td-padding":_,"--n-th-padding":L,"--n-td-color-striped":B,"--n-td-color-striped-modal":Z,"--n-td-color-striped-popover":V}}),i=l?$e("table",q(()=>r.size[0]),y,r):void 0;return{rtlEnabled:d,mergedClsPrefix:n,cssVars:l?void 0:y,themeClass:i==null?void 0:i.themeClass,onRender:i==null?void 0:i.onRender}},render(){var r;const{mergedClsPrefix:n}=this;return(r=this.onRender)===null||r===void 0||r.call(this),H("table",{class:[`${n}-table`,this.themeClass,{[`${n}-table--rtl`]:this.rtlEnabled,[`${n}-table--bottom-bordered`]:this.bottomBordered,[`${n}-table--bordered`]:this.bordered,[`${n}-table--single-line`]:this.singleLine,[`${n}-table--single-column`]:this.singleColumn,[`${n}-table--striped`]:this.striped}],style:this.cssVars},this.$slots)}}),ge=r=>(nt("data-v-894bf971"),r=r(),st(),r),Tt={class:"w-full h-330px py-12px"},Ot={class:"flex items-center mt-8"},Pt={class:"ml-4"},Rt={class:"text-16px font-bold"},Lt={class:"text-14px text-gray-500 mt-1"},Ht=ge(()=>z("span",{class:"ml-2"},"欢迎回来!",-1)),Et={class:"ver-list"},jt={class:"flex items-center flex-wrap"},Bt=ge(()=>z("div",{class:"label"},"NODE版本:",-1)),At={class:"value"},Ft={class:"flex items-center flex-wrap"},Wt=ge(()=>z("div",{class:"label"},"系统域名:",-1)),Vt={class:"value"},Nt={class:"flex items-center flex-wrap"},Yt=ge(()=>z("div",{class:"label"},"浏览器标识:",-1)),Ut={class:"value"},Gt=ge(()=>z("thead",null,[z("tr",null,[z("th",null,"依赖"),z("th",null,"版本")])],-1)),Kt=ne({name:"DashboardAnalysisTopCard",__name:"index",props:{configData:{type:Object,default:()=>({nodeVersion:"",headers:{},packageData:{}})},dependenciesList:{type:Object,default:()=>[]}},setup(r){const l=ot().userInfo;function g(){const i=new Date().getHours();return i>=0&&i<6?"深夜好,早点休息吧":i>=6&&i<12?"早上好,美好的一天开始了!":i>=12&&i<14?"中午好,可以休息一会来一杯咖啡":i>=14&&i<18?"下午好,继续努力!":i>=18&&i<24?"晚上好,辛苦了,记得早点休息哦!":"你好,祝你有美好的一天!"}const p=rt(),d=q(()=>{const i=p.$state.fileUrl+"/public/avatar.svg";return l.avatar||i});return(y,i)=>{const h=Ct,C=Dt,w=gt,m=Re,x=Le,b=It,v=He;return Y(),de(v,{"x-gap":16,"y-gap":16,"item-responsive":!0},{default:K(()=>[G(x,{span:"0:24 640:24 1024:16"},{default:K(()=>[G(m,{bordered:!1,class:"rounded-8px shadow-sm"},{default:K(()=>{var O,D,R,E;return[z("div",Tt,[G(h,{type:"info",title:g()},null,8,["title"]),z("div",Ot,[G(C,{src:d.value,size:50,style:{backgroundColor:"#fff"}},null,8,["src"]),z("div",Pt,[z("p",Rt,[z("span",null,[Se(Q(ve(l).username)+" ",1),G(w,{type:"primary",class:"ml-2",size:"small"},{default:K(()=>[Se(" 超级管理员 ")]),_:1})])]),z("p",Lt,[z("span",null," 用户昵称: "+Q(ve(l).nickname),1),Ht])])]),z("ul",Et,[z("li",jt,[Bt,z("div",At,Q((O=r.configData)==null?void 0:O.nodeVersion),1)]),z("li",Ft,[Wt,z("div",Vt,Q((R=(D=r.configData)==null?void 0:D.headers)==null?void 0:R.host),1)]),z("li",Nt,[Yt,z("div",Ut,Q((E=r.configData)==null?void 0:E.headers["user-agent"]),1)])])])]}),_:1})]),_:1}),G(x,{span:"0:24 640:24 1024:8"},{default:K(()=>[G(m,{bordered:!1,class:"rounded-8px shadow-sm"},{default:K(()=>[G(b,{bordered:!1,"single-line":!1},{default:K(()=>[Gt,z("tbody",null,[(Y(!0),le(_e,null,Oe(r.dependenciesList,(O,D)=>(Y(),le(_e,null,[D<=5?(Y(),le("tr",{key:D},[z("td",null,Q(O.name),1),z("td",null,Q(O.version),1)])):Pe("",!0)],64))),256))])]),_:1})]),_:1})]),_:1})]),_:1})}}});const qt=bt(Kt,[["__scopeId","data-v-894bf971"]]),Jt=ne({name:"CountTo",__name:"count-to",props:{startValue:{default:0},endValue:{default:999},duration:{default:1500},autoplay:{type:Boolean,default:!0},decimals:{default:0},prefix:{default:""},suffix:{default:""},separator:{default:","},decimal:{default:"."},useEasing:{type:Boolean,default:!0},transition:{default:"linear"}},emits:["on-started","on-finished"],setup(r,{emit:n}){const l=r,g=J(l.startValue);let p=ze(g);const d=q(()=>C(p.value)),y=J(!1);function i(){p=ze(g,{disabled:y,duration:l.duration,onStarted:()=>n("on-started"),onFinished:()=>n("on-finished"),...l.useEasing?{transition:it[l.transition]}:{}})}function h(){i(),g.value=l.endValue}function C(w){if(w!==0&&!w)return"";const{decimals:m,decimal:x,separator:b,suffix:v,prefix:O}=l;let D=Number(w).toFixed(m);D=String(D);const R=D.split(".");let E=R[0];const c=R.length>1?x+R[1]:"",$=/(\d+)(\d{3})/;if(b&&!at(b))for(;$.test(E);)E=E.replace($,`$1${b}$2`);return O+E+c+v}return ye([()=>l.startValue,()=>l.endValue],()=>{l.autoplay&&h()}),Te(()=>{g.value=l.startValue}),pe(()=>{l.autoplay&&h()}),(w,m)=>(Y(),le("span",null,Q(d.value),1))}}),Zt=ne({__name:"gradient-bg",props:{startColor:{default:"#56cdf3"},endColor:{default:"#719de3"}},setup(r){const n=r,l=q(()=>`linear-gradient(to bottom right, ${n.startColor}, ${n.endColor})`);return(g,p)=>(Y(),le("div",{class:"p-16px rounded-8px text-white",style:ct({backgroundImage:l.value})},[lt(g.$slots,"default")],4))}}),Qt={class:"text-16px"},Xt={class:"flex justify-between items-center pt-12px"},eo={key:1,class:"text-30px text-white dark:text-dark"},to={class:"ml-1"},oo=ne({name:"DashboardAnalysisDataCard",__name:"index",props:{totalData:{type:Object,default:()=>({userTotal:0,categoryTotal:0,articleTotal:0,fileSize:0})}},setup(r){const n=r,l=J([{id:"user",title:"总用户数量",value:n.totalData.userTotal,unit:"位",colors:["#60a5fa"],icon:"ant-design:user-switch-outlined"},{id:"category",title:"总分类数量",value:n.totalData.categoryTotal,unit:"条",colors:["#2dd4bf"],icon:"ant-design:appstore-outlined"},{id:"article",title:"总商品数量",value:n.totalData.goodsTotal,unit:"件",colors:["#34d399"],icon:"ant-design:snippets-outlined"},{id:"file",title:"总附件大小",value:0,unit:"MB",colors:["#4ade80"],icon:"ant-design:folder-open-twotone"}]);function g(d){return d<1024?[d,"B"]:d<1024*1024?[d/1024,"KB"]:d<1024*1024*1024?[d/1024/1024,"MB"]:d<1024*1024*1024*1024?[d/1024/1024/1024,"GB"]:[d/1024/1024/1024/1024,"TB"]}function p(){const d=g(n.totalData.fileSize);l.value[3].value=d[0].toFixed(2),l.value[3].unit=d[1]}return pe(()=>{p()}),ye(()=>n.totalData,()=>{p()},{immediate:!0}),(d,y)=>{const i=dt,h=Jt,C=Le,w=He,m=Re;return Y(),de(m,{bordered:!1,class:"h-full rounded-8px shadow-sm"},{default:K(()=>[G(w,{cols:"s:1 m:2 l:4",responsive:"screen","x-gap":16,"y-gap":16},{default:K(()=>[(Y(!0),le(_e,null,Oe(l.value,x=>(Y(),de(C,{key:x.id},{default:K(()=>[G(ve(Zt),{class:"h-100px","start-color":x.colors[0],"end-color":x.colors[0]},{default:K(()=>[z("h3",Qt,Q(x.title),1),z("div",Xt,[G(i,{icon:x.icon,class:"text-32px"},null,8,["icon"]),z("div",null,[x.id!=="file"?(Y(),de(h,{key:0,"start-value":1,"end-value":x.value,class:"text-30px text-white dark:text-dark"},null,8,["end-value"])):(Y(),le("span",eo,Q(x.value),1)),z("span",to,Q(x.unit),1)])])]),_:2},1032,["start-color","end-color"])]),_:2},1024))),128))]),_:1})]),_:1})}}});var ro={exports:{}};(function(r,n){(function(l,g){r.exports=g()})(ut,function(){var l=1e3,g=6e4,p=36e5,d="millisecond",y="second",i="minute",h="hour",C="day",w="week",m="month",x="quarter",b="year",v="date",O="Invalid Date",D=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,R=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,E={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(a){var o=["th","st","nd","rd"],e=a%100;return"["+a+(o[(e-20)%10]||o[e]||o[0])+"]"}},c=function(a,o,e){var s=String(a);return!s||s.length>=o?a:""+Array(o+1-s.length).join(e)+a},$={s:c,z:function(a){var o=-a.utcOffset(),e=Math.abs(o),s=Math.floor(e/60),t=e%60;return(o<=0?"+":"-")+c(s,2,"0")+":"+c(t,2,"0")},m:function a(o,e){if(o.date()<e.date())return-a(e,o);var s=12*(e.year()-o.year())+(e.month()-o.month()),t=o.clone().add(s,m),u=e-t<0,f=o.clone().add(s+(u?-1:1),m);return+(-(s+(e-t)/(u?t-f:f-t))||0)},a:function(a){return a<0?Math.ceil(a)||0:Math.floor(a)},p:function(a){return{M:m,y:b,w,d:C,D:v,h,m:i,s:y,ms:d,Q:x}[a]||String(a||"").toLowerCase().replace(/s$/,"")},u:function(a){return a===void 0}},T="en",S={};S[T]=E;var B="$isDayjsObject",Z=function(a){return a instanceof L||!(!a||!a[B])},V=function a(o,e,s){var t;if(!o)return T;if(typeof o=="string"){var u=o.toLowerCase();S[u]&&(t=u),e&&(S[u]=e,t=u);var f=o.split("-");if(!t&&f.length>1)return a(f[0])}else{var k=o.name;S[k]=o,t=k}return!s&&t&&(T=t),t||!s&&T},M=function(a,o){if(Z(a))return a.clone();var e=typeof o=="object"?o:{};return e.date=a,e.args=arguments,new L(e)},_=$;_.l=V,_.i=Z,_.w=function(a,o){return M(a,{locale:o.$L,utc:o.$u,x:o.$x,$offset:o.$offset})};var L=function(){function a(e){this.$L=V(e.locale,null,!0),this.parse(e),this.$x=this.$x||e.x||{},this[B]=!0}var o=a.prototype;return o.parse=function(e){this.$d=function(s){var t=s.date,u=s.utc;if(t===null)return new Date(NaN);if(_.u(t))return new Date;if(t instanceof Date)return new Date(t);if(typeof t=="string"&&!/Z$/i.test(t)){var f=t.match(D);if(f){var k=f[2]-1||0,P=(f[7]||"0").substring(0,3);return u?new Date(Date.UTC(f[1],k,f[3]||1,f[4]||0,f[5]||0,f[6]||0,P)):new Date(f[1],k,f[3]||1,f[4]||0,f[5]||0,f[6]||0,P)}}return new Date(t)}(e),this.init()},o.init=function(){var e=this.$d;this.$y=e.getFullYear(),this.$M=e.getMonth(),this.$D=e.getDate(),this.$W=e.getDay(),this.$H=e.getHours(),this.$m=e.getMinutes(),this.$s=e.getSeconds(),this.$ms=e.getMilliseconds()},o.$utils=function(){return _},o.isValid=function(){return this.$d.toString()!==O},o.isSame=function(e,s){var t=M(e);return this.startOf(s)<=t&&t<=this.endOf(s)},o.isAfter=function(e,s){return M(e)<this.startOf(s)},o.isBefore=function(e,s){return this.endOf(s)<M(e)},o.$g=function(e,s,t){return _.u(e)?this[s]:this.set(t,e)},o.unix=function(){return Math.floor(this.valueOf()/1e3)},o.valueOf=function(){return this.$d.getTime()},o.startOf=function(e,s){var t=this,u=!!_.u(s)||s,f=_.p(e),k=function(ae,F){var te=_.w(t.$u?Date.UTC(t.$y,F,ae):new Date(t.$y,F,ae),t);return u?te:te.endOf(C)},P=function(ae,F){return _.w(t.toDate()[ae].apply(t.toDate("s"),(u?[0,0,0,0]:[23,59,59,999]).slice(F)),t)},j=this.$W,A=this.$M,U=this.$D,ce="set"+(this.$u?"UTC":"");switch(f){case b:return u?k(1,0):k(31,11);case m:return u?k(1,A):k(0,A+1);case w:var se=this.$locale().weekStart||0,fe=(j<se?j+7:j)-se;return k(u?U-fe:U+(6-fe),A);case C:case v:return P(ce+"Hours",0);case h:return P(ce+"Minutes",1);case i:return P(ce+"Seconds",2);case y:return P(ce+"Milliseconds",3);default:return this.clone()}},o.endOf=function(e){return this.startOf(e,!1)},o.$set=function(e,s){var t,u=_.p(e),f="set"+(this.$u?"UTC":""),k=(t={},t[C]=f+"Date",t[v]=f+"Date",t[m]=f+"Month",t[b]=f+"FullYear",t[h]=f+"Hours",t[i]=f+"Minutes",t[y]=f+"Seconds",t[d]=f+"Milliseconds",t)[u],P=u===C?this.$D+(s-this.$W):s;if(u===m||u===b){var j=this.clone().set(v,1);j.$d[k](P),j.init(),this.$d=j.set(v,Math.min(this.$D,j.daysInMonth())).$d}else k&&this.$d[k](P);return this.init(),this},o.set=function(e,s){return this.clone().$set(e,s)},o.get=function(e){return this[_.p(e)]()},o.add=function(e,s){var t,u=this;e=Number(e);var f=_.p(s),k=function(A){var U=M(u);return _.w(U.date(U.date()+Math.round(A*e)),u)};if(f===m)return this.set(m,this.$M+e);if(f===b)return this.set(b,this.$y+e);if(f===C)return k(1);if(f===w)return k(7);var P=(t={},t[i]=g,t[h]=p,t[y]=l,t)[f]||1,j=this.$d.getTime()+e*P;return _.w(j,this)},o.subtract=function(e,s){return this.add(-1*e,s)},o.format=function(e){var s=this,t=this.$locale();if(!this.isValid())return t.invalidDate||O;var u=e||"YYYY-MM-DDTHH:mm:ssZ",f=_.z(this),k=this.$H,P=this.$m,j=this.$M,A=t.weekdays,U=t.months,ce=t.meridiem,se=function(F,te,he,be){return F&&(F[te]||F(s,u))||he[te].slice(0,be)},fe=function(F){return _.s(k%12||12,F,"0")},ae=ce||function(F,te,he){var be=F<12?"AM":"PM";return he?be.toLowerCase():be};return u.replace(R,function(F,te){return te||function(he){switch(he){case"YY":return String(s.$y).slice(-2);case"YYYY":return _.s(s.$y,4,"0");case"M":return j+1;case"MM":return _.s(j+1,2,"0");case"MMM":return se(t.monthsShort,j,U,3);case"MMMM":return se(U,j);case"D":return s.$D;case"DD":return _.s(s.$D,2,"0");case"d":return String(s.$W);case"dd":return se(t.weekdaysMin,s.$W,A,2);case"ddd":return se(t.weekdaysShort,s.$W,A,3);case"dddd":return A[s.$W];case"H":return String(k);case"HH":return _.s(k,2,"0");case"h":return fe(1);case"hh":return fe(2);case"a":return ae(k,P,!0);case"A":return ae(k,P,!1);case"m":return String(P);case"mm":return _.s(P,2,"0");case"s":return String(s.$s);case"ss":return _.s(s.$s,2,"0");case"SSS":return _.s(s.$ms,3,"0");case"Z":return f}return null}(F)||f.replace(":","")})},o.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},o.diff=function(e,s,t){var u,f=this,k=_.p(s),P=M(e),j=(P.utcOffset()-this.utcOffset())*g,A=this-P,U=function(){return _.m(f,P)};switch(k){case b:u=U()/12;break;case m:u=U();break;case x:u=U()/3;break;case w:u=(A-j)/6048e5;break;case C:u=(A-j)/864e5;break;case h:u=A/p;break;case i:u=A/g;break;case y:u=A/l;break;default:u=A}return t?u:_.a(u)},o.daysInMonth=function(){return this.endOf(m).$D},o.$locale=function(){return S[this.$L]},o.locale=function(e,s){if(!e)return this.$L;var t=this.clone(),u=V(e,s,!0);return u&&(t.$L=u),t},o.clone=function(){return _.w(this.$d,this)},o.toDate=function(){return new Date(this.valueOf())},o.toJSON=function(){return this.isValid()?this.toISOString():null},o.toISOString=function(){return this.$d.toISOString()},o.toString=function(){return this.$d.toUTCString()},a}(),ee=L.prototype;return M.prototype=ee,[["$ms",d],["$s",y],["$m",i],["$H",h],["$W",C],["$M",m],["$y",b],["$D",v]].forEach(function(a){ee[a[1]]=function(o){return this.$g(o,a[0],a[1])}}),M.extend=function(a,o){return a.$i||(a(o,L,M),a.$i=!0),M},M.locale=V,M.isDayjs=Z,M.unix=function(a){return M(1e3*a)},M.en=S[T],M.Ls=S,M.p={},M})})(ro);function no(){return ft.request({url:"/system/index",method:"GET"})}const ho=ne({__name:"index",setup(r){const n=J(!1),l=J({}),g=J([]);async function p(){n.value=!1;const d=await no(),y=d.config.packageData.dependencies,i=[];for(const h in y)i.push({name:h,version:y[h]});g.value=i,l.value=d,n.value=!0}return pe(()=>{p()}),(d,y)=>{const i=pt;return Y(),de(i,{vertical:!0,size:16},{default:K(()=>[G(ve(qt),{dependenciesList:g.value,configData:l.value.config},null,8,["dependenciesList","configData"]),n.value?(Y(),de(ve(oo),{key:0,"total-data":l.value.totalData},null,8,["total-data"])):Pe("",!0)]),_:1})}}});export{ho as default};
//# sourceMappingURL=index-83d00502.js.map