mirror of
https://github.com/pure-admin/vue-pure-admin.git
synced 2025-06-08 09:27:19 +08:00
11 lines
74 KiB
JavaScript
11 lines
74 KiB
JavaScript
import{b2 as pe,ay as en,aB as Xe,aC as tn,f,k as M,i as _,d as le,Y as nn,a6 as Ht,x as q,F as ye,l as xe,A as ne,e as H,Q as Le,u as t,C as Y,g as i,_ as me,c as x,h as oe,an as J,a0 as ot,r as D,a_ as on,K as an,D as ge,w as v,au as Ot,G as we,aX as Zt,ag as Dt,n as Ne,a$ as ke,a as Qe,y as Re,j as at,m as ve,ak as ce,al as Ce,b3 as _t,b4 as nt,b1 as gt,b5 as Te,aj as sn,af as We,b6 as Be,az as Ue,aA as Ge,ad as yt,b7 as _e,b8 as Je,b9 as ln,ba as tt,ap as je,bb as pt,ai as bt,bc as Ee,bd as wt,be as ht,bf as rn,bg as zt,bh as jt,bi as kt,bj as At,L as Ke,aa as cn,p as st,q as lt,a5 as Pt,bk as un,bl as dn,bm as hn,N as Fe,Z as fn,O as pn,ae as vn}from"./index-cf07ebc0.js";import{d as mn}from"./menu-a4fe64fb.js";import{d as _n}from"./edit-d219f0c6.js";import{d as gn}from"./set-up-e6942411.js";import{d as yn}from"./home-filled-05cc090c.js";import{d as bn}from"./admin-line-92b9acda.js";import{d as wn}from"./git-branch-line-aa4cb38f.js";import{u as Me,a as xt,g as Ct,b as kn,t as xn,d as Cn,c as $n,e as Sn}from"./dark-23c40083.js";import{u as Pe}from"./app-56a06eba.js";import{u as In}from"./epTheme-f423feed.js";import{u as Ae}from"./hooks-a5c70909.js";import{o as ft,u as Mn,a as Tn,b as Vn,c as zn}from"./index-0d9850a5.js";import{d as An}from"./search-cc37b371.js";import{d as qe}from"./check-3815600c.js";import{d as Ln}from"./refresh-right-6177e75c.js";import{d as En}from"./arrow-right-s-line-2977cc7e.js";import{b as Rt}from"./back_top-908dfd48.js";const Hn={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"/>'},On={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 16ZM11 7h2v2h-2V7Zm0 4h2v6h-2v-6Z"/>'},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"/>'},Dn={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"/>'},jn={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"/>'},Pn={width:24,height:24,body:'<path fill="currentColor" d="M8 4h13v2H8V4Zm-5-.5h3v3H3v-3Zm0 7h3v3H3v-3Zm0 7h3v3H3v-3ZM8 11h13v2H8v-2Zm0 7h13v2H8v-2Z"/>'},Rn={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"/>'},Nn={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"/>'},qn={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"/>'},Fn={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"/>'},Un={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"/>'};pe("ubuntuFill",Hn);pe("menu",mn);pe("edit",_n);pe("informationLine",On);pe("setUp",gn);pe("terminalWindowLine",Zn);pe("guide",Dn);pe("homeFilled",yn);pe("card",jn);pe("listCheck",Pn);pe("histogram",Rn);pe("ppt",Bn);pe("checkboxCircleLine",Nn);pe("flUser",bn);pe("role",qn);pe("setting",rt);pe("dept",wn);pe("lollipop",Fn);pe("monitor",Un);const Wn=en({id:"pure-setting",state:()=>({title:Xe().Title,fixedHeader:Xe().FixedHeader,hiddenSideBar:Xe().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 Wn(tn)}const Gn={xmlns:"http://www.w3.org/2000/svg",width:"20",height:"20","aria-hidden":"true",class:"iconify iconify--ant-design",viewBox:"0 0 1024 1024"},Kn=_("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),Xn=[Kn];function Jn(n,e){return f(),M("svg",Gn,Xn)}const Bt={render:Jn},Yn={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"/>'},Qn={class:"result"},eo=["onMouseenter"],to={class:"result-item-title"},no=le({__name:"SearchResult",props:{value:{},options:{}},emits:["update:value","enter"],setup(n,{expose:e,emit:o}){const a=n,{t:c}=nn(),r=Ht(),d=q(()=>h=>({background:(h==null?void 0:h.path)===m.value?In().epThemeColor:"",color:h.path===m.value?"#fff":"",fontSize:h.path===m.value?"16px":"14px"})),m=q({get(){return a.value},set(h){o("update:value",h)}});async function g(h){m.value=h.path}function $(){o("enter")}function p(h){var T;const w=(T=r==null?void 0:r.proxy)==null?void 0:T.$refs[`resultItemRef${h}`];if(!w)return 0;const A=w[0].offsetTop+128;return A>600?A-600:0}return e({handleScroll:p}),(h,w)=>(f(),M("div",Qn,[(f(!0),M(ye,null,xe(h.options,(b,A)=>{var T,V;return f(),M("div",{key:b.path,ref_for:!0,ref:"resultItemRef"+A,class:"result-item dark:bg-[#1d1d1d]",style:ne(d.value(b)),onClick:$,onMouseenter:L=>g(b)},[(f(),H(Le(t(Ae)(((T=b.meta)==null?void 0:T.icon)??t(Yn))))),_("span",to,Y(t(c)((V=b.meta)==null?void 0:V.title)),1),i(t(Bt))],44,eo)}),128))]))}});const oo=me(no,[["__scopeId","data-v-e7827c28"]]),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"/>'},so={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"/>'},lo={xmlns:"http://www.w3.org/2000/svg",width:"20",height:"20","aria-hidden":"true",class:"iconify iconify--mdi",viewBox:"0 0 24 24"},ro=_("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 f(),M("svg",lo,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=le({__name:"SearchFooter",props:{total:{default:0}},setup(n){const e=n,{device:o}=Me();return(a,c)=>{const r=x("IconifyIconOffline");return f(),M("div",ho,[_("span",fo,[i(t(Bt),{class:"icon"}),oe(" 确认 ")]),_("span",po,[i(r,{icon:t(ao),class:"icon"},null,8,["icon"]),i(r,{icon:t(so),class:"icon"},null,8,["icon"]),oe(" 切换 ")]),_("span",vo,[i(t(uo),{class:"icon"}),oe(" 关闭 ")]),t(o)!=="mobile"&&e.total>0?(f(),M("p",mo," 共"+Y(e.total)+"项 ",1)):J("",!0)])}}});const go=me(_o,[["__scopeId","data-v-d2a25abb"]]),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=le({__name:"SearchModal",props:{value:{type:Boolean}},emits:["update:value"],setup(n,{emit:e}){const o=n,{device:a}=Me(),c=ot(),r=D(""),d=D(),m=D(),g=D(""),$=D(null),p=on([]),h=Ot(T,300),w=q(()=>an(ge().wholeMenus)),b=q({get(){return o.value},set(y){e("update:value",y)}});function A(y){const k=[];function j(F){F.forEach(S=>{k.push(S),S.children&&j(S.children)})}return j(y),k}function T(){var k;const y=A(w.value);p.value=y.filter(j=>{var F;return r.value&&we((F=j.meta)==null?void 0:F.title).toLocaleLowerCase().includes(r.value.toLocaleLowerCase().trim())}),((k=p.value)==null?void 0:k.length)>0?g.value=p.value[0].path:g.value=""}function V(){b.value=!1,setTimeout(()=>{p.value=[],r.value=""},200)}function L(y){const k=m.value.handleScroll(y);d.value.setScrollTop(k)}function ee(){const{length:y}=p.value;if(y===0)return;const k=p.value.findIndex(j=>j.path===g.value);k===0?(g.value=p.value[y-1].path,L(p.value.length-1)):(g.value=p.value[k-1].path,L(k-1))}function R(){const{length:y}=p.value;if(y===0)return;const k=p.value.findIndex(j=>j.path===g.value);k+1===y?g.value=p.value[0].path:g.value=p.value[k+1].path,L(k+1)}function I(){const{length:y}=p.value;y===0||g.value===""||(c.push(g.value),V())}return ft("Enter",I),ft("ArrowUp",ee),ft("ArrowDown",R),(y,k)=>{const j=x("IconifyIconOffline"),F=x("el-input"),S=x("el-empty"),O=x("el-scrollbar"),he=x("el-dialog");return f(),H(he,{top:"5vh",class:"pure-search-dialog",modelValue:b.value,"onUpdate:modelValue":k[2]||(k[2]=X=>b.value=X),"show-close":!1,width:t(a)==="mobile"?"80vw":"40vw","before-close":V,style:{borderRadius:"6px"},onOpened:k[3]||(k[3]=X=>$.value.focus()),onClosed:k[4]||(k[4]=X=>$.value.blur())},{footer:v(()=>[i(go,{total:p.value.length},null,8,["total"])]),default:v(()=>[i(F,{ref_key:"inputRef",ref:$,size:"large",modelValue:r.value,"onUpdate:modelValue":k[0]||(k[0]=X=>r.value=X),clearable:"",placeholder:"搜索菜单",onInput:t(h)},{prefix:v(()=>[i(j,{icon:t(yo),class:"text-primary w-[24px] h-[24px]"},null,8,["icon"])]),_:1},8,["modelValue","onInput"]),_("div",bo,[i(O,{ref_key:"scrollbarRef",ref:d,"max-height":"600px"},{default:v(()=>[p.value.length===0?(f(),H(S,{key:0,description:"暂无搜索结果"})):(f(),H(oo,{key:1,ref_key:"resultRef",ref:m,value:g.value,"onUpdate:value":k[1]||(k[1]=X=>g.value=X),options:p.value,onClick:I},null,8,["value","options"]))]),_:1},512)])]),_:1},8,["modelValue","width"])}}});const ko=me(wo,[["__scopeId","data-v-be6a6450"]]);function xo(n=!1){const e=D(n);function o(d){e.value=d}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 St=le({__name:"index",setup(n){const{bool:e,toggle:o}=xo();function a(){o()}return(c,r)=>{const d=x("IconifyIconOffline");return f(),M(ye,null,[_("div",{class:"search-container w-[40px] h-[48px] flex-c cursor-pointer navbar-bg-hover",onClick:a},[i(d,{icon:t(An)},null,8,["icon"])]),i(t(ko),{value:t(e),"onUpdate:value":r[0]||(r[0]=m=>Zt(e)?e.value=m:null)},null,8,["value"])],64)}}}),Lt=[{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"},Mo=le({__name:"noticeItem",props:{noticeItem:{type:Object,default:()=>{}}},setup(n){const e=n,o=D(null),a=D(!1),c=D(null),r=D(!1),{tooltipEffect:d}=Me(),m=Dt();function g(){Ne(()=>{var p,h;((p=o.value)==null?void 0:p.scrollWidth)>((h=o.value)==null?void 0:h.clientWidth)?a.value=!0:a.value=!1})}function $(p,h){const w=document.createElement("span");w.innerText=h,w.className="getDescriptionWidth",document.querySelector("body").appendChild(w);const b=document.querySelector(".getDescriptionWidth").offsetWidth;document.querySelector(".getDescriptionWidth").remove();const A=p.target.offsetWidth;b>2*A?r.value=!0:r.value=!1}return(p,h)=>{var T,V;const w=x("el-avatar"),b=x("el-tooltip"),A=x("el-tag");return f(),M("div",Co,[e.noticeItem.avatar?(f(),H(w,{key:0,size:30,src:e.noticeItem.avatar,class:"notice-container-avatar"},null,8,["src"])):J("",!0),_("div",$o,[_("div",So,[i(b,{"popper-class":"notice-title-popper",effect:t(d),disabled:!a.value,content:e.noticeItem.title,placement:"top-start",enterable:!t(m)},{default:v(()=>[_("div",{ref_key:"titleRef",ref:o,class:"notice-title-content",onMouseover:g},Y(e.noticeItem.title),545)]),_:1},8,["effect","disabled","content","enterable"]),(T=e.noticeItem)!=null&&T.extra?(f(),H(A,{key:0,type:(V=e.noticeItem)==null?void 0:V.status,size:"small",class:"notice-title-extra"},{default:v(()=>{var L;return[oe(Y((L=e.noticeItem)==null?void 0:L.extra),1)]}),_:1},8,["type"])):J("",!0)]),i(b,{"popper-class":"notice-title-popper",effect:t(d),disabled:!r.value,content:e.noticeItem.description,placement:"top-start"},{default:v(()=>[_("div",{ref_key:"descriptionRef",ref:c,class:"notice-text-description",onMouseover:h[0]||(h[0]=L=>$(L,e.noticeItem.description))},Y(e.noticeItem.description),545)]),_:1},8,["effect","disabled","content"]),_("div",Io,Y(e.noticeItem.datetime),1)])])}}});const To=me(Mo,[["__scopeId","data-v-2a7dbc48"]]),Vo={key:0},zo=le({__name:"noticeList",props:{list:{type:Array,default:()=>[]}},setup(n){const e=n;return(o,a)=>{const c=x("el-empty");return e.list.length?(f(),M("div",Vo,[(f(!0),M(ye,null,xe(e.list,(r,d)=>(f(),H(To,{noticeItem:r,key:d},null,8,["noticeItem"]))),128))])):(f(),H(c,{key:1,description:"暂无数据"}))}}}),Ao={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"/>'},Lo={class:"dropdown-badge navbar-bg-hover select-none"},Eo={class:"header-notice-icon"},Ho={class:"noticeList-container"},Oo=le({__name:"index",setup(n){const e=D(0),o=D(Lt),a=D(Lt[0].key);return o.value.map(c=>e.value+=c.list.length),(c,r)=>{const d=x("IconifyIconOffline"),m=x("el-badge"),g=x("el-scrollbar"),$=x("el-tab-pane"),p=x("el-tabs"),h=x("el-dropdown-menu"),w=x("el-dropdown");return f(),H(w,{trigger:"click",placement:"bottom-end"},{dropdown:v(()=>[i(h,null,{default:v(()=>[i(p,{stretch:!0,modelValue:a.value,"onUpdate:modelValue":r[0]||(r[0]=b=>a.value=b),class:"dropdown-tabs"},{default:v(()=>[(f(!0),M(ye,null,xe(o.value,b=>(f(),H($,{key:b.key,label:`${b.name}(${b.list.length})`,name:`${b.key}`},{default:v(()=>[i(g,{"max-height":"330px"},{default:v(()=>[_("div",Ho,[i(zo,{list:b.list},null,8,["list"])])]),_:2},1024)]),_:2},1032,["label","name"]))),128))]),_:1},8,["modelValue"])]),_:1})]),default:v(()=>[_("span",Lo,[i(m,{value:e.value,max:99},{default:v(()=>[_("span",Eo,[i(d,{icon:t(Ao)},null,8,["icon"])])]),_:1},8,["value"])])]),_:1})}}});const It=me(Oo,[["__scopeId","data-v-4e7fe581"]]),Zo={key:0,class:"flex justify-center items-center"},vt=le({__name:"extraIcon",props:{extraIcon:{type:String,default:""}},setup(n){const e=n;return(o,a)=>e.extraIcon?(f(),M("div",Zo,[(f(),H(Le(t(Ae)(ke(e.extraIcon))),{class:"w-[30px] h-[30px]"}))])):J("",!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"/>'},Do={key:0,class:"horizontal-header"},jo={class:"select-none"},Po={class:"horizontal-header-right"},Ro={class:"check-zh"},Bo={class:"check-en"},No={class:"el-dropdown-link navbar-bg-hover select-none"},qo=["src"],Fo={key:0,class:"dark:text-white"},Uo=["title"],Wo=le({__name:"mixNav",setup(n){const e=D(),o=D(null),{t:a,route:c,locale:r,translationCh:d,translationEn:m}=xt(e),{device:g,routers:$,logout:p,onPanel:h,menuSelect:w,resolvePath:b,username:A,userAvatar:T,getDivStyle:V,avatarsStyle:L,getDropdownItemStyle:ee,getDropdownItemClass:R}=Me();function I(y){var F,S;const k=ge().wholeMenus,j=_t(y,k)[0];o.value=(S=(F=nt(j,k))==null?void 0:F.children[0])==null?void 0:S.path}return Qe(()=>{I(c.path)}),Ne(()=>{var y;(y=e.value)==null||y.handleResize()}),Re(()=>[c.path,ge().wholeMenus],()=>{I(c.path)}),(y,k)=>{const j=x("el-menu-item"),F=x("el-menu"),S=x("IconifyIconOffline"),O=x("el-dropdown-item"),he=x("el-dropdown-menu"),X=x("el-dropdown"),re=at("loading");return t(g)!=="mobile"?ve((f(),M("div",Do,[i(F,{router:"",ref_key:"menuRef",ref:e,mode:"horizontal",class:"horizontal-header-menu","default-active":o.value,onSelect:k[0]||(k[0]=ae=>t(w)(ae,t($)))},{default:v(()=>[(f(!0),M(ye,null,xe(t(ge)().wholeMenus,ae=>(f(),H(j,{key:ae.path,index:t(b)(ae)||ae.redirect},{title:v(()=>[ke(ae.meta.icon)?(f(),M("div",{key:0,class:ce(["sub-menu-icon",ae.meta.icon])},[(f(),H(Le(t(Ae)(ae.meta&&ke(ae.meta.icon)))))],2)):J("",!0),_("div",{style:ne(t(V))},[_("span",jo,Y(t(we)(ae.meta.title)),1),i(vt,{extraIcon:ae.meta.extraIcon},null,8,["extraIcon"])],4)]),_:2},1032,["index"]))),128))]),_:1},8,["default-active"]),_("div",Po,[i(St),i(It,{id:"header-notice"}),i(X,{id:"header-translation",trigger:"click"},{dropdown:v(()=>[i(he,{class:"translation"},{default:v(()=>[i(O,{style:ne(t(ee)(t(r),"zh")),class:ce(["dark:!text-white",t(R)(t(r),"zh")]),onClick:t(d)},{default:v(()=>[ve(_("span",Ro,[i(S,{icon:t(qe)},null,8,["icon"])],512),[[Ce,t(r)==="zh"]]),oe(" 简体中文 ")]),_:1},8,["style","class","onClick"]),i(O,{style:ne(t(ee)(t(r),"en")),class:ce(["dark:!text-white",t(R)(t(r),"en")]),onClick:t(m)},{default:v(()=>[ve(_("span",Bo,[i(S,{icon:t(qe)},null,8,["icon"])],512),[[Ce,t(r)==="en"]]),oe(" English ")]),_:1},8,["style","class","onClick"])]),_:1})]),default:v(()=>[i(t(Ct),{class:"navbar-bg-hover w-[40px] h-[48px] p-[11px] cursor-pointer outline-none"})]),_:1}),i(X,{trigger:"click"},{dropdown:v(()=>[i(he,{class:"logout"},{default:v(()=>[i(O,{onClick:t(p)},{default:v(()=>[i(S,{icon:t(it),style:{margin:"5px"}},null,8,["icon"]),oe(" "+Y(t(a)("buttons.hsLoginOut")),1)]),_:1},8,["onClick"])]),_:1})]),default:v(()=>[_("span",No,[_("img",{src:t(T),style:ne(t(L))},null,12,qo),t(A)?(f(),M("p",Fo,Y(t(A)),1)):J("",!0)])]),_:1}),_("span",{class:"set-icon navbar-bg-hover",title:t(a)("buttons.hssystemSet"),onClick:k[1]||(k[1]=(...ae)=>t(h)&&t(h)(...ae))},[i(S,{icon:t(rt)},null,8,["icon"])],8,Uo)])])),[[re,t(ge)().wholeMenus.length===0]]):J("",!0)}}});const Go=me(Wo,[["__scopeId","data-v-59cf1b62"]]),Ko=["onClick"],Xo=le({__name:"breadCrumb",setup(n){const e=gt(),o=D([]),a=ot(),c=a.options.routes,r=Te().multiTags,d=()=>{let g;Object.keys(e.query).length>0?r.forEach(h=>{Be(e.query,h==null?void 0:h.query)&&(g=ke(h))}):Object.keys(e.params).length>0?r.forEach(h=>{Be(e.params,h==null?void 0:h.params)&&(g=ke(h))}):g=nt(a.currentRoute.value.path,c);const $=_t(a.currentRoute.value.name,c,"name"),p=[];$.forEach(h=>{h!=="/"&&p.push(nt(h,c))}),p.push(g),p.forEach((h,w)=>{g!=null&&g.query||g!=null&&g.params||h!=null&&h.children&&h.children.forEach(b=>{var A,T;((A=b==null?void 0:b.meta)==null?void 0:A.title)===((T=h==null?void 0:h.meta)==null?void 0:T.title)&&p.splice(w,1)})}),o.value=p.filter(h=>(h==null?void 0:h.meta)&&(h==null?void 0:h.meta.title)!==!1)},m=g=>{const{redirect:$,path:p}=g;$?a.push($):a.push(p)};return Qe(()=>{d()}),Re(()=>e.path,()=>{d()},{deep:!0}),(g,$)=>{const p=x("el-breadcrumb-item"),h=x("el-breadcrumb");return f(),H(h,{class:"!leading-[50px] select-none",separator:"/"},{default:v(()=>[i(sn,{name:"breadcrumb"},{default:v(()=>[(f(!0),M(ye,null,xe(o.value,w=>(f(),H(p,{class:"!inline !items-stretch",key:w.path},{default:v(()=>[_("a",{onClick:We(b=>m(w),["prevent"])},Y(t(we)(w.meta.title)),9,Ko)]),_:2},1024))),128))]),_:1})]),_:1})}}}),Nt={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"/>'},Jo={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"/>'},Yo=["title"],Qo=le({__name:"topCollapse",props:{isActive:{type:Boolean,default:!1}},emits:["toggleClick"],setup(n,{emit:e}){const o=n,a=()=>{e("toggleClick")};return(c,r)=>{const d=x("IconifyIconOffline");return f(),M("div",{class:"px-3 mr-1 navbar-bg-hover",title:o.isActive?"点击折叠":"点击展开",onClick:a},[i(d,{icon:o.isActive?t(Nt):t(Jo),class:"inline-block align-middle hover:text-primary dark:hover:!text-white"},null,8,["icon"])],8,Yo)}}}),ea={class:"navbar bg-[#fff] shadow-sm shadow-[rgba(0, 21, 41, 0.08)] dark:shadow-[#0d0d0d]"},ta={key:3,class:"vertical-header-right"},na={class:"check-en"},oa={class:"el-dropdown-link navbar-bg-hover select-none"},aa=["src"],sa={key:0,class:"dark:text-white"},la=["title"],ra=le({__name:"navbar",setup(n){const{layout:e,device:o,logout:a,onPanel:c,pureApp:r,username:d,userAvatar:m,avatarsStyle:g,toggleSideBar:$,getDropdownItemStyle:p,getDropdownItemClass:h}=Me(),{t:w,locale:b,translationCh:A,translationEn:T}=xt();return(V,L)=>{const ee=x("IconifyIconOffline"),R=x("el-dropdown-item"),I=x("el-dropdown-menu"),y=x("el-dropdown");return f(),M("div",ea,[t(o)==="mobile"?(f(),H(Qo,{key:0,class:"hamburger-container","is-active":t(r).sidebar.opened,onToggleClick:t($)},null,8,["is-active","onToggleClick"])):J("",!0),t(e)!=="mix"&&t(o)!=="mobile"?(f(),H(Xo,{key:1,class:"breadcrumb-container"})):J("",!0),t(e)==="mix"?(f(),H(Go,{key:2})):J("",!0),t(e)==="vertical"?(f(),M("div",ta,[i(St),i(It,{id:"header-notice"}),i(y,{id:"header-translation",trigger:"click"},{dropdown:v(()=>[i(I,{class:"translation"},{default:v(()=>[i(R,{style:ne(t(p)(t(b),"zh")),class:ce(["dark:!text-white",t(h)(t(b),"zh")]),onClick:t(A)},{default:v(()=>[ve(i(ee,{class:"check-zh",icon:t(qe)},null,8,["icon"]),[[Ce,t(b)==="zh"]]),oe(" 简体中文 ")]),_:1},8,["style","class","onClick"]),i(R,{style:ne(t(p)(t(b),"en")),class:ce(["dark:!text-white",t(h)(t(b),"en")]),onClick:t(T)},{default:v(()=>[ve(_("span",na,[i(ee,{icon:t(qe)},null,8,["icon"])],512),[[Ce,t(b)==="en"]]),oe(" English ")]),_:1},8,["style","class","onClick"])]),_:1})]),default:v(()=>[i(t(Ct),{class:"navbar-bg-hover w-[40px] h-[48px] p-[11px] cursor-pointer outline-none"})]),_:1}),i(y,{trigger:"click"},{dropdown:v(()=>[i(I,{class:"logout"},{default:v(()=>[i(R,{onClick:t(a)},{default:v(()=>[i(ee,{icon:t(it),style:{margin:"5px"}},null,8,["icon"]),oe(" "+Y(t(w)("buttons.hsLoginOut")),1)]),_:1},8,["onClick"])]),_:1})]),default:v(()=>[_("span",oa,[_("img",{src:t(m),style:ne(t(g))},null,12,aa),t(d)?(f(),M("p",sa,Y(t(d)),1)):J("",!0)])]),_:1}),_("span",{class:"set-icon navbar-bg-hover",title:t(w)("buttons.hssystemSet"),onClick:L[0]||(L[0]=(...k)=>t(c)&&t(c)(...k))},[i(ee,{icon:t(rt)},null,8,["icon"])],8,la)])):J("",!0)])}}});const ia=me(ra,[["__scopeId","data-v-fc735608"]]),ca={width:24,height:24,body:'<path fill="currentColor" d="M5 11v2h14v-2H5Z"/>'},ua={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"/>'},da={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"/>'},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 4V5ZM7 17h12v2H7v2.5L3 18l4-3.5V17Z"/>'},qt={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 fa(){var F;const n=gt(),e=ot(),o=Ht(),a=$t(),c=D(0),r=D(0),d=D(0),m=D(!1),g=D(-1),$=D({}),p=D(((F=Ue().getItem(`${Ge()}configure`))==null?void 0:F.showModel)||"smart"),h=D(Ue().getItem(`${Ge()}configure`).hideTabs)??D("false"),w=q(()=>Te().multiTags),b=yt([{icon:Ln,text:_e("buttons.hsreload"),divided:!1,disabled:!1,show:!0},{icon:qt,text:_e("buttons.hscloseCurrentTab"),divided:!1,disabled:!(w.value.length>1),show:!0},{icon:ha,text:_e("buttons.hscloseLeftTabs"),divided:!0,disabled:!(w.value.length>1),show:!0},{icon:da,text:_e("buttons.hscloseRightTabs"),divided:!1,disabled:!(w.value.length>1),show:!0},{icon:ua,text:_e("buttons.hscloseOtherTabs"),divided:!0,disabled:!(w.value.length>2),show:!0},{icon:ca,text:_e("buttons.hscloseAllTabs"),divided:!1,disabled:!(w.value.length>1),show:!0},{icon:Je,text:_e("buttons.hswholeFullScreen"),divided:!0,disabled:!1,show:!0},{icon:Je,text:_e("buttons.hscontentFullScreen"),divided:!1,disabled:!1,show:!0}]);function A(S,O,he){var X,re;return ln((X=n==null?void 0:n.meta)==null?void 0:X.showLink)&&((re=n==null?void 0:n.meta)==null?void 0:re.showLink)===!1?Object.keys(n.query).length>0?Be(n.query,S.query)?O:he:Be(n.params,S.params)?O:he:n.path===S.path?O:he}const T=q(()=>(S,O)=>{if(O!==0)return A(S,!0,!1)}),V=q(()=>S=>A(S,"is-active","")),L=q(()=>S=>A(S,"schedule-active","")),ee=q(()=>({transform:`translateX(${d.value}px)`})),R=q(()=>({left:r.value+"px",top:c.value+"px"})),I=()=>{m.value=!1};function y(S){if(S&&(g.value=S),t(p)==="smart"){if(tt(o.refs["schedule"+S][0],"schedule-active"))return;je(!0,"schedule-in",o.refs["schedule"+S][0]),je(!1,"schedule-out",o.refs["schedule"+S][0])}else{if(tt(o.refs["dynamic"+S][0],"card-active"))return;je(!0,"card-in",o.refs["dynamic"+S][0]),je(!1,"card-out",o.refs["dynamic"+S][0])}}function k(S){if(g.value=-1,t(p)==="smart"){if(tt(o.refs["schedule"+S][0],"schedule-active"))return;je(!1,"schedule-in",o.refs["schedule"+S][0]),je(!0,"schedule-out",o.refs["schedule"+S][0])}else{if(tt(o.refs["dynamic"+S][0],"card-active"))return;je(!1,"card-in",o.refs["dynamic"+S][0]),je(!0,"card-out",o.refs["dynamic"+S][0])}}function j(){a.hiddenSideBar?a.changeSetting({key:"hiddenSideBar",value:!1}):a.changeSetting({key:"hiddenSideBar",value:!0})}return Qe(()=>{if(!p.value){const S=Ue().getItem(`${Ge()}configure`);S.showModel="card",Ue().setItem(`${Ge()}configure`,S)}}),Re(()=>m.value,()=>{Mn(document,"click",I)}),{route:n,router:e,visible:m,showTags:h,instance:o,multiTags:w,showModel:p,tagsViews:b,buttonTop:c,buttonLeft:r,translateX:d,pureSetting:a,activeIndex:g,getTabStyle:ee,iconIsActive:T,linkIsActive:V,currentSelect:$,scheduleIsActive:L,getContextMenuStyle:R,$t:_e,closeMenu:I,onMounted:Qe,onMouseenter:y,onMouseleave:k,transformI18n:we,onContentFullScreen:j}}const pa={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"/>'},va={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"/>'},ma={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"/>'},_a={class:"arrow-left"},ga=["onContextmenu","onMouseenter","onMouseleave","onClick"],ya=["onClick"],ba={class:"arrow-right"},wa=["onClick"],ka={class:"arrow-down"},xa=le({__name:"index",setup(n){const{route:e,router:o,visible:a,showTags:c,instance:r,multiTags:d,tagsViews:m,buttonTop:g,buttonLeft:$,showModel:p,translateX:h,pureSetting:w,activeIndex:b,getTabStyle:A,iconIsActive:T,linkIsActive:V,currentSelect:L,scheduleIsActive:ee,getContextMenuStyle:R,closeMenu:I,onMounted:y,onMouseenter:k,onMouseleave:j,transformI18n:F,onContentFullScreen:S}=fa(),O=D(),he=D(),X=D(),re=D(!1),ae=pt().path,{VITE_HIDE_HOME:He}={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:Oe,toggle:l}=Tn(),s=()=>{const C=d.value.findIndex(z=>z.query?Be(e.query,z.query):z.params?Be(e.params,z.params):z.path===e.path);u(C)},u=async C=>{var N,ie;if(!r.refs["dynamic"+C])return;const Z=r.refs["dynamic"+C][0],K=Z==null?void 0:Z.offsetLeft,fe=Z==null?void 0:Z.offsetWidth,P=X.value?(N=X.value)==null?void 0:N.offsetWidth:0;await Ne();const te=O.value?(ie=O.value)==null?void 0:ie.offsetWidth:0;P<=te?re.value=!0:re.value=!1,te<P||K===0?h.value=0:K<-h.value?h.value=-K+10:K>-h.value&&K+fe<-h.value+P?h.value=Math.min(0,P-fe-K-10):h.value=-(K-(P-10-fe))},E=C=>{var K;const z=X.value?(K=X.value)==null?void 0:K.offsetWidth:0,Z=O.value?O.value.offsetWidth:0;C>0?h.value=Math.min(0,h.value+C):z<Z?h.value>=-(Z-z)&&(h.value=Math.max(h.value+C,z-Z)):h.value=0};function U(C,z){const Z=d.value.some(fe=>fe.path===C);function K(fe,P,te){Z||fe.forEach(N=>{const ie=te+N.path;N.path===P||ie===P?Te().handleTags("push",{path:P,parentPath:`/${te.split("/")[1]}`,meta:N.meta,name:N.name}):N.children&&N.children.length>0&&K(N.children,P,te)})}K(o.options.routes,C,z)}function B(){const{fullPath:C,query:z}=t(e);o.replace({path:"/redirect"+C,query:z}),ht(e,"refresh")}function W(C,z,Z){var te,N,ie,ze;const K=d.value.findIndex(Se=>{if(Se.query){if(Se.path===C.path)return Se.query===C.query}else if(Se.params){if(Se.path===C.path)return Se.params===C.params}else return Se.path===C.path}),fe=(Se,Yt,Qt)=>{Qt?Te().handleTags("equal",[He==="false"?jt[0]:ke(pt()),C]):Te().handleTags("splice","",{startIndex:Se,length:Yt}),s()};Z==="other"?fe(1,1,!0):Z==="left"?fe(1,K-1):Z==="right"?fe(K+1,d.value.length):fe(K,1);const P=Te().handleTags("slice");if(z===e.path){if(Z==="left")return;(te=P[0])!=null&&te.query?o.push({name:P[0].name,query:P[0].query}):(N=P[0])!=null&&N.params?o.push({name:P[0].name,params:P[0].params}):o.push({path:P[0].path})}else{if(!d.value.length||d.value.some(Se=>Se.path===e.path))return;(ie=P[0])!=null&&ie.query?o.push({name:P[0].name,query:P[0].query}):(ze=P[0])!=null&&ze.params?o.push({name:P[0].name,params:P[0].params}):o.push({path:P[0].path})}}function G(C,z){W(C,C.path,z),ht(e)}function se(C,z,Z){if(z&&z.disabled)return;let K;switch(Z?K={path:Z.path,meta:Z.meta,name:Z.name,query:Z==null?void 0:Z.query,params:Z==null?void 0:Z.params}:K={path:e.path,meta:e.meta},C){case 0:B();break;case 1:G(K);break;case 2:G(K,"left");break;case 3:G(K,"right");break;case 4:G(K,"other");break;case 5:Te().handleTags("splice","",{startIndex:1,length:d.value.length}),o.push(ae),ht(e);break;case 6:l(),setTimeout(()=>{Oe.value?(m[6].icon=zt,m[6].text=_e("buttons.hswholeExitFullScreen")):(m[6].icon=Je,m[6].text=_e("buttons.hswholeFullScreen"))},100);break;case 7:S(),setTimeout(()=>{w.hiddenSideBar?(m[7].icon=zt,m[7].text=_e("buttons.hscontentExitFullScreen")):(m[7].icon=Je,m[7].text=_e("buttons.hscontentFullScreen"))},100);break}setTimeout(()=>{De(e.fullPath,e.query)})}function be(C){const{key:z,item:Z}=C;se(z,Z)}function Ze(C,z){se(C,z,L.value)}function Q(C){Array.of(1,2,3,4,5).forEach(z=>{m[z].show=C})}function Ve(C){Array.of(1,2,3,4,5).forEach(z=>{m[z].disabled=C})}function De(C,z={},Z=!1){const K=d.value,fe=d.value.length;let P=-1;rn(z)?P=K.findIndex(te=>te.path===C):P=K.findIndex(te=>Be(te.query,z)),Q(!0),Z&&(m[0].show=!0),P===1&&fe!==2?(m[2].show=!1,Array.of(1,3,4,5).forEach(te=>{m[te].disabled=!1}),m[2].disabled=!0):P===1&&fe===2?(Ve(!1),Array.of(2,3,4).forEach(te=>{m[te].show=!1,m[te].disabled=!0})):fe-1===P&&P!==0?(m[3].show=!1,Array.of(1,2,4,5).forEach(te=>{m[te].disabled=!1}),m[3].disabled=!0):P===0||C===`/redirect${ae}`?Ve(!0):Ve(!1)}function Xt(C,z){I(),C.path===ae?(Q(!1),m[0].show=!0):e.path!==C.path&&e.name!==C.name?(m[0].show=!1,De(C.path,C.query)):d.value.length===2&&e.path!==C.path?(Q(!0),m[4].show=!1):e.path===C.path&&De(C.path,C.query,!0),L.value=C;const Z=105,K=t(he).getBoundingClientRect().left,P=t(he).offsetWidth-Z,te=z.clientX-K+5;te>P?$.value=P:$.value=te,$t().hiddenSideBar?g.value=z.clientY:g.value=z.clientY-40,Ne(()=>{a.value=!0})}function Jt(C){const{name:z,path:Z}=C;z?C.query?o.push({name:z,query:C.query}):C.params?o.push({name:z,params:C.params}):o.push({name:z}):o.push({path:Z})}return bt(()=>{r&&(De(e.fullPath),Ee.on("tagViewsChange",C=>{t(c)!==C&&(c.value=C)}),Ee.on("tagViewsShowModel",C=>{p.value=C}),Ee.on("changLayoutRoute",({indexPath:C,parentPath:z})=>{U(C,z),setTimeout(()=>{De(C)})}))}),Re([e],()=>{b.value=-1,s()}),Re(Oe,()=>{m[6].icon=Je,m[6].text=_e("buttons.hswholeFullScreen")}),y(()=>{Vn(X,Ot(()=>{s()},200))}),(C,z)=>{const Z=x("IconifyIconOffline"),K=x("router-link"),fe=x("el-dropdown-item"),P=x("el-dropdown-menu"),te=x("el-dropdown");return t(c)?J("",!0):(f(),M("div",{key:0,ref_key:"containerDom",ref:he,class:"tags-view"},[ve(_("span",_a,[i(Z,{icon:t(va),onClick:z[0]||(z[0]=N=>E(200))},null,8,["icon"])],512),[[Ce,re.value]]),_("div",{ref_key:"scrollbarDom",ref:X,class:"scroll-container"},[_("div",{class:"tab select-none",ref_key:"tabDom",ref:O,style:ne(t(A))},[(f(!0),M(ye,null,xe(t(d),(N,ie)=>(f(),M("div",{ref_for:!0,ref:"dynamic"+ie,key:ie,class:ce(["scroll-item is-closable",t(V)(N),t(e).path===N.path&&t(p)==="card"?"card-active":""]),onContextmenu:We(ze=>Xt(N,ze),["prevent"]),onMouseenter:We(ze=>t(k)(ie),["prevent"]),onMouseleave:We(ze=>t(j)(ie),["prevent"]),onClick:ze=>Jt(N)},[i(K,{to:N.path,class:"dark:!text-text_color_primary dark:hover:!text-primary"},{default:v(()=>[oe(Y(t(F)(N.meta.title)),1)]),_:2},1032,["to"]),t(T)(N,ie)||ie===t(b)&&ie!==0?(f(),M("span",{key:0,class:"el-icon-close",onClick:We(ze=>G(N),["stop"])},[i(Z,{icon:t(ma)},null,8,["icon"])],8,ya)):J("",!0),t(p)!=="card"?(f(),M("div",{key:1,ref_for:!0,ref:"schedule"+ie,class:ce([t(ee)(N)])},null,2)):J("",!0)],42,ga))),128))],4)],512),ve(_("span",ba,[i(Z,{icon:t(En),onClick:z[1]||(z[1]=N=>E(-200))},null,8,["icon"])],512),[[Ce,re.value]]),i(wt,{name:"el-zoom-in-top"},{default:v(()=>[ve((f(),M("ul",{key:Math.random(),style:ne(t(R)),class:"contextmenu"},[(f(!0),M(ye,null,xe(t(m).slice(0,6),(N,ie)=>(f(),M("div",{key:ie,style:{display:"flex","align-items":"center"}},[N.show?(f(),M("li",{key:0,onClick:ze=>Ze(ie,N)},[i(Z,{icon:N.icon},null,8,["icon"]),oe(" "+Y(t(F)(N.text)),1)],8,wa)):J("",!0)]))),128))],4)),[[Ce,t(a)]])]),_:1}),i(te,{trigger:"click",placement:"bottom-end",onCommand:be},{dropdown:v(()=>[i(P,null,{default:v(()=>[(f(!0),M(ye,null,xe(t(m),(N,ie)=>(f(),H(fe,{key:ie,command:{key:ie,item:N},divided:N.divided,disabled:N.disabled},{default:v(()=>[i(Z,{icon:N.icon},null,8,["icon"]),oe(" "+Y(t(F)(N.text)),1)]),_:2},1032,["command","divided","disabled"]))),128))]),_:1})]),default:v(()=>[_("span",ka,[i(Z,{icon:t(pa),class:"dark:text-white"},null,8,["icon"])])]),_:1})],512))}}});const Ca=me(xa,[["__scopeId","data-v-9eba6a11"]]),$a={key:1},Sa=le({__name:"appMain",props:{fixedHeader:Boolean},setup(n){const e=n,{$storage:o,$config:a}=kt(),c=q(()=>a==null?void 0:a.KeepAlive),r=q(()=>p=>p.meta.transition),d=q(()=>o==null?void 0:o.configure.hideTabs),m=q(()=>(o==null?void 0:o.layout.layout)==="vertical"),g=q(()=>[d.value&&m?"padding-top: 48px;":"",!d.value&&m?"padding-top: 85px;":"",d.value&&!m.value?"padding-top: 48px":"",!d.value&&!m.value?"padding-top: 85px;":"",e.fixedHeader?"":"padding-top: 0;"]),$=le({render(){return Ke(wt,{name:r.value(this.route)&&this.route.meta.transition.enterTransition?"pure-classes-transition":r.value(this.route)&&this.route.meta.transition.name||"fade-transform",enterActiveClass:r.value(this.route)&&`animate__animated ${this.route.meta.transition.enterTransition}`,leaveActiveClass:r.value(this.route)&&`animate__animated ${this.route.meta.transition.leaveTransition}`,mode:"out-in",appear:!0},{default:()=>[this.$slots.default()]})},props:{route:{type:void 0,required:!0}}});return(p,h)=>{const w=x("el-backtop"),b=x("el-scrollbar"),A=x("router-view");return f(),M("section",{class:ce([e.fixedHeader?"app-main":"app-main-nofixed-header"]),style:ne(g.value)},[i(A,null,{default:v(({Component:T,route:V})=>[e.fixedHeader?(f(),H(b,{key:0},{default:v(()=>[i(w,{title:"回到顶部",target:".app-main .el-scrollbar__wrap"},{default:v(()=>[i(t(Rt))]),_:1}),i(t($),{route:V},{default:v(()=>[c.value?(f(),H(At,{key:0,include:t(ge)().cachePageList},[(f(),H(Le(T),{key:V.fullPath,class:"main-content"}))],1032,["include"])):(f(),H(Le(T),{key:V.fullPath,class:"main-content"}))]),_:2},1032,["route"])]),_:2},1024)):(f(),M("div",$a,[i(t($),{route:V},{default:v(()=>[c.value?(f(),H(At,{key:0,include:t(ge)().cachePageList},[(f(),H(Le(T),{key:V.fullPath,class:"main-content"}))],1032,["include"])):(f(),H(Le(T),{key:V.fullPath,class:"main-content"}))]),_:2},1032,["route"])]))]),_:1})],6)}}});const Et=me(Sa,[["__scopeId","data-v-ac212d1d"]]),Mt=n=>(st("data-v-2fe46f27"),n=n(),lt(),n),Ia=Mt(()=>_("div",{class:"right-panel-background"},null,-1)),Ma={class:"right-panel-items"},Ta={class:"project-configuration"},Va=Mt(()=>_("h4",{class:"dark:text-white"},"项目配置",-1)),za=Mt(()=>_("div",{class:"border-b-[1px] border-solid border-[#dcdfe6] dark:border-[#303030]"},null,-1)),Aa=le({__name:"index",setup(n){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 zn(e,c=>{c.clientX>e.value.offsetLeft||(o.value=!1)}),Ee.on("openPanel",()=>{o.value=!0}),(c,r)=>{const d=x("IconifyIconOffline");return f(),M("div",{class:ce([{show:o.value},"right-panel-container"])},[Ia,_("div",{ref_key:"target",ref:e,class:"right-panel bg-bg_color"},[_("div",Ma,[_("div",Ta,[Va,_("span",{title:"关闭配置",class:ce(a.value)},[i(d,{class:"dark:text-white",width:"20px",height:"20px",icon:t(qt),onClick:r[0]||(r[0]=m=>o.value=!o.value)},null,8,["icon"])],2)]),za,cn(c.$slots,"default",{},void 0,!0)])],512)],2)}}});const La=me(Aa,[["__scopeId","data-v-2fe46f27"]]),$e=n=>(st("data-v-5945f667"),n=n(),lt(),n),Ea={class:"pure-theme"},Ha=$e(()=>_("div",null,null,-1)),Oa=$e(()=>_("div",null,null,-1)),Za=[Ha,Oa],Da=$e(()=>_("div",null,null,-1)),ja=$e(()=>_("div",null,null,-1)),Pa=[Da,ja],Ra=$e(()=>_("div",null,null,-1)),Ba=$e(()=>_("div",null,null,-1)),Na=[Ra,Ba],qa={class:"theme-color"},Fa=["onClick"],Ua={class:"setting"},Wa=$e(()=>_("span",{class:"dark:text-white"},"灰色模式",-1)),Ga=$e(()=>_("span",{class:"dark:text-white"},"色弱模式",-1)),Ka=$e(()=>_("span",{class:"dark:text-white"},"隐藏标签页",-1)),Xa=$e(()=>_("span",{class:"dark:text-white"},"侧边栏Logo",-1)),Ja=$e(()=>_("span",{class:"dark:text-white"},"标签页持久化",-1)),Ya=$e(()=>_("span",{class:"dark:text-white"},"标签风格",-1)),Qa=le({__name:"index",setup(n){var Oe,l;const e=ot(),{isDark:o}=Pt(),{device:a,tooltipEffect:c}=Me(),{$storage:r}=kt(),d=D(),m=D(),g=D(),{dataTheme:$,layoutTheme:p,themeColors:h,dataThemeChange:w,setEpThemeColor:b,setLayoutThemeColor:A}=kn();if(t(p)){const s=t(p).layout,u=t(p).theme;xn({scopeName:`layout-theme-${u}`}),He(s)}const T=D(((Oe=r.configure)==null?void 0:Oe.showModel)??"smart"),V=D(((l=r.configure)==null?void 0:l.showLogo)??!0),L=yt({greyVal:r.configure.grey,weakVal:r.configure.weak,tabsVal:r.configure.hideTabs,showLogo:r.configure.showLogo,showModel:r.configure.showModel,multiTagsCache:r.configure.multiTagsCache}),ee=q(()=>s=>({background:s})),R=q(()=>s=>!(s==="light"&&o.value));function I(s,u){const E=r.configure;E[s]=u,r.configure=E}function y(s,u,E){const U=E||document.body;let{className:B}=U;B=B.replace(u,"").trim(),U.className=s?`${B} ${u} `:B}const k=s=>{y(L.greyVal,"html-grey",document.querySelector("html")),I("grey",s)},j=s=>{y(L.weakVal,"html-weakness",document.querySelector("html")),I("weak",s)},F=()=>{const s=L.tabsVal;I("hideTabs",s),Ee.emit("tagViewsChange",s)},S=()=>{const s=L.multiTagsCache;I("multiTagsCache",s),Te().multiTagsCacheChange(s)};function O(){un(),Ue().clear(),dn().clear();const{Grey:s,Weak:u,MultiTagsCache:E,EpThemeColor:U,Layout:B}=Xe();Pe().setLayout(B),b(U),Te().multiTagsCacheChange(E),y(s,"html-grey",document.querySelector("html")),y(u,"html-weakness",document.querySelector("html")),e.push("/login"),Te().handleTags("equal",[...jt]),hn()}function he(s){I("showModel",s),Ee.emit("tagViewsShowModel",s)}function X(){t(V)?I("showLogo",!0):I("showLogo",!1),Ee.emit("logoChange",t(V))}function re(s){s.forEach(u=>{y(!1,"is-select",t(u))})}const ae=q(()=>s=>s===p.value.theme&&p.value.theme!=="light"?"#fff":s===p.value.theme&&p.value.theme==="light"?"#1d2b45":"transparent");function He(s){var u,E,U;p.value.layout=s,window.document.body.setAttribute("layout",s),r.layout={layout:s,theme:p.value.theme,darkMode:(u=r.layout)==null?void 0:u.darkMode,sidebarStatus:(E=r.layout)==null?void 0:E.sidebarStatus,epThemeColor:(U=r.layout)==null?void 0:U.epThemeColor},Pe().setLayout(s)}return Re(r,({layout:s})=>{switch(s.layout){case"vertical":y(!0,"is-select",t(m)),Fe(re([g]),50),Fe(re([d]),50);break;case"horizontal":y(!0,"is-select",t(g)),Fe(re([m]),50),Fe(re([d]),50);break;case"mix":y(!0,"is-select",t(d)),Fe(re([m]),50),Fe(re([g]),50);break}}),bt(()=>{w(),Ne(()=>{var s,u;L.greyVal&&((s=document.querySelector("html"))==null||s.setAttribute("class","html-grey")),L.weakVal&&((u=document.querySelector("html"))==null||u.setAttribute("class","html-weakness")),L.tabsVal&&F()})}),(s,u)=>{const E=x("el-divider"),U=x("el-switch"),B=x("el-tooltip"),W=x("IconifyIconOffline"),G=x("el-icon"),se=x("el-radio"),be=x("el-radio-group"),Ze=x("el-button");return f(),H(La,null,{default:v(()=>[i(E,null,{default:v(()=>[oe("主题")]),_:1}),i(U,{modelValue:t($),"onUpdate:modelValue":u[0]||(u[0]=Q=>Zt($)?$.value=Q:null),"inline-prompt":"",class:"pure-datatheme","active-icon":t(Cn),"inactive-icon":t($n),onChange:t(w)},null,8,["modelValue","active-icon","inactive-icon","onChange"]),i(E,null,{default:v(()=>[oe("导航栏模式")]),_:1}),_("ul",Ea,[i(B,{effect:t(c),class:"item",content:"左侧模式",placement:"bottom","popper-class":"pure-tooltip"},{default:v(()=>[_("li",{class:ce(t(p).layout==="vertical"?"is-select":""),ref_key:"verticalRef",ref:m,onClick:u[1]||(u[1]=Q=>He("vertical"))},Za,2)]),_:1},8,["effect"]),t(a)!=="mobile"?(f(),H(B,{key:0,effect:t(c),class:"item",content:"顶部模式",placement:"bottom","popper-class":"pure-tooltip"},{default:v(()=>[_("li",{class:ce(t(p).layout==="horizontal"?"is-select":""),ref_key:"horizontalRef",ref:g,onClick:u[2]||(u[2]=Q=>He("horizontal"))},Pa,2)]),_:1},8,["effect"])):J("",!0),t(a)!=="mobile"?(f(),H(B,{key:1,effect:t(c),class:"item",content:"混合模式",placement:"bottom","popper-class":"pure-tooltip"},{default:v(()=>[_("li",{class:ce(t(p).layout==="mix"?"is-select":""),ref_key:"mixRef",ref:d,onClick:u[3]||(u[3]=Q=>He("mix"))},Na,2)]),_:1},8,["effect"])):J("",!0)]),i(E,null,{default:v(()=>[oe("主题色")]),_:1}),_("ul",qa,[(f(!0),M(ye,null,xe(t(h),(Q,Ve)=>ve((f(),M("li",{key:Ve,style:ne(ee.value(Q.color)),onClick:De=>t(A)(Q.themeColor)},[i(G,{style:{margin:"0.1em 0.1em 0 0"},size:17,color:ae.value(Q.themeColor)},{default:v(()=>[i(W,{icon:t(qe)},null,8,["icon"])]),_:2},1032,["color"])],12,Fa)),[[Ce,R.value(Q.themeColor)]])),128))]),i(E,null,{default:v(()=>[oe("界面显示")]),_:1}),_("ul",Ua,[_("li",null,[Wa,i(U,{modelValue:L.greyVal,"onUpdate:modelValue":u[4]||(u[4]=Q=>L.greyVal=Q),"inline-prompt":"","inactive-color":"#a6a6a6","active-text":"开","inactive-text":"关",onChange:k},null,8,["modelValue"])]),_("li",null,[Ga,i(U,{modelValue:L.weakVal,"onUpdate:modelValue":u[5]||(u[5]=Q=>L.weakVal=Q),"inline-prompt":"","inactive-color":"#a6a6a6","active-text":"开","inactive-text":"关",onChange:j},null,8,["modelValue"])]),_("li",null,[Ka,i(U,{modelValue:L.tabsVal,"onUpdate:modelValue":u[6]||(u[6]=Q=>L.tabsVal=Q),"inline-prompt":"","inactive-color":"#a6a6a6","active-text":"开","inactive-text":"关",onChange:F},null,8,["modelValue"])]),_("li",null,[Xa,i(U,{modelValue:V.value,"onUpdate:modelValue":u[7]||(u[7]=Q=>V.value=Q),"inline-prompt":"","active-value":!0,"inactive-value":!1,"inactive-color":"#a6a6a6","active-text":"开","inactive-text":"关",onChange:X},null,8,["modelValue"])]),_("li",null,[Ja,i(U,{modelValue:L.multiTagsCache,"onUpdate:modelValue":u[8]||(u[8]=Q=>L.multiTagsCache=Q),"inline-prompt":"","inactive-color":"#a6a6a6","active-text":"开","inactive-text":"关",onChange:S},null,8,["modelValue"])]),_("li",null,[Ya,i(be,{modelValue:T.value,"onUpdate:modelValue":u[9]||(u[9]=Q=>T.value=Q),size:"small",onChange:he},{default:v(()=>[i(se,{label:"card"},{default:v(()=>[oe("卡片")]),_:1}),i(se,{label:"smart"},{default:v(()=>[oe("灵动")]),_:1})]),_:1},8,["modelValue"])])]),i(E),i(Ze,{type:"danger",style:{width:"90%",margin:"24px 15px"},onClick:O},{default:v(()=>[i(W,{icon:t(it),width:"15",height:"15",style:{"margin-right":"4px"}},null,8,["icon"]),oe(" 清空缓存并返回登录页 ")]),_:1})]),_:1})}}});const es=me(Qa,[["__scopeId","data-v-5945f667"]]),Tt="/vue-pure-admin/logo.svg",Ft=n=>(st("data-v-4cc9900f"),n=n(),lt(),n),ts=Ft(()=>_("img",{src:Tt,alt:"logo"},null,-1)),ns={class:"sidebar-title"},os=Ft(()=>_("img",{src:Tt,alt:"logo"},null,-1)),as={class:"sidebar-title"},ss=le({__name:"logo",props:{collapse:Boolean},setup(n){const e=n,{title:o}=Me(),a=pt().path;return(c,r)=>{const d=x("router-link");return f(),M("div",{class:ce(["sidebar-logo-container",{collapses:e.collapse}])},[i(wt,{name:"sidebarLogoFade"},{default:v(()=>[e.collapse?(f(),H(d,{key:"props.collapse",title:t(o),class:"sidebar-logo-link",to:t(a)},{default:v(()=>[ts,_("span",ns,Y(t(o)),1)]),_:1},8,["title","to"])):(f(),H(d,{key:"expand",title:t(o),class:"sidebar-logo-link",to:t(a)},{default:v(()=>[os,_("span",as,Y(t(o)),1)]),_:1},8,["title","to"]))]),_:1})],2)}}});const ls=me(ss,[["__scopeId","data-v-4cc9900f"]]);var et={exports:{}},Ut={},rs=function(e){return e&&typeof e=="object"&&typeof e.copy=="function"&&typeof e.fill=="function"&&typeof e.readUInt8=="function"},mt={exports:{}};typeof Object.create=="function"?mt.exports=function(e,o){e.super_=o,e.prototype=Object.create(o.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}})}:mt.exports=function(e,o){e.super_=o;var a=function(){};a.prototype=o.prototype,e.prototype=new a,e.prototype.constructor=e};var is=mt.exports;(function(n){var e=/%[sdj%]/g;n.format=function(l){if(!R(l)){for(var s=[],u=0;u<arguments.length;u++)s.push(c(arguments[u]));return s.join(" ")}for(var u=1,E=arguments,U=E.length,B=String(l).replace(e,function(G){if(G==="%%")return"%";if(u>=U)return G;switch(G){case"%s":return String(E[u++]);case"%d":return Number(E[u++]);case"%j":try{return JSON.stringify(E[u++])}catch{return"[Circular]"}default:return G}}),W=E[u];u<U;W=E[++u])V(W)||!j(W)?B+=" "+W:B+=" "+c(W);return B},n.deprecate=function(l,s){if(y(fn.process))return function(){return n.deprecate(l,s).apply(this,arguments)};if(process.noDeprecation===!0)return l;var u=!1;function E(){if(!u){if(process.throwDeprecation)throw new Error(s);process.traceDeprecation?console.trace(s):console.error(s),u=!0}return l.apply(this,arguments)}return E};var o={},a;n.debuglog=function(l){if(y(a)&&(a={}.NODE_DEBUG||""),l=l.toUpperCase(),!o[l])if(new RegExp("\\b"+l+"\\b","i").test(a)){var s=process.pid;o[l]=function(){var u=n.format.apply(n,arguments);console.error("%s %d: %s",l,s,u)}}else o[l]=function(){};return o[l]};function c(l,s){var u={seen:[],stylize:d};return arguments.length>=3&&(u.depth=arguments[2]),arguments.length>=4&&(u.colors=arguments[3]),T(s)?u.showHidden=s:s&&n._extend(u,s),y(u.showHidden)&&(u.showHidden=!1),y(u.depth)&&(u.depth=2),y(u.colors)&&(u.colors=!1),y(u.customInspect)&&(u.customInspect=!0),u.colors&&(u.stylize=r),g(u,l,u.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 r(l,s){var u=c.styles[s];return u?"\x1B["+c.colors[u][0]+"m"+l+"\x1B["+c.colors[u][1]+"m":l}function d(l,s){return l}function m(l){var s={};return l.forEach(function(u,E){s[u]=!0}),s}function g(l,s,u){if(l.customInspect&&s&&O(s.inspect)&&s.inspect!==n.inspect&&!(s.constructor&&s.constructor.prototype===s)){var E=s.inspect(u,l);return R(E)||(E=g(l,E,u)),E}var U=$(l,s);if(U)return U;var B=Object.keys(s),W=m(B);if(l.showHidden&&(B=Object.getOwnPropertyNames(s)),S(s)&&(B.indexOf("message")>=0||B.indexOf("description")>=0))return p(s);if(B.length===0){if(O(s)){var G=s.name?": "+s.name:"";return l.stylize("[Function"+G+"]","special")}if(k(s))return l.stylize(RegExp.prototype.toString.call(s),"regexp");if(F(s))return l.stylize(Date.prototype.toString.call(s),"date");if(S(s))return p(s)}var se="",be=!1,Ze=["{","}"];if(A(s)&&(be=!0,Ze=["[","]"]),O(s)){var Q=s.name?": "+s.name:"";se=" [Function"+Q+"]"}if(k(s)&&(se=" "+RegExp.prototype.toString.call(s)),F(s)&&(se=" "+Date.prototype.toUTCString.call(s)),S(s)&&(se=" "+p(s)),B.length===0&&(!be||s.length==0))return Ze[0]+se+Ze[1];if(u<0)return k(s)?l.stylize(RegExp.prototype.toString.call(s),"regexp"):l.stylize("[Object]","special");l.seen.push(s);var Ve;return be?Ve=h(l,s,u,W,B):Ve=B.map(function(De){return w(l,s,u,W,De,be)}),l.seen.pop(),b(Ve,se,Ze)}function $(l,s){if(y(s))return l.stylize("undefined","undefined");if(R(s)){var u="'"+JSON.stringify(s).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return l.stylize(u,"string")}if(ee(s))return l.stylize(""+s,"number");if(T(s))return l.stylize(""+s,"boolean");if(V(s))return l.stylize("null","null")}function p(l){return"["+Error.prototype.toString.call(l)+"]"}function h(l,s,u,E,U){for(var B=[],W=0,G=s.length;W<G;++W)Oe(s,String(W))?B.push(w(l,s,u,E,String(W),!0)):B.push("");return U.forEach(function(se){se.match(/^\d+$/)||B.push(w(l,s,u,E,se,!0))}),B}function w(l,s,u,E,U,B){var W,G,se;if(se=Object.getOwnPropertyDescriptor(s,U)||{value:s[U]},se.get?se.set?G=l.stylize("[Getter/Setter]","special"):G=l.stylize("[Getter]","special"):se.set&&(G=l.stylize("[Setter]","special")),Oe(E,U)||(W="["+U+"]"),G||(l.seen.indexOf(se.value)<0?(V(u)?G=g(l,se.value,null):G=g(l,se.value,u-1),G.indexOf(`
|
||
`)>-1&&(B?G=G.split(`
|
||
`).map(function(be){return" "+be}).join(`
|
||
`).substr(2):G=`
|
||
`+G.split(`
|
||
`).map(function(be){return" "+be}).join(`
|
||
`))):G=l.stylize("[Circular]","special")),y(W)){if(B&&U.match(/^\d+$/))return G;W=JSON.stringify(""+U),W.match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(W=W.substr(1,W.length-2),W=l.stylize(W,"name")):(W=W.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),W=l.stylize(W,"string"))}return W+": "+G}function b(l,s,u){var E=l.reduce(function(U,B){return B.indexOf(`
|
||
`)>=0,U+B.replace(/\u001b\[\d\d?m/g,"").length+1},0);return E>60?u[0]+(s===""?"":s+`
|
||
`)+" "+l.join(`,
|
||
`)+" "+u[1]:u[0]+s+" "+l.join(", ")+" "+u[1]}function A(l){return Array.isArray(l)}n.isArray=A;function T(l){return typeof l=="boolean"}n.isBoolean=T;function V(l){return l===null}n.isNull=V;function L(l){return l==null}n.isNullOrUndefined=L;function ee(l){return typeof l=="number"}n.isNumber=ee;function R(l){return typeof l=="string"}n.isString=R;function I(l){return typeof l=="symbol"}n.isSymbol=I;function y(l){return l===void 0}n.isUndefined=y;function k(l){return j(l)&&X(l)==="[object RegExp]"}n.isRegExp=k;function j(l){return typeof l=="object"&&l!==null}n.isObject=j;function F(l){return j(l)&&X(l)==="[object Date]"}n.isDate=F;function S(l){return j(l)&&(X(l)==="[object Error]"||l instanceof Error)}n.isError=S;function O(l){return typeof l=="function"}n.isFunction=O;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=rs;function X(l){return Object.prototype.toString.call(l)}function re(l){return l<10?"0"+l.toString(10):l.toString(10)}var ae=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function He(){var l=new Date,s=[re(l.getHours()),re(l.getMinutes()),re(l.getSeconds())].join(":");return[l.getDate(),ae[l.getMonth()],s].join(" ")}n.log=function(){console.log("%s - %s",He(),n.format.apply(n,arguments))},n.inherits=is,n._extend=function(l,s){if(!s||!j(s))return l;for(var u=Object.keys(s),E=u.length;E--;)l[u[E]]=s[u[E]];return l};function Oe(l,s){return Object.prototype.hasOwnProperty.call(l,s)}})(Ut);var cs=process.platform==="win32",Ie=Ut;function ct(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 Ye(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 Wt=/^([a-zA-Z]:|[\\\/]{2}[^\\\/]+[\\\/]+[^\\\/]+)?([\\\/])?([\s\S]*?)$/,us=/^([\s\S]*?)((?:\.{1,2}|[^\\\/]+?|)(\.[^.\/\\]*|))(?:[\\\/]*)$/,ue={};function ut(n){var e=Wt.exec(n),o=(e[1]||"")+(e[2]||""),a=e[3]||"",c=us.exec(a),r=c[1],d=c[2],m=c[3];return[o,r,d,m]}function Vt(n){var e=Wt.exec(n),o=e[1]||"",a=!!o&&o[1]!==":";return{device:o,isUnc:a,isAbsolute:a||!!e[2],tail:e[3]}}function Gt(n){return"\\\\"+n.replace(/^[\\\/]+/,"").replace(/[\\\/]+/g,"\\")}ue.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(),Ie.isString(c)){if(!c)continue}else throw new TypeError("Arguments to path.resolve must be strings");var r=Vt(c),d=r.device,m=r.isUnc,g=r.isAbsolute,$=r.tail;if(!(d&&n&&d.toLowerCase()!==n.toLowerCase())&&(n||(n=d),o||(e=$+"\\"+e,o=g),n&&o))break}return m&&(n=Gt(n)),e=ct(e.split(/[\\\/]+/),!o).join("\\"),n+(o?"\\":"")+e||"."};ue.normalize=function(n){var e=Vt(n),o=e.device,a=e.isUnc,c=e.isAbsolute,r=e.tail,d=/[\\\/]$/.test(r);return r=ct(r.split(/[\\\/]+/),!c).join("\\"),!r&&!c&&(r="."),r&&d&&(r+="\\"),a&&(o=Gt(o)),o+(c?"\\":"")+r};ue.isAbsolute=function(n){return Vt(n).isAbsolute};ue.join=function(){for(var n=[],e=0;e<arguments.length;e++){var o=arguments[e];if(!Ie.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,}/,"\\")),ue.normalize(a)};ue.relative=function(n,e){n=ue.resolve(n),e=ue.resolve(e);for(var o=n.toLowerCase(),a=e.toLowerCase(),c=Ye(e.split("\\")),r=Ye(o.split("\\")),d=Ye(a.split("\\")),m=Math.min(r.length,d.length),g=m,$=0;$<m;$++)if(r[$]!==d[$]){g=$;break}if(g==0)return e;for(var p=[],$=g;$<r.length;$++)p.push("..");return p=p.concat(c.slice(g)),p.join("\\")};ue._makeLong=function(n){if(!Ie.isString(n))return n;if(!n)return"";var e=ue.resolve(n);return/^[a-zA-Z]\:\\/.test(e)?"\\\\?\\"+e:/^\\\\[^?.]/.test(e)?"\\\\?\\UNC\\"+e.substring(2):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(!Ie.isObject(n))throw new TypeError("Parameter 'pathObject' must be an object, not "+typeof n);var e=n.root||"";if(!Ie.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]===ue.sep?o+a:o+ue.sep+a:a};ue.parse=function(n){if(!Ie.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{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=";";var ds=/^(\/?|)([\s\S]*?)((?:\.{1,2}|[^\/]+?|)(\.[^.\/]*|))(?:[\/]*)$/,de={};function dt(n){return ds.exec(n).slice(1)}de.resolve=function(){for(var n="",e=!1,o=arguments.length-1;o>=-1&&!e;o--){var a=o>=0?arguments[o]:process.cwd();if(Ie.isString(a)){if(!a)continue}else throw new TypeError("Arguments to path.resolve must be strings");n=a+"/"+n,e=a[0]==="/"}return n=ct(n.split("/"),!e).join("/"),(e?"/":"")+n||"."};de.normalize=function(n){var e=de.isAbsolute(n),o=n&&n[n.length-1]==="/";return n=ct(n.split("/"),!e).join("/"),!n&&!e&&(n="."),n&&o&&(n+="/"),(e?"/":"")+n};de.isAbsolute=function(n){return n.charAt(0)==="/"};de.join=function(){for(var n="",e=0;e<arguments.length;e++){var o=arguments[e];if(!Ie.isString(o))throw new TypeError("Arguments to path.join must be strings");o&&(n?n+="/"+o:n+=o)}return de.normalize(n)};de.relative=function(n,e){n=de.resolve(n).substr(1),e=de.resolve(e).substr(1);for(var o=Ye(n.split("/")),a=Ye(e.split("/")),c=Math.min(o.length,a.length),r=c,d=0;d<c;d++)if(o[d]!==a[d]){r=d;break}for(var m=[],d=r;d<o.length;d++)m.push("..");return m=m.concat(a.slice(r)),m.join("/")};de._makeLong=function(n){return n};de.dirname=function(n){var e=dt(n),o=e[0],a=e[1];return!o&&!a?".":(a&&(a=a.substr(0,a.length-1)),o+a)};de.basename=function(n,e){var o=dt(n)[2];return e&&o.substr(-1*e.length)===e&&(o=o.substr(0,o.length-e.length)),o};de.extname=function(n){return dt(n)[3]};de.format=function(n){if(!Ie.isObject(n))throw new TypeError("Parameter 'pathObject' must be an object, not "+typeof n);var e=n.root||"";if(!Ie.isString(e))throw new TypeError("'pathObject.root' must be a string or undefined, not "+typeof n.root);var o=n.dir?n.dir+de.sep:"",a=n.base||"";return o+a};de.parse=function(n){if(!Ie.isString(n))throw new TypeError("Parameter 'pathString' must be a string, not "+typeof n);var e=dt(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)}};de.sep="/";de.delimiter=":";cs?et.exports=ue:et.exports=de;et.exports.posix=de;et.exports.win32=ue;var hs=et.exports;const fs=pn(hs),ps={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"/>'},vs={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"/>'},ms={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"/>'},_s={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"/>'},gs={key:0},ys={key:1},Kt=le({__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:r}=Me(),d=q(()=>({width:"100%",textAlign:"center"})),m=q(()=>({display:"flex",alignItems:"center"})),g=q(()=>({overflow:"hidden",textOverflow:"ellipsis",outline:"none"})),$=q(()=>({display:"flex",justifyContent:"center",alignItems:"center",margin:o.value==="horizontal"?"0 5px 0 0":a.value?"0 auto":"0 5px 0 0"})),p=q(()=>a.value?{width:""}:{width:"210px",display:"inline-block",overflow:"hidden",textOverflow:"ellipsis"}),h=q(()=>I=>{var y;return a.value?{width:"100%",textAlign:(I==null?void 0:I.parentId)===null||o.value==="mix"&&((y=I==null?void 0:I.pathList)==null?void 0:y.length)===2?"center":""}:{width:"100%",display:"flex",alignItems:"center",justifyContent:"space-between",overflow:"hidden"}}),w=q(()=>{var I;return(I=Xe())!=null&&I.MenuArrowIconNoTransition?{"expand-close-icon":Ae(vs),"expand-open-icon":Ae(ps),"collapse-close-icon":Ae(_s),"collapse-open-icon":Ae(ms)}:""}),b=D(null),A=new WeakMap,T=D(null);function V(I){A.get(I)||Ne(()=>{var y,k;((y=T.value)==null?void 0:y.scrollWidth)>((k=T.value)==null?void 0:k.clientWidth)?Object.assign(I,{showTooltip:!0}):Object.assign(I,{showTooltip:!1}),A.set(I,!0)})}function L(I,y){var j;const k=((I==null?void 0:I.length)>1?I.toString().slice(0,1):I)+"...";return y&&!(a.value&&(y==null?void 0:y.parentId)===null)?o.value==="mix"&&((j=y==null?void 0:y.pathList)==null?void 0:j.length)===2&&a.value?k:I:k}function ee(I=[],y){var j,F;const k=I.filter(S=>(b.value=S,!0));return(F=(j=k[0])==null?void 0:j.meta)!=null&&F.showParent?!1:k.length===1?!0:k.length===0?(b.value={...y,path:"",noShowingChildren:!0},!0):!1}function R(I){const y=/^http(s?):\/\//;return y.test(I)||y.test(e.basePath)?I||e.basePath:fs.posix.resolve(e.basePath,I)}return(I,y)=>{const k=x("el-tooltip"),j=x("el-menu-item"),F=x("sidebar-item",!0),S=x("el-sub-menu");return ee(e.item.children,e.item)&&(!b.value.children||b.value.noShowingChildren)?(f(),H(j,{key:0,index:R(b.value.path),class:ce({"submenu-title-noDropdown":!n.isNest}),style:ne(m.value)},{title:v(()=>[_("div",{style:ne(t(r))},[t(o)==="horizontal"?(f(),M("span",gs,Y(t(we)(b.value.meta.title)),1)):(f(),H(k,{key:1,placement:"top",effect:t(c),offset:-10,disabled:!b.value.showTooltip},{content:v(()=>[oe(Y(t(we)(b.value.meta.title)),1)]),default:v(()=>[_("span",{ref_key:"menuTextRef",ref:T,style:ne(g.value),onMouseover:y[0]||(y[0]=O=>V(b.value))},Y(t(we)(b.value.meta.title)),37)]),_:1},8,["effect","disabled"])),i(vt,{extraIcon:b.value.meta.extraIcon},null,8,["extraIcon"])],4)]),default:v(()=>{var O,he,X,re,ae;return[ke(e.item.meta.icon)?(f(),M("div",{key:0,class:"sub-menu-icon",style:ne($.value)},[(f(),H(Le(t(Ae)(ke(b.value.meta.icon)||e.item.meta&&ke(e.item.meta.icon)))))],4)):J("",!0),!((O=e.item)!=null&&O.meta.icon)&&t(a)&&t(o)==="vertical"&&((X=(he=e.item)==null?void 0:he.pathList)==null?void 0:X.length)===1?(f(),M("span",{key:1,style:ne(d.value)},Y(L(t(we)(b.value.meta.title))),5)):J("",!0),!b.value.meta.icon&&t(a)&&t(o)==="mix"&&((ae=(re=e.item)==null?void 0:re.pathList)==null?void 0:ae.length)===2?(f(),M("span",{key:2,style:ne(d.value)},Y(L(t(we)(b.value.meta.title))),5)):J("",!0)]}),_:1},8,["index","class","style"])):(f(),H(S,vn({key:1,ref:"subMenu"},w.value,{index:R(e.item.path)}),{title:v(()=>[ke(e.item.meta.icon)?(f(),M("div",{key:0,style:ne($.value),class:"sub-menu-icon"},[(f(),H(Le(t(Ae)(e.item.meta&&ke(e.item.meta.icon)))))],4)):J("",!0),t(o)==="horizontal"?(f(),M("span",ys,Y(t(we)(e.item.meta.title)),1)):J("",!0),t(a)&&ke(e.item.meta.icon)&&e.item.parentId===null?J("",!0):(f(),M("div",{key:2,style:ne(h.value(e.item))},[t(o)!=="horizontal"?(f(),H(k,{key:0,placement:"top",effect:t(c),offset:-10,disabled:!e.item.showTooltip},{content:v(()=>[oe(Y(t(we)(e.item.meta.title)),1)]),default:v(()=>[_("span",{ref_key:"menuTextRef",ref:T,style:ne(p.value),onMouseover:y[1]||(y[1]=O=>V(e.item))},Y(L(t(we)(e.item.meta.title),e.item)),37)]),_:1},8,["effect","disabled"])):J("",!0),t(a)?J("",!0):(f(),H(vt,{key:1,extraIcon:e.item.meta.extraIcon},null,8,["extraIcon"]))],4))]),default:v(()=>[(f(!0),M(ye,null,xe(e.item.children,O=>(f(),H(F,{key:O.path,"is-nest":!0,item:O,"base-path":R(O.path),class:"nest-menu"},null,8,["item","base-path"]))),128))]),_:1},16,["index"]))}}}),bs={class:"container"},ws=le({__name:"leftCollapse",props:{isActive:{type:Boolean,default:!1}},emits:["toggleClick"],setup(n,{emit:e}){const o=n,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"]),d=()=>{e("toggleClick")};return(m,g)=>{const $=x("IconifyIconOffline"),p=x("el-tooltip");return f(),M("div",bs,[i(p,{placement:"right",visible:a.value,effect:t(c),content:o.isActive?"点击折叠":"点击展开"},{default:v(()=>[i($,{icon:t(Nt),class:ce(r.value),style:ne({transform:o.isActive?"none":"rotateY(180deg)"}),onClick:d,onMouseenter:g[0]||(g[0]=h=>a.value=!0),onMouseleave:g[1]||(g[1]=h=>a.value=!1)},null,8,["icon","class","style"])]),_:1},8,["visible","effect","content"])])}}});const ks=me(ws,[["__scopeId","data-v-ed074d28"]]),xs=le({__name:"vertical",setup(n){var b;const e=gt(),o=D(((b=Ue().getItem(`${Ge()}configure`))==null?void 0:b.showLogo)??!0),{routers:a,device:c,pureApp:r,isCollapse:d,menuSelect:m,toggleSideBar:g}=Me(),$=D([]),p=q(()=>r.layout==="mix"&&c.value!=="mobile"?$.value:ge().wholeMenus),h=q(()=>r.layout==="mix"?!1:p.value.length===0);function w(A){$.value=[];const T=_t(A,ge().wholeMenus),V=nt(T[0]||A,ge().wholeMenus);V!=null&&V.children&&($.value=V==null?void 0:V.children)}return w(e.path),bt(()=>{Ee.on("logoChange",A=>{o.value=A})}),Re(()=>[e.path,ge().wholeMenus],()=>{e.path.includes("/redirect")||(w(e.path),m(e.path,a))}),(A,T)=>{const V=x("el-menu"),L=x("el-scrollbar"),ee=at("loading");return ve((f(),M("div",{class:ce(["sidebar-container",o.value?"has-logo":""])},[o.value?(f(),H(ls,{key:0,collapse:t(d)},null,8,["collapse"])):J("",!0),i(L,{"wrap-class":"scrollbar-wrapper",class:ce([t(c)==="mobile"?"mobile":"pc"])},{default:v(()=>[i(V,{router:"","unique-opened":"",mode:"vertical",class:"outer-most select-none",collapse:t(d),"default-active":t(e).path,"collapse-transition":!1,onSelect:T[0]||(T[0]=R=>t(m)(R,t(a)))},{default:v(()=>[(f(!0),M(ye,null,xe(p.value,R=>(f(),H(Kt,{key:R.path,item:R,"base-path":R.path,class:"outer-most select-none"},null,8,["item","base-path"]))),128))]),_:1},8,["collapse","default-active"])]),_:1},8,["class"]),t(c)!=="mobile"?(f(),H(ks,{key:1,"is-active":t(r).sidebar.opened,onToggleClick:t(g)},null,8,["is-active","onToggleClick"])):J("",!0)],2)),[[ee,h.value]])}}});const Cs=me(xs,[["__scopeId","data-v-f5a1735a"]]),$s=n=>(st("data-v-01984c7c"),n=n(),lt(),n),Ss={class:"horizontal-header"},Is=$s(()=>_("img",{src:Tt,alt:"logo"},null,-1)),Ms={class:"horizontal-header-right"},Ts={class:"check-zh"},Vs={class:"check-en"},zs={class:"el-dropdown-link navbar-bg-hover"},As=["src"],Ls={key:0,class:"dark:text-white"},Es=["title"],Hs=le({__name:"horizontal",setup(n){const e=D(),{t:o,route:a,locale:c,translationCh:r,translationEn:d}=xt(e),{title:m,routers:g,logout:$,backTopMenu:p,onPanel:h,menuSelect:w,username:b,userAvatar:A,avatarsStyle:T,getDropdownItemStyle:V,getDropdownItemClass:L}=Me();return Ne(()=>{var ee;(ee=e.value)==null||ee.handleResize()}),Re(()=>a.path,()=>{w(a.path,g)}),(ee,R)=>{const I=x("el-menu"),y=x("IconifyIconOffline"),k=x("el-dropdown-item"),j=x("el-dropdown-menu"),F=x("el-dropdown"),S=at("loading");return ve((f(),M("div",Ss,[_("div",{class:"horizontal-header-left",onClick:R[0]||(R[0]=(...O)=>t(p)&&t(p)(...O))},[Is,_("span",null,Y(t(m)),1)]),i(I,{router:"",ref_key:"menuRef",ref:e,mode:"horizontal",class:"horizontal-header-menu","default-active":t(a).path,onSelect:R[1]||(R[1]=O=>t(w)(O,t(g)))},{default:v(()=>[(f(!0),M(ye,null,xe(t(ge)().wholeMenus,O=>(f(),H(Kt,{key:O.path,item:O,"base-path":O.path},null,8,["item","base-path"]))),128))]),_:1},8,["default-active"]),_("div",Ms,[i(St),i(It,{id:"header-notice"}),i(F,{id:"header-translation",trigger:"click"},{dropdown:v(()=>[i(j,{class:"translation"},{default:v(()=>[i(k,{style:ne(t(V)(t(c),"zh")),class:ce(["dark:!text-white",t(L)(t(c),"zh")]),onClick:t(r)},{default:v(()=>[ve(_("span",Ts,[i(y,{icon:t(qe)},null,8,["icon"])],512),[[Ce,t(c)==="zh"]]),oe(" 简体中文 ")]),_:1},8,["style","class","onClick"]),i(k,{style:ne(t(V)(t(c),"en")),class:ce(["dark:!text-white",t(L)(t(c),"en")]),onClick:t(d)},{default:v(()=>[ve(_("span",Vs,[i(y,{icon:t(qe)},null,8,["icon"])],512),[[Ce,t(c)==="en"]]),oe(" English ")]),_:1},8,["style","class","onClick"])]),_:1})]),default:v(()=>[i(t(Ct),{class:"navbar-bg-hover w-[40px] h-[48px] p-[11px] cursor-pointer outline-none"})]),_:1}),i(F,{trigger:"click"},{dropdown:v(()=>[i(j,{class:"logout"},{default:v(()=>[i(k,{onClick:t($)},{default:v(()=>[i(y,{icon:t(it),style:{margin:"5px"}},null,8,["icon"]),oe(" "+Y(t(o)("buttons.hsLoginOut")),1)]),_:1},8,["onClick"])]),_:1})]),default:v(()=>[_("span",zs,[_("img",{src:t(A),style:ne(t(T))},null,12,As),t(b)?(f(),M("p",Ls,Y(t(b)),1)):J("",!0)])]),_:1}),_("span",{class:"set-icon navbar-bg-hover",title:t(o)("buttons.hssystemSet"),onClick:R[2]||(R[2]=(...O)=>t(h)&&t(h)(...O))},[i(y,{icon:t(rt)},null,8,["icon"])],8,Es)])])),[[S,t(ge)().wholeMenus.length===0]])}}});const Os=me(Hs,[["__scopeId","data-v-01984c7c"]]),Zs={key:0},Ds=le({__name:"index",setup(n){const{isDark:e}=Pt(),{layout:o}=Sn(),a=Dt(),c=$t(),{$storage:r}=kt(),d=yt({sidebar:q(()=>Pe().sidebar),device:q(()=>Pe().device),fixedHeader:q(()=>c.fixedHeader),classes:q(()=>({hideSidebar:!d.sidebar.opened,openSidebar:d.sidebar.opened,withoutAnimation:d.sidebar.withoutAnimation,mobile:d.device==="mobile"})),hideTabs:q(()=>r==null?void 0:r.configure.hideTabs)});function m(h){var w,b,A,T;window.document.body.setAttribute("layout",h),r.layout={layout:`${h}`,theme:(w=r.layout)==null?void 0:w.theme,darkMode:(b=r.layout)==null?void 0:b.darkMode,sidebarStatus:(A=r.layout)==null?void 0:A.sidebarStatus,epThemeColor:(T=r.layout)==null?void 0:T.epThemeColor}}function g(h,w){Pe().toggleDevice(h),Pe().toggleSideBar(w,"resize")}let $=!0;Ee.on("resize",({detail:h})=>{if(a)return;const{width:w}=h;w<=760?m("vertical"):m(Pe().layout),w>0&&w<=760?(g("mobile",!1),$=!0):w>760&&w<=990?$&&(g("desktop",!1),$=!1):w>990&&(d.sidebar.isClickCollapse||(g("desktop",!0),$=!0))}),Qe(()=>{a&&g("mobile",!1)});const p=le({render(){return Ke("div",{class:{"fixed-header":d.fixedHeader},style:[d.hideTabs&&o.value.includes("horizontal")?e.value?"box-shadow: 0 1px 4px #0d0d0d":"box-shadow: 0 1px 4px rgba(0, 21, 41, 0.08)":""]},{default:()=>[!c.hiddenSideBar&&(o.value.includes("vertical")||o.value.includes("mix"))?Ke(ia):null,!c.hiddenSideBar&&o.value.includes("horizontal")?Ke(Os):null,Ke(Ca)]})}});return(h,w)=>{const b=x("el-backtop"),A=x("el-scrollbar"),T=at("resize");return ve((f(),M("div",{class:ce(["app-wrapper",d.classes])},[ve(_("div",{class:"app-mask",onClick:w[0]||(w[0]=V=>t(Pe)().toggleSideBar())},null,512),[[Ce,d.device==="mobile"&&d.sidebar.opened&&t(o).includes("vertical")]]),ve(i(Cs,null,null,512),[[Ce,!t(c).hiddenSideBar&&(t(o).includes("vertical")||t(o).includes("mix"))]]),_("div",{class:ce(["main-container",t(c).hiddenSideBar?"main-hidden":""])},[d.fixedHeader?(f(),M("div",Zs,[i(t(p)),i(Et,{"fixed-header":d.fixedHeader},null,8,["fixed-header"])])):(f(),H(A,{key:1},{default:v(()=>[i(b,{title:"回到顶部",target:".main-container .el-scrollbar__wrap"},{default:v(()=>[i(t(Rt))]),_:1}),i(t(p)),i(Et,{"fixed-header":d.fixedHeader},null,8,["fixed-header"])]),_:1}))],2),i(es)],2)),[[T]])}}});const nl=me(Ds,[["__scopeId","data-v-f13df477"]]);export{nl as default};
|