mirror of
https://github.com/pure-admin/vue-pure-admin.git
synced 2025-06-08 01:17:23 +08:00
11 lines
76 KiB
JavaScript
11 lines
76 KiB
JavaScript
import{d0 as de,aC as ln,aF as We,aG as sn,g as d,n as z,h as v,d as oe,r as D,G as q,aT as mt,a as Pe,F as we,y as $e,aj as te,f as O,R as He,u as n,t as ee,K as _e,j as s,ac as Rt,_ as fe,c as C,i as ne,k as Q,a4 as at,a1 as rn,au as cn,U as un,E as be,d1 as ht,w as m,b2 as dn,d2 as Be,av as jt,ap as Bt,x as Ze,b6 as Ce,X as Ne,e as _t,l as ve,at as se,v as Se,d3 as gt,d4 as nt,c$ as yt,d5 as ze,as as hn,an as Ke,d6 as Fe,aD as Ue,aE as Xe,al as bt,d7 as me,d8 as Ye,d9 as fn,da as pn,db as tt,aY as Oe,dc as ot,dd as vn,T as je,b as wt,de as kt,df as ft,dg as Et,dh as Ft,di as xt,dj as Ot,M as Je,dk as mn,af as _n,p as lt,m as st,ab as Nt,ar as qt,dl as gn,dm as yn,a2 as bn,Q as wn,ao as kn}from"./index.js";import{d as xn}from"./menu.js";import{d as Cn,u as Me,a as Ct,g as $t,b as Ut,t as $n,c as Sn,e as In,f as Tn}from"./dark.js";import{d as Mn}from"./set-up.js";import{d as Vn}from"./home-filled.js";import{d as zn}from"./admin-line.js";import{d as Ln}from"./git-branch-line.js";import{u as De}from"./app.js";import{m as An}from"./index62.js";import{u as Hn}from"./epTheme.js";import{u as Ae}from"./hooks.js";import{d as En}from"./search.js";import{d as qe}from"./check.js";import{e as ye}from"./mitt.js";import{d as On}from"./refresh-right.js";import{d as Dn}from"./arrow-right-s-line.js";import{b as Wt}from"./back_top.js";const Zn={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"/>'},Pn={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"/>'},Rn={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"/>'},jn={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"/>'},Bn={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"/>'},Fn={width:24,height:24,body:'<path fill="currentColor" d="M8 4h13v2H8V4Zm-5-.5h3v3H3v-3Zm0 7h3v3H3v-3Zm0 7h3v3H3v-3ZM8 11h13v2H8v-2Zm0 7h13v2H8v-2Z"/>'},Nn={width:1024,height:1024,body:'<path fill="currentColor" d="M416 896V128h192v768H416zm-288 0V448h192v448H128zm576 0V320h192v576H704z"/>'},qn={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"/>'},Un={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"/>'},Wn={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"/>'},rt={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"/>'},Gn={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"/>'},Kn={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",Zn);de("menu",xn);de("edit",Pn);de("informationLine",Cn);de("setUp",Mn);de("terminalWindowLine",Rn);de("guide",jn);de("homeFilled",Vn);de("card",Bn);de("listCheck",Fn);de("histogram",Nn);de("ppt",qn);de("checkboxCircleLine",Un);de("flUser",zn);de("role",Wn);de("setting",rt);de("dept",Ln);de("lollipop",Gn);de("monitor",Kn);const Xn=ln({id:"pure-setting",state:()=>({title:We().Title,fixedHeader:We().FixedHeader,hiddenSideBar:We().HiddenSideBar}),getters:{getTitle(t){return t.title},getFixedHeader(t){return t.fixedHeader},getHiddenSideBar(t){return t.hiddenSideBar}},actions:{CHANGE_SETTING({key:t,value:e}){Reflect.has(this,t)&&(this[t]=e)},changeSetting(t){this.CHANGE_SETTING(t)}}});function St(){return Xn(sn)}const Jn={xmlns:"http://www.w3.org/2000/svg",width:"20",height:"20","aria-hidden":"true",class:"iconify iconify--ant-design",viewBox:"0 0 1024 1024"},Yn=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),Qn=[Yn];function eo(t,e){return d(),z("svg",Jn,Qn)}const Gt={render:eo},to={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"/>'},no=["onMouseenter"],oo={class:"result-item-title"},ao=oe({__name:"SearchResult",props:{value:{},options:{}},emits:["update:value","enter"],setup(t,{expose:e,emit:o}){const a=t,c=D(),r=D(),h=Rt(),p=q(()=>_=>({background:(_==null?void 0:_.path)===y.value?Hn().epThemeColor:"",color:_.path===y.value?"#fff":"",fontSize:_.path===y.value?"16px":"14px"})),y=q({get(){return a.value},set(_){o("update:value",_)}});async function w(_){y.value=_.path}function g(){o("enter")}function u(){r.value=window.innerHeight-window.innerHeight/10-140}mt(c,()=>{u()});function M(_){var x;const b=(x=h==null?void 0:h.proxy)==null?void 0:x.$refs[`resultItemRef${_}`];if(!b)return 0;const L=b[0].offsetTop+128;return L>r.value?L-r.value:0}return Pe(()=>{u()}),e({handleScroll:M}),(_,b)=>(d(),z("div",{ref_key:"resultRef",ref:c,class:"result"},[(d(!0),z(we,null,$e(_.options,(A,L)=>{var x,G;return d(),z("div",{key:A.path,ref_for:!0,ref:"resultItemRef"+L,class:"result-item dark:bg-[#1d1d1d]",style:te(p.value(A)),onClick:g,onMouseenter:W=>w(A)},[(d(),O(He(n(Ae)(((x=A.meta)==null?void 0:x.icon)??n(to))))),v("span",oo,ee(n(_e)((G=A.meta)==null?void 0:G.title)),1),s(n(Gt))],44,no)}),128))],512))}});const lo=fe(ao,[["__scopeId","data-v-f0aabde6"]]),so={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"/>'},ro={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"/>'},io={xmlns:"http://www.w3.org/2000/svg",width:"20",height:"20","aria-hidden":"true",class:"iconify iconify--mdi",viewBox:"0 0 24 24"},co=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),uo=[co];function ho(t,e){return d(),z("svg",io,uo)}const fo={render:ho},po={class:"search-footer text-[#333] dark:text-white"},vo={class:"search-footer-item"},mo={class:"search-footer-item"},_o={class:"search-footer-item"},go={key:0,class:"search-footer-total"},yo=oe({__name:"SearchFooter",props:{total:{default:0}},setup(t){const e=t,{device:o}=Me();return(a,c)=>{const r=C("IconifyIconOffline");return d(),z("div",po,[v("span",vo,[s(n(Gt),{class:"icon"}),ne(" 确认 ")]),v("span",mo,[s(r,{icon:n(so),class:"icon"},null,8,["icon"]),s(r,{icon:n(ro),class:"icon"},null,8,["icon"]),ne(" 切换 ")]),v("span",_o,[s(n(fo),{class:"icon"}),ne(" 关闭 ")]),n(o)!=="mobile"&&e.total>0?(d(),z("p",go," 共"+ee(e.total)+"项 ",1)):Q("",!0)])}}});const bo=fe(yo,[["__scopeId","data-v-6f31f47e"]]),wo={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"/>'},ko={class:"search-result-container"},xo=oe({__name:"SearchModal",props:{value:{type:Boolean}},emits:["update:value"],setup(t,{emit:e}){const o=t,{device:a}=Me(),c=at(),{locale:r}=rn(),h=D(""),p=D(),y=D(),w=D(""),g=D(null),u=cn([]),M=dn(L,300),_=q(()=>un(be().wholeMenus)),b=q({get(){return o.value},set(H){e("update:value",H)}});function A(H){const V=[];function F(T){T.forEach(N=>{V.push(N),N.children&&F(N.children)})}return F(H),V}function L(){var V;const H=A(_.value);u.value=H.filter(F=>{var T,N;return h.value?_e((T=F.meta)==null?void 0:T.title).toLocaleLowerCase().includes(h.value.toLocaleLowerCase().trim())||r.value==="zh"&&!Be(An(_e((N=F.meta)==null?void 0:N.title).toLocaleLowerCase(),h.value.toLocaleLowerCase().trim())):!1}),((V=u.value)==null?void 0:V.length)>0?w.value=u.value[0].path:w.value=""}function x(){b.value=!1,setTimeout(()=>{u.value=[],h.value=""},200)}function G(H){const V=y.value.handleScroll(H);p.value.setScrollTop(V)}function W(){const{length:H}=u.value;if(H===0)return;const V=u.value.findIndex(F=>F.path===w.value);V===0?(w.value=u.value[H-1].path,G(u.value.length-1)):(w.value=u.value[V-1].path,G(V-1))}function S(){const{length:H}=u.value;if(H===0)return;const V=u.value.findIndex(F=>F.path===w.value);V+1===H?w.value=u.value[0].path:w.value=u.value[V+1].path,G(V+1)}function I(){const{length:H}=u.value;H===0||w.value===""||(c.push(w.value),x())}return ht("Enter",I),ht("ArrowUp",W),ht("ArrowDown",S),(H,V)=>{const F=C("IconifyIconOffline"),T=C("el-input"),N=C("el-empty"),he=C("el-scrollbar"),K=C("el-dialog");return d(),O(K,{top:"5vh",class:"pure-search-dialog",modelValue:b.value,"onUpdate:modelValue":V[2]||(V[2]=ae=>b.value=ae),"show-close":!1,width:n(a)==="mobile"?"80vw":"40vw","before-close":x,style:{borderRadius:"6px"},"append-to-body":"",onOpened:V[3]||(V[3]=ae=>g.value.focus()),onClosed:V[4]||(V[4]=ae=>g.value.blur())},{footer:m(()=>[s(bo,{total:u.value.length},null,8,["total"])]),default:m(()=>[s(T,{ref_key:"inputRef",ref:g,size:"large",modelValue:h.value,"onUpdate:modelValue":V[0]||(V[0]=ae=>h.value=ae),clearable:"",placeholder:"搜索菜单(中文模式下支持拼音搜索)",onInput:n(M)},{prefix:m(()=>[s(F,{icon:n(wo),class:"text-primary w-[24px] h-[24px]"},null,8,["icon"])]),_:1},8,["modelValue","onInput"]),v("div",ko,[s(he,{ref_key:"scrollbarRef",ref:p,"max-height":"calc(90vh - 140px)"},{default:m(()=>[u.value.length===0?(d(),O(N,{key:0,description:"暂无搜索结果"})):(d(),O(lo,{key:1,ref_key:"resultRef",ref:y,value:w.value,"onUpdate:value":V[1]||(V[1]=ae=>w.value=ae),options:u.value,onClick:I},null,8,["value","options"]))]),_:1},512)])]),_:1},8,["modelValue","width"])}}});const Co=fe(xo,[["__scopeId","data-v-21c6bb77"]]);function $o(t=!1){const e=D(t);function o(h){e.value=h}function a(){o(!0)}function c(){o(!1)}function r(){o(!e.value)}return{bool:e,setBool:o,setTrue:a,setFalse:c,toggle:r}}const It=oe({__name:"index",setup(t){const{bool:e,toggle:o}=$o();function a(){o()}return(c,r)=>{const h=C("IconifyIconOffline");return d(),z(we,null,[v("div",{class:"search-container w-[40px] h-[48px] flex-c cursor-pointer navbar-bg-hover",onClick:a},[s(h,{icon:n(En)},null,8,["icon"])]),s(n(Co),{value:n(e),"onUpdate:value":r[0]||(r[0]=p=>jt(e)?e.value=p:null)},null,8,["value"])],64)}}}),Dt=[{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"}]}],So={class:"notice-container border-b-[1px] border-solid border-[#f0f0f0] dark:border-[#303030]"},Io={class:"notice-container-text"},To={class:"notice-text-title text-[#000000d9] dark:text-white"},Mo={class:"notice-text-datetime text-[#00000073] dark:text-white"},Vo=oe({__name:"noticeItem",props:{noticeItem:{type:Object,default:()=>{}}},setup(t){const e=t,o=D(null),a=D(!1),c=D(null),r=D(!1),{tooltipEffect:h}=Me(),p=Bt();function y(){Ze(()=>{var g,u;((g=o.value)==null?void 0:g.scrollWidth)>((u=o.value)==null?void 0:u.clientWidth)?a.value=!0:a.value=!1})}function w(g,u){const M=document.createElement("span");M.innerText=u,M.className="getDescriptionWidth",document.querySelector("body").appendChild(M);const _=document.querySelector(".getDescriptionWidth").offsetWidth;document.querySelector(".getDescriptionWidth").remove();const b=g.target.offsetWidth;_>2*b?r.value=!0:r.value=!1}return(g,u)=>{var A,L;const M=C("el-avatar"),_=C("el-tooltip"),b=C("el-tag");return d(),z("div",So,[e.noticeItem.avatar?(d(),O(M,{key:0,size:30,src:e.noticeItem.avatar,class:"notice-container-avatar"},null,8,["src"])):Q("",!0),v("div",Io,[v("div",To,[s(_,{"popper-class":"notice-title-popper",effect:n(h),disabled:!a.value,content:e.noticeItem.title,placement:"top-start",enterable:!n(p)},{default:m(()=>[v("div",{ref_key:"titleRef",ref:o,class:"notice-title-content",onMouseover:y},ee(e.noticeItem.title),545)]),_:1},8,["effect","disabled","content","enterable"]),(A=e.noticeItem)!=null&&A.extra?(d(),O(b,{key:0,type:(L=e.noticeItem)==null?void 0:L.status,size:"small",class:"notice-title-extra"},{default:m(()=>{var x;return[ne(ee((x=e.noticeItem)==null?void 0:x.extra),1)]}),_:1},8,["type"])):Q("",!0)]),s(_,{"popper-class":"notice-title-popper",effect:n(h),disabled:!r.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]=x=>w(x,e.noticeItem.description))},ee(e.noticeItem.description),545)]),_:1},8,["effect","disabled","content"]),v("div",Mo,ee(e.noticeItem.datetime),1)])])}}});const zo=fe(Vo,[["__scopeId","data-v-2a7dbc48"]]),Lo={key:0},Ao=oe({__name:"noticeList",props:{list:{type:Array,default:()=>[]}},setup(t){const e=t;return(o,a)=>{const c=C("el-empty");return e.list.length?(d(),z("div",Lo,[(d(!0),z(we,null,$e(e.list,(r,h)=>(d(),O(zo,{noticeItem:r,key:h},null,8,["noticeItem"]))),128))])):(d(),O(c,{key:1,description:"暂无数据"}))}}}),Ho={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"/>'},Eo={class:"dropdown-badge navbar-bg-hover select-none"},Oo={class:"header-notice-icon"},Do={key:1},Zo={class:"noticeList-container"},Po=oe({__name:"index",setup(t){const e=D(0),o=D(Dt),a=D(Dt[0].key);return o.value.map(c=>e.value+=c.list.length),(c,r)=>{const h=C("IconifyIconOffline"),p=C("el-badge"),y=C("el-empty"),w=C("el-scrollbar"),g=C("el-tab-pane"),u=C("el-tabs"),M=C("el-dropdown-menu"),_=C("el-dropdown");return d(),O(_,{trigger:"click",placement:"bottom-end"},{dropdown:m(()=>[s(M,null,{default:m(()=>[s(u,{stretch:!0,modelValue:a.value,"onUpdate:modelValue":r[0]||(r[0]=b=>a.value=b),class:"dropdown-tabs",style:te({width:o.value.length===0?"200px":"330px"})},{default:m(()=>[o.value.length===0?(d(),O(y,{key:0,description:"暂无消息","image-size":60})):(d(),z("span",Do,[(d(!0),z(we,null,$e(o.value,b=>(d(),O(g,{key:b.key,label:`${b.name}(${b.list.length})`,name:`${b.key}`},{default:m(()=>[s(w,{"max-height":"330px"},{default:m(()=>[v("div",Zo,[s(Ao,{list:b.list},null,8,["list"])])]),_:2},1024)]),_:2},1032,["label","name"]))),128))]))]),_:1},8,["modelValue","style"])]),_:1})]),default:m(()=>[v("span",Eo,[s(p,{value:e.value,max:99},{default:m(()=>[v("span",Oo,[s(h,{icon:n(Ho)},null,8,["icon"])])]),_:1},8,["value"])])]),_:1})}}});const Tt=fe(Po,[["__scopeId","data-v-f8beaa07"]]),Ro={key:0,class:"flex justify-center items-center"},pt=oe({__name:"extraIcon",props:{extraIcon:{type:String,default:""}},setup(t){const e=t;return(o,a)=>e.extraIcon?(d(),z("div",Ro,[(d(),O(He(n(Ae)(Ce(e.extraIcon))),{class:"w-[30px] h-[30px]"}))])):Q("",!0)}}),it={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"/>'},jo={key:0,class:"horizontal-header"},Bo={class:"select-none"},Fo={class:"horizontal-header-right"},No={class:"check-zh"},qo={class:"check-en"},Uo={class:"el-dropdown-link navbar-bg-hover select-none"},Wo=["src"],Go={key:0,class:"dark:text-white"},Ko=["title"],Xo=oe({__name:"mixNav",setup(t){const e=D(),o=D(null),{t:a,route:c,locale:r,translationCh:h,translationEn:p}=Ct(e),{device:y,logout:w,onPanel:g,resolvePath:u,username:M,userAvatar:_,getDivStyle:b,avatarsStyle:A,getDropdownItemStyle:L,getDropdownItemClass:x}=Me();function G(W){var H,V,F;const S=be().wholeMenus,I=gt(W,S)[0];o.value=Be((H=c.meta)==null?void 0:H.activePath)?(F=(V=nt(I,S))==null?void 0:V.children[0])==null?void 0:F.path:c.meta.activePath}return Pe(()=>{G(c.path)}),Ze(()=>{var W;(W=e.value)==null||W.handleResize()}),Ne(()=>[c.path,be().wholeMenus],()=>{G(c.path)}),(W,S)=>{const I=C("el-menu-item"),H=C("el-menu"),V=C("IconifyIconOffline"),F=C("el-dropdown-item"),T=C("el-dropdown-menu"),N=C("el-dropdown"),he=_t("loading");return n(y)!=="mobile"?ve((d(),z("div",jo,[s(H,{router:"",ref_key:"menuRef",ref:e,mode:"horizontal",class:"horizontal-header-menu","default-active":o.value},{default:m(()=>[(d(!0),z(we,null,$e(n(be)().wholeMenus,K=>(d(),O(I,{key:K.path,index:n(u)(K)||K.redirect},{title:m(()=>[Ce(K.meta.icon)?(d(),z("div",{key:0,class:se(["sub-menu-icon",K.meta.icon])},[(d(),O(He(n(Ae)(K.meta&&Ce(K.meta.icon)))))],2)):Q("",!0),v("div",{style:te(n(b))},[v("span",Bo,ee(n(_e)(K.meta.title)),1),s(pt,{extraIcon:K.meta.extraIcon},null,8,["extraIcon"])],4)]),_:2},1032,["index"]))),128))]),_:1},8,["default-active"]),v("div",Fo,[s(It),s(Tt,{id:"header-notice"}),s(N,{id:"header-translation",trigger:"click"},{dropdown:m(()=>[s(T,{class:"translation"},{default:m(()=>[s(F,{style:te(n(L)(n(r),"zh")),class:se(["dark:!text-white",n(x)(n(r),"zh")]),onClick:n(h)},{default:m(()=>[ve(v("span",No,[s(V,{icon:n(qe)},null,8,["icon"])],512),[[Se,n(r)==="zh"]]),ne(" 简体中文 ")]),_:1},8,["style","class","onClick"]),s(F,{style:te(n(L)(n(r),"en")),class:se(["dark:!text-white",n(x)(n(r),"en")]),onClick:n(p)},{default:m(()=>[ve(v("span",qo,[s(V,{icon:n(qe)},null,8,["icon"])],512),[[Se,n(r)==="en"]]),ne(" English ")]),_:1},8,["style","class","onClick"])]),_:1})]),default:m(()=>[s(n($t),{class:"navbar-bg-hover w-[40px] h-[48px] p-[11px] cursor-pointer outline-none"})]),_:1}),s(N,{trigger:"click"},{dropdown:m(()=>[s(T,{class:"logout"},{default:m(()=>[s(F,{onClick:n(w)},{default:m(()=>[s(V,{icon:n(it),style:{margin:"5px"}},null,8,["icon"]),ne(" "+ee(n(a)("buttons.hsLoginOut")),1)]),_:1},8,["onClick"])]),_:1})]),default:m(()=>[v("span",Uo,[v("img",{src:n(_),style:te(n(A))},null,12,Wo),n(M)?(d(),z("p",Go,ee(n(M)),1)):Q("",!0)])]),_:1}),v("span",{class:"set-icon navbar-bg-hover",title:n(a)("buttons.hssystemSet"),onClick:S[0]||(S[0]=(...K)=>n(g)&&n(g)(...K))},[s(V,{icon:n(rt)},null,8,["icon"])],8,Ko)])])),[[he,n(be)().wholeMenus.length===0]]):Q("",!0)}}});const Jo=fe(Xo,[["__scopeId","data-v-756f1729"]]),Yo=["onClick"],Qo=oe({__name:"breadCrumb",setup(t){const e=yt(),o=D([]),a=at(),c=a.options.routes,r=ze().multiTags,h=()=>{let y;Object.keys(e.query).length>0?r.forEach(u=>{Fe(e.query,u==null?void 0:u.query)&&(y=Ce(u))}):Object.keys(e.params).length>0?r.forEach(u=>{Fe(e.params,u==null?void 0:u.params)&&(y=Ce(u))}):y=nt(a.currentRoute.value.path,c);const w=gt(a.currentRoute.value.name,c,"name"),g=[];w.forEach(u=>{u!=="/"&&g.push(nt(u,c))}),g.push(y),g.forEach((u,M)=>{y!=null&&y.query||y!=null&&y.params||u!=null&&u.children&&u.children.forEach(_=>{var b,A;((b=_==null?void 0:_.meta)==null?void 0:b.title)===((A=u==null?void 0:u.meta)==null?void 0:A.title)&&g.splice(M,1)})}),o.value=g.filter(u=>(u==null?void 0:u.meta)&&(u==null?void 0:u.meta.title)!==!1)},p=y=>{const{redirect:w,path:g}=y;w?a.push(w):a.push(g)};return Pe(()=>{h()}),Ne(()=>e.path,()=>{h()},{deep:!0}),(y,w)=>{const g=C("el-breadcrumb-item"),u=C("el-breadcrumb");return d(),O(u,{class:"!leading-[50px] select-none",separator:"/"},{default:m(()=>[s(hn,{name:"breadcrumb"},{default:m(()=>[(d(!0),z(we,null,$e(o.value,M=>(d(),O(g,{class:"!inline !items-stretch",key:M.path},{default:m(()=>[v("a",{onClick:Ke(_=>p(M),["prevent"])},ee(n(_e)(M.meta.title)),9,Yo)]),_: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"/>'},ea={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"/>'},ta=["title"],na=oe({__name:"topCollapse",props:{isActive:{type:Boolean,default:!1}},emits:["toggleClick"],setup(t,{emit:e}){const o=t,a=()=>{e("toggleClick")};return(c,r)=>{const h=C("IconifyIconOffline");return d(),z("div",{class:"px-3 mr-1 navbar-bg-hover",title:o.isActive?"点击折叠":"点击展开",onClick:a},[s(h,{icon:o.isActive?n(Kt):n(ea),class:"inline-block align-middle hover:text-primary dark:hover:!text-white"},null,8,["icon"])],8,ta)}}}),oa={class:"navbar bg-[#fff] shadow-sm shadow-[rgba(0,21,41,0.08)]"},aa={key:3,class:"vertical-header-right"},la={class:"check-en"},sa={class:"el-dropdown-link navbar-bg-hover select-none"},ra=["src"],ia={key:0,class:"dark:text-white"},ca=["title"],ua=oe({__name:"navbar",setup(t){const{layout:e,device:o,logout:a,onPanel:c,pureApp:r,username:h,userAvatar:p,avatarsStyle:y,toggleSideBar:w,getDropdownItemStyle:g,getDropdownItemClass:u}=Me(),{t:M,locale:_,translationCh:b,translationEn:A}=Ct();return(L,x)=>{const G=C("IconifyIconOffline"),W=C("el-dropdown-item"),S=C("el-dropdown-menu"),I=C("el-dropdown");return d(),z("div",oa,[n(o)==="mobile"?(d(),O(na,{key:0,class:"hamburger-container","is-active":n(r).sidebar.opened,onToggleClick:n(w)},null,8,["is-active","onToggleClick"])):Q("",!0),n(e)!=="mix"&&n(o)!=="mobile"?(d(),O(Qo,{key:1,class:"breadcrumb-container"})):Q("",!0),n(e)==="mix"?(d(),O(Jo,{key:2})):Q("",!0),n(e)==="vertical"?(d(),z("div",aa,[s(It),s(Tt,{id:"header-notice"}),s(I,{id:"header-translation",trigger:"click"},{dropdown:m(()=>[s(S,{class:"translation"},{default:m(()=>[s(W,{style:te(n(g)(n(_),"zh")),class:se(["dark:!text-white",n(u)(n(_),"zh")]),onClick:n(b)},{default:m(()=>[ve(s(G,{class:"check-zh",icon:n(qe)},null,8,["icon"]),[[Se,n(_)==="zh"]]),ne(" 简体中文 ")]),_:1},8,["style","class","onClick"]),s(W,{style:te(n(g)(n(_),"en")),class:se(["dark:!text-white",n(u)(n(_),"en")]),onClick:n(A)},{default:m(()=>[ve(v("span",la,[s(G,{icon:n(qe)},null,8,["icon"])],512),[[Se,n(_)==="en"]]),ne(" English ")]),_:1},8,["style","class","onClick"])]),_:1})]),default:m(()=>[s(n($t),{class:"navbar-bg-hover w-[40px] h-[48px] p-[11px] cursor-pointer outline-none"})]),_:1}),s(I,{trigger:"click"},{dropdown:m(()=>[s(S,{class:"logout"},{default:m(()=>[s(W,{onClick:n(a)},{default:m(()=>[s(G,{icon:n(it),style:{margin:"5px"}},null,8,["icon"]),ne(" "+ee(n(M)("buttons.hsLoginOut")),1)]),_:1},8,["onClick"])]),_:1})]),default:m(()=>[v("span",sa,[v("img",{src:n(p),style:te(n(y))},null,12,ra),n(h)?(d(),z("p",ia,ee(n(h)),1)):Q("",!0)])]),_:1}),v("span",{class:"set-icon navbar-bg-hover",title:n(M)("buttons.hssystemSet"),onClick:x[0]||(x[0]=(...H)=>n(c)&&n(c)(...H))},[s(G,{icon:n(rt)},null,8,["icon"])],8,ca)])):Q("",!0)])}}});const da=fe(ua,[["__scopeId","data-v-aa0aa723"]]),ha={width:24,height:24,body:'<path fill="currentColor" d="M5 11v2h14v-2H5Z"/>'},fa={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"/>'},pa={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"/>'},va={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 ma(){var F;const t=yt(),e=at(),o=Rt(),a=St(),c=D(0),r=D(0),h=D(0),p=D(!1),y=D(-1),w=D({}),g=D(((F=Ue().getItem(`${Xe()}configure`))==null?void 0:F.showModel)||"smart"),u=D(Ue().getItem(`${Xe()}configure`).hideTabs)??D("false"),M=q(()=>ze().multiTags),_=bt([{icon:On,text:me("buttons.hsreload"),divided:!1,disabled:!1,show:!0},{icon:Xt,text:me("buttons.hscloseCurrentTab"),divided:!1,disabled:!(M.value.length>1),show:!0},{icon:va,text:me("buttons.hscloseLeftTabs"),divided:!0,disabled:!(M.value.length>1),show:!0},{icon:pa,text:me("buttons.hscloseRightTabs"),divided:!1,disabled:!(M.value.length>1),show:!0},{icon:fa,text:me("buttons.hscloseOtherTabs"),divided:!0,disabled:!(M.value.length>2),show:!0},{icon:ha,text:me("buttons.hscloseAllTabs"),divided:!1,disabled:!(M.value.length>1),show:!0},{icon:Ye,text:me("buttons.hswholeFullScreen"),divided:!0,disabled:!1,show:!0},{icon:Ye,text:me("buttons.hscontentFullScreen"),divided:!1,disabled:!1,show:!0}]);function b(T,N,he){var K,ae;return pn((K=t==null?void 0:t.meta)==null?void 0:K.showLink)&&((ae=t==null?void 0:t.meta)==null?void 0:ae.showLink)===!1?Object.keys(t.query).length>0?Fe(t.query,T.query)?N:he:Fe(t.params,T.params)?N:he:t.path===T.path?N:he}const A=q(()=>(T,N)=>{if(N!==0)return b(T,!0,!1)}),L=q(()=>T=>b(T,"is-active","")),x=q(()=>T=>b(T,"schedule-active","")),G=q(()=>({transform:`translateX(${h.value}px)`})),W=q(()=>({left:r.value+"px",top:c.value+"px"})),S=()=>{p.value=!1};function I(T){if(T&&(y.value=T),n(g)==="smart"){if(tt(o.refs["schedule"+T][0],"schedule-active"))return;Oe(!0,"schedule-in",o.refs["schedule"+T][0]),Oe(!1,"schedule-out",o.refs["schedule"+T][0])}else{if(tt(o.refs["dynamic"+T][0],"is-active"))return;Oe(!0,"card-in",o.refs["dynamic"+T][0]),Oe(!1,"card-out",o.refs["dynamic"+T][0])}}function H(T){if(y.value=-1,n(g)==="smart"){if(tt(o.refs["schedule"+T][0],"schedule-active"))return;Oe(!1,"schedule-in",o.refs["schedule"+T][0]),Oe(!0,"schedule-out",o.refs["schedule"+T][0])}else{if(tt(o.refs["dynamic"+T][0],"is-active"))return;Oe(!1,"card-in",o.refs["dynamic"+T][0]),Oe(!0,"card-out",o.refs["dynamic"+T][0])}}function V(){a.hiddenSideBar?a.changeSetting({key:"hiddenSideBar",value:!1}):a.changeSetting({key:"hiddenSideBar",value:!0})}return Pe(()=>{if(!g.value){const T=Ue().getItem(`${Xe()}configure`);T.showModel="card",Ue().setItem(`${Xe()}configure`,T)}}),Ne(()=>p.value,()=>{fn(document,"click",S)}),{route:t,router:e,visible:p,showTags:u,instance:o,multiTags:M,showModel:g,tagsViews:_,buttonTop:c,buttonLeft:r,translateX:h,pureSetting:a,activeIndex:y,getTabStyle:G,iconIsActive:A,linkIsActive:L,currentSelect:w,scheduleIsActive:x,getContextMenuStyle:W,$t:me,closeMenu:S,onMounted:Pe,onMouseenter:I,onMouseleave:H,transformI18n:_e,onContentFullScreen:V}}const _a={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"/>'},ga={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"/>'},ya={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"/>'},ba={class:"arrow-left"},wa=["onContextmenu","onMouseenter","onMouseleave","onClick"],ka={class:"tag-title dark:!text-text_color_primary dark:hover:!text-primary"},xa=["onClick"],Ca={class:"arrow-right"},$a=["onClick"],Sa={class:"arrow-down"},Ia=oe({__name:"index",setup(t){var At;const{route:e,router:o,visible:a,showTags:c,instance:r,multiTags:h,tagsViews:p,buttonTop:y,buttonLeft:w,showModel:g,translateX:u,pureSetting:M,activeIndex:_,getTabStyle:b,iconIsActive:A,linkIsActive:L,currentSelect:x,scheduleIsActive:G,getContextMenuStyle:W,closeMenu:S,onMounted:I,onMouseenter:H,onMouseleave:V,transformI18n:F,onContentFullScreen:T}=ma(),N=D(),he=D(),K=D(),ae=D(!1),pe=(At=ot())==null?void 0:At.path,{VITE_HIDE_HOME:Ge}={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:Ve,toggle:l}=vn(),f=async()=>{await Ze();const $=h.value.findIndex(E=>Be(e.query)?Be(e.params)?e.path===E.path:Fe(e.params,E.params):Fe(e.query,E.query));i($)},i=async $=>{var ce,xe;await Ze();const E=10;if(!r.refs["dynamic"+$])return;const Z=r.refs["dynamic"+$][0],J=Z==null?void 0:Z.offsetLeft,ie=Z==null?void 0:Z.offsetWidth,j=K.value?(ce=K.value)==null?void 0:ce.offsetWidth:0,B=N.value?(xe=N.value)==null?void 0:xe.offsetWidth:0;j<=B?ae.value=!0:ae.value=!1,B<j||J===0?u.value=0:J<-u.value?u.value=-J+E:J>-u.value&&J+ie<-u.value+j?u.value=Math.min(0,j-ie-J-E):u.value=-(J-(j-E-ie))},k=$=>{var J;const E=K.value?(J=K.value)==null?void 0:J.offsetWidth:0,Z=N.value?N.value.offsetWidth:0;$>0?u.value=Math.min(0,u.value+$):E<Z?u.value>=-(Z-E)&&(u.value=Math.max(u.value+$,E-Z)):u.value=0};function U($){const E=h.value.some(J=>J.path===$);function Z(J,ie){E||J.forEach(j=>{j.path===ie||j.path===ie?ze().handleTags("push",{path:ie,meta:j.meta,name:j.name}):j.children&&j.children.length>0&&Z(j.children,ie)})}Z(o.options.routes,$)}function P(){const{fullPath:$,query:E}=n(e);o.replace({path:"/redirect"+$,query:E}),ft(e,"refresh")}function R($,E,Z){var B,ce,xe,Ht;const J=h.value.findIndex(Ie=>{if(Ie.query){if(Ie.path===$.path)return Ie.query===$.query}else if(Ie.params){if(Ie.path===$.path)return Ie.params===$.params}else return Ie.path===$.path}),ie=(Ie,on,an)=>{an?ze().handleTags("equal",[Ge==="false"?Ft[0]:Ce(ot()),$]):ze().handleTags("splice","",{startIndex:Ie,length:on}),f()};Z==="other"?ie(1,1,!0):Z==="left"?ie(1,J-1):Z==="right"?ie(J+1,h.value.length):ie(J,1);const j=ze().handleTags("slice");if(E===e.path){if(Z==="left")return;(B=j[0])!=null&&B.query?o.push({name:j[0].name,query:j[0].query}):(ce=j[0])!=null&&ce.params?o.push({name:j[0].name,params:j[0].params}):o.push({path:j[0].path})}else{if(!h.value.length||h.value.some(Ie=>Ie.path===e.path))return;(xe=j[0])!=null&&xe.query?o.push({name:j[0].name,query:j[0].query}):(Ht=j[0])!=null&&Ht.params?o.push({name:j[0].name,params:j[0].params}):o.push({path:j[0].path})}}function X($,E){R($,$.path,E),ft(e)}function le($,E,Z){if(E&&E.disabled)return;let J;switch(Z?J={path:Z.path,meta:Z.meta,name:Z.name,query:Z==null?void 0:Z.query,params:Z==null?void 0:Z.params}:J={path:e.path,meta:e.meta},$){case 0:P();break;case 1:X(J);break;case 2:X(J,"left");break;case 3:X(J,"right");break;case 4:X(J,"other");break;case 5:ze().handleTags("splice","",{startIndex:1,length:h.value.length}),o.push(pe),ft(e);break;case 6:l(),setTimeout(()=>{Ve.value?(p[6].icon=Et,p[6].text=me("buttons.hswholeExitFullScreen")):(p[6].icon=Ye,p[6].text=me("buttons.hswholeFullScreen"))},100);break;case 7:T(),setTimeout(()=>{M.hiddenSideBar?(p[7].icon=Et,p[7].text=me("buttons.hscontentExitFullScreen")):(p[7].icon=Ye,p[7].text=me("buttons.hscontentFullScreen"))},100);break}setTimeout(()=>{Le(e.fullPath,e.query)})}function ge($){const{key:E,item:Z}=$;le(E,Z)}function Ee($,E){le($,E,x.value)}function Re($){Array.of(1,2,3,4,5).forEach(E=>{p[E].show=$})}function Y($){Array.of(1,2,3,4,5).forEach(E=>{p[E].disabled=$})}function Le($,E={},Z=!1){const J=h.value,ie=h.value.length;let j=-1;Be(E)?j=J.findIndex(B=>B.path===$):j=J.findIndex(B=>Fe(B.query,E)),Re(!0),Z&&(p[0].show=!0),j===1&&ie!==2?(p[2].show=!1,Array.of(1,3,4,5).forEach(B=>{p[B].disabled=!1}),p[2].disabled=!0):j===1&&ie===2?(Y(!1),Array.of(2,3,4).forEach(B=>{p[B].show=!1,p[B].disabled=!0})):ie-1===j&&j!==0?(p[3].show=!1,Array.of(1,2,4,5).forEach(B=>{p[B].disabled=!1}),p[3].disabled=!0):j===0||$===`/redirect${pe}`?Y(!0):Y(!1)}function Lt($,E){S(),$.path===pe?(Re(!1),p[0].show=!0):e.path!==$.path&&e.name!==$.name?(p[0].show=!1,Le($.path,$.query)):h.value.length===2&&e.path!==$.path?(Re(!0),p[4].show=!1):e.path===$.path&&Le($.path,$.query,!0),x.value=$;const Z=105,J=n(he).getBoundingClientRect().left,j=n(he).offsetWidth-Z,B=E.clientX-J+5;B>j?w.value=j:w.value=B,St().hiddenSideBar?y.value=E.clientY:y.value=E.clientY-40,Ze(()=>{a.value=!0})}function nn($){const{name:E,path:Z}=$;E?$.query?o.push({name:E,query:$.query}):$.params?o.push({name:E,params:$.params}):o.push({name:E}):o.push({path:Z})}return Ne(e,()=>{_.value=-1,f()}),Ne(Ve,()=>{p[6].icon=Ye,p[6].text=me("buttons.hswholeFullScreen")}),I(()=>{r&&(Le(e.fullPath),ye.on("tagViewsChange",$=>{n(c)!==$&&(c.value=$)}),ye.on("tagViewsShowModel",$=>{g.value=$}),ye.on("changLayoutRoute",$=>{U($),setTimeout(()=>{Le($)})}),mt(K,je(()=>f())))}),wt(()=>{ye.off("tagViewsChange"),ye.off("tagViewsShowModel"),ye.off("changLayoutRoute")}),($,E)=>{const Z=C("IconifyIconOffline"),J=C("el-dropdown-item"),ie=C("el-dropdown-menu"),j=C("el-dropdown");return n(c)?Q("",!0):(d(),z("div",{key:0,ref_key:"containerDom",ref:he,class:"tags-view"},[ve(v("span",ba,[s(Z,{icon:n(ga),onClick:E[0]||(E[0]=B=>k(200))},null,8,["icon"])],512),[[Se,ae.value]]),v("div",{ref_key:"scrollbarDom",ref:K,class:"scroll-container"},[v("div",{class:"tab select-none",ref_key:"tabDom",ref:N,style:te(n(b))},[(d(!0),z(we,null,$e(n(h),(B,ce)=>(d(),z("div",{ref_for:!0,ref:"dynamic"+ce,key:ce,class:se(["scroll-item is-closable",n(L)(B)]),onContextmenu:Ke(xe=>Lt(B,xe),["prevent"]),onMouseenter:Ke(xe=>n(H)(ce),["prevent"]),onMouseleave:Ke(xe=>n(V)(ce),["prevent"]),onClick:xe=>nn(B)},[v("span",ka,ee(n(F)(B.meta.title)),1),n(A)(B,ce)||ce===n(_)&&ce!==0?(d(),z("span",{key:0,class:"el-icon-close",onClick:Ke(xe=>X(B),["stop"])},[s(Z,{icon:n(ya)},null,8,["icon"])],8,xa)):Q("",!0),n(g)!=="card"?(d(),z("div",{key:1,ref_for:!0,ref:"schedule"+ce,class:se([n(G)(B)])},null,2)):Q("",!0)],42,wa))),128))],4)],512),ve(v("span",Ca,[s(Z,{icon:n(Dn),onClick:E[1]||(E[1]=B=>k(-200))},null,8,["icon"])],512),[[Se,ae.value]]),s(kt,{name:"el-zoom-in-top"},{default:m(()=>[ve((d(),z("ul",{key:Math.random(),style:te(n(W)),class:"contextmenu"},[(d(!0),z(we,null,$e(n(p).slice(0,6),(B,ce)=>(d(),z("div",{key:ce,style:{display:"flex","align-items":"center"}},[B.show?(d(),z("li",{key:0,onClick:xe=>Ee(ce,B)},[s(Z,{icon:B.icon},null,8,["icon"]),ne(" "+ee(n(F)(B.text)),1)],8,$a)):Q("",!0)]))),128))],4)),[[Se,n(a)]])]),_:1}),s(j,{trigger:"click",placement:"bottom-end",onCommand:ge},{dropdown:m(()=>[s(ie,null,{default:m(()=>[(d(!0),z(we,null,$e(n(p),(B,ce)=>(d(),O(J,{key:ce,command:{key:ce,item:B},divided:B.divided,disabled:B.disabled},{default:m(()=>[s(Z,{icon:B.icon},null,8,["icon"]),ne(" "+ee(n(F)(B.text)),1)]),_:2},1032,["command","divided","disabled"]))),128))]),_:1})]),default:m(()=>[v("span",Sa,[s(Z,{icon:n(_a),class:"dark:text-white"},null,8,["icon"])])]),_:1})],512))}}});const Ta=fe(Ia,[["__scopeId","data-v-73972f20"]]),Ma={class:"layout-footer"},Va={class:"ml-1 hover:text-primary",href:"https://github.com/pure-admin",target:"_blank"},za=oe({__name:"index",setup(t){const e=We("Title");return(o,a)=>(d(),z("footer",Ma,[ne(" MIT © 2020-PRESENT "),v("a",Va,ee(n(e)),1)]))}});const Zt=fe(za,[["__scopeId","data-v-7e9cc56a"]]),La={class:"grow"},Aa={key:1,class:"grow"},Ha=oe({__name:"appMain",props:{fixedHeader:Boolean},setup(t){const e=t,{$storage:o,$config:a}=xt(),c=q(()=>a==null?void 0:a.KeepAlive),r=q(()=>u=>u.meta.transition),h=q(()=>o==null?void 0:o.configure.hideTabs),p=q(()=>o==null?void 0:o.configure.hideFooter),y=q(()=>(o==null?void 0:o.layout.layout)==="vertical"),w=q(()=>[h.value&&y?"padding-top: 48px;":"",!h.value&&y?"padding-top: 85px;":"",h.value&&!y.value?"padding-top: 48px;":"",!h.value&&!y.value?"padding-top: 85px;":"",e.fixedHeader?"":`padding-top: 0;${h.value?"min-height: calc(100vh - 48px);":"min-height: calc(100vh - 86px);"}`]),g=oe({render(){var b,A,L;const u=((b=r.value(this.route))==null?void 0:b.name)||"fade-transform",M=(A=r.value(this.route))==null?void 0:A.enterTransition,_=(L=r.value(this.route))==null?void 0:L.leaveTransition;return Je(kt,{name:M?"pure-classes-transition":u,enterActiveClass:M?`animate__animated ${M}`:void 0,leaveActiveClass:_?`animate__animated ${_}`:void 0,mode:"out-in",appear:!0},{default:()=>[this.$slots.default()]})},props:{route:{type:void 0,required:!0}}});return(u,M)=>{const _=C("el-backtop"),b=C("el-scrollbar"),A=C("router-view");return d(),z("section",{class:se([e.fixedHeader?"app-main":"app-main-nofixed-header"]),style:te(w.value)},[s(A,null,{default:m(({Component:L,route:x})=>[e.fixedHeader?(d(),O(b,{key:0,"wrap-style":{display:"flex"},"view-style":{display:"flex",flex:"auto",overflow:"auto","flex-direction":"column"}},{default:m(()=>[s(_,{title:"回到顶部",target:".app-main .el-scrollbar__wrap"},{default:m(()=>[s(n(Wt))]),_:1}),v("div",La,[s(n(g),{route:x},{default:m(()=>[c.value?(d(),O(Ot,{key:0,include:n(be)().cachePageList},[(d(),O(He(L),{key:x.fullPath,class:"main-content"}))],1032,["include"])):(d(),O(He(L),{key:x.fullPath,class:"main-content"}))]),_:2},1032,["route"])]),p.value?Q("",!0):(d(),O(Zt,{key:0}))]),_:2},1024)):(d(),z("div",Aa,[s(n(g),{route:x},{default:m(()=>[c.value?(d(),O(Ot,{key:0,include:n(be)().cachePageList},[(d(),O(He(L),{key:x.fullPath,class:"main-content"}))],1032,["include"])):(d(),O(He(L),{key:x.fullPath,class:"main-content"}))]),_:2},1032,["route"])]))]),_:1}),!p.value&&!e.fixedHeader?(d(),O(Zt,{key:0})):Q("",!0)],6)}}});const Pt=fe(Ha,[["__scopeId","data-v-93de9f67"]]),Mt=t=>(lt("data-v-1b3eb871"),t=t(),st(),t),Ea=Mt(()=>v("div",{class:"right-panel-background"},null,-1)),Oa={class:"right-panel-items"},Da={class:"project-configuration"},Za=Mt(()=>v("h4",{class:"dark:text-white"},"项目配置",-1)),Pa=Mt(()=>v("div",{class:"border-b-[1px] border-solid border-[#dcdfe6] dark:border-[#303030]"},null,-1)),Ra=oe({__name:"index",setup(t){const e=D(null),o=D(!1),a=q(()=>["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 mn(e,c=>{c.clientX>e.value.offsetLeft||(o.value=!1)}),Pe(()=>{ye.on("openPanel",()=>{o.value=!0})}),wt(()=>{ye.off("openPanel")}),(c,r)=>{const h=C("IconifyIconOffline");return d(),z("div",{class:se([{show:o.value},"right-panel-container"])},[Ea,v("div",{ref_key:"target",ref:e,class:"right-panel bg-bg_color"},[v("div",Oa,[v("div",Da,[Za,v("span",{title:"关闭配置",class:se(a.value)},[s(h,{class:"dark:text-white",width:"20px",height:"20px",icon:n(Xt),onClick:r[0]||(r[0]=p=>o.value=!o.value)},null,8,["icon"])],2)]),Pa,_n(c.$slots,"default",{},void 0,!0)])],512)],2)}}});const ja=fe(Ra,[["__scopeId","data-v-1b3eb871"]]),ke=t=>(lt("data-v-bd99ec0c"),t=t(),st(),t),Ba={class:"pure-theme"},Fa=ke(()=>v("div",null,null,-1)),Na=ke(()=>v("div",null,null,-1)),qa=[Fa,Na],Ua=ke(()=>v("div",null,null,-1)),Wa=ke(()=>v("div",null,null,-1)),Ga=[Ua,Wa],Ka=ke(()=>v("div",null,null,-1)),Xa=ke(()=>v("div",null,null,-1)),Ja=[Ka,Xa],Ya={class:"theme-color"},Qa=["onClick"],el={class:"setting"},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"},"隐藏标签页",-1)),al=ke(()=>v("span",{class:"dark:text-white"},"隐藏页脚",-1)),ll=ke(()=>v("span",{class:"dark:text-white"},"侧边栏Logo",-1)),sl=ke(()=>v("span",{class:"dark:text-white"},"标签页持久化",-1)),rl=ke(()=>v("span",{class:"dark:text-white"},"标签风格",-1)),il=oe({__name:"index",setup(t){var l,f;const e=at(),{isDark:o}=Nt(),{device:a,tooltipEffect:c}=Me(),{$storage:r}=xt(),h=D(),p=D(),y=D(),{dataTheme:w,layoutTheme:g,themeColors:u,dataThemeChange:M,setEpThemeColor:_,setLayoutThemeColor:b}=Ut();if(n(g)){const i=n(g).layout,k=n(g).theme;$n({scopeName:`layout-theme-${k}`}),Ve(i)}const A=D(((l=r.configure)==null?void 0:l.showModel)??"smart"),L=D(((f=r.configure)==null?void 0:f.showLogo)??!0),x=bt({greyVal:r.configure.grey,weakVal:r.configure.weak,tabsVal:r.configure.hideTabs,showLogo:r.configure.showLogo,showModel:r.configure.showModel,hideFooter:r.configure.hideFooter,multiTagsCache:r.configure.multiTagsCache}),G=q(()=>i=>({background:i})),W=q(()=>i=>!(i==="light"&&o.value));function S(i,k){const U=r.configure;U[i]=k,r.configure=U}function I(i,k,U){const P=U||document.body;let{className:R}=P;R=R.replace(k,"").trim(),P.className=i?`${R} ${k} `:R}const H=i=>{I(x.greyVal,"html-grey",document.querySelector("html")),S("grey",i)},V=i=>{I(x.weakVal,"html-weakness",document.querySelector("html")),S("weak",i)},F=()=>{const i=x.tabsVal;S("hideTabs",i),ye.emit("tagViewsChange",i)},T=()=>{const i=x.hideFooter;S("hideFooter",i)},N=()=>{const i=x.multiTagsCache;S("multiTagsCache",i),ze().multiTagsCacheChange(i)};function he(){gn(),Ue().clear();const{Grey:i,Weak:k,MultiTagsCache:U,EpThemeColor:P,Layout:R}=We();De().setLayout(R),_(P),ze().multiTagsCacheChange(U),I(i,"html-grey",document.querySelector("html")),I(k,"html-weakness",document.querySelector("html")),e.push("/login"),ze().handleTags("equal",[...Ft]),yn()}function K(i){S("showModel",i),ye.emit("tagViewsShowModel",i)}function ae(){n(L)?S("showLogo",!0):S("showLogo",!1),ye.emit("logoChange",n(L))}function pe(i){i.forEach(k=>{I(!1,"is-select",n(k))})}const Ge=q(()=>i=>i===g.value.theme&&g.value.theme!=="light"?"#fff":i===g.value.theme&&g.value.theme==="light"?"#1d2b45":"transparent");function Ve(i){var k,U,P;g.value.layout=i,window.document.body.setAttribute("layout",i),r.layout={layout:i,theme:g.value.theme,darkMode:(k=r.layout)==null?void 0:k.darkMode,sidebarStatus:(U=r.layout)==null?void 0:U.sidebarStatus,epThemeColor:(P=r.layout)==null?void 0:P.epThemeColor},De().setLayout(i)}return Ne(r,({layout:i})=>{switch(i.layout){case"vertical":I(!0,"is-select",n(p)),je(pe([y]),50),je(pe([h]),50);break;case"horizontal":I(!0,"is-select",n(y)),je(pe([p]),50),je(pe([h]),50);break;case"mix":I(!0,"is-select",n(h)),je(pe([p]),50),je(pe([y]),50);break}}),qt(()=>{Ze(()=>{var i,k;x.greyVal&&((i=document.querySelector("html"))==null||i.setAttribute("class","html-grey")),x.weakVal&&((k=document.querySelector("html"))==null||k.setAttribute("class","html-weakness")),x.tabsVal&&F(),x.hideFooter&&T()})}),(i,k)=>{const U=C("el-divider"),P=C("el-switch"),R=C("el-tooltip"),X=C("IconifyIconOffline"),le=C("el-icon"),ge=C("el-radio"),Ee=C("el-radio-group"),Re=C("el-button");return d(),O(ja,null,{default:m(()=>[s(U,null,{default:m(()=>[ne("主题")]),_:1}),s(P,{modelValue:n(w),"onUpdate:modelValue":k[0]||(k[0]=Y=>jt(w)?w.value=Y:null),"inline-prompt":"",class:"pure-datatheme","active-icon":n(Sn),"inactive-icon":n(In),onChange:n(M)},null,8,["modelValue","active-icon","inactive-icon","onChange"]),s(U,null,{default:m(()=>[ne("导航栏模式")]),_:1}),v("ul",Ba,[s(R,{effect:n(c),class:"item",content:"左侧模式",placement:"bottom","popper-class":"pure-tooltip"},{default:m(()=>[v("li",{class:se(n(g).layout==="vertical"?"is-select":""),ref_key:"verticalRef",ref:p,onClick:k[1]||(k[1]=Y=>Ve("vertical"))},qa,2)]),_:1},8,["effect"]),n(a)!=="mobile"?(d(),O(R,{key:0,effect:n(c),class:"item",content:"顶部模式",placement:"bottom","popper-class":"pure-tooltip"},{default:m(()=>[v("li",{class:se(n(g).layout==="horizontal"?"is-select":""),ref_key:"horizontalRef",ref:y,onClick:k[2]||(k[2]=Y=>Ve("horizontal"))},Ga,2)]),_:1},8,["effect"])):Q("",!0),n(a)!=="mobile"?(d(),O(R,{key:1,effect:n(c),class:"item",content:"混合模式",placement:"bottom","popper-class":"pure-tooltip"},{default:m(()=>[v("li",{class:se(n(g).layout==="mix"?"is-select":""),ref_key:"mixRef",ref:h,onClick:k[3]||(k[3]=Y=>Ve("mix"))},Ja,2)]),_:1},8,["effect"])):Q("",!0)]),s(U,null,{default:m(()=>[ne("主题色")]),_:1}),v("ul",Ya,[(d(!0),z(we,null,$e(n(u),(Y,Le)=>ve((d(),z("li",{key:Le,style:te(G.value(Y.color)),onClick:Lt=>n(b)(Y.themeColor)},[s(le,{style:{margin:"0.1em 0.1em 0 0"},size:17,color:Ge.value(Y.themeColor)},{default:m(()=>[s(X,{icon:n(qe)},null,8,["icon"])]),_:2},1032,["color"])],12,Qa)),[[Se,W.value(Y.themeColor)]])),128))]),s(U,null,{default:m(()=>[ne("界面显示")]),_:1}),v("ul",el,[v("li",null,[tl,s(P,{modelValue:x.greyVal,"onUpdate:modelValue":k[4]||(k[4]=Y=>x.greyVal=Y),"inline-prompt":"","inactive-color":"#a6a6a6","active-text":"开","inactive-text":"关",onChange:H},null,8,["modelValue"])]),v("li",null,[nl,s(P,{modelValue:x.weakVal,"onUpdate:modelValue":k[5]||(k[5]=Y=>x.weakVal=Y),"inline-prompt":"","inactive-color":"#a6a6a6","active-text":"开","inactive-text":"关",onChange:V},null,8,["modelValue"])]),v("li",null,[ol,s(P,{modelValue:x.tabsVal,"onUpdate:modelValue":k[6]||(k[6]=Y=>x.tabsVal=Y),"inline-prompt":"","inactive-color":"#a6a6a6","active-text":"开","inactive-text":"关",onChange:F},null,8,["modelValue"])]),v("li",null,[al,s(P,{modelValue:x.hideFooter,"onUpdate:modelValue":k[7]||(k[7]=Y=>x.hideFooter=Y),"inline-prompt":"","inactive-color":"#a6a6a6","active-text":"开","inactive-text":"关",onChange:T},null,8,["modelValue"])]),v("li",null,[ll,s(P,{modelValue:L.value,"onUpdate:modelValue":k[8]||(k[8]=Y=>L.value=Y),"inline-prompt":"","active-value":!0,"inactive-value":!1,"inactive-color":"#a6a6a6","active-text":"开","inactive-text":"关",onChange:ae},null,8,["modelValue"])]),v("li",null,[sl,s(P,{modelValue:x.multiTagsCache,"onUpdate:modelValue":k[9]||(k[9]=Y=>x.multiTagsCache=Y),"inline-prompt":"","inactive-color":"#a6a6a6","active-text":"开","inactive-text":"关",onChange:N},null,8,["modelValue"])]),v("li",null,[rl,s(Ee,{modelValue:A.value,"onUpdate:modelValue":k[10]||(k[10]=Y=>A.value=Y),size:"small",onChange:K},{default:m(()=>[s(ge,{label:"card"},{default:m(()=>[ne("卡片")]),_:1}),s(ge,{label:"smart"},{default:m(()=>[ne("灵动")]),_:1})]),_:1},8,["modelValue"])])]),s(U),s(Re,{type:"danger",style:{width:"90%",margin:"24px 15px"},onClick:he},{default:m(()=>[s(X,{icon:n(it),width:"15",height:"15",style:{"margin-right":"4px"}},null,8,["icon"]),ne(" 清空缓存并返回登录页 ")]),_:1})]),_:1})}}});const cl=fe(il,[["__scopeId","data-v-bd99ec0c"]]),Vt="/vue-pure-admin/logo.svg",Jt=t=>(lt("data-v-79ec1141"),t=t(),st(),t),ul=Jt(()=>v("img",{src:Vt,alt:"logo"},null,-1)),dl={class:"sidebar-title"},hl=Jt(()=>v("img",{src:Vt,alt:"logo"},null,-1)),fl={class:"sidebar-title"},pl=oe({__name:"logo",props:{collapse:Boolean},setup(t){const e=t,{title:o}=Me();return(a,c)=>{const r=C("router-link");return d(),z("div",{class:se(["sidebar-logo-container",{collapses:e.collapse}])},[s(kt,{name:"sidebarLogoFade"},{default:m(()=>{var h,p;return[e.collapse?(d(),O(r,{key:"props.collapse",title:n(o),class:"sidebar-logo-link",to:((h=n(ot)())==null?void 0:h.path)??"/"},{default:m(()=>[ul,v("span",dl,ee(n(o)),1)]),_:1},8,["title","to"])):(d(),O(r,{key:"expand",title:n(o),class:"sidebar-logo-link",to:((p=n(ot)())==null?void 0:p.path)??"/"},{default:m(()=>[hl,v("span",fl,ee(n(o)),1)]),_:1},8,["title","to"]))]}),_:1})],2)}}});const vl=fe(pl,[["__scopeId","data-v-79ec1141"]]);var et={exports:{}},Yt={},ml=function(e){return e&&typeof e=="object"&&typeof e.copy=="function"&&typeof e.fill=="function"&&typeof e.readUInt8=="function"},vt={exports:{}};typeof Object.create=="function"?vt.exports=function(e,o){e.super_=o,e.prototype=Object.create(o.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}})}:vt.exports=function(e,o){e.super_=o;var a=function(){};a.prototype=o.prototype,e.prototype=new a,e.prototype.constructor=e};var _l=vt.exports;(function(t){var e=/%[sdj%]/g;t.format=function(l){if(!W(l)){for(var f=[],i=0;i<arguments.length;i++)f.push(c(arguments[i]));return f.join(" ")}for(var i=1,k=arguments,U=k.length,P=String(l).replace(e,function(X){if(X==="%%")return"%";if(i>=U)return X;switch(X){case"%s":return String(k[i++]);case"%d":return Number(k[i++]);case"%j":try{return JSON.stringify(k[i++])}catch{return"[Circular]"}default:return X}}),R=k[i];i<U;R=k[++i])L(R)||!V(R)?P+=" "+R:P+=" "+c(R);return P},t.deprecate=function(l,f){if(I(bn.process))return function(){return t.deprecate(l,f).apply(this,arguments)};if(process.noDeprecation===!0)return l;var i=!1;function k(){if(!i){if(process.throwDeprecation)throw new Error(f);process.traceDeprecation?console.trace(f):console.error(f),i=!0}return l.apply(this,arguments)}return k};var o={},a;t.debuglog=function(l){if(I(a)&&(a={}.NODE_DEBUG||""),l=l.toUpperCase(),!o[l])if(new RegExp("\\b"+l+"\\b","i").test(a)){var f=process.pid;o[l]=function(){var i=t.format.apply(t,arguments);console.error("%s %d: %s",l,f,i)}}else o[l]=function(){};return o[l]};function c(l,f){var i={seen:[],stylize:h};return arguments.length>=3&&(i.depth=arguments[2]),arguments.length>=4&&(i.colors=arguments[3]),A(f)?i.showHidden=f:f&&t._extend(i,f),I(i.showHidden)&&(i.showHidden=!1),I(i.depth)&&(i.depth=2),I(i.colors)&&(i.colors=!1),I(i.customInspect)&&(i.customInspect=!0),i.colors&&(i.stylize=r),y(i,l,i.depth)}t.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 r(l,f){var i=c.styles[f];return i?"\x1B["+c.colors[i][0]+"m"+l+"\x1B["+c.colors[i][1]+"m":l}function h(l,f){return l}function p(l){var f={};return l.forEach(function(i,k){f[i]=!0}),f}function y(l,f,i){if(l.customInspect&&f&&N(f.inspect)&&f.inspect!==t.inspect&&!(f.constructor&&f.constructor.prototype===f)){var k=f.inspect(i,l);return W(k)||(k=y(l,k,i)),k}var U=w(l,f);if(U)return U;var P=Object.keys(f),R=p(P);if(l.showHidden&&(P=Object.getOwnPropertyNames(f)),T(f)&&(P.indexOf("message")>=0||P.indexOf("description")>=0))return g(f);if(P.length===0){if(N(f)){var X=f.name?": "+f.name:"";return l.stylize("[Function"+X+"]","special")}if(H(f))return l.stylize(RegExp.prototype.toString.call(f),"regexp");if(F(f))return l.stylize(Date.prototype.toString.call(f),"date");if(T(f))return g(f)}var le="",ge=!1,Ee=["{","}"];if(b(f)&&(ge=!0,Ee=["[","]"]),N(f)){var Re=f.name?": "+f.name:"";le=" [Function"+Re+"]"}if(H(f)&&(le=" "+RegExp.prototype.toString.call(f)),F(f)&&(le=" "+Date.prototype.toUTCString.call(f)),T(f)&&(le=" "+g(f)),P.length===0&&(!ge||f.length==0))return Ee[0]+le+Ee[1];if(i<0)return H(f)?l.stylize(RegExp.prototype.toString.call(f),"regexp"):l.stylize("[Object]","special");l.seen.push(f);var Y;return ge?Y=u(l,f,i,R,P):Y=P.map(function(Le){return M(l,f,i,R,Le,ge)}),l.seen.pop(),_(Y,le,Ee)}function w(l,f){if(I(f))return l.stylize("undefined","undefined");if(W(f)){var i="'"+JSON.stringify(f).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return l.stylize(i,"string")}if(G(f))return l.stylize(""+f,"number");if(A(f))return l.stylize(""+f,"boolean");if(L(f))return l.stylize("null","null")}function g(l){return"["+Error.prototype.toString.call(l)+"]"}function u(l,f,i,k,U){for(var P=[],R=0,X=f.length;R<X;++R)Ve(f,String(R))?P.push(M(l,f,i,k,String(R),!0)):P.push("");return U.forEach(function(le){le.match(/^\d+$/)||P.push(M(l,f,i,k,le,!0))}),P}function M(l,f,i,k,U,P){var R,X,le;if(le=Object.getOwnPropertyDescriptor(f,U)||{value:f[U]},le.get?le.set?X=l.stylize("[Getter/Setter]","special"):X=l.stylize("[Getter]","special"):le.set&&(X=l.stylize("[Setter]","special")),Ve(k,U)||(R="["+U+"]"),X||(l.seen.indexOf(le.value)<0?(L(i)?X=y(l,le.value,null):X=y(l,le.value,i-1),X.indexOf(`
|
||
`)>-1&&(P?X=X.split(`
|
||
`).map(function(ge){return" "+ge}).join(`
|
||
`).substr(2):X=`
|
||
`+X.split(`
|
||
`).map(function(ge){return" "+ge}).join(`
|
||
`))):X=l.stylize("[Circular]","special")),I(R)){if(P&&U.match(/^\d+$/))return X;R=JSON.stringify(""+U),R.match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(R=R.substr(1,R.length-2),R=l.stylize(R,"name")):(R=R.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),R=l.stylize(R,"string"))}return R+": "+X}function _(l,f,i){var k=l.reduce(function(U,P){return P.indexOf(`
|
||
`)>=0,U+P.replace(/\u001b\[\d\d?m/g,"").length+1},0);return k>60?i[0]+(f===""?"":f+`
|
||
`)+" "+l.join(`,
|
||
`)+" "+i[1]:i[0]+f+" "+l.join(", ")+" "+i[1]}function b(l){return Array.isArray(l)}t.isArray=b;function A(l){return typeof l=="boolean"}t.isBoolean=A;function L(l){return l===null}t.isNull=L;function x(l){return l==null}t.isNullOrUndefined=x;function G(l){return typeof l=="number"}t.isNumber=G;function W(l){return typeof l=="string"}t.isString=W;function S(l){return typeof l=="symbol"}t.isSymbol=S;function I(l){return l===void 0}t.isUndefined=I;function H(l){return V(l)&&K(l)==="[object RegExp]"}t.isRegExp=H;function V(l){return typeof l=="object"&&l!==null}t.isObject=V;function F(l){return V(l)&&K(l)==="[object Date]"}t.isDate=F;function T(l){return V(l)&&(K(l)==="[object Error]"||l instanceof Error)}t.isError=T;function N(l){return typeof l=="function"}t.isFunction=N;function he(l){return l===null||typeof l=="boolean"||typeof l=="number"||typeof l=="string"||typeof l=="symbol"||typeof l>"u"}t.isPrimitive=he,t.isBuffer=ml;function K(l){return Object.prototype.toString.call(l)}function ae(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 Ge(){var l=new Date,f=[ae(l.getHours()),ae(l.getMinutes()),ae(l.getSeconds())].join(":");return[l.getDate(),pe[l.getMonth()],f].join(" ")}t.log=function(){console.log("%s - %s",Ge(),t.format.apply(t,arguments))},t.inherits=_l,t._extend=function(l,f){if(!f||!V(f))return l;for(var i=Object.keys(f),k=i.length;k--;)l[i[k]]=f[i[k]];return l};function Ve(l,f){return Object.prototype.hasOwnProperty.call(l,f)}})(Yt);var gl=process.platform==="win32",Te=Yt;function ct(t,e){for(var o=[],a=0;a<t.length;a++){var c=t[a];!c||c==="."||(c===".."?o.length&&o[o.length-1]!==".."?o.pop():e&&o.push(".."):o.push(c))}return o}function Qe(t){for(var e=t.length-1,o=0;o<=e&&!t[o];o++);for(var a=e;a>=0&&!t[a];a--);return o===0&&a===e?t:o>a?[]:t.slice(o,a+1)}var Qt=/^([a-zA-Z]:|[\\\/]{2}[^\\\/]+[\\\/]+[^\\\/]+)?([\\\/])?([\s\S]*?)$/,yl=/^([\s\S]*?)((?:\.{1,2}|[^\\\/]+?|)(\.[^.\/\\]*|))(?:[\\\/]*)$/,re={};function ut(t){var e=Qt.exec(t),o=(e[1]||"")+(e[2]||""),a=e[3]||"",c=yl.exec(a),r=c[1],h=c[2],p=c[3];return[o,r,h,p]}function zt(t){var e=Qt.exec(t),o=e[1]||"",a=!!o&&o[1]!==":";return{device:o,isUnc:a,isAbsolute:a||!!e[2],tail:e[3]}}function en(t){return"\\\\"+t.replace(/^[\\\/]+/,"").replace(/[\\\/]+/g,"\\")}re.resolve=function(){for(var t="",e="",o=!1,a=arguments.length-1;a>=-1;a--){var c;if(a>=0?c=arguments[a]:t?(c=process.env["="+t],(!c||c.substr(0,3).toLowerCase()!==t.toLowerCase()+"\\")&&(c=t+"\\")):c=process.cwd(),Te.isString(c)){if(!c)continue}else throw new TypeError("Arguments to path.resolve must be strings");var r=zt(c),h=r.device,p=r.isUnc,y=r.isAbsolute,w=r.tail;if(!(h&&t&&h.toLowerCase()!==t.toLowerCase())&&(t||(t=h),o||(e=w+"\\"+e,o=y),t&&o))break}return p&&(t=en(t)),e=ct(e.split(/[\\\/]+/),!o).join("\\"),t+(o?"\\":"")+e||"."};re.normalize=function(t){var e=zt(t),o=e.device,a=e.isUnc,c=e.isAbsolute,r=e.tail,h=/[\\\/]$/.test(r);return r=ct(r.split(/[\\\/]+/),!c).join("\\"),!r&&!c&&(r="."),r&&h&&(r+="\\"),a&&(o=en(o)),o+(c?"\\":"")+r};re.isAbsolute=function(t){return zt(t).isAbsolute};re.join=function(){for(var t=[],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&&t.push(o)}var a=t.join("\\");return/^[\\\/]{2}[^\\\/]/.test(t[0])||(a=a.replace(/^[\\\/]{2,}/,"\\")),re.normalize(a)};re.relative=function(t,e){t=re.resolve(t),e=re.resolve(e);for(var o=t.toLowerCase(),a=e.toLowerCase(),c=Qe(e.split("\\")),r=Qe(o.split("\\")),h=Qe(a.split("\\")),p=Math.min(r.length,h.length),y=p,w=0;w<p;w++)if(r[w]!==h[w]){y=w;break}if(y==0)return e;for(var g=[],w=y;w<r.length;w++)g.push("..");return g=g.concat(c.slice(y)),g.join("\\")};re._makeLong=function(t){if(!Te.isString(t))return t;if(!t)return"";var e=re.resolve(t);return/^[a-zA-Z]\:\\/.test(e)?"\\\\?\\"+e:/^\\\\[^?.]/.test(e)?"\\\\?\\UNC\\"+e.substring(2):t};re.dirname=function(t){var e=ut(t),o=e[0],a=e[1];return!o&&!a?".":(a&&(a=a.substr(0,a.length-1)),o+a)};re.basename=function(t,e){var o=ut(t)[2];return e&&o.substr(-1*e.length)===e&&(o=o.substr(0,o.length-e.length)),o};re.extname=function(t){return ut(t)[3]};re.format=function(t){if(!Te.isObject(t))throw new TypeError("Parameter 'pathObject' must be an object, not "+typeof t);var e=t.root||"";if(!Te.isString(e))throw new TypeError("'pathObject.root' must be a string or undefined, not "+typeof t.root);var o=t.dir,a=t.base||"";return o?o[o.length-1]===re.sep?o+a:o+re.sep+a:a};re.parse=function(t){if(!Te.isString(t))throw new TypeError("Parameter 'pathString' must be a string, not "+typeof t);var e=ut(t);if(!e||e.length!==4)throw new TypeError("Invalid path '"+t+"'");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 bl=/^(\/?|)([\s\S]*?)((?:\.{1,2}|[^\/]+?|)(\.[^.\/]*|))(?:[\/]*)$/,ue={};function dt(t){return bl.exec(t).slice(1)}ue.resolve=function(){for(var t="",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");t=a+"/"+t,e=a[0]==="/"}return t=ct(t.split("/"),!e).join("/"),(e?"/":"")+t||"."};ue.normalize=function(t){var e=ue.isAbsolute(t),o=t&&t[t.length-1]==="/";return t=ct(t.split("/"),!e).join("/"),!t&&!e&&(t="."),t&&o&&(t+="/"),(e?"/":"")+t};ue.isAbsolute=function(t){return t.charAt(0)==="/"};ue.join=function(){for(var t="",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&&(t?t+="/"+o:t+=o)}return ue.normalize(t)};ue.relative=function(t,e){t=ue.resolve(t).substr(1),e=ue.resolve(e).substr(1);for(var o=Qe(t.split("/")),a=Qe(e.split("/")),c=Math.min(o.length,a.length),r=c,h=0;h<c;h++)if(o[h]!==a[h]){r=h;break}for(var p=[],h=r;h<o.length;h++)p.push("..");return p=p.concat(a.slice(r)),p.join("/")};ue._makeLong=function(t){return t};ue.dirname=function(t){var e=dt(t),o=e[0],a=e[1];return!o&&!a?".":(a&&(a=a.substr(0,a.length-1)),o+a)};ue.basename=function(t,e){var o=dt(t)[2];return e&&o.substr(-1*e.length)===e&&(o=o.substr(0,o.length-e.length)),o};ue.extname=function(t){return dt(t)[3]};ue.format=function(t){if(!Te.isObject(t))throw new TypeError("Parameter 'pathObject' must be an object, not "+typeof t);var e=t.root||"";if(!Te.isString(e))throw new TypeError("'pathObject.root' must be a string or undefined, not "+typeof t.root);var o=t.dir?t.dir+ue.sep:"",a=t.base||"";return o+a};ue.parse=function(t){if(!Te.isString(t))throw new TypeError("Parameter 'pathString' must be a string, not "+typeof t);var e=dt(t);if(!e||e.length!==4)throw new TypeError("Invalid path '"+t+"'");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=":";gl?et.exports=re:et.exports=ue;et.exports.posix=ue;et.exports.win32=re;var wl=et.exports;const kl=wn(wl),xl={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"/>'},Cl={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"/>'},$l={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"/>'},Sl={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"/>'},Il={key:0},Tl={key:1},tn=oe({__name:"sidebarItem",props:{item:{type:Object},isNest:{type:Boolean,default:!1},basePath:{type:String,default:""}},setup(t){const e=t,{layout:o,isCollapse:a,tooltipEffect:c,getDivStyle:r}=Me(),h=q(()=>({width:"100%",textAlign:"center"})),p=q(()=>({display:"flex",alignItems:"center"})),y=q(()=>({overflow:"hidden",textOverflow:"ellipsis",outline:"none"})),w=q(()=>({display:"flex",justifyContent:"center",alignItems:"center",margin:o.value==="horizontal"?"0 5px 0 0":a.value?"0 auto":"0 5px 0 0"})),g=q(()=>a.value?{width:""}:{width:"210px",display:"inline-block",overflow:"hidden",textOverflow:"ellipsis"}),u=q(()=>S=>{var I;return a.value?{width:"100%",textAlign:(S==null?void 0:S.parentId)===null||o.value==="mix"&&((I=S==null?void 0:S.pathList)==null?void 0:I.length)===2?"center":""}:{width:"100%",display:"flex",alignItems:"center",justifyContent:"space-between",overflow:"hidden"}}),M=q(()=>{var S;return(S=We())!=null&&S.MenuArrowIconNoTransition?{"expand-close-icon":Ae(Cl),"expand-open-icon":Ae(xl),"collapse-close-icon":Ae(Sl),"collapse-open-icon":Ae($l)}:""}),_=D(null),b=new WeakMap,A=D(null);function L(S){b.get(S)||Ze(()=>{var I,H;((I=A.value)==null?void 0:I.scrollWidth)>((H=A.value)==null?void 0:H.clientWidth)?Object.assign(S,{showTooltip:!0}):Object.assign(S,{showTooltip:!1}),b.set(S,!0)})}function x(S,I){var V;const H=((S==null?void 0:S.length)>1?S.toString().slice(0,1):S)+"...";return I&&!(a.value&&(I==null?void 0:I.parentId)===null)?o.value==="mix"&&((V=I==null?void 0:I.pathList)==null?void 0:V.length)===2&&a.value?H:S:H}function G(S=[],I){var V,F;const H=S.filter(T=>(_.value=T,!0));return(F=(V=H[0])==null?void 0:V.meta)!=null&&F.showParent?!1:H.length===1?!0:H.length===0?(_.value={...I,path:"",noShowingChildren:!0},!0):!1}function W(S){const I=/^http(s?):\/\//;return I.test(S)||I.test(e.basePath)?S||e.basePath:kl.posix.resolve(e.basePath,S)}return(S,I)=>{const H=C("el-tooltip"),V=C("el-menu-item"),F=C("sidebar-item",!0),T=C("el-sub-menu");return G(e.item.children,e.item)&&(!_.value.children||_.value.noShowingChildren)?(d(),O(V,{key:0,index:W(_.value.path),class:se({"submenu-title-noDropdown":!t.isNest}),style:te(p.value)},{title:m(()=>[v("div",{style:te(n(r))},[n(o)==="horizontal"?(d(),z("span",Il,ee(n(_e)(_.value.meta.title)),1)):(d(),O(H,{key:1,placement:"top",effect:n(c),offset:-10,disabled:!_.value.showTooltip},{content:m(()=>[ne(ee(n(_e)(_.value.meta.title)),1)]),default:m(()=>[v("span",{ref_key:"menuTextRef",ref:A,style:te(y.value),onMouseover:I[0]||(I[0]=N=>L(_.value))},ee(n(_e)(_.value.meta.title)),37)]),_:1},8,["effect","disabled"])),s(pt,{extraIcon:_.value.meta.extraIcon},null,8,["extraIcon"])],4)]),default:m(()=>{var N,he,K,ae,pe;return[Ce(e.item.meta.icon)?(d(),z("div",{key:0,class:"sub-menu-icon",style:te(w.value)},[(d(),O(He(n(Ae)(Ce(_.value.meta.icon)||e.item.meta&&Ce(e.item.meta.icon)))))],4)):Q("",!0),!((N=e.item)!=null&&N.meta.icon)&&n(a)&&n(o)==="vertical"&&((K=(he=e.item)==null?void 0:he.pathList)==null?void 0:K.length)===1?(d(),z("span",{key:1,style:te(h.value)},ee(x(n(_e)(_.value.meta.title))),5)):Q("",!0),!_.value.meta.icon&&n(a)&&n(o)==="mix"&&((pe=(ae=e.item)==null?void 0:ae.pathList)==null?void 0:pe.length)===2?(d(),z("span",{key:2,style:te(h.value)},ee(x(n(_e)(_.value.meta.title))),5)):Q("",!0)]}),_:1},8,["index","class","style"])):(d(),O(T,kn({key:1,ref:"subMenu"},M.value,{index:W(e.item.path)}),{title:m(()=>[Ce(e.item.meta.icon)?(d(),z("div",{key:0,style:te(w.value),class:"sub-menu-icon"},[(d(),O(He(n(Ae)(e.item.meta&&Ce(e.item.meta.icon)))))],4)):Q("",!0),n(o)==="horizontal"?(d(),z("span",Tl,ee(n(_e)(e.item.meta.title)),1)):Q("",!0),n(a)&&Ce(e.item.meta.icon)&&e.item.parentId===null?Q("",!0):(d(),z("div",{key:2,style:te(u.value(e.item))},[n(o)!=="horizontal"?(d(),O(H,{key:0,placement:"top",effect:n(c),offset:-10,disabled:!e.item.showTooltip},{content:m(()=>[ne(ee(n(_e)(e.item.meta.title)),1)]),default:m(()=>[v("span",{ref_key:"menuTextRef",ref:A,style:te(g.value),onMouseover:I[1]||(I[1]=N=>L(e.item))},ee(x(n(_e)(e.item.meta.title),e.item)),37)]),_:1},8,["effect","disabled"])):Q("",!0),n(a)?Q("",!0):(d(),O(pt,{key:1,extraIcon:e.item.meta.extraIcon},null,8,["extraIcon"]))],4))]),default:m(()=>[(d(!0),z(we,null,$e(e.item.children,N=>(d(),O(F,{key:N.path,"is-nest":!0,item:N,"base-path":W(N.path),class:"nest-menu"},null,8,["item","base-path"]))),128))]),_:1},16,["index"]))}}}),Ml={class:"container"},Vl=oe({__name:"leftCollapse",props:{isActive:{type:Boolean,default:!1}},emits:["toggleClick"],setup(t,{emit:e}){const o=t,a=D(!1),{tooltipEffect:c}=Me(),r=q(()=>["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(p,y)=>{const w=C("IconifyIconOffline"),g=C("el-tooltip");return d(),z("div",Ml,[s(g,{placement:"right",visible:a.value,effect:n(c),content:o.isActive?"点击折叠":"点击展开"},{default:m(()=>[s(w,{icon:n(Kt),class:se(r.value),style:te({transform:o.isActive?"none":"rotateY(180deg)"}),onClick:h,onMouseenter:y[0]||(y[0]=u=>a.value=!0),onMouseleave:y[1]||(y[1]=u=>a.value=!1)},null,8,["icon","class","style"])]),_:1},8,["visible","effect","content"])])}}});const zl=fe(Vl,[["__scopeId","data-v-ed074d28"]]),Ll=oe({__name:"vertical",setup(t){var _;const e=yt(),o=D(((_=Ue().getItem(`${Xe()}configure`))==null?void 0:_.showLogo)??!0),{device:a,pureApp:c,isCollapse:r,menuSelect:h,toggleSideBar:p}=Me(),y=D([]),w=q(()=>c.layout==="mix"&&a.value!=="mobile"?y.value:be().wholeMenus),g=q(()=>c.layout==="mix"?!1:w.value.length===0),u=q(()=>{var b;return Be((b=e.meta)==null?void 0:b.activePath)?e.path:e.meta.activePath});function M(){let b="";b=u.value,y.value=[];const A=gt(b,be().wholeMenus),L=nt(A[0]||b,be().wholeMenus);L!=null&&L.children&&(y.value=L==null?void 0:L.children)}return Ne(()=>[e.path,be().wholeMenus],()=>{e.path.includes("/redirect")||(M(),h(e.path))}),Pe(()=>{M(),ye.on("logoChange",b=>{o.value=b})}),wt(()=>{ye.off("logoChange")}),(b,A)=>{const L=C("el-menu"),x=C("el-scrollbar"),G=_t("loading");return ve((d(),z("div",{class:se(["sidebar-container",o.value?"has-logo":"no-logo"])},[o.value?(d(),O(vl,{key:0,collapse:n(r)},null,8,["collapse"])):Q("",!0),s(x,{"wrap-class":"scrollbar-wrapper",class:se([n(a)==="mobile"?"mobile":"pc"])},{default:m(()=>[s(L,{router:"","unique-opened":"",mode:"vertical",class:"outer-most select-none",collapse:n(r),"default-active":u.value,"collapse-transition":!1},{default:m(()=>[(d(!0),z(we,null,$e(w.value,W=>(d(),O(tn,{key:W.path,item:W,"base-path":W.path,class:"outer-most select-none"},null,8,["item","base-path"]))),128))]),_:1},8,["collapse","default-active"])]),_:1},8,["class"]),n(a)!=="mobile"?(d(),O(zl,{key:1,"is-active":n(c).sidebar.opened,onToggleClick:n(p)},null,8,["is-active","onToggleClick"])):Q("",!0)],2)),[[G,g.value]])}}});const Al=fe(Ll,[["__scopeId","data-v-e2ffffe3"]]),Hl=t=>(lt("data-v-d7ea3a14"),t=t(),st(),t),El={class:"horizontal-header"},Ol=Hl(()=>v("img",{src:Vt,alt:"logo"},null,-1)),Dl={class:"horizontal-header-right"},Zl={class:"check-zh"},Pl={class:"check-en"},Rl={class:"el-dropdown-link navbar-bg-hover"},jl=["src"],Bl={key:0,class:"dark:text-white"},Fl=["title"],Nl=oe({__name:"horizontal",setup(t){const e=D(),{t:o,route:a,locale:c,translationCh:r,translationEn:h}=Ct(e),{title:p,logout:y,backTopMenu:w,onPanel:g,username:u,userAvatar:M,avatarsStyle:_,getDropdownItemStyle:b,getDropdownItemClass:A}=Me(),L=q(()=>{var x;return Be((x=a.meta)==null?void 0:x.activePath)?a.path:a.meta.activePath});return Ze(()=>{var x;(x=e.value)==null||x.handleResize()}),(x,G)=>{const W=C("el-menu"),S=C("IconifyIconOffline"),I=C("el-dropdown-item"),H=C("el-dropdown-menu"),V=C("el-dropdown"),F=_t("loading");return ve((d(),z("div",El,[v("div",{class:"horizontal-header-left",onClick:G[0]||(G[0]=(...T)=>n(w)&&n(w)(...T))},[Ol,v("span",null,ee(n(p)),1)]),s(W,{router:"",ref_key:"menuRef",ref:e,mode:"horizontal",class:"horizontal-header-menu","default-active":L.value},{default:m(()=>[(d(!0),z(we,null,$e(n(be)().wholeMenus,T=>(d(),O(tn,{key:T.path,item:T,"base-path":T.path},null,8,["item","base-path"]))),128))]),_:1},8,["default-active"]),v("div",Dl,[s(It),s(Tt,{id:"header-notice"}),s(V,{id:"header-translation",trigger:"click"},{dropdown:m(()=>[s(H,{class:"translation"},{default:m(()=>[s(I,{style:te(n(b)(n(c),"zh")),class:se(["dark:!text-white",n(A)(n(c),"zh")]),onClick:n(r)},{default:m(()=>[ve(v("span",Zl,[s(S,{icon:n(qe)},null,8,["icon"])],512),[[Se,n(c)==="zh"]]),ne(" 简体中文 ")]),_:1},8,["style","class","onClick"]),s(I,{style:te(n(b)(n(c),"en")),class:se(["dark:!text-white",n(A)(n(c),"en")]),onClick:n(h)},{default:m(()=>[ve(v("span",Pl,[s(S,{icon:n(qe)},null,8,["icon"])],512),[[Se,n(c)==="en"]]),ne(" English ")]),_:1},8,["style","class","onClick"])]),_:1})]),default:m(()=>[s(n($t),{class:"navbar-bg-hover w-[40px] h-[48px] p-[11px] cursor-pointer outline-none"})]),_:1}),s(V,{trigger:"click"},{dropdown:m(()=>[s(H,{class:"logout"},{default:m(()=>[s(I,{onClick:n(y)},{default:m(()=>[s(S,{icon:n(it),style:{margin:"5px"}},null,8,["icon"]),ne(" "+ee(n(o)("buttons.hsLoginOut")),1)]),_:1},8,["onClick"])]),_:1})]),default:m(()=>[v("span",Rl,[v("img",{src:n(M),style:te(n(_))},null,12,jl),n(u)?(d(),z("p",Bl,ee(n(u)),1)):Q("",!0)])]),_:1}),v("span",{class:"set-icon navbar-bg-hover",title:n(o)("buttons.hssystemSet"),onClick:G[1]||(G[1]=(...T)=>n(g)&&n(g)(...T))},[s(S,{icon:n(rt)},null,8,["icon"])],8,Fl)])])),[[F,n(be)().wholeMenus.length===0]])}}});const ql=fe(Nl,[["__scopeId","data-v-d7ea3a14"]]),Ul={key:0},Wl=oe({__name:"index",setup(t){const e=D(),{isDark:o}=Nt(),{layout:a}=Tn(),c=Bt(),r=St(),{$storage:h}=xt(),p=bt({sidebar:q(()=>De().sidebar),device:q(()=>De().device),fixedHeader:q(()=>r.fixedHeader),classes:q(()=>({hideSidebar:!p.sidebar.opened,openSidebar:p.sidebar.opened,withoutAnimation:p.sidebar.withoutAnimation,mobile:p.device==="mobile"})),hideTabs:q(()=>h==null?void 0:h.configure.hideTabs)});function y(M){var _,b,A,L;window.document.body.setAttribute("layout",M),h.layout={layout:`${M}`,theme:(_=h.layout)==null?void 0:_.theme,darkMode:(b=h.layout)==null?void 0:b.darkMode,sidebarStatus:(A=h.layout)==null?void 0:A.sidebarStatus,epThemeColor:(L=h.layout)==null?void 0:L.epThemeColor}}function w(M,_){De().toggleDevice(M),De().toggleSideBar(_,"resize")}let g=!0;mt(e,M=>{if(c)return;const _=M[0],{width:b}=_.contentRect;b<=760?y("vertical"):y(De().layout),b>0&&b<=760?(w("mobile",!1),g=!0):b>760&&b<=990?g&&(w("desktop",!1),g=!1):b>990&&!p.sidebar.isClickCollapse?(w("desktop",!0),g=!0):(w("desktop",!1),g=!1)}),Pe(()=>{c&&w("mobile",!1)}),qt(()=>{Ut().dataThemeChange()});const u=oe({render(){return Je("div",{class:{"fixed-header":p.fixedHeader},style:[p.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:()=>[!r.hiddenSideBar&&(a.value.includes("vertical")||a.value.includes("mix"))?Je(da):null,!r.hiddenSideBar&&a.value.includes("horizontal")?Je(ql):null,Je(Ta)]})}});return(M,_)=>{const b=C("el-backtop"),A=C("el-scrollbar");return d(),z("div",{ref_key:"appWrapperRef",ref:e,class:se(["app-wrapper",p.classes])},[ve(v("div",{class:"app-mask",onClick:_[0]||(_[0]=L=>n(De)().toggleSideBar())},null,512),[[Se,p.device==="mobile"&&p.sidebar.opened&&n(a).includes("vertical")]]),ve(s(Al,null,null,512),[[Se,!n(r).hiddenSideBar&&(n(a).includes("vertical")||n(a).includes("mix"))]]),v("div",{class:se(["main-container",n(r).hiddenSideBar?"main-hidden":""])},[p.fixedHeader?(d(),z("div",Ul,[s(n(u)),s(Pt,{"fixed-header":p.fixedHeader},null,8,["fixed-header"])])):(d(),O(A,{key:1},{default:m(()=>[s(b,{title:"回到顶部",target:".main-container .el-scrollbar__wrap"},{default:m(()=>[s(n(Wt))]),_:1}),s(n(u)),s(Pt,{"fixed-header":p.fixedHeader},null,8,["fixed-header"])]),_:1}))],2),s(cl)],2)}}});const ds=fe(Wl,[["__scopeId","data-v-203a800b"]]);export{ds as default};
|