mirror of
https://github.com/pure-admin/vue-pure-admin.git
synced 2025-06-08 17:37:24 +08:00
11 lines
76 KiB
JavaScript
11 lines
76 KiB
JavaScript
import{d1 as de,aE as ln,aH as We,aI as sn,g as d,n as V,h as v,d as ae,r as Z,G as N,aV as vt,a as Ze,F as we,y as $e,al as ne,f as D,R as Ae,u as t,t as Q,K as ge,j as s,ae as Dt,_ as fe,c as x,i as oe,k as Y,a4 as lt,a1 as rn,aw as cn,U as un,E as be,d2 as dt,w as m,b3 as dn,d3 as qe,ax as Zt,ar as Pt,x as De,b7 as Ce,X as Ge,e as mt,l as ve,av as se,v as Se,d4 as _t,d5 as ot,d0 as gt,d6 as Ve,au as hn,ap as Xe,d7 as Be,aF as Ue,aG as Je,an as yt,d8 as _e,d9 as Qe,da as fn,db as nt,aZ as Ee,dc as at,dd as pn,de as Rt,T as je,b as bt,df as wt,dg as ht,dh as Lt,di as jt,dj as kt,dk as At,M as Ye,ah as vn,p as qt,m as Bt,ab as Ft,at as Nt,dl as mn,dm as _n,a2 as gn,Q as yn,aq as bn}from"./index.js";import{d as wn}from"./menu.js";import{d as kn,u as Me,a as xt,g as Ct,b as Ut,t as xn,c as Cn,e as $n,f as Sn}from"./dark.js";import{d as In}from"./set-up.js";import{d as Tn}from"./home-filled.js";import{d as Mn}from"./admin-line.js";import{d as Vn}from"./git-branch-line.js";import{u as Oe}from"./app.js";import{m as zn}from"./index63.js";import{u as Ln}from"./epTheme.js";import{u as Le}from"./hooks.js";import{d as An}from"./search.js";import{d as Fe}from"./check.js";import{e as ye}from"./mitt.js";import{d as Hn}from"./refresh-right.js";import{d as En}from"./arrow-right-s-line.js";import{b as Wt}from"./back_top.js";const On={width:24,height:24,body:'<path fill="currentColor" d="M22.001 12c0 5.522-4.477 10-10 10s-10-4.478-10-10c0-5.523 4.477-10 10-10s10 4.477 10 10Zm-16.8-1.336a1.335 1.335 0 1 0 0 2.67a1.335 1.335 0 0 0 0-2.67Zm9.533 6.069a1.334 1.334 0 1 0 1.334 2.31a1.334 1.334 0 0 0-1.334-2.31ZM8.1 12c0-1.32.656-2.485 1.659-3.19l-.977-1.636a5.813 5.813 0 0 0-2.398 3.371a1.875 1.875 0 0 1 0 2.91a5.812 5.812 0 0 0 2.398 3.371l.977-1.636A3.892 3.892 0 0 1 8.1 12ZM12 8.1a3.9 3.9 0 0 1 3.884 3.554l1.903-.028a5.781 5.781 0 0 0-1.724-3.762A1.872 1.872 0 0 1 13.55 6.41a5.829 5.829 0 0 0-4.12.39l.927 1.663A3.885 3.885 0 0 1 12 8.1Zm0 7.8c-.587 0-1.143-.13-1.643-.363l-.927 1.662a5.774 5.774 0 0 0 4.12.39a1.872 1.872 0 0 1 2.514-1.454a5.782 5.782 0 0 0 1.723-3.762l-1.903-.027A3.898 3.898 0 0 1 12 15.9Zm2.732-8.633a1.335 1.335 0 1 0 1.335-2.312a1.335 1.335 0 0 0-1.335 2.312Z"/>'},Dn={width:1024,height:1024,body:'<path fill="currentColor" d="M832 512a32 32 0 1 1 64 0v352a32 32 0 0 1-32 32H160a32 32 0 0 1-32-32V160a32 32 0 0 1 32-32h352a32 32 0 0 1 0 64H192v640h640V512z"/><path fill="currentColor" d="m469.952 554.24l52.8-7.552L847.104 222.4a32 32 0 1 0-45.248-45.248L477.44 501.44l-7.552 52.8zm422.4-422.4a96 96 0 0 1 0 135.808l-331.84 331.84a32 32 0 0 1-18.112 9.088L436.8 623.68a32 32 0 0 1-36.224-36.224l15.104-105.6a32 32 0 0 1 9.024-18.112l331.904-331.84a96 96 0 0 1 135.744 0z"/>'},Zn={width:24,height:24,body:'<path fill="currentColor" d="M20 9V5H4v4h16Zm0 2H4v8h16v-8ZM3 3h18a1 1 0 0 1 1 1v16a1 1 0 0 1-1 1H3a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1Zm2 9h3v5H5v-5Zm0-6h2v2H5V6Zm4 0h2v2H9V6Z"/>'},Pn={width:1024,height:1024,body:'<path fill="currentColor" d="M640 608h-64V416h64v192zm0 160v160a32 32 0 0 1-32 32H416a32 32 0 0 1-32-32V768h64v128h128V768h64zM384 608V416h64v192h-64zm256-352h-64V128H448v128h-64V96a32 32 0 0 1 32-32h192a32 32 0 0 1 32 32v160z"/><path fill="currentColor" d="m220.8 256l-71.232 80l71.168 80H768V256H220.8zm-14.4-64H800a32 32 0 0 1 32 32v224a32 32 0 0 1-32 32H206.4a32 32 0 0 1-23.936-10.752l-99.584-112a32 32 0 0 1 0-42.496l99.584-112A32 32 0 0 1 206.4 192zm678.784 496l-71.104 80H266.816V608h547.2l71.168 80zm-56.768-144H234.88a32 32 0 0 0-32 32v224a32 32 0 0 0 32 32h593.6a32 32 0 0 0 23.936-10.752l99.584-112a32 32 0 0 0 0-42.496l-99.584-112A32 32 0 0 0 828.48 544z"/>'},Rn={width:24,height:24,body:'<path fill="currentColor" d="M3.005 3h18a1 1 0 0 1 1 1v16a1 1 0 0 1-1 1h-18a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1Zm17 8h-16v8h16v-8Zm0-2V5h-16v4h16Zm-6 6h4v2h-4v-2Z"/>'},jn={width:24,height:24,body:'<path fill="currentColor" d="M8 4h13v2H8V4Zm-5-.5h3v3H3v-3Zm0 7h3v3H3v-3Zm0 7h3v3H3v-3ZM8 11h13v2H8v-2Zm0 7h13v2H8v-2Z"/>'},qn={width:1024,height:1024,body:'<path fill="currentColor" d="M416 896V128h192v768H416zm-288 0V448h192v448H128zm576 0V320h192v576H704z"/>'},Bn={width:24,height:24,body:'<path fill="currentColor" d="m2.859 2.878l12.57-1.796a.5.5 0 0 1 .571.495v20.847a.5.5 0 0 1-.57.495L2.858 21.123a1 1 0 0 1-.859-.99V3.868a1 1 0 0 1 .859-.99ZM4 4.735v14.53l10 1.43V3.305L4 4.735ZM17 19h3V5h-3V3h4a1 1 0 0 1 1 1v16a1 1 0 0 1-1 1h-4v-2ZM5 8h8v6H7v2H5V8Zm2 2v2h4v-2H7Z"/>'},Fn={width:24,height:24,body:'<path fill="currentColor" d="M12 22C6.477 22 2 17.523 2 12S6.477 2 12 2s10 4.477 10 10s-4.477 10-10 10Zm0-2a8 8 0 1 0 0-16a8 8 0 0 0 0 16Zm-.997-4L6.76 11.757l1.414-1.414l2.829 2.829l5.657-5.657l1.414 1.414L11.003 16Z"/>'},Nn={width:24,height:24,body:'<path fill="currentColor" d="M12 14v8H4a8 8 0 0 1 8-8Zm0-1c-3.315 0-6-2.685-6-6s2.685-6 6-6s6 2.685 6 6s-2.685 6-6 6Zm9 4h1v5h-8v-5h1v-1a3 3 0 1 1 6 0v1Zm-2 0v-1a1 1 0 1 0-2 0v1h2Z"/>'},st={width:24,height:24,body:'<path fill="currentColor" d="M3.34 17a10.017 10.017 0 0 1-.979-2.326a3 3 0 0 0 .003-5.347a9.99 9.99 0 0 1 2.5-4.337a3 3 0 0 0 4.632-2.674a9.99 9.99 0 0 1 5.007.003a3 3 0 0 0 4.632 2.671a10.056 10.056 0 0 1 2.503 4.336a3 3 0 0 0-.002 5.347a9.99 9.99 0 0 1-2.501 4.337a3 3 0 0 0-4.632 2.674a9.99 9.99 0 0 1-5.007-.002a3 3 0 0 0-4.631-2.672A10.018 10.018 0 0 1 3.339 17Zm5.66.196a4.992 4.992 0 0 1 2.25 2.77c.499.047 1 .048 1.499.002a4.993 4.993 0 0 1 2.25-2.772a4.993 4.993 0 0 1 3.526-.564c.29-.408.54-.843.748-1.298A4.993 4.993 0 0 1 18 12c0-1.26.47-2.437 1.273-3.334a8.152 8.152 0 0 0-.75-1.298A4.993 4.993 0 0 1 15 6.804a4.993 4.993 0 0 1-2.25-2.77c-.5-.047-1-.048-1.5-.001A4.993 4.993 0 0 1 9 6.804a4.993 4.993 0 0 1-3.526.564c-.29.408-.54.843-.747 1.298A4.993 4.993 0 0 1 6 12c0 1.26-.471 2.437-1.273 3.334a8.16 8.16 0 0 0 .75 1.298A4.993 4.993 0 0 1 9 17.196ZM12 15a3 3 0 1 1 0-6a3 3 0 0 1 0 6Zm0-2a1 1 0 1 0 0-2a1 1 0 0 0 0 2Z"/>'},Un={width:1024,height:1024,body:'<path fill="currentColor" d="M513.28 448a64 64 0 1 1 76.544 49.728A96 96 0 0 0 768 448h64a160 160 0 0 1-320 0h1.28zm-126.976-29.696a256 256 0 1 0 43.52-180.48A256 256 0 0 1 832 448h-64a192 192 0 0 0-381.696-29.696zm105.664 249.472L285.696 874.048a96 96 0 0 1-135.68-135.744l206.208-206.272a320 320 0 1 1 135.744 135.744zm-54.464-36.032a321.92 321.92 0 0 1-45.248-45.248L195.2 783.552a32 32 0 1 0 45.248 45.248l197.056-197.12z"/>'},Wn={width:1024,height:1024,body:'<path fill="currentColor" d="M544 768v128h192a32 32 0 1 1 0 64H288a32 32 0 1 1 0-64h192V768H192A128 128 0 0 1 64 640V256a128 128 0 0 1 128-128h640a128 128 0 0 1 128 128v384a128 128 0 0 1-128 128H544zM192 192a64 64 0 0 0-64 64v384a64 64 0 0 0 64 64h640a64 64 0 0 0 64-64V256a64 64 0 0 0-64-64H192z"/>'};de("ubuntuFill",On);de("menu",wn);de("edit",Dn);de("informationLine",kn);de("setUp",In);de("terminalWindowLine",Zn);de("guide",Pn);de("homeFilled",Tn);de("card",Rn);de("listCheck",jn);de("histogram",qn);de("ppt",Bn);de("checkboxCircleLine",Fn);de("flUser",Mn);de("role",Nn);de("setting",st);de("dept",Vn);de("lollipop",Un);de("monitor",Wn);const Gn=ln({id:"pure-setting",state:()=>({title:We().Title,fixedHeader:We().FixedHeader,hiddenSideBar:We().HiddenSideBar}),getters:{getTitle(n){return n.title},getFixedHeader(n){return n.fixedHeader},getHiddenSideBar(n){return n.hiddenSideBar}},actions:{CHANGE_SETTING({key:n,value:e}){Reflect.has(this,n)&&(this[n]=e)},changeSetting(n){this.CHANGE_SETTING(n)}}});function $t(){return Gn(sn)}const Kn={xmlns:"http://www.w3.org/2000/svg",width:"20",height:"20","aria-hidden":"true",class:"iconify iconify--ant-design",viewBox:"0 0 1024 1024"},Xn=v("path",{fill:"currentColor",d:"M864 170h-60c-4.4 0-8 3.6-8 8v518H310v-73c0-6.7-7.8-10.5-13-6.3l-141.9 112a8 8 0 0 0 0 12.6l141.9 112c5.3 4.2 13 .4 13-6.3v-75h498c35.3 0 64-28.7 64-64V178c0-4.4-3.6-8-8-8z"},null,-1),Jn=[Xn];function Yn(n,e){return d(),V("svg",Kn,Jn)}const Gt={render:Yn},Qn={width:24,height:24,body:'<path fill="currentColor" d="M5 2h14a1 1 0 0 1 1 1v19.143a.5.5 0 0 1-.766.424L12 18.03l-7.234 4.536A.5.5 0 0 1 4 22.143V3a1 1 0 0 1 1-1Zm13 2H6v15.432l6-3.761l6 3.761V4ZM8 9h8v2H8V9Z"/>'},eo=["onMouseenter"],to={class:"result-item-title"},no=ae({__name:"SearchResult",props:{value:{},options:{}},emits:["update:value","enter"],setup(n,{expose:e,emit:o}){const a=n,c=Z(),i=Z(),h=Dt(),f=N(()=>g=>({background:(g==null?void 0:g.path)===_.value?Ln().epThemeColor:"",color:g.path===_.value?"#fff":"",fontSize:g.path===_.value?"16px":"14px"})),_=N({get(){return a.value},set(g){o("update:value",g)}});async function b(g){_.value=g.path}function y(){o("enter")}function u(){i.value=window.innerHeight-window.innerHeight/10-140}vt(c,()=>{u()});function I(g){var $;const w=($=h==null?void 0:h.proxy)==null?void 0:$.$refs[`resultItemRef${g}`];if(!w)return 0;const z=w[0].offsetTop+128;return z>i.value?z-i.value:0}return Ze(()=>{u()}),e({handleScroll:I}),(g,w)=>(d(),V("div",{ref_key:"resultRef",ref:c,class:"result"},[(d(!0),V(we,null,$e(g.options,(H,z)=>{var $,G;return d(),V("div",{key:H.path,ref_for:!0,ref:"resultItemRef"+z,class:"result-item dark:bg-[#1d1d1d]",style:ne(f.value(H)),onClick:y,onMouseenter:U=>b(H)},[(d(),D(Ae(t(Le)((($=H.meta)==null?void 0:$.icon)??t(Qn))))),v("span",to,Q(t(ge)((G=H.meta)==null?void 0:G.title)),1),s(t(Gt))],44,eo)}),128))],512))}});const oo=fe(no,[["__scopeId","data-v-f0aabde6"]]),ao={width:24,height:24,body:'<path fill="currentColor" d="M13 7.828V20h-2V7.828l-5.364 5.364l-1.414-1.414L12 4l7.778 7.778l-1.414 1.414L13 7.828Z"/>'},lo={width:24,height:24,body:'<path fill="currentColor" d="m13 16.172l5.364-5.364l1.414 1.414L12 20l-7.778-7.778l1.414-1.414L11 16.172V4h2v12.172Z"/>'},so={xmlns:"http://www.w3.org/2000/svg",width:"20",height:"20","aria-hidden":"true",class:"iconify iconify--mdi",viewBox:"0 0 24 24"},ro=v("path",{fill:"currentColor",d:"M1 7h6v2H3v2h4v2H3v2h4v2H1V7m10 0h4v2h-4v2h2a2 2 0 0 1 2 2v2c0 1.11-.89 2-2 2H9v-2h4v-2h-2a2 2 0 0 1-2-2V9c0-1.1.9-2 2-2m8 0h2a2 2 0 0 1 2 2v1h-2V9h-2v6h2v-1h2v1c0 1.11-.89 2-2 2h-2a2 2 0 0 1-2-2V9c0-1.1.9-2 2-2Z"},null,-1),io=[ro];function co(n,e){return d(),V("svg",so,io)}const uo={render:co},ho={class:"search-footer text-[#333] dark:text-white"},fo={class:"search-footer-item"},po={class:"search-footer-item"},vo={class:"search-footer-item"},mo={key:0,class:"search-footer-total"},_o=ae({__name:"SearchFooter",props:{total:{default:0}},setup(n){const e=n,{device:o}=Me();return(a,c)=>{const i=x("IconifyIconOffline");return d(),V("div",ho,[v("span",fo,[s(t(Gt),{class:"icon"}),oe(" 确认 ")]),v("span",po,[s(i,{icon:t(ao),class:"icon"},null,8,["icon"]),s(i,{icon:t(lo),class:"icon"},null,8,["icon"]),oe(" 切换 ")]),v("span",vo,[s(t(uo),{class:"icon"}),oe(" 关闭 ")]),t(o)!=="mobile"&&e.total>0?(d(),V("p",mo," 共"+Q(e.total)+"项 ",1)):Y("",!0)])}}});const go=fe(_o,[["__scopeId","data-v-6f31f47e"]]),yo={width:24,height:24,body:'<path fill="currentColor" d="m18.031 16.617l4.283 4.282l-1.415 1.415l-4.282-4.283A8.96 8.96 0 0 1 11 20c-4.968 0-9-4.032-9-9s4.032-9 9-9s9 4.032 9 9a8.96 8.96 0 0 1-1.969 5.617Zm-2.006-.742A6.977 6.977 0 0 0 18 11c0-3.867-3.133-7-7-7s-7 3.133-7 7s3.133 7 7 7a6.977 6.977 0 0 0 4.875-1.975l.15-.15Z"/>'},bo={class:"search-result-container"},wo=ae({__name:"SearchModal",props:{value:{type:Boolean}},emits:["update:value"],setup(n,{emit:e}){const o=n,{device:a}=Me(),c=lt(),{locale:i}=rn(),h=Z(""),f=Z(),_=Z(),b=Z(""),y=Z(null),u=cn([]),I=dn(z,300),g=N(()=>un(be().wholeMenus)),w=N({get(){return o.value},set(A){e("update:value",A)}});function H(A){const M=[];function B(L){L.forEach(E=>{M.push(E),E.children&&B(E.children)})}return B(A),M}function z(){var M;const A=H(g.value);u.value=A.filter(B=>{var L,E;return h.value?ge((L=B.meta)==null?void 0:L.title).toLocaleLowerCase().includes(h.value.toLocaleLowerCase().trim())||i.value==="zh"&&!qe(zn(ge((E=B.meta)==null?void 0:E.title).toLocaleLowerCase(),h.value.toLocaleLowerCase().trim())):!1}),((M=u.value)==null?void 0:M.length)>0?b.value=u.value[0].path:b.value=""}function $(){w.value=!1,setTimeout(()=>{u.value=[],h.value=""},200)}function G(A){const M=_.value.handleScroll(A);f.value.setScrollTop(M)}function U(){const{length:A}=u.value;if(A===0)return;const M=u.value.findIndex(B=>B.path===b.value);M===0?(b.value=u.value[A-1].path,G(u.value.length-1)):(b.value=u.value[M-1].path,G(M-1))}function T(){const{length:A}=u.value;if(A===0)return;const M=u.value.findIndex(B=>B.path===b.value);M+1===A?b.value=u.value[0].path:b.value=u.value[M+1].path,G(M+1)}function S(){const{length:A}=u.value;A===0||b.value===""||(c.push(b.value),$())}return dt("Enter",S),dt("ArrowUp",U),dt("ArrowDown",T),(A,M)=>{const B=x("IconifyIconOffline"),L=x("el-input"),E=x("el-empty"),he=x("el-scrollbar"),K=x("el-dialog");return d(),D(K,{top:"5vh",class:"pure-search-dialog",modelValue:w.value,"onUpdate:modelValue":M[2]||(M[2]=le=>w.value=le),"show-close":!1,width:t(a)==="mobile"?"80vw":"40vw","before-close":$,style:{borderRadius:"6px"},"append-to-body":"",onOpened:M[3]||(M[3]=le=>y.value.focus()),onClosed:M[4]||(M[4]=le=>y.value.blur())},{footer:m(()=>[s(go,{total:u.value.length},null,8,["total"])]),default:m(()=>[s(L,{ref_key:"inputRef",ref:y,size:"large",modelValue:h.value,"onUpdate:modelValue":M[0]||(M[0]=le=>h.value=le),clearable:"",placeholder:"搜索菜单(中文模式下支持拼音搜索)",onInput:t(I)},{prefix:m(()=>[s(B,{icon:t(yo),class:"text-primary w-[24px] h-[24px]"},null,8,["icon"])]),_:1},8,["modelValue","onInput"]),v("div",bo,[s(he,{ref_key:"scrollbarRef",ref:f,"max-height":"calc(90vh - 140px)"},{default:m(()=>[u.value.length===0?(d(),D(E,{key:0,description:"暂无搜索结果"})):(d(),D(oo,{key:1,ref_key:"resultRef",ref:_,value:b.value,"onUpdate:value":M[1]||(M[1]=le=>b.value=le),options:u.value,onClick:S},null,8,["value","options"]))]),_:1},512)])]),_:1},8,["modelValue","width"])}}});const ko=fe(wo,[["__scopeId","data-v-21c6bb77"]]);function xo(n=!1){const e=Z(n);function o(h){e.value=h}function a(){o(!0)}function c(){o(!1)}function i(){o(!e.value)}return{bool:e,setBool:o,setTrue:a,setFalse:c,toggle:i}}const St=ae({__name:"index",setup(n){const{bool:e,toggle:o}=xo();function a(){o()}return(c,i)=>{const h=x("IconifyIconOffline");return d(),V(we,null,[v("div",{class:"search-container w-[40px] h-[48px] flex-c cursor-pointer navbar-bg-hover",onClick:a},[s(h,{icon:t(An)},null,8,["icon"])]),s(t(ko),{value:t(e),"onUpdate:value":i[0]||(i[0]=f=>Zt(e)?e.value=f:null)},null,8,["value"])],64)}}}),Ht=[{key:"1",name:"通知",list:[{avatar:"https://gw.alipayobjects.com/zos/rmsportal/ThXAXghbEsBCCSDihZxY.png",title:"你收到了 12 份新周报",datetime:"一年前",description:"",type:"1"},{avatar:"https://gw.alipayobjects.com/zos/rmsportal/OKJXDXrmkNshAMvwtvhu.png",title:"你推荐的 前端高手 已通过第三轮面试",datetime:"一年前",description:"",type:"1"},{avatar:"https://gw.alipayobjects.com/zos/rmsportal/kISTdvpyTAhtGxpovNWd.png",title:"这种模板可以区分多种通知类型",datetime:"一年前",description:"",type:"1"},{avatar:"https://gw.alipayobjects.com/zos/rmsportal/GvqBnKhFgObvnSGkDsje.png",title:"展示标题内容超过一行后的处理方式,如果内容超过1行将自动截断并支持tooltip显示完整标题。",datetime:"一年前",description:"",type:"1"},{avatar:"https://gw.alipayobjects.com/zos/rmsportal/GvqBnKhFgObvnSGkDsje.png",title:"左侧图标用于区分不同的类型",datetime:"一年前",description:"",type:"1"},{avatar:"https://gw.alipayobjects.com/zos/rmsportal/GvqBnKhFgObvnSGkDsje.png",title:"左侧图标用于区分不同的类型",datetime:"一年前",description:"",type:"1"}]},{key:"2",name:"消息",list:[{avatar:"https://gw.alipayobjects.com/zos/rmsportal/fcHMVNCjPOsbUGdEduuv.jpeg",title:"李白 评论了你",description:"长风破浪会有时,直挂云帆济沧海",datetime:"一年前",type:"2"},{avatar:"https://gw.alipayobjects.com/zos/rmsportal/fcHMVNCjPOsbUGdEduuv.jpeg",title:"李白 回复了你",description:"行路难,行路难,多歧路,今安在。",datetime:"一年前",type:"2"},{avatar:"https://gw.alipayobjects.com/zos/rmsportal/fcHMVNCjPOsbUGdEduuv.jpeg",title:"标题",description:"请将鼠标移动到此处,以便测试超长的消息在此处将如何处理。本例中设置的描述最大行数为2,超过2行的描述内容将被省略并且可以通过tooltip查看完整内容",datetime:"一年前",type:"2"}]},{key:"3",name:"待办",list:[{avatar:"",title:"任务名称",description:"任务需要在 2022-11-16 20:00 前启动",datetime:"",extra:"未开始",status:"info",type:"3"},{avatar:"",title:"第三方紧急代码变更",description:"一拳提交于 2022-11-16,需在 2022-11-18 前完成代码变更任务",datetime:"",extra:"马上到期",status:"danger",type:"3"},{avatar:"",title:"信息安全考试",description:"指派小仙于 2022-12-12 前完成更新并发布",datetime:"",extra:"已耗时 8 天",status:"warning",type:"3"},{avatar:"",title:"vue-pure-admin 版本发布",description:"vue-pure-admin 版本发布",datetime:"",extra:"进行中",type:"3"}]}],Co={class:"notice-container border-b-[1px] border-solid border-[#f0f0f0] dark:border-[#303030]"},$o={class:"notice-container-text"},So={class:"notice-text-title text-[#000000d9] dark:text-white"},Io={class:"notice-text-datetime text-[#00000073] dark:text-white"},To=ae({__name:"noticeItem",props:{noticeItem:{type:Object,default:()=>{}}},setup(n){const e=n,o=Z(null),a=Z(!1),c=Z(null),i=Z(!1),{tooltipEffect:h}=Me(),f=Pt();function _(){De(()=>{var y,u;((y=o.value)==null?void 0:y.scrollWidth)>((u=o.value)==null?void 0:u.clientWidth)?a.value=!0:a.value=!1})}function b(y,u){const I=document.createElement("span");I.innerText=u,I.className="getDescriptionWidth",document.querySelector("body").appendChild(I);const g=document.querySelector(".getDescriptionWidth").offsetWidth;document.querySelector(".getDescriptionWidth").remove();const w=y.target.offsetWidth;g>2*w?i.value=!0:i.value=!1}return(y,u)=>{var H,z;const I=x("el-avatar"),g=x("el-tooltip"),w=x("el-tag");return d(),V("div",Co,[e.noticeItem.avatar?(d(),D(I,{key:0,size:30,src:e.noticeItem.avatar,class:"notice-container-avatar"},null,8,["src"])):Y("",!0),v("div",$o,[v("div",So,[s(g,{"popper-class":"notice-title-popper",effect:t(h),disabled:!a.value,content:e.noticeItem.title,placement:"top-start",enterable:!t(f)},{default:m(()=>[v("div",{ref_key:"titleRef",ref:o,class:"notice-title-content",onMouseover:_},Q(e.noticeItem.title),545)]),_:1},8,["effect","disabled","content","enterable"]),(H=e.noticeItem)!=null&&H.extra?(d(),D(w,{key:0,type:(z=e.noticeItem)==null?void 0:z.status,size:"small",class:"notice-title-extra"},{default:m(()=>{var $;return[oe(Q(($=e.noticeItem)==null?void 0:$.extra),1)]}),_:1},8,["type"])):Y("",!0)]),s(g,{"popper-class":"notice-title-popper",effect:t(h),disabled:!i.value,content:e.noticeItem.description,placement:"top-start"},{default:m(()=>[v("div",{ref_key:"descriptionRef",ref:c,class:"notice-text-description",onMouseover:u[0]||(u[0]=$=>b($,e.noticeItem.description))},Q(e.noticeItem.description),545)]),_:1},8,["effect","disabled","content"]),v("div",Io,Q(e.noticeItem.datetime),1)])])}}});const Mo=fe(To,[["__scopeId","data-v-2a7dbc48"]]),Vo={key:0},zo=ae({__name:"noticeList",props:{list:{type:Array,default:()=>[]}},setup(n){const e=n;return(o,a)=>{const c=x("el-empty");return e.list.length?(d(),V("div",Vo,[(d(!0),V(we,null,$e(e.list,(i,h)=>(d(),D(Mo,{noticeItem:i,key:h},null,8,["noticeItem"]))),128))])):(d(),D(c,{key:1,description:"暂无数据"}))}}}),Lo={width:1024,height:1024,body:'<path fill="currentColor" d="M512 64a64 64 0 0 1 64 64v64H448v-64a64 64 0 0 1 64-64z"/><path fill="currentColor" d="M256 768h512V448a256 256 0 1 0-512 0v320zm256-640a320 320 0 0 1 320 320v384H192V448a320 320 0 0 1 320-320z"/><path fill="currentColor" d="M96 768h832q32 0 32 32t-32 32H96q-32 0-32-32t32-32zm352 128h128a64 64 0 0 1-128 0z"/>'},Ao={class:"dropdown-badge navbar-bg-hover select-none"},Ho={class:"header-notice-icon"},Eo={key:1},Oo={class:"noticeList-container"},Do=ae({__name:"index",setup(n){const e=Z(0),o=Z(Ht),a=Z(Ht[0].key);return o.value.map(c=>e.value+=c.list.length),(c,i)=>{const h=x("IconifyIconOffline"),f=x("el-badge"),_=x("el-empty"),b=x("el-scrollbar"),y=x("el-tab-pane"),u=x("el-tabs"),I=x("el-dropdown-menu"),g=x("el-dropdown");return d(),D(g,{trigger:"click",placement:"bottom-end"},{dropdown:m(()=>[s(I,null,{default:m(()=>[s(u,{stretch:!0,modelValue:a.value,"onUpdate:modelValue":i[0]||(i[0]=w=>a.value=w),class:"dropdown-tabs",style:ne({width:o.value.length===0?"200px":"330px"})},{default:m(()=>[o.value.length===0?(d(),D(_,{key:0,description:"暂无消息","image-size":60})):(d(),V("span",Eo,[(d(!0),V(we,null,$e(o.value,w=>(d(),D(y,{key:w.key,label:`${w.name}(${w.list.length})`,name:`${w.key}`},{default:m(()=>[s(b,{"max-height":"330px"},{default:m(()=>[v("div",Oo,[s(zo,{list:w.list},null,8,["list"])])]),_:2},1024)]),_:2},1032,["label","name"]))),128))]))]),_:1},8,["modelValue","style"])]),_:1})]),default:m(()=>[v("span",Ao,[s(f,{value:e.value,max:99},{default:m(()=>[v("span",Ho,[s(h,{icon:t(Lo)},null,8,["icon"])])]),_:1},8,["value"])])]),_:1})}}});const It=fe(Do,[["__scopeId","data-v-f8beaa07"]]),Zo={key:0,class:"flex justify-center items-center"},ft=ae({__name:"extraIcon",props:{extraIcon:{type:String,default:""}},setup(n){const e=n;return(o,a)=>e.extraIcon?(d(),V("div",Zo,[(d(),D(Ae(t(Le)(Ce(e.extraIcon))),{class:"w-[30px] h-[30px]"}))])):Y("",!0)}}),rt={width:24,height:24,body:'<path fill="currentColor" d="M12 22C6.477 22 2 17.523 2 12S6.477 2 12 2a9.985 9.985 0 0 1 8 4h-2.71a8 8 0 1 0 .001 12h2.71A9.985 9.985 0 0 1 12 22Zm7-6v-3h-8v-2h8V8l5 4l-5 4Z"/>'},Po={key:0,class:"horizontal-header"},Ro={class:"select-none"},jo={class:"horizontal-header-right"},qo={class:"check-zh"},Bo={class:"check-en"},Fo={class:"el-dropdown-link navbar-bg-hover select-none"},No=["src"],Uo={key:0,class:"dark:text-white"},Wo=["title"],Go=ae({__name:"mixNav",setup(n){const e=Z(),o=Z(null),{t:a,route:c,locale:i,translationCh:h,translationEn:f}=xt(e),{device:_,logout:b,onPanel:y,resolvePath:u,username:I,userAvatar:g,getDivStyle:w,avatarsStyle:H,getDropdownItemStyle:z,getDropdownItemClass:$}=Me();function G(U){var A,M,B;const T=be().wholeMenus,S=_t(U,T)[0];o.value=qe((A=c.meta)==null?void 0:A.activePath)?(B=(M=ot(S,T))==null?void 0:M.children[0])==null?void 0:B.path:c.meta.activePath}return Ze(()=>{G(c.path)}),De(()=>{var U;(U=e.value)==null||U.handleResize()}),Ge(()=>[c.path,be().wholeMenus],()=>{G(c.path)}),(U,T)=>{const S=x("el-menu-item"),A=x("el-menu"),M=x("IconifyIconOffline"),B=x("el-dropdown-item"),L=x("el-dropdown-menu"),E=x("el-dropdown"),he=mt("loading");return t(_)!=="mobile"?ve((d(),V("div",Po,[s(A,{router:"",ref_key:"menuRef",ref:e,mode:"horizontal",class:"horizontal-header-menu","default-active":o.value},{default:m(()=>[(d(!0),V(we,null,$e(t(be)().wholeMenus,K=>(d(),D(S,{key:K.path,index:t(u)(K)||K.redirect},{title:m(()=>[Ce(K.meta.icon)?(d(),V("div",{key:0,class:se(["sub-menu-icon",K.meta.icon])},[(d(),D(Ae(t(Le)(K.meta&&Ce(K.meta.icon)))))],2)):Y("",!0),v("div",{style:ne(t(w))},[v("span",Ro,Q(t(ge)(K.meta.title)),1),s(ft,{extraIcon:K.meta.extraIcon},null,8,["extraIcon"])],4)]),_:2},1032,["index"]))),128))]),_:1},8,["default-active"]),v("div",jo,[s(St),s(It,{id:"header-notice"}),s(E,{id:"header-translation",trigger:"click"},{dropdown:m(()=>[s(L,{class:"translation"},{default:m(()=>[s(B,{style:ne(t(z)(t(i),"zh")),class:se(["dark:!text-white",t($)(t(i),"zh")]),onClick:t(h)},{default:m(()=>[ve(v("span",qo,[s(M,{icon:t(Fe)},null,8,["icon"])],512),[[Se,t(i)==="zh"]]),oe(" 简体中文 ")]),_:1},8,["style","class","onClick"]),s(B,{style:ne(t(z)(t(i),"en")),class:se(["dark:!text-white",t($)(t(i),"en")]),onClick:t(f)},{default:m(()=>[ve(v("span",Bo,[s(M,{icon:t(Fe)},null,8,["icon"])],512),[[Se,t(i)==="en"]]),oe(" English ")]),_:1},8,["style","class","onClick"])]),_:1})]),default:m(()=>[s(t(Ct),{class:"navbar-bg-hover w-[40px] h-[48px] p-[11px] cursor-pointer outline-none"})]),_:1}),s(E,{trigger:"click"},{dropdown:m(()=>[s(L,{class:"logout"},{default:m(()=>[s(B,{onClick:t(b)},{default:m(()=>[s(M,{icon:t(rt),style:{margin:"5px"}},null,8,["icon"]),oe(" "+Q(t(a)("buttons.hsLoginOut")),1)]),_:1},8,["onClick"])]),_:1})]),default:m(()=>[v("span",Fo,[v("img",{src:t(g),style:ne(t(H))},null,12,No),t(I)?(d(),V("p",Uo,Q(t(I)),1)):Y("",!0)])]),_:1}),v("span",{class:"set-icon navbar-bg-hover",title:t(a)("buttons.hssystemSet"),onClick:T[0]||(T[0]=(...K)=>t(y)&&t(y)(...K))},[s(M,{icon:t(st)},null,8,["icon"])],8,Wo)])])),[[he,t(be)().wholeMenus.length===0]]):Y("",!0)}}});const Ko=fe(Go,[["__scopeId","data-v-756f1729"]]),Xo=["onClick"],Jo=ae({__name:"breadCrumb",setup(n){const e=gt(),o=Z([]),a=lt(),c=a.options.routes,i=Ve().multiTags,h=()=>{let _;Object.keys(e.query).length>0?i.forEach(u=>{Be(e.query,u==null?void 0:u.query)&&(_=Ce(u))}):Object.keys(e.params).length>0?i.forEach(u=>{Be(e.params,u==null?void 0:u.params)&&(_=Ce(u))}):_=ot(a.currentRoute.value.path,c);const b=_t(a.currentRoute.value.name,c,"name"),y=[];b.forEach(u=>{u!=="/"&&y.push(ot(u,c))}),y.push(_),y.forEach((u,I)=>{_!=null&&_.query||_!=null&&_.params||u!=null&&u.children&&u.children.forEach(g=>{var w,H;((w=g==null?void 0:g.meta)==null?void 0:w.title)===((H=u==null?void 0:u.meta)==null?void 0:H.title)&&y.splice(I,1)})}),o.value=y.filter(u=>(u==null?void 0:u.meta)&&(u==null?void 0:u.meta.title)!==!1)},f=_=>{const{redirect:b,name:y,path:u}=_;b?a.push(b):y?_.query?a.push({name:y,query:_.query}):_.params?a.push({name:y,params:_.params}):a.push({name:y}):a.push({path:u})};return Ze(()=>{h()}),Ge(()=>e.path,()=>{h()},{deep:!0}),(_,b)=>{const y=x("el-breadcrumb-item"),u=x("el-breadcrumb");return d(),D(u,{class:"!leading-[50px] select-none",separator:"/"},{default:m(()=>[s(hn,{name:"breadcrumb"},{default:m(()=>[(d(!0),V(we,null,$e(o.value,I=>(d(),D(y,{class:"!inline !items-stretch",key:I.path},{default:m(()=>[v("a",{onClick:Xe(g=>f(I),["prevent"])},Q(t(ge)(I.meta.title)),9,Xo)]),_:2},1024))),128))]),_:1})]),_:1})}}}),Kt={width:24,height:24,body:'<path fill="currentColor" d="M21 18v2H3v-2h18ZM6.95 3.55v9.9L2 8.5l4.95-4.95ZM21 11v2h-9v-2h9Zm0-7v2h-9V4h9Z"/>'},Yo={width:24,height:24,body:'<path fill="currentColor" d="M21 18v2H3v-2h18ZM17.05 3.55L22 8.5l-4.95 4.95v-9.9ZM12 11v2H3v-2h9Zm0-7v2H3V4h9Z"/>'},Qo=["title"],ea=ae({__name:"topCollapse",props:{isActive:{type:Boolean,default:!1}},emits:["toggleClick"],setup(n,{emit:e}){const o=n,a=()=>{e("toggleClick")};return(c,i)=>{const h=x("IconifyIconOffline");return d(),V("div",{class:"px-3 mr-1 navbar-bg-hover",title:o.isActive?"点击折叠":"点击展开",onClick:a},[s(h,{icon:o.isActive?t(Kt):t(Yo),class:"inline-block align-middle hover:text-primary dark:hover:!text-white"},null,8,["icon"])],8,Qo)}}}),ta={class:"navbar bg-[#fff] shadow-sm shadow-[rgba(0,21,41,0.08)]"},na={key:3,class:"vertical-header-right"},oa={class:"check-en"},aa={class:"el-dropdown-link navbar-bg-hover select-none"},la=["src"],sa={key:0,class:"dark:text-white"},ra=["title"],ia=ae({__name:"navbar",setup(n){const{layout:e,device:o,logout:a,onPanel:c,pureApp:i,username:h,userAvatar:f,avatarsStyle:_,toggleSideBar:b,getDropdownItemStyle:y,getDropdownItemClass:u}=Me(),{t:I,locale:g,translationCh:w,translationEn:H}=xt();return(z,$)=>{const G=x("IconifyIconOffline"),U=x("el-dropdown-item"),T=x("el-dropdown-menu"),S=x("el-dropdown");return d(),V("div",ta,[t(o)==="mobile"?(d(),D(ea,{key:0,class:"hamburger-container","is-active":t(i).sidebar.opened,onToggleClick:t(b)},null,8,["is-active","onToggleClick"])):Y("",!0),t(e)!=="mix"&&t(o)!=="mobile"?(d(),D(Jo,{key:1,class:"breadcrumb-container"})):Y("",!0),t(e)==="mix"?(d(),D(Ko,{key:2})):Y("",!0),t(e)==="vertical"?(d(),V("div",na,[s(St),s(It,{id:"header-notice"}),s(S,{id:"header-translation",trigger:"click"},{dropdown:m(()=>[s(T,{class:"translation"},{default:m(()=>[s(U,{style:ne(t(y)(t(g),"zh")),class:se(["dark:!text-white",t(u)(t(g),"zh")]),onClick:t(w)},{default:m(()=>[ve(s(G,{class:"check-zh",icon:t(Fe)},null,8,["icon"]),[[Se,t(g)==="zh"]]),oe(" 简体中文 ")]),_:1},8,["style","class","onClick"]),s(U,{style:ne(t(y)(t(g),"en")),class:se(["dark:!text-white",t(u)(t(g),"en")]),onClick:t(H)},{default:m(()=>[ve(v("span",oa,[s(G,{icon:t(Fe)},null,8,["icon"])],512),[[Se,t(g)==="en"]]),oe(" English ")]),_:1},8,["style","class","onClick"])]),_:1})]),default:m(()=>[s(t(Ct),{class:"navbar-bg-hover w-[40px] h-[48px] p-[11px] cursor-pointer outline-none"})]),_:1}),s(S,{trigger:"click"},{dropdown:m(()=>[s(T,{class:"logout"},{default:m(()=>[s(U,{onClick:t(a)},{default:m(()=>[s(G,{icon:t(rt),style:{margin:"5px"}},null,8,["icon"]),oe(" "+Q(t(I)("buttons.hsLoginOut")),1)]),_:1},8,["onClick"])]),_:1})]),default:m(()=>[v("span",aa,[v("img",{src:t(f),style:ne(t(_))},null,12,la),t(h)?(d(),V("p",sa,Q(t(h)),1)):Y("",!0)])]),_:1}),v("span",{class:"set-icon navbar-bg-hover",title:t(I)("buttons.hssystemSet"),onClick:$[0]||($[0]=(...A)=>t(c)&&t(c)(...A))},[s(G,{icon:t(st)},null,8,["icon"])],8,ra)])):Y("",!0)])}}});const ca=fe(ia,[["__scopeId","data-v-aa0aa723"]]),ua={width:24,height:24,body:'<path fill="currentColor" d="M5 11v2h14v-2H5Z"/>'},da={width:24,height:24,body:'<path fill="currentColor" d="M7 17h10v-2.5l3.5 3.5l-3.5 3.5V19H7v2.5L3.5 18L7 14.5V17Zm6-11v9h-2V6H5V4h14v2h-6Z"/>'},ha={width:24,height:24,body:'<path fill="currentColor" d="M11 5v10H9v-4a4 4 0 1 1 0-8h8v2h-2v10h-2V5h-2ZM9 5a2 2 0 1 0 0 4V5Zm8 12v-2.5l4 3.5l-4 3.5V19H5v-2h12Z"/>'},fa={width:24,height:24,body:'<path fill="currentColor" d="M11 5v10H9v-4a4 4 0 1 1 0-8h8v2h-2v10h-2V5h-2ZM9 5a2 2 0 1 0 0 4V5ZM7 17h12v2H7v2.5L3 18l4-3.5V17Z"/>'},Xt={width:1024,height:1024,body:'<path fill="currentColor" d="M764.288 214.592L512 466.88L259.712 214.592a31.936 31.936 0 0 0-45.12 45.12L466.752 512L214.528 764.224a31.936 31.936 0 1 0 45.12 45.184L512 557.184l252.288 252.288a31.936 31.936 0 0 0 45.12-45.12L557.12 512.064l252.288-252.352a31.936 31.936 0 1 0-45.12-45.184z"/>'};function pa(){var B;const n=gt(),e=lt(),o=Dt(),a=$t(),c=Z(0),i=Z(0),h=Z(0),f=Z(!1),_=Z(-1),b=Z({}),y=Z(((B=Ue().getItem(`${Je()}configure`))==null?void 0:B.showModel)||"smart"),u=Z(Ue().getItem(`${Je()}configure`).hideTabs)??Z("false"),I=N(()=>Ve().multiTags),g=yt([{icon:Hn,text:_e("buttons.hsreload"),divided:!1,disabled:!1,show:!0},{icon:Xt,text:_e("buttons.hscloseCurrentTab"),divided:!1,disabled:!(I.value.length>1),show:!0},{icon:fa,text:_e("buttons.hscloseLeftTabs"),divided:!0,disabled:!(I.value.length>1),show:!0},{icon:ha,text:_e("buttons.hscloseRightTabs"),divided:!1,disabled:!(I.value.length>1),show:!0},{icon:da,text:_e("buttons.hscloseOtherTabs"),divided:!0,disabled:!(I.value.length>2),show:!0},{icon:ua,text:_e("buttons.hscloseAllTabs"),divided:!1,disabled:!(I.value.length>1),show:!0},{icon:Qe,text:_e("buttons.hswholeFullScreen"),divided:!0,disabled:!1,show:!0},{icon:Qe,text:_e("buttons.hscontentFullScreen"),divided:!1,disabled:!1,show:!0}]);function w(L,E,he){var K,le;return fn((K=n==null?void 0:n.meta)==null?void 0:K.showLink)&&((le=n==null?void 0:n.meta)==null?void 0:le.showLink)===!1?Object.keys(n.query).length>0?Be(n.query,L.query)?E:he:Be(n.params,L.params)?E:he:n.path===L.path?E:he}const H=N(()=>(L,E)=>{if(E!==0)return w(L,!0,!1)}),z=N(()=>L=>w(L,"is-active","")),$=N(()=>L=>w(L,"schedule-active","")),G=N(()=>({transform:`translateX(${h.value}px)`})),U=N(()=>({left:i.value+"px",top:c.value+"px"})),T=()=>{f.value=!1};function S(L){if(L&&(_.value=L),t(y)==="smart"){if(nt(o.refs["schedule"+L][0],"schedule-active"))return;Ee(!0,"schedule-in",o.refs["schedule"+L][0]),Ee(!1,"schedule-out",o.refs["schedule"+L][0])}else{if(nt(o.refs["dynamic"+L][0],"is-active"))return;Ee(!0,"card-in",o.refs["dynamic"+L][0]),Ee(!1,"card-out",o.refs["dynamic"+L][0])}}function A(L){if(_.value=-1,t(y)==="smart"){if(nt(o.refs["schedule"+L][0],"schedule-active"))return;Ee(!1,"schedule-in",o.refs["schedule"+L][0]),Ee(!0,"schedule-out",o.refs["schedule"+L][0])}else{if(nt(o.refs["dynamic"+L][0],"is-active"))return;Ee(!1,"card-in",o.refs["dynamic"+L][0]),Ee(!0,"card-out",o.refs["dynamic"+L][0])}}function M(){a.hiddenSideBar?a.changeSetting({key:"hiddenSideBar",value:!1}):a.changeSetting({key:"hiddenSideBar",value:!0})}return Ze(()=>{if(!y.value){const L=Ue().getItem(`${Je()}configure`);L.showModel="card",Ue().setItem(`${Je()}configure`,L)}}),{route:n,router:e,visible:f,showTags:u,instance:o,multiTags:I,showModel:y,tagsViews:g,buttonTop:c,buttonLeft:i,translateX:h,pureSetting:a,activeIndex:_,getTabStyle:G,iconIsActive:H,linkIsActive:z,currentSelect:b,scheduleIsActive:$,getContextMenuStyle:U,$t:_e,closeMenu:T,onMounted:Ze,onMouseenter:S,onMouseleave:A,transformI18n:ge,onContentFullScreen:M}}const va={width:24,height:24,body:'<path fill="currentColor" d="m12 13.171l4.95-4.95l1.414 1.415L12 16L5.636 9.636L7.05 8.222l4.95 4.95Z"/>'},ma={width:24,height:24,body:'<path fill="currentColor" d="m10.828 12l4.95 4.95l-1.414 1.415L8 12l6.364-6.364l1.414 1.414l-4.95 4.95Z"/>'},_a={width:1024,height:1024,body:'<path fill="currentColor" d="M195.2 195.2a64 64 0 0 1 90.496 0L512 421.504L738.304 195.2a64 64 0 0 1 90.496 90.496L602.496 512L828.8 738.304a64 64 0 0 1-90.496 90.496L512 602.496L285.696 828.8a64 64 0 0 1-90.496-90.496L421.504 512L195.2 285.696a64 64 0 0 1 0-90.496z"/>'},ga={class:"arrow-left"},ya=["onContextmenu","onMouseenter","onMouseleave","onClick"],ba={class:"tag-title dark:!text-text_color_primary dark:hover:!text-primary"},wa=["onClick"],ka={class:"arrow-right"},xa=["onClick"],Ca={class:"arrow-down"},$a=ae({__name:"index",setup(n){var Vt;const{route:e,router:o,visible:a,showTags:c,instance:i,multiTags:h,tagsViews:f,buttonTop:_,buttonLeft:b,showModel:y,translateX:u,pureSetting:I,activeIndex:g,getTabStyle:w,iconIsActive:H,linkIsActive:z,currentSelect:$,scheduleIsActive:G,getContextMenuStyle:U,closeMenu:T,onMounted:S,onMouseenter:A,onMouseleave:M,transformI18n:B,onContentFullScreen:L}=pa(),E=Z(),he=Z(),K=Z(),le=Z(),pe=Z(!1),Pe=(Vt=at())==null?void 0:Vt.path,{VITE_HIDE_HOME:ze}={VITE_PORT:"8848",VITE_HIDE_HOME:"false",VITE_PUBLIC_PATH:"/vue-pure-admin/",VITE_ROUTER_HISTORY:"hash",VITE_CDN:"false",VITE_COMPRESSION:"none",BASE_URL:"/vue-pure-admin/",MODE:"production",DEV:!1,PROD:!0,SSR:!1},{isFullscreen:l,toggle:p}=pn(),r=async()=>{await De();const C=h.value.findIndex(O=>qe(e.query)?qe(e.params)?e.path===O.path:Be(e.params,O.params):Be(e.query,O.query));k(C)},k=async C=>{var ce,xe;await De();const O=10;if(!i.refs["dynamic"+C])return;const P=i.refs["dynamic"+C][0],X=P==null?void 0:P.offsetLeft,ie=P==null?void 0:P.offsetWidth,q=K.value?(ce=K.value)==null?void 0:ce.offsetWidth:0,F=E.value?(xe=E.value)==null?void 0:xe.offsetWidth:0;q<=F?pe.value=!0:pe.value=!1,F<q||X===0?u.value=0:X<-u.value?u.value=-X+O:X>-u.value&&X+ie<-u.value+q?u.value=Math.min(0,q-ie-X-O):u.value=-(X-(q-O-ie))},W=C=>{var X;const O=K.value?(X=K.value)==null?void 0:X.offsetWidth:0,P=E.value?E.value.offsetWidth:0;C>0?u.value=Math.min(0,u.value+C):O<P?u.value>=-(P-O)&&(u.value=Math.max(u.value+C,O-P)):u.value=0};function R(C){const O=h.value.some(X=>X.path===C);function P(X,ie){O||X.forEach(q=>{q.path===ie||q.path===ie?Ve().handleTags("push",{path:ie,meta:q.meta,name:q.name}):q.children&&q.children.length>0&&P(q.children,ie)})}P(o.options.routes,C)}function j(){const{fullPath:C,query:O}=t(e);o.replace({path:"/redirect"+C,query:O}),ht(e,"refresh")}function ee(C,O,P){var F,ce,xe,zt;const X=h.value.findIndex(Ie=>{if(Ie.query){if(Ie.path===C.path)return Ie.query===C.query}else if(Ie.params){if(Ie.path===C.path)return Ie.params===C.params}else return Ie.path===C.path}),ie=(Ie,on,an)=>{an?Ve().handleTags("equal",[ze==="false"?jt[0]:Ce(at()),C]):Ve().handleTags("splice","",{startIndex:Ie,length:on}),r()};P==="other"?ie(1,1,!0):P==="left"?ie(1,X-1):P==="right"?ie(X+1,h.value.length):ie(X,1);const q=Ve().handleTags("slice");if(O===e.path){if(P==="left")return;(F=q[0])!=null&&F.query?o.push({name:q[0].name,query:q[0].query}):(ce=q[0])!=null&&ce.params?o.push({name:q[0].name,params:q[0].params}):o.push({path:q[0].path})}else{if(!h.value.length||h.value.some(Ie=>Ie.path===e.path))return;(xe=q[0])!=null&&xe.query?o.push({name:q[0].name,query:q[0].query}):(zt=q[0])!=null&&zt.params?o.push({name:q[0].name,params:q[0].params}):o.push({path:q[0].path})}}function te(C,O){ee(C,C.path,O),ht(e)}function me(C,O,P){if(O&&O.disabled)return;let X;switch(P?X={path:P.path,meta:P.meta,name:P.name,query:P==null?void 0:P.query,params:P==null?void 0:P.params}:X={path:e.path,meta:e.meta},C){case 0:j();break;case 1:te(X);break;case 2:te(X,"left");break;case 3:te(X,"right");break;case 4:te(X,"other");break;case 5:Ve().handleTags("splice","",{startIndex:1,length:h.value.length}),o.push(Pe),ht(e);break;case 6:p(),setTimeout(()=>{l.value?(f[6].icon=Lt,f[6].text=_e("buttons.hswholeExitFullScreen")):(f[6].icon=Qe,f[6].text=_e("buttons.hswholeFullScreen"))},100);break;case 7:L(),setTimeout(()=>{I.hiddenSideBar?(f[7].icon=Lt,f[7].text=_e("buttons.hscontentExitFullScreen")):(f[7].icon=Qe,f[7].text=_e("buttons.hscontentFullScreen"))},100);break}setTimeout(()=>{Ne(e.fullPath,e.query)})}function He(C){const{key:O,item:P}=C;me(O,P)}function Ke(C,O){T(),me(C,O,$.value)}function J(C){Array.of(1,2,3,4,5).forEach(O=>{f[O].show=C})}function Re(C){Array.of(1,2,3,4,5).forEach(O=>{f[O].disabled=C})}function Ne(C,O={},P=!1){const X=h.value,ie=h.value.length;let q=-1;qe(O)?q=X.findIndex(F=>F.path===C):q=X.findIndex(F=>Be(F.query,O)),J(!0),P&&(f[0].show=!0),q===1&&ie!==2?(f[2].show=!1,Array.of(1,3,4,5).forEach(F=>{f[F].disabled=!1}),f[2].disabled=!0):q===1&&ie===2?(Re(!1),Array.of(2,3,4).forEach(F=>{f[F].show=!1,f[F].disabled=!0})):ie-1===q&&q!==0?(f[3].show=!1,Array.of(1,2,4,5).forEach(F=>{f[F].disabled=!1}),f[3].disabled=!0):q===0||C===`/redirect${Pe}`?Re(!0):Re(!1)}function tn(C,O){T(),C.path===Pe?(J(!1),f[0].show=!0):e.path!==C.path&&e.name!==C.name?(f[0].show=!1,Ne(C.path,C.query)):h.value.length===2&&e.path!==C.path?(J(!0),f[4].show=!1):e.path===C.path&&Ne(C.path,C.query,!0),$.value=C;const P=105,X=t(he).getBoundingClientRect().left,q=t(he).offsetWidth-P,F=O.clientX-X+5;F>q?b.value=q:b.value=F,$t().hiddenSideBar?_.value=O.clientY:_.value=O.clientY-40,De(()=>{a.value=!0})}function nn(C){const{name:O,path:P}=C;O?C.query?o.push({name:O,query:C.query}):C.params?o.push({name:O,params:C.params}):o.push({name:O}):o.push({path:P})}return Rt(le,T,{detectIframe:!0}),Ge(e,()=>{g.value=-1,r()}),Ge(l,()=>{f[6].icon=Qe,f[6].text=_e("buttons.hswholeFullScreen")}),S(()=>{i&&(Ne(e.fullPath),ye.on("tagViewsChange",C=>{t(c)!==C&&(c.value=C)}),ye.on("tagViewsShowModel",C=>{y.value=C}),ye.on("changLayoutRoute",C=>{R(C),setTimeout(()=>{Ne(C)})}),vt(K,je(()=>r())))}),bt(()=>{ye.off("tagViewsChange"),ye.off("tagViewsShowModel"),ye.off("changLayoutRoute")}),(C,O)=>{const P=x("IconifyIconOffline"),X=x("el-dropdown-item"),ie=x("el-dropdown-menu"),q=x("el-dropdown");return t(c)?Y("",!0):(d(),V("div",{key:0,ref_key:"containerDom",ref:he,class:"tags-view"},[ve(v("span",ga,[s(P,{icon:t(ma),onClick:O[0]||(O[0]=F=>W(200))},null,8,["icon"])],512),[[Se,pe.value]]),v("div",{ref_key:"scrollbarDom",ref:K,class:"scroll-container"},[v("div",{class:"tab select-none",ref_key:"tabDom",ref:E,style:ne(t(w))},[(d(!0),V(we,null,$e(t(h),(F,ce)=>(d(),V("div",{ref_for:!0,ref:"dynamic"+ce,key:ce,class:se(["scroll-item is-closable",t(z)(F)]),onContextmenu:Xe(xe=>tn(F,xe),["prevent"]),onMouseenter:Xe(xe=>t(A)(ce),["prevent"]),onMouseleave:Xe(xe=>t(M)(ce),["prevent"]),onClick:xe=>nn(F)},[v("span",ba,Q(t(B)(F.meta.title)),1),t(H)(F,ce)||ce===t(g)&&ce!==0?(d(),V("span",{key:0,class:"el-icon-close",onClick:Xe(xe=>te(F),["stop"])},[s(P,{icon:t(_a)},null,8,["icon"])],8,wa)):Y("",!0),t(y)!=="card"?(d(),V("div",{key:1,ref_for:!0,ref:"schedule"+ce,class:se([t(G)(F)])},null,2)):Y("",!0)],42,ya))),128))],4)],512),ve(v("span",ka,[s(P,{icon:t(En),onClick:O[1]||(O[1]=F=>W(-200))},null,8,["icon"])],512),[[Se,pe.value]]),s(wt,{name:"el-zoom-in-top"},{default:m(()=>[ve((d(),V("ul",{ref_key:"contextmenuRef",ref:le,key:Math.random(),style:ne(t(U)),class:"contextmenu"},[(d(!0),V(we,null,$e(t(f).slice(0,6),(F,ce)=>(d(),V("div",{key:ce,style:{display:"flex","align-items":"center"}},[F.show?(d(),V("li",{key:0,onClick:xe=>Ke(ce,F)},[s(P,{icon:F.icon},null,8,["icon"]),oe(" "+Q(t(B)(F.text)),1)],8,xa)):Y("",!0)]))),128))],4)),[[Se,t(a)]])]),_:1}),s(q,{trigger:"click",placement:"bottom-end",onCommand:He},{dropdown:m(()=>[s(ie,null,{default:m(()=>[(d(!0),V(we,null,$e(t(f),(F,ce)=>(d(),D(X,{key:ce,command:{key:ce,item:F},divided:F.divided,disabled:F.disabled},{default:m(()=>[s(P,{icon:F.icon},null,8,["icon"]),oe(" "+Q(t(B)(F.text)),1)]),_:2},1032,["command","divided","disabled"]))),128))]),_:1})]),default:m(()=>[v("span",Ca,[s(P,{icon:t(va),class:"dark:text-white"},null,8,["icon"])])]),_:1})],512))}}});const Sa=fe($a,[["__scopeId","data-v-68aad1df"]]),Ia={class:"layout-footer"},Ta={class:"ml-1 hover:text-primary",href:"https://github.com/pure-admin",target:"_blank"},Ma=ae({__name:"index",setup(n){const e=We("Title");return(o,a)=>(d(),V("footer",Ia,[oe(" MIT © 2020-PRESENT "),v("a",Ta,Q(t(e)),1)]))}});const Et=fe(Ma,[["__scopeId","data-v-7e9cc56a"]]),Va={class:"grow"},za={key:1,class:"grow"},La=ae({__name:"appMain",props:{fixedHeader:Boolean},setup(n){const e=n,{$storage:o,$config:a}=kt(),c=N(()=>a==null?void 0:a.KeepAlive),i=N(()=>u=>u.meta.transition),h=N(()=>o==null?void 0:o.configure.hideTabs),f=N(()=>o==null?void 0:o.configure.hideFooter),_=N(()=>(o==null?void 0:o.layout.layout)==="vertical"),b=N(()=>[h.value&&_?"padding-top: 48px;":"",!h.value&&_?"padding-top: 85px;":"",h.value&&!_.value?"padding-top: 48px;":"",!h.value&&!_.value?"padding-top: 85px;":"",e.fixedHeader?"":`padding-top: 0;${h.value?"min-height: calc(100vh - 48px);":"min-height: calc(100vh - 86px);"}`]),y=ae({render(){var w,H,z;const u=((w=i.value(this.route))==null?void 0:w.name)||"fade-transform",I=(H=i.value(this.route))==null?void 0:H.enterTransition,g=(z=i.value(this.route))==null?void 0:z.leaveTransition;return Ye(wt,{name:I?"pure-classes-transition":u,enterActiveClass:I?`animate__animated ${I}`:void 0,leaveActiveClass:g?`animate__animated ${g}`:void 0,mode:"out-in",appear:!0},{default:()=>[this.$slots.default()]})},props:{route:{type:void 0,required:!0}}});return(u,I)=>{const g=x("el-backtop"),w=x("el-scrollbar"),H=x("router-view");return d(),V("section",{class:se([e.fixedHeader?"app-main":"app-main-nofixed-header"]),style:ne(b.value)},[s(H,null,{default:m(({Component:z,route:$})=>[e.fixedHeader?(d(),D(w,{key:0,"wrap-style":{display:"flex"},"view-style":{display:"flex",flex:"auto",overflow:"auto","flex-direction":"column"}},{default:m(()=>[s(g,{title:"回到顶部",target:".app-main .el-scrollbar__wrap"},{default:m(()=>[s(t(Wt))]),_:1}),v("div",Va,[s(t(y),{route:$},{default:m(()=>[c.value?(d(),D(At,{key:0,include:t(be)().cachePageList},[(d(),D(Ae(z),{key:$.fullPath,class:"main-content"}))],1032,["include"])):(d(),D(Ae(z),{key:$.fullPath,class:"main-content"}))]),_:2},1032,["route"])]),f.value?Y("",!0):(d(),D(Et,{key:0}))]),_:2},1024)):(d(),V("div",za,[s(t(y),{route:$},{default:m(()=>[c.value?(d(),D(At,{key:0,include:t(be)().cachePageList},[(d(),D(Ae(z),{key:$.fullPath,class:"main-content"}))],1032,["include"])):(d(),D(Ae(z),{key:$.fullPath,class:"main-content"}))]),_:2},1032,["route"])]))]),_:1}),!f.value&&!e.fixedHeader?(d(),D(Et,{key:0})):Y("",!0)],6)}}});const Ot=fe(La,[["__scopeId","data-v-93de9f67"]]),Tt=n=>(qt("data-v-1b3eb871"),n=n(),Bt(),n),Aa=Tt(()=>v("div",{class:"right-panel-background"},null,-1)),Ha={class:"right-panel-items"},Ea={class:"project-configuration"},Oa=Tt(()=>v("h4",{class:"dark:text-white"},"项目配置",-1)),Da=Tt(()=>v("div",{class:"border-b-[1px] border-solid border-[#dcdfe6] dark:border-[#303030]"},null,-1)),Za=ae({__name:"index",setup(n){const e=Z(null),o=Z(!1),a=N(()=>["mr-[20px]","outline-none","width-[20px]","height-[20px]","rounded-[4px]","cursor-pointer","transition-colors","hover:bg-[#0000000f]","dark:hover:bg-[#ffffff1f]","dark:hover:text-[#ffffffd9]"]);return Rt(e,c=>{c.clientX>e.value.offsetLeft||(o.value=!1)}),Ze(()=>{ye.on("openPanel",()=>{o.value=!0})}),bt(()=>{ye.off("openPanel")}),(c,i)=>{const h=x("IconifyIconOffline");return d(),V("div",{class:se([{show:o.value},"right-panel-container"])},[Aa,v("div",{ref_key:"target",ref:e,class:"right-panel bg-bg_color"},[v("div",Ha,[v("div",Ea,[Oa,v("span",{title:"关闭配置",class:se(a.value)},[s(h,{class:"dark:text-white",width:"20px",height:"20px",icon:t(Xt),onClick:i[0]||(i[0]=f=>o.value=!o.value)},null,8,["icon"])],2)]),Da,vn(c.$slots,"default",{},void 0,!0)])],512)],2)}}});const Pa=fe(Za,[["__scopeId","data-v-1b3eb871"]]),ke=n=>(qt("data-v-bd99ec0c"),n=n(),Bt(),n),Ra={class:"pure-theme"},ja=ke(()=>v("div",null,null,-1)),qa=ke(()=>v("div",null,null,-1)),Ba=[ja,qa],Fa=ke(()=>v("div",null,null,-1)),Na=ke(()=>v("div",null,null,-1)),Ua=[Fa,Na],Wa=ke(()=>v("div",null,null,-1)),Ga=ke(()=>v("div",null,null,-1)),Ka=[Wa,Ga],Xa={class:"theme-color"},Ja=["onClick"],Ya={class:"setting"},Qa=ke(()=>v("span",{class:"dark:text-white"},"灰色模式",-1)),el=ke(()=>v("span",{class:"dark:text-white"},"色弱模式",-1)),tl=ke(()=>v("span",{class:"dark:text-white"},"隐藏标签页",-1)),nl=ke(()=>v("span",{class:"dark:text-white"},"隐藏页脚",-1)),ol=ke(()=>v("span",{class:"dark:text-white"},"侧边栏Logo",-1)),al=ke(()=>v("span",{class:"dark:text-white"},"标签页持久化",-1)),ll=ke(()=>v("span",{class:"dark:text-white"},"标签风格",-1)),sl=ae({__name:"index",setup(n){var l,p;const e=lt(),{isDark:o}=Ft(),{device:a,tooltipEffect:c}=Me(),{$storage:i}=kt(),h=Z(),f=Z(),_=Z(),{dataTheme:b,layoutTheme:y,themeColors:u,dataThemeChange:I,setEpThemeColor:g,setLayoutThemeColor:w}=Ut();if(t(y)){const r=t(y).layout,k=t(y).theme;xn({scopeName:`layout-theme-${k}`}),ze(r)}const H=Z(((l=i.configure)==null?void 0:l.showModel)??"smart"),z=Z(((p=i.configure)==null?void 0:p.showLogo)??!0),$=yt({greyVal:i.configure.grey,weakVal:i.configure.weak,tabsVal:i.configure.hideTabs,showLogo:i.configure.showLogo,showModel:i.configure.showModel,hideFooter:i.configure.hideFooter,multiTagsCache:i.configure.multiTagsCache}),G=N(()=>r=>({background:r})),U=N(()=>r=>!(r==="light"&&o.value));function T(r,k){const W=i.configure;W[r]=k,i.configure=W}function S(r,k,W){const R=W||document.body;let{className:j}=R;j=j.replace(k,"").trim(),R.className=r?`${j} ${k} `:j}const A=r=>{S($.greyVal,"html-grey",document.querySelector("html")),T("grey",r)},M=r=>{S($.weakVal,"html-weakness",document.querySelector("html")),T("weak",r)},B=()=>{const r=$.tabsVal;T("hideTabs",r),ye.emit("tagViewsChange",r)},L=()=>{const r=$.hideFooter;T("hideFooter",r)},E=()=>{const r=$.multiTagsCache;T("multiTagsCache",r),Ve().multiTagsCacheChange(r)};function he(){mn(),Ue().clear();const{Grey:r,Weak:k,MultiTagsCache:W,EpThemeColor:R,Layout:j}=We();Oe().setLayout(j),g(R),Ve().multiTagsCacheChange(W),S(r,"html-grey",document.querySelector("html")),S(k,"html-weakness",document.querySelector("html")),e.push("/login"),Ve().handleTags("equal",[...jt]),_n()}function K(r){T("showModel",r),ye.emit("tagViewsShowModel",r)}function le(){t(z)?T("showLogo",!0):T("showLogo",!1),ye.emit("logoChange",t(z))}function pe(r){r.forEach(k=>{S(!1,"is-select",t(k))})}const Pe=N(()=>r=>r===y.value.theme&&y.value.theme!=="light"?"#fff":r===y.value.theme&&y.value.theme==="light"?"#1d2b45":"transparent");function ze(r){var k,W,R;y.value.layout=r,window.document.body.setAttribute("layout",r),i.layout={layout:r,theme:y.value.theme,darkMode:(k=i.layout)==null?void 0:k.darkMode,sidebarStatus:(W=i.layout)==null?void 0:W.sidebarStatus,epThemeColor:(R=i.layout)==null?void 0:R.epThemeColor},Oe().setLayout(r)}return Ge(i,({layout:r})=>{switch(r.layout){case"vertical":S(!0,"is-select",t(f)),je(pe([_]),50),je(pe([h]),50);break;case"horizontal":S(!0,"is-select",t(_)),je(pe([f]),50),je(pe([h]),50);break;case"mix":S(!0,"is-select",t(h)),je(pe([f]),50),je(pe([_]),50);break}}),Nt(()=>{De(()=>{var r,k;$.greyVal&&((r=document.querySelector("html"))==null||r.setAttribute("class","html-grey")),$.weakVal&&((k=document.querySelector("html"))==null||k.setAttribute("class","html-weakness")),$.tabsVal&&B(),$.hideFooter&&L()})}),(r,k)=>{const W=x("el-divider"),R=x("el-switch"),j=x("el-tooltip"),ee=x("IconifyIconOffline"),te=x("el-icon"),me=x("el-radio"),He=x("el-radio-group"),Ke=x("el-button");return d(),D(Pa,null,{default:m(()=>[s(W,null,{default:m(()=>[oe("主题")]),_:1}),s(R,{modelValue:t(b),"onUpdate:modelValue":k[0]||(k[0]=J=>Zt(b)?b.value=J:null),"inline-prompt":"",class:"pure-datatheme","active-icon":t(Cn),"inactive-icon":t($n),onChange:t(I)},null,8,["modelValue","active-icon","inactive-icon","onChange"]),s(W,null,{default:m(()=>[oe("导航栏模式")]),_:1}),v("ul",Ra,[s(j,{effect:t(c),class:"item",content:"左侧模式",placement:"bottom","popper-class":"pure-tooltip"},{default:m(()=>[v("li",{class:se(t(y).layout==="vertical"?"is-select":""),ref_key:"verticalRef",ref:f,onClick:k[1]||(k[1]=J=>ze("vertical"))},Ba,2)]),_:1},8,["effect"]),t(a)!=="mobile"?(d(),D(j,{key:0,effect:t(c),class:"item",content:"顶部模式",placement:"bottom","popper-class":"pure-tooltip"},{default:m(()=>[v("li",{class:se(t(y).layout==="horizontal"?"is-select":""),ref_key:"horizontalRef",ref:_,onClick:k[2]||(k[2]=J=>ze("horizontal"))},Ua,2)]),_:1},8,["effect"])):Y("",!0),t(a)!=="mobile"?(d(),D(j,{key:1,effect:t(c),class:"item",content:"混合模式",placement:"bottom","popper-class":"pure-tooltip"},{default:m(()=>[v("li",{class:se(t(y).layout==="mix"?"is-select":""),ref_key:"mixRef",ref:h,onClick:k[3]||(k[3]=J=>ze("mix"))},Ka,2)]),_:1},8,["effect"])):Y("",!0)]),s(W,null,{default:m(()=>[oe("主题色")]),_:1}),v("ul",Xa,[(d(!0),V(we,null,$e(t(u),(J,Re)=>ve((d(),V("li",{key:Re,style:ne(G.value(J.color)),onClick:Ne=>t(w)(J.themeColor)},[s(te,{style:{margin:"0.1em 0.1em 0 0"},size:17,color:Pe.value(J.themeColor)},{default:m(()=>[s(ee,{icon:t(Fe)},null,8,["icon"])]),_:2},1032,["color"])],12,Ja)),[[Se,U.value(J.themeColor)]])),128))]),s(W,null,{default:m(()=>[oe("界面显示")]),_:1}),v("ul",Ya,[v("li",null,[Qa,s(R,{modelValue:$.greyVal,"onUpdate:modelValue":k[4]||(k[4]=J=>$.greyVal=J),"inline-prompt":"","inactive-color":"#a6a6a6","active-text":"开","inactive-text":"关",onChange:A},null,8,["modelValue"])]),v("li",null,[el,s(R,{modelValue:$.weakVal,"onUpdate:modelValue":k[5]||(k[5]=J=>$.weakVal=J),"inline-prompt":"","inactive-color":"#a6a6a6","active-text":"开","inactive-text":"关",onChange:M},null,8,["modelValue"])]),v("li",null,[tl,s(R,{modelValue:$.tabsVal,"onUpdate:modelValue":k[6]||(k[6]=J=>$.tabsVal=J),"inline-prompt":"","inactive-color":"#a6a6a6","active-text":"开","inactive-text":"关",onChange:B},null,8,["modelValue"])]),v("li",null,[nl,s(R,{modelValue:$.hideFooter,"onUpdate:modelValue":k[7]||(k[7]=J=>$.hideFooter=J),"inline-prompt":"","inactive-color":"#a6a6a6","active-text":"开","inactive-text":"关",onChange:L},null,8,["modelValue"])]),v("li",null,[ol,s(R,{modelValue:z.value,"onUpdate:modelValue":k[8]||(k[8]=J=>z.value=J),"inline-prompt":"","active-value":!0,"inactive-value":!1,"inactive-color":"#a6a6a6","active-text":"开","inactive-text":"关",onChange:le},null,8,["modelValue"])]),v("li",null,[al,s(R,{modelValue:$.multiTagsCache,"onUpdate:modelValue":k[9]||(k[9]=J=>$.multiTagsCache=J),"inline-prompt":"","inactive-color":"#a6a6a6","active-text":"开","inactive-text":"关",onChange:E},null,8,["modelValue"])]),v("li",null,[ll,s(He,{modelValue:H.value,"onUpdate:modelValue":k[10]||(k[10]=J=>H.value=J),size:"small",onChange:K},{default:m(()=>[s(me,{label:"card"},{default:m(()=>[oe("卡片")]),_:1}),s(me,{label:"smart"},{default:m(()=>[oe("灵动")]),_:1})]),_:1},8,["modelValue"])])]),s(W),s(Ke,{type:"danger",style:{width:"90%",margin:"24px 15px"},onClick:he},{default:m(()=>[s(ee,{icon:t(rt),width:"15",height:"15",style:{"margin-right":"4px"}},null,8,["icon"]),oe(" 清空缓存并返回登录页 ")]),_:1})]),_:1})}}});const rl=fe(sl,[["__scopeId","data-v-bd99ec0c"]]),il=["src"],cl={class:"sidebar-title"},ul=["src"],dl={class:"sidebar-title"},hl=ae({__name:"logo",props:{collapse:Boolean},setup(n){const e=n,{title:o,getLogo:a}=Me();return(c,i)=>{const h=x("router-link");return d(),V("div",{class:se(["sidebar-logo-container",{collapses:e.collapse}])},[s(wt,{name:"sidebarLogoFade"},{default:m(()=>{var f,_;return[e.collapse?(d(),D(h,{key:"props.collapse",title:t(o),class:"sidebar-logo-link",to:((f=t(at)())==null?void 0:f.path)??"/"},{default:m(()=>[v("img",{src:t(a)(),alt:"logo"},null,8,il),v("span",cl,Q(t(o)),1)]),_:1},8,["title","to"])):(d(),D(h,{key:"expand",title:t(o),class:"sidebar-logo-link",to:((_=t(at)())==null?void 0:_.path)??"/"},{default:m(()=>[v("img",{src:t(a)(),alt:"logo"},null,8,ul),v("span",dl,Q(t(o)),1)]),_:1},8,["title","to"]))]}),_:1})],2)}}});const fl=fe(hl,[["__scopeId","data-v-8d7f2c36"]]);var tt={exports:{}},Jt={},pl=function(e){return e&&typeof e=="object"&&typeof e.copy=="function"&&typeof e.fill=="function"&&typeof e.readUInt8=="function"},pt={exports:{}};typeof Object.create=="function"?pt.exports=function(e,o){e.super_=o,e.prototype=Object.create(o.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}})}:pt.exports=function(e,o){e.super_=o;var a=function(){};a.prototype=o.prototype,e.prototype=new a,e.prototype.constructor=e};var vl=pt.exports;(function(n){var e=/%[sdj%]/g;n.format=function(l){if(!U(l)){for(var p=[],r=0;r<arguments.length;r++)p.push(c(arguments[r]));return p.join(" ")}for(var r=1,k=arguments,W=k.length,R=String(l).replace(e,function(ee){if(ee==="%%")return"%";if(r>=W)return ee;switch(ee){case"%s":return String(k[r++]);case"%d":return Number(k[r++]);case"%j":try{return JSON.stringify(k[r++])}catch{return"[Circular]"}default:return ee}}),j=k[r];r<W;j=k[++r])z(j)||!M(j)?R+=" "+j:R+=" "+c(j);return R},n.deprecate=function(l,p){if(S(gn.process))return function(){return n.deprecate(l,p).apply(this,arguments)};if(process.noDeprecation===!0)return l;var r=!1;function k(){if(!r){if(process.throwDeprecation)throw new Error(p);process.traceDeprecation?console.trace(p):console.error(p),r=!0}return l.apply(this,arguments)}return k};var o={},a;n.debuglog=function(l){if(S(a)&&(a={}.NODE_DEBUG||""),l=l.toUpperCase(),!o[l])if(new RegExp("\\b"+l+"\\b","i").test(a)){var p=process.pid;o[l]=function(){var r=n.format.apply(n,arguments);console.error("%s %d: %s",l,p,r)}}else o[l]=function(){};return o[l]};function c(l,p){var r={seen:[],stylize:h};return arguments.length>=3&&(r.depth=arguments[2]),arguments.length>=4&&(r.colors=arguments[3]),H(p)?r.showHidden=p:p&&n._extend(r,p),S(r.showHidden)&&(r.showHidden=!1),S(r.depth)&&(r.depth=2),S(r.colors)&&(r.colors=!1),S(r.customInspect)&&(r.customInspect=!0),r.colors&&(r.stylize=i),_(r,l,r.depth)}n.inspect=c,c.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},c.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"};function i(l,p){var r=c.styles[p];return r?"\x1B["+c.colors[r][0]+"m"+l+"\x1B["+c.colors[r][1]+"m":l}function h(l,p){return l}function f(l){var p={};return l.forEach(function(r,k){p[r]=!0}),p}function _(l,p,r){if(l.customInspect&&p&&E(p.inspect)&&p.inspect!==n.inspect&&!(p.constructor&&p.constructor.prototype===p)){var k=p.inspect(r,l);return U(k)||(k=_(l,k,r)),k}var W=b(l,p);if(W)return W;var R=Object.keys(p),j=f(R);if(l.showHidden&&(R=Object.getOwnPropertyNames(p)),L(p)&&(R.indexOf("message")>=0||R.indexOf("description")>=0))return y(p);if(R.length===0){if(E(p)){var ee=p.name?": "+p.name:"";return l.stylize("[Function"+ee+"]","special")}if(A(p))return l.stylize(RegExp.prototype.toString.call(p),"regexp");if(B(p))return l.stylize(Date.prototype.toString.call(p),"date");if(L(p))return y(p)}var te="",me=!1,He=["{","}"];if(w(p)&&(me=!0,He=["[","]"]),E(p)){var Ke=p.name?": "+p.name:"";te=" [Function"+Ke+"]"}if(A(p)&&(te=" "+RegExp.prototype.toString.call(p)),B(p)&&(te=" "+Date.prototype.toUTCString.call(p)),L(p)&&(te=" "+y(p)),R.length===0&&(!me||p.length==0))return He[0]+te+He[1];if(r<0)return A(p)?l.stylize(RegExp.prototype.toString.call(p),"regexp"):l.stylize("[Object]","special");l.seen.push(p);var J;return me?J=u(l,p,r,j,R):J=R.map(function(Re){return I(l,p,r,j,Re,me)}),l.seen.pop(),g(J,te,He)}function b(l,p){if(S(p))return l.stylize("undefined","undefined");if(U(p)){var r="'"+JSON.stringify(p).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return l.stylize(r,"string")}if(G(p))return l.stylize(""+p,"number");if(H(p))return l.stylize(""+p,"boolean");if(z(p))return l.stylize("null","null")}function y(l){return"["+Error.prototype.toString.call(l)+"]"}function u(l,p,r,k,W){for(var R=[],j=0,ee=p.length;j<ee;++j)ze(p,String(j))?R.push(I(l,p,r,k,String(j),!0)):R.push("");return W.forEach(function(te){te.match(/^\d+$/)||R.push(I(l,p,r,k,te,!0))}),R}function I(l,p,r,k,W,R){var j,ee,te;if(te=Object.getOwnPropertyDescriptor(p,W)||{value:p[W]},te.get?te.set?ee=l.stylize("[Getter/Setter]","special"):ee=l.stylize("[Getter]","special"):te.set&&(ee=l.stylize("[Setter]","special")),ze(k,W)||(j="["+W+"]"),ee||(l.seen.indexOf(te.value)<0?(z(r)?ee=_(l,te.value,null):ee=_(l,te.value,r-1),ee.indexOf(`
|
||
`)>-1&&(R?ee=ee.split(`
|
||
`).map(function(me){return" "+me}).join(`
|
||
`).substr(2):ee=`
|
||
`+ee.split(`
|
||
`).map(function(me){return" "+me}).join(`
|
||
`))):ee=l.stylize("[Circular]","special")),S(j)){if(R&&W.match(/^\d+$/))return ee;j=JSON.stringify(""+W),j.match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(j=j.substr(1,j.length-2),j=l.stylize(j,"name")):(j=j.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),j=l.stylize(j,"string"))}return j+": "+ee}function g(l,p,r){var k=l.reduce(function(W,R){return R.indexOf(`
|
||
`)>=0,W+R.replace(/\u001b\[\d\d?m/g,"").length+1},0);return k>60?r[0]+(p===""?"":p+`
|
||
`)+" "+l.join(`,
|
||
`)+" "+r[1]:r[0]+p+" "+l.join(", ")+" "+r[1]}function w(l){return Array.isArray(l)}n.isArray=w;function H(l){return typeof l=="boolean"}n.isBoolean=H;function z(l){return l===null}n.isNull=z;function $(l){return l==null}n.isNullOrUndefined=$;function G(l){return typeof l=="number"}n.isNumber=G;function U(l){return typeof l=="string"}n.isString=U;function T(l){return typeof l=="symbol"}n.isSymbol=T;function S(l){return l===void 0}n.isUndefined=S;function A(l){return M(l)&&K(l)==="[object RegExp]"}n.isRegExp=A;function M(l){return typeof l=="object"&&l!==null}n.isObject=M;function B(l){return M(l)&&K(l)==="[object Date]"}n.isDate=B;function L(l){return M(l)&&(K(l)==="[object Error]"||l instanceof Error)}n.isError=L;function E(l){return typeof l=="function"}n.isFunction=E;function he(l){return l===null||typeof l=="boolean"||typeof l=="number"||typeof l=="string"||typeof l=="symbol"||typeof l>"u"}n.isPrimitive=he,n.isBuffer=pl;function K(l){return Object.prototype.toString.call(l)}function le(l){return l<10?"0"+l.toString(10):l.toString(10)}var pe=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function Pe(){var l=new Date,p=[le(l.getHours()),le(l.getMinutes()),le(l.getSeconds())].join(":");return[l.getDate(),pe[l.getMonth()],p].join(" ")}n.log=function(){console.log("%s - %s",Pe(),n.format.apply(n,arguments))},n.inherits=vl,n._extend=function(l,p){if(!p||!M(p))return l;for(var r=Object.keys(p),k=r.length;k--;)l[r[k]]=p[r[k]];return l};function ze(l,p){return Object.prototype.hasOwnProperty.call(l,p)}})(Jt);var ml=process.platform==="win32",Te=Jt;function it(n,e){for(var o=[],a=0;a<n.length;a++){var c=n[a];!c||c==="."||(c===".."?o.length&&o[o.length-1]!==".."?o.pop():e&&o.push(".."):o.push(c))}return o}function et(n){for(var e=n.length-1,o=0;o<=e&&!n[o];o++);for(var a=e;a>=0&&!n[a];a--);return o===0&&a===e?n:o>a?[]:n.slice(o,a+1)}var Yt=/^([a-zA-Z]:|[\\\/]{2}[^\\\/]+[\\\/]+[^\\\/]+)?([\\\/])?([\s\S]*?)$/,_l=/^([\s\S]*?)((?:\.{1,2}|[^\\\/]+?|)(\.[^.\/\\]*|))(?:[\\\/]*)$/,re={};function ct(n){var e=Yt.exec(n),o=(e[1]||"")+(e[2]||""),a=e[3]||"",c=_l.exec(a),i=c[1],h=c[2],f=c[3];return[o,i,h,f]}function Mt(n){var e=Yt.exec(n),o=e[1]||"",a=!!o&&o[1]!==":";return{device:o,isUnc:a,isAbsolute:a||!!e[2],tail:e[3]}}function Qt(n){return"\\\\"+n.replace(/^[\\\/]+/,"").replace(/[\\\/]+/g,"\\")}re.resolve=function(){for(var n="",e="",o=!1,a=arguments.length-1;a>=-1;a--){var c;if(a>=0?c=arguments[a]:n?(c=process.env["="+n],(!c||c.substr(0,3).toLowerCase()!==n.toLowerCase()+"\\")&&(c=n+"\\")):c=process.cwd(),Te.isString(c)){if(!c)continue}else throw new TypeError("Arguments to path.resolve must be strings");var i=Mt(c),h=i.device,f=i.isUnc,_=i.isAbsolute,b=i.tail;if(!(h&&n&&h.toLowerCase()!==n.toLowerCase())&&(n||(n=h),o||(e=b+"\\"+e,o=_),n&&o))break}return f&&(n=Qt(n)),e=it(e.split(/[\\\/]+/),!o).join("\\"),n+(o?"\\":"")+e||"."};re.normalize=function(n){var e=Mt(n),o=e.device,a=e.isUnc,c=e.isAbsolute,i=e.tail,h=/[\\\/]$/.test(i);return i=it(i.split(/[\\\/]+/),!c).join("\\"),!i&&!c&&(i="."),i&&h&&(i+="\\"),a&&(o=Qt(o)),o+(c?"\\":"")+i};re.isAbsolute=function(n){return Mt(n).isAbsolute};re.join=function(){for(var n=[],e=0;e<arguments.length;e++){var o=arguments[e];if(!Te.isString(o))throw new TypeError("Arguments to path.join must be strings");o&&n.push(o)}var a=n.join("\\");return/^[\\\/]{2}[^\\\/]/.test(n[0])||(a=a.replace(/^[\\\/]{2,}/,"\\")),re.normalize(a)};re.relative=function(n,e){n=re.resolve(n),e=re.resolve(e);for(var o=n.toLowerCase(),a=e.toLowerCase(),c=et(e.split("\\")),i=et(o.split("\\")),h=et(a.split("\\")),f=Math.min(i.length,h.length),_=f,b=0;b<f;b++)if(i[b]!==h[b]){_=b;break}if(_==0)return e;for(var y=[],b=_;b<i.length;b++)y.push("..");return y=y.concat(c.slice(_)),y.join("\\")};re._makeLong=function(n){if(!Te.isString(n))return n;if(!n)return"";var e=re.resolve(n);return/^[a-zA-Z]\:\\/.test(e)?"\\\\?\\"+e:/^\\\\[^?.]/.test(e)?"\\\\?\\UNC\\"+e.substring(2):n};re.dirname=function(n){var e=ct(n),o=e[0],a=e[1];return!o&&!a?".":(a&&(a=a.substr(0,a.length-1)),o+a)};re.basename=function(n,e){var o=ct(n)[2];return e&&o.substr(-1*e.length)===e&&(o=o.substr(0,o.length-e.length)),o};re.extname=function(n){return ct(n)[3]};re.format=function(n){if(!Te.isObject(n))throw new TypeError("Parameter 'pathObject' must be an object, not "+typeof n);var e=n.root||"";if(!Te.isString(e))throw new TypeError("'pathObject.root' must be a string or undefined, not "+typeof n.root);var o=n.dir,a=n.base||"";return o?o[o.length-1]===re.sep?o+a:o+re.sep+a:a};re.parse=function(n){if(!Te.isString(n))throw new TypeError("Parameter 'pathString' must be a string, not "+typeof n);var e=ct(n);if(!e||e.length!==4)throw new TypeError("Invalid path '"+n+"'");return{root:e[0],dir:e[0]+e[1].slice(0,-1),base:e[2],ext:e[3],name:e[2].slice(0,e[2].length-e[3].length)}};re.sep="\\";re.delimiter=";";var gl=/^(\/?|)([\s\S]*?)((?:\.{1,2}|[^\/]+?|)(\.[^.\/]*|))(?:[\/]*)$/,ue={};function ut(n){return gl.exec(n).slice(1)}ue.resolve=function(){for(var n="",e=!1,o=arguments.length-1;o>=-1&&!e;o--){var a=o>=0?arguments[o]:process.cwd();if(Te.isString(a)){if(!a)continue}else throw new TypeError("Arguments to path.resolve must be strings");n=a+"/"+n,e=a[0]==="/"}return n=it(n.split("/"),!e).join("/"),(e?"/":"")+n||"."};ue.normalize=function(n){var e=ue.isAbsolute(n),o=n&&n[n.length-1]==="/";return n=it(n.split("/"),!e).join("/"),!n&&!e&&(n="."),n&&o&&(n+="/"),(e?"/":"")+n};ue.isAbsolute=function(n){return n.charAt(0)==="/"};ue.join=function(){for(var n="",e=0;e<arguments.length;e++){var o=arguments[e];if(!Te.isString(o))throw new TypeError("Arguments to path.join must be strings");o&&(n?n+="/"+o:n+=o)}return ue.normalize(n)};ue.relative=function(n,e){n=ue.resolve(n).substr(1),e=ue.resolve(e).substr(1);for(var o=et(n.split("/")),a=et(e.split("/")),c=Math.min(o.length,a.length),i=c,h=0;h<c;h++)if(o[h]!==a[h]){i=h;break}for(var f=[],h=i;h<o.length;h++)f.push("..");return f=f.concat(a.slice(i)),f.join("/")};ue._makeLong=function(n){return n};ue.dirname=function(n){var e=ut(n),o=e[0],a=e[1];return!o&&!a?".":(a&&(a=a.substr(0,a.length-1)),o+a)};ue.basename=function(n,e){var o=ut(n)[2];return e&&o.substr(-1*e.length)===e&&(o=o.substr(0,o.length-e.length)),o};ue.extname=function(n){return ut(n)[3]};ue.format=function(n){if(!Te.isObject(n))throw new TypeError("Parameter 'pathObject' must be an object, not "+typeof n);var e=n.root||"";if(!Te.isString(e))throw new TypeError("'pathObject.root' must be a string or undefined, not "+typeof n.root);var o=n.dir?n.dir+ue.sep:"",a=n.base||"";return o+a};ue.parse=function(n){if(!Te.isString(n))throw new TypeError("Parameter 'pathString' must be a string, not "+typeof n);var e=ut(n);if(!e||e.length!==4)throw new TypeError("Invalid path '"+n+"'");return e[1]=e[1]||"",e[2]=e[2]||"",e[3]=e[3]||"",{root:e[0],dir:e[0]+e[1].slice(0,-1),base:e[2],ext:e[3],name:e[2].slice(0,e[2].length-e[3].length)}};ue.sep="/";ue.delimiter=":";ml?tt.exports=re:tt.exports=ue;tt.exports.posix=ue;tt.exports.win32=re;var yl=tt.exports;const bl=yn(yl),wl={width:1024,height:1024,body:'<path fill="currentColor" d="M104.704 685.248a64 64 0 0 0 90.496 0l316.8-316.8l316.8 316.8a64 64 0 0 0 90.496-90.496L557.248 232.704a64 64 0 0 0-90.496 0L104.704 594.752a64 64 0 0 0 0 90.496z"/>'},kl={width:1024,height:1024,body:'<path fill="currentColor" d="M104.704 338.752a64 64 0 0 1 90.496 0l316.8 316.8l316.8-316.8a64 64 0 0 1 90.496 90.496L557.248 791.296a64 64 0 0 1-90.496 0L104.704 429.248a64 64 0 0 1 0-90.496z"/>'},xl={width:1024,height:1024,body:'<path fill="currentColor" d="M685.248 104.704a64 64 0 0 1 0 90.496L368.448 512l316.8 316.8a64 64 0 0 1-90.496 90.496L232.704 557.248a64 64 0 0 1 0-90.496l362.048-362.048a64 64 0 0 1 90.496 0z"/>'},Cl={width:1024,height:1024,body:'<path fill="currentColor" d="M338.752 104.704a64 64 0 0 0 0 90.496l316.8 316.8l-316.8 316.8a64 64 0 0 0 90.496 90.496l362.048-362.048a64 64 0 0 0 0-90.496L429.248 104.704a64 64 0 0 0-90.496 0z"/>'},$l={key:0},Sl={key:1},en=ae({__name:"sidebarItem",props:{item:{type:Object},isNest:{type:Boolean,default:!1},basePath:{type:String,default:""}},setup(n){const e=n,{layout:o,isCollapse:a,tooltipEffect:c,getDivStyle:i}=Me(),h=N(()=>({width:"100%",textAlign:"center"})),f=N(()=>({display:"flex",alignItems:"center"})),_=N(()=>({overflow:"hidden",textOverflow:"ellipsis",outline:"none"})),b=N(()=>({display:"flex",justifyContent:"center",alignItems:"center",margin:o.value==="horizontal"?"0 5px 0 0":a.value?"0 auto":"0 5px 0 0"})),y=N(()=>a.value?{width:""}:{width:"210px",display:"inline-block",overflow:"hidden",textOverflow:"ellipsis"}),u=N(()=>T=>{var S;return a.value?{width:"100%",textAlign:(T==null?void 0:T.parentId)===null||o.value==="mix"&&((S=T==null?void 0:T.pathList)==null?void 0:S.length)===2?"center":""}:{width:"100%",display:"flex",alignItems:"center",justifyContent:"space-between",overflow:"hidden"}}),I=N(()=>{var T;return(T=We())!=null&&T.MenuArrowIconNoTransition?{"expand-close-icon":Le(kl),"expand-open-icon":Le(wl),"collapse-close-icon":Le(Cl),"collapse-open-icon":Le(xl)}:""}),g=Z(null),w=new WeakMap,H=Z(null);function z(T){w.get(T)||De(()=>{var S,A;((S=H.value)==null?void 0:S.scrollWidth)>((A=H.value)==null?void 0:A.clientWidth)?Object.assign(T,{showTooltip:!0}):Object.assign(T,{showTooltip:!1}),w.set(T,!0)})}function $(T,S){var M;const A=((T==null?void 0:T.length)>1?T.toString().slice(0,1):T)+"...";return S&&!(a.value&&(S==null?void 0:S.parentId)===null)?o.value==="mix"&&((M=S==null?void 0:S.pathList)==null?void 0:M.length)===2&&a.value?A:T:A}function G(T=[],S){var M,B;const A=T.filter(L=>(g.value=L,!0));return(B=(M=A[0])==null?void 0:M.meta)!=null&&B.showParent?!1:A.length===1?!0:A.length===0?(g.value={...S,path:"",noShowingChildren:!0},!0):!1}function U(T){const S=/^http(s?):\/\//;return S.test(T)||S.test(e.basePath)?T||e.basePath:bl.posix.resolve(e.basePath,T)}return(T,S)=>{const A=x("el-tooltip"),M=x("el-menu-item"),B=x("sidebar-item",!0),L=x("el-sub-menu");return G(e.item.children,e.item)&&(!g.value.children||g.value.noShowingChildren)?(d(),D(M,{key:0,index:U(g.value.path),class:se({"submenu-title-noDropdown":!n.isNest}),style:ne(f.value)},{title:m(()=>[v("div",{style:ne(t(i))},[t(o)==="horizontal"?(d(),V("span",$l,Q(t(ge)(g.value.meta.title)),1)):(d(),D(A,{key:1,placement:"top",effect:t(c),offset:-10,disabled:!g.value.showTooltip},{content:m(()=>[oe(Q(t(ge)(g.value.meta.title)),1)]),default:m(()=>[v("span",{ref_key:"menuTextRef",ref:H,style:ne(_.value),onMouseover:S[0]||(S[0]=E=>z(g.value))},Q(t(ge)(g.value.meta.title)),37)]),_:1},8,["effect","disabled"])),s(ft,{extraIcon:g.value.meta.extraIcon},null,8,["extraIcon"])],4)]),default:m(()=>{var E,he,K,le,pe;return[Ce(e.item.meta.icon)?(d(),V("div",{key:0,class:"sub-menu-icon",style:ne(b.value)},[(d(),D(Ae(t(Le)(Ce(g.value.meta.icon)||e.item.meta&&Ce(e.item.meta.icon)))))],4)):Y("",!0),!((E=e.item)!=null&&E.meta.icon)&&t(a)&&t(o)==="vertical"&&((K=(he=e.item)==null?void 0:he.pathList)==null?void 0:K.length)===1?(d(),V("span",{key:1,style:ne(h.value)},Q($(t(ge)(g.value.meta.title))),5)):Y("",!0),!g.value.meta.icon&&t(a)&&t(o)==="mix"&&((pe=(le=e.item)==null?void 0:le.pathList)==null?void 0:pe.length)===2?(d(),V("span",{key:2,style:ne(h.value)},Q($(t(ge)(g.value.meta.title))),5)):Y("",!0)]}),_:1},8,["index","class","style"])):(d(),D(L,bn({key:1,ref:"subMenu"},I.value,{index:U(e.item.path)}),{title:m(()=>[Ce(e.item.meta.icon)?(d(),V("div",{key:0,style:ne(b.value),class:"sub-menu-icon"},[(d(),D(Ae(t(Le)(e.item.meta&&Ce(e.item.meta.icon)))))],4)):Y("",!0),t(o)==="horizontal"?(d(),V("span",Sl,Q(t(ge)(e.item.meta.title)),1)):Y("",!0),t(a)&&Ce(e.item.meta.icon)&&e.item.parentId===null?Y("",!0):(d(),V("div",{key:2,style:ne(u.value(e.item))},[t(o)!=="horizontal"?(d(),D(A,{key:0,placement:"top",effect:t(c),offset:-10,disabled:!e.item.showTooltip},{content:m(()=>[oe(Q(t(ge)(e.item.meta.title)),1)]),default:m(()=>[v("span",{ref_key:"menuTextRef",ref:H,style:ne(y.value),onMouseover:S[1]||(S[1]=E=>z(e.item))},Q($(t(ge)(e.item.meta.title),e.item)),37)]),_:1},8,["effect","disabled"])):Y("",!0),t(a)?Y("",!0):(d(),D(ft,{key:1,extraIcon:e.item.meta.extraIcon},null,8,["extraIcon"]))],4))]),default:m(()=>[(d(!0),V(we,null,$e(e.item.children,E=>(d(),D(B,{key:E.path,"is-nest":!0,item:E,"base-path":U(E.path),class:"nest-menu"},null,8,["item","base-path"]))),128))]),_:1},16,["index"]))}}}),Il={class:"container"},Tl=ae({__name:"leftCollapse",props:{isActive:{type:Boolean,default:!1}},emits:["toggleClick"],setup(n,{emit:e}){const o=n,a=Z(!1),{tooltipEffect:c}=Me(),i=N(()=>["ml-4","mb-1","w-[16px]","h-[16px]","inline-block","align-middle","text-primary","cursor-pointer","duration-[100ms]","hover:text-primary","dark:hover:!text-white"]),h=()=>{e("toggleClick")};return(f,_)=>{const b=x("IconifyIconOffline"),y=x("el-tooltip");return d(),V("div",Il,[s(y,{placement:"right",visible:a.value,effect:t(c),content:o.isActive?"点击折叠":"点击展开"},{default:m(()=>[s(b,{icon:t(Kt),class:se(i.value),style:ne({transform:o.isActive?"none":"rotateY(180deg)"}),onClick:h,onMouseenter:_[0]||(_[0]=u=>a.value=!0),onMouseleave:_[1]||(_[1]=u=>a.value=!1)},null,8,["icon","class","style"])]),_:1},8,["visible","effect","content"])])}}});const Ml=fe(Tl,[["__scopeId","data-v-ed074d28"]]),Vl=ae({__name:"vertical",setup(n){var g;const e=gt(),o=Z(((g=Ue().getItem(`${Je()}configure`))==null?void 0:g.showLogo)??!0),{device:a,pureApp:c,isCollapse:i,menuSelect:h,toggleSideBar:f}=Me(),_=Z([]),b=N(()=>c.layout==="mix"&&a.value!=="mobile"?_.value:be().wholeMenus),y=N(()=>c.layout==="mix"?!1:b.value.length===0),u=N(()=>{var w;return qe((w=e.meta)==null?void 0:w.activePath)?e.path:e.meta.activePath});function I(){let w="";w=u.value,_.value=[];const H=_t(w,be().wholeMenus),z=ot(H[0]||w,be().wholeMenus);z!=null&&z.children&&(_.value=z==null?void 0:z.children)}return Ge(()=>[e.path,be().wholeMenus],()=>{e.path.includes("/redirect")||(I(),h(e.path))}),Ze(()=>{I(),ye.on("logoChange",w=>{o.value=w})}),bt(()=>{ye.off("logoChange")}),(w,H)=>{const z=x("el-menu"),$=x("el-scrollbar"),G=mt("loading");return ve((d(),V("div",{class:se(["sidebar-container",o.value?"has-logo":"no-logo"])},[o.value?(d(),D(fl,{key:0,collapse:t(i)},null,8,["collapse"])):Y("",!0),s($,{"wrap-class":"scrollbar-wrapper",class:se([t(a)==="mobile"?"mobile":"pc"])},{default:m(()=>[s(z,{router:"","unique-opened":"",mode:"vertical",class:"outer-most select-none",collapse:t(i),"default-active":u.value,"collapse-transition":!1},{default:m(()=>[(d(!0),V(we,null,$e(b.value,U=>(d(),D(en,{key:U.path,item:U,"base-path":U.path,class:"outer-most select-none"},null,8,["item","base-path"]))),128))]),_:1},8,["collapse","default-active"])]),_:1},8,["class"]),t(a)!=="mobile"?(d(),D(Ml,{key:1,"is-active":t(c).sidebar.opened,onToggleClick:t(f)},null,8,["is-active","onToggleClick"])):Y("",!0)],2)),[[G,y.value]])}}});const zl=fe(Vl,[["__scopeId","data-v-e2ffffe3"]]),Ll={class:"horizontal-header"},Al=["src"],Hl={class:"horizontal-header-right"},El={class:"check-zh"},Ol={class:"check-en"},Dl={class:"el-dropdown-link navbar-bg-hover"},Zl=["src"],Pl={key:0,class:"dark:text-white"},Rl=["title"],jl=ae({__name:"horizontal",setup(n){const e=Z(),{t:o,route:a,locale:c,translationCh:i,translationEn:h}=xt(e),{title:f,logout:_,backTopMenu:b,onPanel:y,getLogo:u,username:I,userAvatar:g,avatarsStyle:w,getDropdownItemStyle:H,getDropdownItemClass:z}=Me(),$=N(()=>{var G;return qe((G=a.meta)==null?void 0:G.activePath)?a.path:a.meta.activePath});return De(()=>{var G;(G=e.value)==null||G.handleResize()}),(G,U)=>{const T=x("el-menu"),S=x("IconifyIconOffline"),A=x("el-dropdown-item"),M=x("el-dropdown-menu"),B=x("el-dropdown"),L=mt("loading");return ve((d(),V("div",Ll,[v("div",{class:"horizontal-header-left",onClick:U[0]||(U[0]=(...E)=>t(b)&&t(b)(...E))},[v("img",{src:t(u)(),alt:"logo"},null,8,Al),v("span",null,Q(t(f)),1)]),s(T,{router:"",ref_key:"menuRef",ref:e,mode:"horizontal",class:"horizontal-header-menu","default-active":$.value},{default:m(()=>[(d(!0),V(we,null,$e(t(be)().wholeMenus,E=>(d(),D(en,{key:E.path,item:E,"base-path":E.path},null,8,["item","base-path"]))),128))]),_:1},8,["default-active"]),v("div",Hl,[s(St),s(It,{id:"header-notice"}),s(B,{id:"header-translation",trigger:"click"},{dropdown:m(()=>[s(M,{class:"translation"},{default:m(()=>[s(A,{style:ne(t(H)(t(c),"zh")),class:se(["dark:!text-white",t(z)(t(c),"zh")]),onClick:t(i)},{default:m(()=>[ve(v("span",El,[s(S,{icon:t(Fe)},null,8,["icon"])],512),[[Se,t(c)==="zh"]]),oe(" 简体中文 ")]),_:1},8,["style","class","onClick"]),s(A,{style:ne(t(H)(t(c),"en")),class:se(["dark:!text-white",t(z)(t(c),"en")]),onClick:t(h)},{default:m(()=>[ve(v("span",Ol,[s(S,{icon:t(Fe)},null,8,["icon"])],512),[[Se,t(c)==="en"]]),oe(" English ")]),_:1},8,["style","class","onClick"])]),_:1})]),default:m(()=>[s(t(Ct),{class:"navbar-bg-hover w-[40px] h-[48px] p-[11px] cursor-pointer outline-none"})]),_:1}),s(B,{trigger:"click"},{dropdown:m(()=>[s(M,{class:"logout"},{default:m(()=>[s(A,{onClick:t(_)},{default:m(()=>[s(S,{icon:t(rt),style:{margin:"5px"}},null,8,["icon"]),oe(" "+Q(t(o)("buttons.hsLoginOut")),1)]),_:1},8,["onClick"])]),_:1})]),default:m(()=>[v("span",Dl,[v("img",{src:t(g),style:ne(t(w))},null,12,Zl),t(I)?(d(),V("p",Pl,Q(t(I)),1)):Y("",!0)])]),_:1}),v("span",{class:"set-icon navbar-bg-hover",title:t(o)("buttons.hssystemSet"),onClick:U[1]||(U[1]=(...E)=>t(y)&&t(y)(...E))},[s(S,{icon:t(st)},null,8,["icon"])],8,Rl)])])),[[L,t(be)().wholeMenus.length===0]])}}});const ql=fe(jl,[["__scopeId","data-v-17b0ca1a"]]),Bl={key:0},Fl=ae({__name:"index",setup(n){const e=Z(),{isDark:o}=Ft(),{layout:a}=Sn(),c=Pt(),i=$t(),{$storage:h}=kt(),f=yt({sidebar:N(()=>Oe().sidebar),device:N(()=>Oe().device),fixedHeader:N(()=>i.fixedHeader),classes:N(()=>({hideSidebar:!f.sidebar.opened,openSidebar:f.sidebar.opened,withoutAnimation:f.sidebar.withoutAnimation,mobile:f.device==="mobile"})),hideTabs:N(()=>h==null?void 0:h.configure.hideTabs)});function _(I){var g,w,H,z;window.document.body.setAttribute("layout",I),h.layout={layout:`${I}`,theme:(g=h.layout)==null?void 0:g.theme,darkMode:(w=h.layout)==null?void 0:w.darkMode,sidebarStatus:(H=h.layout)==null?void 0:H.sidebarStatus,epThemeColor:(z=h.layout)==null?void 0:z.epThemeColor}}function b(I,g){Oe().toggleDevice(I),Oe().toggleSideBar(g,"resize")}let y=!0;vt(e,I=>{if(c)return;const g=I[0],{width:w}=g.contentRect;w<=760?_("vertical"):_(Oe().layout),w>0&&w<=760?(b("mobile",!1),y=!0):w>760&&w<=990?y&&(b("desktop",!1),y=!1):w>990&&!f.sidebar.isClickCollapse?(b("desktop",!0),y=!0):(b("desktop",!1),y=!1)}),Ze(()=>{c&&b("mobile",!1)}),Nt(()=>{Ut().dataThemeChange()});const u=ae({render(){return Ye("div",{class:{"fixed-header":f.fixedHeader},style:[f.hideTabs&&a.value.includes("horizontal")?o.value?"box-shadow: 0 1px 4px #0d0d0d":"box-shadow: 0 1px 4px rgba(0, 21, 41, 0.08)":""]},{default:()=>[!i.hiddenSideBar&&(a.value.includes("vertical")||a.value.includes("mix"))?Ye(ca):null,!i.hiddenSideBar&&a.value.includes("horizontal")?Ye(ql):null,Ye(Sa)]})}});return(I,g)=>{const w=x("el-backtop"),H=x("el-scrollbar");return d(),V("div",{ref_key:"appWrapperRef",ref:e,class:se(["app-wrapper",f.classes])},[ve(v("div",{class:"app-mask",onClick:g[0]||(g[0]=z=>t(Oe)().toggleSideBar())},null,512),[[Se,f.device==="mobile"&&f.sidebar.opened&&t(a).includes("vertical")]]),ve(s(zl,null,null,512),[[Se,!t(i).hiddenSideBar&&(t(a).includes("vertical")||t(a).includes("mix"))]]),v("div",{class:se(["main-container",t(i).hiddenSideBar?"main-hidden":""])},[f.fixedHeader?(d(),V("div",Bl,[s(t(u)),s(Ot,{"fixed-header":f.fixedHeader},null,8,["fixed-header"])])):(d(),D(H,{key:1},{default:m(()=>[s(w,{title:"回到顶部",target:".main-container .el-scrollbar__wrap"},{default:m(()=>[s(t(Wt))]),_:1}),s(t(u)),s(Ot,{"fixed-header":f.fixedHeader},null,8,["fixed-header"])]),_:1}))],2),s(rl)],2)}}});const is=fe(Fl,[["__scopeId","data-v-203a800b"]]);export{is as default};
|