var $n=Object.defineProperty,Sn=Object.defineProperties;var Mn=Object.getOwnPropertyDescriptors;var Wt=Object.getOwnPropertySymbols;var Tn=Object.prototype.hasOwnProperty,Vn=Object.prototype.propertyIsEnumerable;var Gt=(t,e,n)=>e in t?$n(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,wt=(t,e)=>{for(var n in e||(e={}))Tn.call(e,n)&&Gt(t,n,e[n]);if(Wt)for(var n of Wt(e))Vn.call(e,n)&&Gt(t,n,e[n]);return t},kt=(t,e)=>Sn(t,Mn(e));var tt=(t,e,n)=>new Promise((a,c)=>{var s=d=>{try{m(n.next(d))}catch(v){c(v)}},l=d=>{try{m(n.throw(d))}catch(v){c(v)}},m=d=>d.done?a(d.value):Promise.resolve(d.value).then(s,l);m((n=n.apply(t,e)).next())});import{dk as oe,au as zn,ax as Ge,ay as Hn,e as u,k as M,f as b,d as ne,r as O,K as j,aN as ft,o as Ue,F as ve,l as ke,N as re,c as R,R as Le,u as o,B as ae,aa as Pe,i as f,$ as Tt,_ as _e,b as V,h as pe,C as X,m as ie,a1 as xe,al as Fe,L as Ae,aO as sn,n as Ne,aR as Ln,af as Vt,P as An,H as It,ae as En,a8 as Te,dl as xt,w as x,bj as Zn,av as je,aY as Ke,aG as On,W as ln,bn as Se,j as Qe,E as de,dm as zt,dn as ct,ad as Ht,dp as Re,T as Rn,dq as Ye,aw as ot,V as Lt,dr as $e,ds as st,dt as Pn,du as it,a$ as qe,dv as ut,dw as Dn,dx as rn,a as At,dy as Et,dz as Ct,dA as Kt,dB as jn,M as dt,dC as pt,dD as Yt,D as at,p as cn,q as un,as as dn,X as hn,Z as qn,Y as Je,U as Bn,Q as Fn,ar as Nn,bb as Un,dE as Wn,dF as Gn,a4 as Xt}from"./index-DO6axeOr.js";import{d as Kn}from"./menu-DpbF6EVM.js";import{d as Yn}from"./home-filled-NADQtN-e.js";import{d as Xn}from"./git-branch-line-BhusJOme.js";import{d as Jn}from"./admin-line-CpqWPwjZ.js";import{d as Qn,u as Ze,a as Zt,g as Ot,b as Rt,t as eo,c as to,e as no,f as oo}from"./dark-Dxu4zzSm.js";import{u as We}from"./app-OgNXQnyE.js";import{m as ao}from"./index-QpUUYT1t.js";import{u as $t}from"./epTheme-i1iiR89O.js";import{u as Oe}from"./hooks-xsN8C34W.js";import{S as so}from"./sortable.esm-6WsHlDA5.js";import{d as Xe}from"./check-CIQVCvCT.js";import{e as Me}from"./mitt-E5P-NQ8u.js";import{d as lo}from"./refresh-right-Du3ZsAuC.js";import{d as ro}from"./arrow-right-s-line-CxPb13eK.js";import{b as fn}from"./back_top-B3i_aStH.js";import{R as Jt}from"./index-mQFHFLsH.js";import{R as Qt}from"./index-BEMx-K9N.js";const io={width:1024,height:1024,body:''},co={width:1024,height:1024,body:''},uo={width:1024,height:1024,body:''},ho={width:1024,height:1024,body:''},fo={width:1024,height:1024,body:''},po={width:1024,height:1024,body:''},mo={width:24,height:24,body:''},vo={width:24,height:24,body:''},_o={width:24,height:24,body:''},go={width:24,height:24,body:''},yo={width:24,height:24,body:''},bo={width:24,height:24,body:''},wo={width:24,height:24,body:''},pn={width:24,height:24,body:''},mt={width:24,height:24,body:''},ko={width:24,height:24,body:''},xo={width:24,height:24,body:''},Co={width:24,height:24,body:''},Io={width:24,height:24,body:''},$o={width:24,height:24,body:''},So={width:24,height:24,body:''},Mo={width:24,height:24,body:''},To={width:24,height:24,body:''},Vo={width:24,height:24,body:''};oe("ep:menu",Kn);oe("ep:edit",io);oe("ep:set-up",co);oe("ep:guide",uo);oe("ep:monitor",ho);oe("ep:lollipop",fo);oe("ep:histogram",po);oe("ep:home-filled",Yn);oe("ri:bookmark-2-line",mo);oe("ri:file-ppt-2-line",vo);oe("ri:bank-card-line",_o);oe("ri:admin-fill",go);oe("ri:file-info-line",yo);oe("ri:git-branch-line",Xn);oe("ri:links-fill",wo);oe("ri:table-line",bo);oe("ri:search-line",pn);oe("ri:admin-line",Jn);oe("ri:settings-3-line",mt);oe("ri:window-line",ko);oe("ri:file-search-line",Co);oe("ri:artboard-line",xo);oe("ri:list-check",Io);oe("ri:ubuntu-fill",$o);oe("ri:user-voice-line",So);oe("ri:history-fill",Mo);oe("ri:information-line",Qn);oe("ri:terminal-window-line",To);oe("ri:checkbox-circle-line",Vo);const zo=zn({id:"pure-setting",state:()=>({title:Ge().Title,fixedHeader:Ge().FixedHeader,hiddenSideBar:Ge().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 Pt(){return zo(Hn)}const Ho={xmlns:"http://www.w3.org/2000/svg",width:"20",height:"20","aria-hidden":"true",class:"iconify iconify--ant-design",viewBox:"0 0 1024 1024"},Lo=b("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-8"},null,-1),Ao=[Lo];function Eo(t,e){return u(),M("svg",Ho,[...Ao])}const mn={render:Eo},Zo=["onMouseenter"],Oo={class:"result-item-title"},Ro=ne({__name:"SearchResult",props:{value:{},options:{}},emits:["update:value","enter"],setup(t,{expose:e,emit:n}){const a=O(),c=O(),s=n,l=Tt(),m=t,d=j(()=>k=>({background:(k==null?void 0:k.path)===v.value?$t().epThemeColor:"",color:k.path===v.value?"#fff":"",fontSize:k.path===v.value?"16px":"14px"})),v=j({get(){return m.value},set(k){s("update:value",k)}});function w(k){return tt(this,null,function*(){v.value=k.path})}function p(){s("enter")}function g(){c.value=window.innerHeight-window.innerHeight/10-140}ft(a,g);function y(k){var H;const z=(H=l==null?void 0:l.proxy)==null?void 0:H.$refs[`resultItemRef${k}`];if(!z)return 0;const Z=z[0].offsetTop+128;return Z>c.value?Z-c.value:0}return Ue(()=>{g()}),e({handleScroll:y}),(k,z)=>(u(),M("div",{ref_key:"resultRef",ref:a,class:"result"},[(u(!0),M(ve,null,ke(k.options,(C,Z)=>{var H,L;return u(),M("div",{key:C.path,ref_for:!0,ref:"resultItemRef"+Z,class:"result-item dark:bg-[#1d1d1d]",style:re(d.value(C)),onClick:p,onMouseenter:U=>w(C)},[(u(),R(Le(o(Oe)((H=C.meta)==null?void 0:H.icon)))),b("span",Oo,ae(o(Pe)((L=C.meta)==null?void 0:L.title)),1),f(o(mn))],44,Zo)}),128))],512))}}),Po=_e(Ro,[["__scopeId","data-v-b88fa124"]]),Do={xmlns:"http://www.w3.org/2000/svg",width:"20",height:"20","aria-hidden":"true",class:"iconify iconify--mdi",viewBox:"0 0 24 24"},jo=b("path",{fill:"currentColor",d:"M1 7h6v2H3v2h4v2H3v2h4v2H1zm10 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-2"},null,-1),qo=[jo];function Bo(t,e){return u(),M("svg",Do,[...qo])}const Fo={render:Bo},No={width:24,height:24,body:''},Uo={width:24,height:24,body:''},Wo={class:"search-footer text-[#333] dark:text-white"},Go={class:"search-footer-item"},Ko={class:"search-footer-item"},Yo={class:"search-footer-item"},Xo={key:0,class:"search-footer-total"},Jo=ne({__name:"SearchFooter",props:{total:{default:0}},setup(t){const e=t,{device:n}=Ze();return(a,c)=>{const s=V("IconifyIconOffline");return u(),M("div",Wo,[b("span",Go,[f(o(mn),{class:"icon"}),pe(" 确认 ")]),b("span",Ko,[f(s,{icon:o(No),class:"icon"},null,8,["icon"]),f(s,{icon:o(Uo),class:"icon"},null,8,["icon"]),pe(" 切换 ")]),b("span",Yo,[f(o(Fo),{class:"icon"}),pe(" 关闭 ")]),o(n)!=="mobile"&&e.total>0?(u(),M("p",Xo," 共"+ae(e.total)+"项 ",1)):X("",!0)])}}}),Qo=_e(Jo,[["__scopeId","data-v-f9c16431"]]),ea={width:1024,height:1024,body:''},ht={width:1024,height:1024,body:''},ta={class:"history-item-title"},na=ne({__name:"SearchHistoryItem",props:{item:{}},emits:["collectItem","deleteItem"],setup(t,{emit:e}){const n=e;function a(s){n("collectItem",s)}function c(s){n("deleteItem",s)}return(s,l)=>{var d,v;const m=V("IconifyIconOffline");return u(),M(ve,null,[(u(),R(Le(o(Oe)((d=s.item.meta)==null?void 0:d.icon)))),b("span",ta,ae(o(Pe)((v=s.item.meta)==null?void 0:v.title)),1),ie(f(m,{icon:o(ea),class:"w-[18px] h-[18px] mr-2 hover:text-[#d7d5d4]",onClick:l[0]||(l[0]=Fe(w=>a(s.item),["stop"]))},null,8,["icon"]),[[xe,s.item.type==="history"]]),f(m,{icon:o(ht),class:"w-[18px] h-[18px] hover:text-[#d7d5d4] cursor-pointer",onClick:l[1]||(l[1]=Fe(w=>c(s.item),["stop"]))},null,8,["icon"])],64)}}}),en=_e(na,[["__scopeId","data-v-a9dc41c7"]]),oa=["onMouseenter"],aa={class:"collect-container"},sa=["onMouseenter"],la=ne({__name:"SearchHistory",props:{value:{},options:{}},emits:["update:value","enter","collect","delete","drag"],setup(t,{expose:e,emit:n}){const a=O(),c=O(),s=O(!1),l=n,m=Tt(),d=t,v=j(()=>T=>({background:(T==null?void 0:T.path)===p.value?$t().epThemeColor:"",color:T.path===p.value?"#fff":"",fontSize:T.path===p.value?"16px":"14px"})),w=j(()=>({color:$t().epThemeColor,fontWeight:500})),p=j({get(){return d.value},set(T){l("update:value",T)}});Ae(()=>d.value,T=>{T&&s.value&&sn(100).then(()=>s.value=!1)});const g=j(()=>d.options.filter(T=>T.type==="history")),y=j(()=>d.options.filter(T=>T.type==="collect"));function k(T){l("collect",T)}function z(T){s.value=!0,l("delete",T)}function C(T){return tt(this,null,function*(){s.value||(p.value=T.path)})}function Z(){l("enter")}function H(){c.value=window.innerHeight-window.innerHeight/10-140}ft(a,H);function L(T){var ee;const D=(ee=m==null?void 0:m.proxy)==null?void 0:ee.$refs[`historyItemRef${T}`];if(!D)return 0;const le=(Ln(D)?D[0]:D).offsetTop+128;return le>c.value?le-c.value:0}const U=T=>{l("drag",{oldIndex:T.oldIndex,newIndex:T.newIndex})};let Q=null;return Ae(y,T=>{T.length>1&&Ne(()=>{const D=document.querySelector(".collect-container");!D||Q||(Q=so.create(D,{animation:160,onStart:q=>{q.item.style.cursor="move"},onEnd:q=>{q.item.style.cursor="pointer"},onUpdate:U}),H())})},{deep:!0,immediate:!0}),e({handleScroll:L}),(T,D)=>(u(),M("div",{ref_key:"historyRef",ref:a,class:"history"},[g.value.length?(u(),M(ve,{key:0},[b("div",{style:re(w.value)},"搜索历史",4),(u(!0),M(ve,null,ke(g.value,(q,le)=>(u(),M("div",{key:q.path,ref_for:!0,ref:"historyItemRef"+le,class:"history-item dark:bg-[#1d1d1d]",style:re(v.value(q)),onClick:Z,onMouseenter:ee=>C(q)},[f(en,{item:q,onDeleteItem:z,onCollectItem:k},null,8,["item"])],44,oa))),128))],64)):X("",!0),y.value.length?(u(),M(ve,{key:1},[b("div",{style:re(w.value)}," 收藏"+ae(y.value.length>1?"(可拖拽排序)":""),5),b("div",aa,[(u(!0),M(ve,null,ke(y.value,(q,le)=>(u(),M("div",{key:q.path,ref_for:!0,ref:"historyItemRef"+(le+g.value.length),class:"history-item dark:bg-[#1d1d1d]",style:re(v.value(q)),onClick:Z,onMouseenter:ee=>C(q)},[f(en,{item:q,onDeleteItem:z},null,8,["item"])],44,sa))),128))])],64)):X("",!0)],512))}}),ra=_e(la,[["__scopeId","data-v-9fa90bc8"]]),ia={class:"search-content"},tn="history",ca="collect",De="menu-search-history",Be="menu-search-collect",ua=ne({__name:"SearchModal",props:{value:{type:Boolean}},emits:["update:value"],setup(t,{emit:e}){const{device:n}=Ze(),a=e,c=t,s=Vt(),{locale:l}=An(),m=O(""),d=O(),v=O(),w=O(),p=O(""),g=O(""),y=It([]),k=It([]),z=Zn(ee,300),C=Ge().MenuSearchHistory,Z=O(null),H=j(()=>En(Te().wholeMenus)),L=j({get(){return c.value},set(i){a("update:value",i)}});Ae(()=>c.value,i=>{i&&se()});const U=j(()=>m.value&&y.value.length>0),Q=j(()=>!m.value&&k.value.length>0),T=j(()=>!m.value&&k.value.length===0||m.value&&y.value.length===0);function D(i){return je().getItem(i)||[]}function q(i,h){je().setItem(i,h)}function le(i){const h=[];function I(K){K.forEach(Y=>{h.push(Y),Y.children&&I(Y.children)})}return I(i),h}function ee(){var h;const i=le(H.value);y.value=i.filter(I=>{var K,Y;return m.value?Pe((K=I.meta)==null?void 0:K.title).toLocaleLowerCase().includes(m.value.toLocaleLowerCase().trim())||l.value==="zh"&&!Ke(ao(Pe((Y=I.meta)==null?void 0:Y.title).toLocaleLowerCase(),m.value.toLocaleLowerCase().trim())):!1}),p.value=((h=y.value)==null?void 0:h.length)>0?y.value[0].path:""}function P(){L.value=!1,setTimeout(()=>{y.value=[],g.value="",m.value=""},200)}function te(i){const I=(y.value.length?d.value:v.value).handleScroll(i);w.value.setScrollTop(I)}function ye(){const i=y.value.length>0,h=i?y.value:k.value,I=i?p.value:g.value;return{options:h,currentPath:I,isResultOptions:i}}function ge(i,h){h?p.value=y.value[i].path:g.value=k.value[i].path,te(i)}function Ce(){const{options:i,currentPath:h,isResultOptions:I}=ye();if(i.length===0)return;const Y=(i.findIndex(ce=>ce.path===h)-1+i.length)%i.length;ge(Y,I)}function Ve(){const{options:i,currentPath:h,isResultOptions:I}=ye();if(i.length===0)return;const Y=(i.findIndex(ce=>ce.path===h)+1)%i.length;ge(Y,I)}function Ie(){const{options:i,currentPath:h,isResultOptions:I}=ye();if(i.length===0||h==="")return;const K=i.findIndex(Y=>Y.path===h);K!==-1&&(I?$():W(),s.push(i[K].path),P())}function r(i){const h=i.type===tn?De:Be;let I=D(h);I=I.filter(K=>K.path!==i.path),q(h,I),se()}function _(i){let h=D(De),I=D(Be);h=h.filter(K=>K.path!==i.path),q(De,h),I.some(K=>K.path===i.path)||(I.unshift(kt(wt({},i),{type:ca})),q(Be,I)),se()}function $(){const{path:i,meta:h}=y.value.find(B=>B.path===p.value),I=D(De),Y=D(Be).some(B=>B.path===i),ce=I.findIndex(B=>B.path===i);Y||(ce!==-1&&I.splice(ce,1),I.length>=C&&I.pop(),I.unshift({path:i,meta:h,type:tn}),je().setItem(De,I))}function W(){let i=D(De);const h=i.findIndex(I=>I.path===g.value);if(h!==-1){const[I]=i.splice(h,1);i.unshift(I),q(De,i)}}function se(){var I;const i=D(De),h=D(Be);k.value=[...i,...h],g.value=(I=k.value[0])==null?void 0:I.path}function J(i){const h=D(Be),[I]=h.splice(i.oldIndex,1);h.splice(i.newIndex,0,I),je().setItem(Be,h),k.value=[...D(De),...D(Be)],g.value=I.path}return xt("Enter",Ie),xt("ArrowUp",Ce),xt("ArrowDown",Ve),(i,h)=>{const I=V("IconifyIconOffline"),K=V("el-input"),Y=V("el-empty"),ce=V("el-scrollbar"),B=V("el-dialog");return u(),R(B,{modelValue:L.value,"onUpdate:modelValue":h[3]||(h[3]=we=>L.value=we),top:"5vh",class:"pure-search-dialog","show-close":!1,width:o(n)==="mobile"?"80vw":"40vw","before-close":P,style:{borderRadius:"6px"},"append-to-body":"",onOpened:h[4]||(h[4]=we=>Z.value.focus()),onClosed:h[5]||(h[5]=we=>Z.value.blur())},{footer:x(()=>[f(Qo,{total:y.value.length},null,8,["total"])]),default:x(()=>[f(K,{ref_key:"inputRef",ref:Z,modelValue:m.value,"onUpdate:modelValue":h[0]||(h[0]=we=>m.value=we),size:"large",clearable:"",placeholder:"搜索菜单(中文模式下支持拼音搜索)",onInput:o(z)},{prefix:x(()=>[f(I,{icon:o(pn),class:"text-primary w-[24px] h-[24px]"},null,8,["icon"])]),_:1},8,["modelValue","onInput"]),b("div",ia,[f(ce,{ref_key:"scrollbarRef",ref:w,"max-height":"calc(90vh - 140px)"},{default:x(()=>[T.value?(u(),R(Y,{key:0,description:"暂无搜索结果"})):X("",!0),Q.value?(u(),R(ra,{key:1,ref_key:"historyRef",ref:v,value:g.value,"onUpdate:value":h[1]||(h[1]=we=>g.value=we),options:k.value,onClick:Ie,onDelete:r,onCollect:_,onDrag:J},null,8,["value","options"])):X("",!0),U.value?(u(),R(Po,{key:2,ref_key:"resultRef",ref:d,value:p.value,"onUpdate:value":h[2]||(h[2]=we=>p.value=we),options:y.value,onClick:Ie},null,8,["value","options"])):X("",!0)]),_:1},512)])]),_:1},8,["modelValue","width"])}}}),da=_e(ua,[["__scopeId","data-v-ba7ee514"]]);function ha(t=!1){const e=O(t);function n(l){e.value=l}function a(){n(!0)}function c(){n(!1)}function s(){n(!e.value)}return{bool:e,setBool:n,setTrue:a,setFalse:c,toggle:s}}const Dt=ne({__name:"index",setup(t){const{bool:e,toggle:n}=ha();function a(){n()}return(c,s)=>{const l=V("IconifyIconOffline");return u(),M("div",null,[b("div",{class:"search-container w-[40px] h-[48px] flex-c cursor-pointer navbar-bg-hover",onClick:a},[f(l,{icon:"ri:search-line"})]),f(o(da),{value:o(e),"onUpdate:value":s[0]||(s[0]=m=>On(e)?e.value=m:null)},null,8,["value"])])}}}),nn=[{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"}]}],fa={class:"notice-container border-b-[1px] border-solid border-[#f0f0f0] dark:border-[#303030]"},pa={class:"notice-container-text"},ma={class:"notice-text-title text-[#000000d9] dark:text-white"},va={class:"notice-text-datetime text-[#00000073] dark:text-white"},_a=ne({__name:"noticeItem",props:{noticeItem:{type:Object,default:()=>{}}},setup(t){const e=t,n=O(null),a=O(!1),c=O(null),s=O(!1),{tooltipEffect:l}=Ze(),m=ln();function d(){Ne(()=>{var w,p;((w=n.value)==null?void 0:w.scrollWidth)>((p=n.value)==null?void 0:p.clientWidth)?a.value=!0:a.value=!1})}function v(w,p){const g=document.createElement("span");g.innerText=p,g.className="getDescriptionWidth",document.querySelector("body").appendChild(g);const y=document.querySelector(".getDescriptionWidth").offsetWidth;document.querySelector(".getDescriptionWidth").remove();const k=w.target.offsetWidth;y>2*k?s.value=!0:s.value=!1}return(w,p)=>{var z,C;const g=V("el-avatar"),y=V("el-tooltip"),k=V("el-tag");return u(),M("div",fa,[e.noticeItem.avatar?(u(),R(g,{key:0,size:30,src:e.noticeItem.avatar,class:"notice-container-avatar"},null,8,["src"])):X("",!0),b("div",pa,[b("div",ma,[f(y,{"popper-class":"notice-title-popper",effect:o(l),disabled:!a.value,content:e.noticeItem.title,placement:"top-start",enterable:!o(m)},{default:x(()=>[b("div",{ref_key:"titleRef",ref:n,class:"notice-title-content",onMouseover:d},ae(e.noticeItem.title),545)]),_:1},8,["effect","disabled","content","enterable"]),(z=e.noticeItem)!=null&&z.extra?(u(),R(k,{key:0,type:(C=e.noticeItem)==null?void 0:C.status,size:"small",class:"notice-title-extra"},{default:x(()=>{var Z;return[pe(ae((Z=e.noticeItem)==null?void 0:Z.extra),1)]}),_:1},8,["type"])):X("",!0)]),f(y,{"popper-class":"notice-title-popper",effect:o(l),disabled:!s.value,content:e.noticeItem.description,placement:"top-start"},{default:x(()=>[b("div",{ref_key:"descriptionRef",ref:c,class:"notice-text-description",onMouseover:p[0]||(p[0]=Z=>v(Z,e.noticeItem.description))},ae(e.noticeItem.description),545)]),_:1},8,["effect","disabled","content"]),b("div",va,ae(e.noticeItem.datetime),1)])])}}}),ga=_e(_a,[["__scopeId","data-v-2a7dbc48"]]),ya={key:0},ba=ne({__name:"noticeList",props:{list:{type:Array,default:()=>[]}},setup(t){const e=t;return(n,a)=>{const c=V("el-empty");return e.list.length?(u(),M("div",ya,[(u(!0),M(ve,null,ke(e.list,(s,l)=>(u(),R(ga,{key:l,noticeItem:s},null,8,["noticeItem"]))),128))])):(u(),R(c,{key:1,description:"暂无消息"}))}}}),wa={width:1024,height:1024,body:''},ka={class:"dropdown-badge navbar-bg-hover select-none"},xa={class:"header-notice-icon"},Ca={key:1},Ia={class:"noticeList-container"},$a=ne({__name:"index",setup(t){const e=O(0),n=O(nn),a=O(nn[0].key);return n.value.map(c=>e.value+=c.list.length),(c,s)=>{const l=V("IconifyIconOffline"),m=V("el-badge"),d=V("el-empty"),v=V("el-scrollbar"),w=V("el-tab-pane"),p=V("el-tabs"),g=V("el-dropdown-menu"),y=V("el-dropdown");return u(),R(y,{trigger:"click",placement:"bottom-end"},{dropdown:x(()=>[f(g,null,{default:x(()=>[f(p,{modelValue:a.value,"onUpdate:modelValue":s[0]||(s[0]=k=>a.value=k),stretch:!0,class:"dropdown-tabs",style:re({width:n.value.length===0?"200px":"330px"})},{default:x(()=>[n.value.length===0?(u(),R(d,{key:0,description:"暂无消息","image-size":60})):(u(),M("span",Ca,[(u(!0),M(ve,null,ke(n.value,k=>(u(),R(w,{key:k.key,label:`${k.name}(${k.list.length})`,name:`${k.key}`},{default:x(()=>[f(v,{"max-height":"330px"},{default:x(()=>[b("div",Ia,[f(ba,{list:k.list},null,8,["list"])])]),_:2},1024)]),_:2},1032,["label","name"]))),128))]))]),_:1},8,["modelValue","style"])]),_:1})]),default:x(()=>[b("span",ka,[f(m,{value:e.value,max:99},{default:x(()=>[b("span",xa,[f(l,{icon:o(wa)},null,8,["icon"])])]),_:1},8,["value"])])]),_:1})}}}),jt=_e($a,[["__scopeId","data-v-33dc6db9"]]),Sa={key:0,class:"flex justify-center items-center"},St=ne({__name:"extraIcon",props:{extraIcon:{type:String,default:""}},setup(t){const e=t;return(n,a)=>e.extraIcon?(u(),M("div",Sa,[(u(),R(Le(o(Oe)(Se(e.extraIcon))),{class:"w-[30px] h-[30px]"}))])):X("",!0)}}),qt={width:24,height:24,body:''},Ma={key:0,class:"horizontal-header"},Ta={class:"select-none"},Va={class:"horizontal-header-right"},za={class:"check-zh"},Ha={class:"check-en"},La={class:"el-dropdown-link navbar-bg-hover select-none"},Aa=["src"],Ea={key:0,class:"dark:text-white"},Za=["title"],Oa=ne({__name:"mixNav",setup(t){const e=O(),n=O(null),{t:a,route:c,locale:s,translationCh:l,translationEn:m}=Zt(e),{device:d,logout:v,onPanel:w,resolvePath:p,username:g,userAvatar:y,getDivStyle:k,avatarsStyle:z,getDropdownItemStyle:C,getDropdownItemClass:Z}=Ze();function H(L){var T,D,q;const U=Te().wholeMenus,Q=zt(L,U)[0];n.value=Ke((T=c.meta)==null?void 0:T.activePath)?(q=(D=ct(Q,U))==null?void 0:D.children[0])==null?void 0:q.path:c.meta.activePath}return Ue(()=>{H(c.path)}),Ne(()=>{var L;(L=e.value)==null||L.handleResize()}),Ae(()=>[c.path,Te().wholeMenus],()=>{H(c.path)}),(L,U)=>{const Q=V("el-menu-item"),T=V("el-menu"),D=V("IconifyIconOffline"),q=V("el-dropdown-item"),le=V("el-dropdown-menu"),ee=V("el-dropdown"),P=Qe("loading");return o(d)!=="mobile"?ie((u(),M("div",Ma,[f(T,{ref_key:"menuRef",ref:e,router:"",mode:"horizontal","popper-class":"pure-scrollbar",class:"horizontal-header-menu","default-active":n.value},{default:x(()=>[(u(!0),M(ve,null,ke(o(Te)().wholeMenus,te=>(u(),R(Q,{key:te.path,index:o(p)(te)||te.redirect},{title:x(()=>[Se(te.meta.icon)?(u(),M("div",{key:0,class:de(["sub-menu-icon",te.meta.icon])},[(u(),R(Le(o(Oe)(te.meta&&Se(te.meta.icon)))))],2)):X("",!0),b("div",{style:re(o(k))},[b("span",Ta,ae(o(Pe)(te.meta.title)),1),f(St,{extraIcon:te.meta.extraIcon},null,8,["extraIcon"])],4)]),_:2},1032,["index"]))),128))]),_:1},8,["default-active"]),b("div",Va,[f(Dt,{id:"header-search"}),f(jt,{id:"header-notice"}),f(ee,{id:"header-translation",trigger:"click"},{dropdown:x(()=>[f(le,{class:"translation"},{default:x(()=>[f(q,{style:re(o(C)(o(s),"zh")),class:de(["dark:!text-white",o(Z)(o(s),"zh")]),onClick:o(l)},{default:x(()=>[ie(b("span",za,[f(D,{icon:o(Xe)},null,8,["icon"])],512),[[xe,o(s)==="zh"]]),pe(" 简体中文 ")]),_:1},8,["style","class","onClick"]),f(q,{style:re(o(C)(o(s),"en")),class:de(["dark:!text-white",o(Z)(o(s),"en")]),onClick:o(m)},{default:x(()=>[ie(b("span",Ha,[f(D,{icon:o(Xe)},null,8,["icon"])],512),[[xe,o(s)==="en"]]),pe(" English ")]),_:1},8,["style","class","onClick"])]),_:1})]),default:x(()=>[f(o(Ot),{class:"navbar-bg-hover w-[40px] h-[48px] p-[11px] cursor-pointer outline-none"})]),_:1}),f(ee,{trigger:"click"},{dropdown:x(()=>[f(le,{class:"logout"},{default:x(()=>[f(q,{onClick:o(v)},{default:x(()=>[f(D,{icon:o(qt),style:{margin:"5px"}},null,8,["icon"]),pe(" "+ae(o(a)("buttons.hsLoginOut")),1)]),_:1},8,["onClick"])]),_:1})]),default:x(()=>[b("span",La,[b("img",{src:o(y),style:re(o(z))},null,12,Aa),o(g)?(u(),M("p",Ea,ae(o(g)),1)):X("",!0)])]),_:1}),b("span",{class:"set-icon navbar-bg-hover",title:o(a)("buttons.hssystemSet"),onClick:U[0]||(U[0]=(...te)=>o(w)&&o(w)(...te))},[f(D,{icon:o(mt)},null,8,["icon"])],8,Za)])])),[[P,o(Te)().wholeMenus.length===0]]):X("",!0)}}}),Ra=_e(Oa,[["__scopeId","data-v-63778524"]]),Pa=["onClick"],Da=ne({__name:"breadCrumb",setup(t){const e=Ht(),n=O([]),a=Vt(),c=a.options.routes,s=Re().multiTags,l=()=>{let d;Object.keys(e.query).length>0?s.forEach(p=>{Ye(e.query,p==null?void 0:p.query)&&(d=Se(p))}):Object.keys(e.params).length>0?s.forEach(p=>{Ye(e.params,p==null?void 0:p.params)&&(d=Se(p))}):d=ct(a.currentRoute.value.path,c);const v=zt(a.currentRoute.value.name,c,"name"),w=[];v.forEach(p=>{p!=="/"&&w.push(ct(p,c))}),w.push(d),w.forEach((p,g)=>{d!=null&&d.query||d!=null&&d.params||p!=null&&p.children&&p.children.forEach(y=>{var k,z;((k=y==null?void 0:y.meta)==null?void 0:k.title)===((z=p==null?void 0:p.meta)==null?void 0:z.title)&&w.splice(g,1)})}),n.value=w.filter(p=>(p==null?void 0:p.meta)&&(p==null?void 0:p.meta.title)!==!1)},m=d=>{const{redirect:v,name:w,path:p}=d;v?a.push(v):w?d.query?a.push({name:w,query:d.query}):d.params?a.push({name:w,params:d.params}):a.push({name:w}):a.push({path:p})};return Ue(()=>{l()}),Ae(()=>e.path,()=>{l()},{deep:!0}),(d,v)=>{const w=V("el-breadcrumb-item"),p=V("el-breadcrumb");return u(),R(p,{class:"!leading-[50px] select-none",separator:"/"},{default:x(()=>[f(Rn,{name:"breadcrumb"},{default:x(()=>[(u(!0),M(ve,null,ke(n.value,g=>(u(),R(w,{key:g.path,class:"!inline !items-stretch"},{default:x(()=>[b("a",{onClick:Fe(y=>m(g),["prevent"])},ae(o(Pe)(g.meta.title)),9,Pa)]),_:2},1024))),128))]),_:1})]),_:1})}}}),vn={width:24,height:24,body:''},ja={width:24,height:24,body:''},qa=["title"],Ba=ne({__name:"topCollapse",props:{isActive:{type:Boolean,default:!1}},emits:["toggleClick"],setup(t,{emit:e}){const n=t,a=e,c=()=>{a("toggleClick")};return(s,l)=>{const m=V("IconifyIconOffline");return u(),M("div",{class:"px-3 mr-1 navbar-bg-hover",title:n.isActive?"点击折叠":"点击展开",onClick:c},[f(m,{icon:n.isActive?o(vn):o(ja),class:"inline-block align-middle hover:text-primary dark:hover:!text-white"},null,8,["icon"])],8,qa)}}}),Fa={class:"navbar bg-[#fff] shadow-sm shadow-[rgba(0,21,41,0.08)]"},Na={key:3,class:"vertical-header-right"},Ua={class:"check-en"},Wa={class:"el-dropdown-link navbar-bg-hover select-none"},Ga=["src"],Ka={key:0,class:"dark:text-white"},Ya=["title"],Xa=ne({__name:"navbar",setup(t){const{layout:e,device:n,logout:a,onPanel:c,pureApp:s,username:l,userAvatar:m,avatarsStyle:d,toggleSideBar:v,getDropdownItemStyle:w,getDropdownItemClass:p}=Ze(),{t:g,locale:y,translationCh:k,translationEn:z}=Zt();return(C,Z)=>{const H=V("IconifyIconOffline"),L=V("el-dropdown-item"),U=V("el-dropdown-menu"),Q=V("el-dropdown");return u(),M("div",Fa,[o(n)==="mobile"?(u(),R(Ba,{key:0,class:"hamburger-container","is-active":o(s).sidebar.opened,onToggleClick:o(v)},null,8,["is-active","onToggleClick"])):X("",!0),o(e)!=="mix"&&o(n)!=="mobile"?(u(),R(Da,{key:1,class:"breadcrumb-container"})):X("",!0),o(e)==="mix"?(u(),R(Ra,{key:2})):X("",!0),o(e)==="vertical"?(u(),M("div",Na,[f(Dt,{id:"header-search"}),f(jt,{id:"header-notice"}),f(Q,{id:"header-translation",trigger:"click"},{dropdown:x(()=>[f(U,{class:"translation"},{default:x(()=>[f(L,{style:re(o(w)(o(y),"zh")),class:de(["dark:!text-white",o(p)(o(y),"zh")]),onClick:o(k)},{default:x(()=>[ie(f(H,{class:"check-zh",icon:o(Xe)},null,8,["icon"]),[[xe,o(y)==="zh"]]),pe(" 简体中文 ")]),_:1},8,["style","class","onClick"]),f(L,{style:re(o(w)(o(y),"en")),class:de(["dark:!text-white",o(p)(o(y),"en")]),onClick:o(z)},{default:x(()=>[ie(b("span",Ua,[f(H,{icon:o(Xe)},null,8,["icon"])],512),[[xe,o(y)==="en"]]),pe(" English ")]),_:1},8,["style","class","onClick"])]),_:1})]),default:x(()=>[f(o(Ot),{class:"navbar-bg-hover w-[40px] h-[48px] p-[11px] cursor-pointer outline-none"})]),_:1}),f(Q,{trigger:"click"},{dropdown:x(()=>[f(U,{class:"logout"},{default:x(()=>[f(L,{onClick:o(a)},{default:x(()=>[f(H,{icon:o(qt),style:{margin:"5px"}},null,8,["icon"]),pe(" "+ae(o(g)("buttons.hsLoginOut")),1)]),_:1},8,["onClick"])]),_:1})]),default:x(()=>[b("span",Wa,[b("img",{src:o(m),style:re(o(d))},null,12,Ga),o(l)?(u(),M("p",Ka,ae(o(l)),1)):X("",!0)])]),_:1}),b("span",{class:"set-icon navbar-bg-hover",title:o(g)("buttons.hssystemSet"),onClick:Z[0]||(Z[0]=(...T)=>o(c)&&o(c)(...T))},[f(H,{icon:o(mt)},null,8,["icon"])],8,Ya)])):X("",!0)])}}}),Ja=_e(Xa,[["__scopeId","data-v-0617a10c"]]),Qa={width:24,height:24,body:''},es={width:24,height:24,body:''},ts={width:24,height:24,body:''},ns={width:24,height:24,body:''};function os(){var le,ee;const t=Ht(),e=Vt(),n=Tt(),a=Pt(),c=O(0),s=O(0),l=O(0),m=O(!1),d=O(-1),v=O({}),w=O(!1),p=O(((le=je().getItem(`${ot()}configure`))==null?void 0:le.showModel)||"smart"),g=(ee=O(je().getItem(`${ot()}configure`).hideTabs))!=null?ee:O("false"),y=j(()=>Re().multiTags),k=Lt([{icon:lo,text:$e("buttons.hsreload"),divided:!1,disabled:!1,show:!0},{icon:ht,text:$e("buttons.hscloseCurrentTab"),divided:!1,disabled:!(y.value.length>1),show:!0},{icon:ns,text:$e("buttons.hscloseLeftTabs"),divided:!0,disabled:!(y.value.length>1),show:!0},{icon:ts,text:$e("buttons.hscloseRightTabs"),divided:!1,disabled:!(y.value.length>1),show:!0},{icon:es,text:$e("buttons.hscloseOtherTabs"),divided:!0,disabled:!(y.value.length>2),show:!0},{icon:Qa,text:$e("buttons.hscloseAllTabs"),divided:!1,disabled:!(y.value.length>1),show:!0},{icon:st,text:$e("buttons.hswholeFullScreen"),divided:!0,disabled:!1,show:!0},{icon:st,text:$e("buttons.hscontentFullScreen"),divided:!1,disabled:!1,show:!0}]);function z(P,te,ye){var ge,Ce;return Pn((ge=t==null?void 0:t.meta)==null?void 0:ge.showLink)&&((Ce=t==null?void 0:t.meta)==null?void 0:Ce.showLink)===!1?Object.keys(t.query).length>0?Ye(t.query,P.query)?te:ye:Ye(t.params,P.params)?te:ye:t.path===P.path?te:ye}const C=j(()=>(P,te)=>{if(te!==0)return z(P,!0,!1)}),Z=j(()=>P=>z(P,"is-active","")),H=j(()=>P=>z(P,"schedule-active","")),L=j(()=>({transform:`translateX(${l.value}px)`,transition:w.value?"none":"transform 0.5s ease-in-out"})),U=j(()=>({left:s.value+"px",top:c.value+"px"})),Q=()=>{m.value=!1};function T(P){if(P&&(d.value=P),o(p)==="smart"){if(it(n.refs["schedule"+P][0],"schedule-active"))return;qe(!0,"schedule-in",n.refs["schedule"+P][0]),qe(!1,"schedule-out",n.refs["schedule"+P][0])}else{if(it(n.refs["dynamic"+P][0],"is-active"))return;qe(!0,"card-in",n.refs["dynamic"+P][0]),qe(!1,"card-out",n.refs["dynamic"+P][0])}}function D(P){if(d.value=-1,o(p)==="smart"){if(it(n.refs["schedule"+P][0],"schedule-active"))return;qe(!1,"schedule-in",n.refs["schedule"+P][0]),qe(!0,"schedule-out",n.refs["schedule"+P][0])}else{if(it(n.refs["dynamic"+P][0],"is-active"))return;qe(!1,"card-in",n.refs["dynamic"+P][0]),qe(!0,"card-out",n.refs["dynamic"+P][0])}}function q(){a.hiddenSideBar?a.changeSetting({key:"hiddenSideBar",value:!1}):a.changeSetting({key:"hiddenSideBar",value:!0})}return Ue(()=>{if(!p.value){const P=je().getItem(`${ot()}configure`);P.showModel="card",je().setItem(`${ot()}configure`,P)}}),{Close:ht,route:t,router:e,visible:m,showTags:g,instance:n,multiTags:y,showModel:p,tagsViews:k,buttonTop:c,buttonLeft:s,translateX:l,pureSetting:a,activeIndex:d,getTabStyle:L,isScrolling:w,iconIsActive:C,linkIsActive:Z,currentSelect:v,scheduleIsActive:H,getContextMenuStyle:U,$t:$e,closeMenu:Q,onMounted:Ue,onMouseenter:T,onMouseleave:D,transformI18n:Pe,onContentFullScreen:q}}const as={width:24,height:24,body:''},ss={width:24,height:24,body:''};var ls={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};const rs={class:"arrow-left"},is=["onContextmenu","onMouseenter","onMouseleave","onClick"],cs={class:"tag-title dark:!text-text_color_primary dark:hover:!text-primary"},us=["onClick"],ds={class:"arrow-right"},hs=["onClick"],fs={class:"arrow-down"},ps=ne({__name:"index",setup(t){var Nt;const{Close:e,route:n,router:a,visible:c,showTags:s,instance:l,multiTags:m,tagsViews:d,buttonTop:v,buttonLeft:w,showModel:p,translateX:g,pureSetting:y,activeIndex:k,getTabStyle:z,isScrolling:C,iconIsActive:Z,linkIsActive:H,currentSelect:L,scheduleIsActive:U,getContextMenuStyle:Q,closeMenu:T,onMounted:D,onMouseenter:q,onMouseleave:le,transformI18n:ee,onContentFullScreen:P}=os(),te=O(),ye=O(),ge=O(),Ce=O(),Ve=O(!1),Ie=(Nt=ut())==null?void 0:Nt.path,{VITE_HIDE_HOME:r}=ls,{isFullscreen:_,toggle:$}=Dn(),W=()=>tt(this,null,function*(){yield Ne();const S=m.value.findIndex(A=>Ke(n.query)?Ke(n.params)?n.path===A.path:Ye(n.params,A.params):Ye(n.query,A.query));se(S)}),se=S=>tt(this,null,function*(){var fe,ze;yield Ne();const A=10;if(!l.refs["dynamic"+S])return;const E=l.refs["dynamic"+S][0],G=E==null?void 0:E.offsetLeft,ue=E==null?void 0:E.offsetWidth,F=ge.value?(fe=ge.value)==null?void 0:fe.offsetWidth:0,N=te.value?(ze=te.value)==null?void 0:ze.offsetWidth:0;F<=N?Ve.value=!0:Ve.value=!1,N-g.value&&G+ue<-g.value+F?g.value=Math.min(0,F-ue-G-A):g.value=-(G-(F-A-ue))}),J=S=>{var G;const A=ge.value?(G=ge.value)==null?void 0:G.offsetWidth:0,E=te.value?te.value.offsetWidth:0;S>0?g.value=Math.min(0,g.value+S):A=-(E-A)&&(g.value=Math.max(g.value+S,A-E)):g.value=0,C.value=!1},i=S=>{C.value=!0;const A=Math.abs(S.deltaX)+Math.abs(S.deltaY);let E=0;S.deltaX<0?E=A>0?A:100:E=A>0?-A:-100,h(E)},h=S=>{let E=Math.abs(S);const G=()=>{const ue=Math.sign(S)*Math.min(20,E);J(ue),E-=Math.abs(ue),E>0&&requestAnimationFrame(G)};requestAnimationFrame(G)};function I(S){const A=m.value.some(G=>G.path===S);function E(G,ue){A||G.forEach(F=>{F.path===ue?Re().handleTags("push",{path:ue,meta:F.meta,name:F.name}):F.children&&F.children.length>0&&E(F.children,ue)})}E(a.options.routes,S)}function K(){const{fullPath:S,query:A}=o(n);a.replace({path:"/redirect"+S,query:A}),Ct(n,"refresh")}function Y(S,A,E){var N,fe,ze,Ut;const G=m.value.findIndex(He=>{if(He.query){if(He.path===S.path)return He.query===S.query}else if(He.params){if(He.path===S.path)return He.params===S.params}else return He.path===S.path}),ue=(He,Cn,In)=>{In?Re().handleTags("equal",[r==="false"?jn[0]:Se(ut()),S]):Re().handleTags("splice","",{startIndex:He,length:Cn}),W()};E==="other"?ue(1,1,!0):E==="left"?ue(1,G-1):E==="right"?ue(G+1,m.value.length):ue(G,1);const F=Re().handleTags("slice");if(A===n.path){if(E==="left")return;(N=F[0])!=null&&N.query?a.push({name:F[0].name,query:F[0].query}):(fe=F[0])!=null&&fe.params?a.push({name:F[0].name,params:F[0].params}):a.push({path:F[0].path})}else{if(!m.value.length||m.value.some(He=>He.path===n.path))return;(ze=F[0])!=null&&ze.query?a.push({name:F[0].name,query:F[0].query}):(Ut=F[0])!=null&&Ut.params?a.push({name:F[0].name,params:F[0].params}):a.push({path:F[0].path})}}function ce(S,A){Y(S,S.path,A),Ct(n)}function B(S,A,E){if(A&&A.disabled)return;let G;switch(E?G={path:E.path,meta:E.meta,name:E.name,query:E==null?void 0:E.query,params:E==null?void 0:E.params}:G={path:n.path,meta:n.meta},S){case 0:K();break;case 1:ce(G);break;case 2:ce(G,"left");break;case 3:ce(G,"right");break;case 4:ce(G,"other");break;case 5:Re().handleTags("splice","",{startIndex:1,length:m.value.length}),a.push(Ie),Ct(n);break;case 6:$(),setTimeout(()=>{_.value?(d[6].icon=Kt,d[6].text=$e("buttons.hswholeExitFullScreen")):(d[6].icon=st,d[6].text=$e("buttons.hswholeFullScreen"))},100);break;case 7:P(),setTimeout(()=>{y.hiddenSideBar?(d[7].icon=Kt,d[7].text=$e("buttons.hscontentExitFullScreen")):(d[7].icon=st,d[7].text=$e("buttons.hscontentFullScreen"))},100);break}setTimeout(()=>{et(n.fullPath,n.query)})}function we(S){const{key:A,item:E}=S;B(A,E)}function Ft(S,A){T(),B(S,A,L.value)}function yt(S){Array.of(1,2,3,4,5).forEach(A=>{d[A].show=S})}function bt(S){Array.of(1,2,3,4,5).forEach(A=>{d[A].disabled=S})}function et(S,A={},E=!1){const G=m.value,ue=m.value.length;let F=-1;Ke(A)?F=G.findIndex(N=>N.path===S):F=G.findIndex(N=>Ye(N.query,A)),yt(!0),E&&(d[0].show=!0),F===1&&ue!==2?(d[2].show=!1,Array.of(1,3,4,5).forEach(N=>{d[N].disabled=!1}),d[2].disabled=!0):F===1&&ue===2?(bt(!1),Array.of(2,3,4).forEach(N=>{d[N].show=!1,d[N].disabled=!0})):ue-1===F&&F!==0?(d[3].show=!1,Array.of(1,2,4,5).forEach(N=>{d[N].disabled=!1}),d[3].disabled=!0):F===0||S===`/redirect${Ie}`?bt(!0):bt(!1)}function kn(S,A){T(),S.path===Ie?(yt(!1),d[0].show=!0):n.path!==S.path&&n.name!==S.name?(d[0].show=!1,et(S.path,S.query)):m.value.length===2&&n.path!==S.path?(yt(!0),d[4].show=!1):n.path===S.path&&et(S.path,S.query,!0),L.value=S;const E=140,G=o(ye).getBoundingClientRect().left,F=o(ye).offsetWidth-E,N=A.clientX-G+5;N>F?w.value=F:w.value=N,Pt().hiddenSideBar?v.value=A.clientY:v.value=A.clientY-40,Ne(()=>{c.value=!0})}function xn(S){const{name:A,path:E}=S;A?S.query?a.push({name:A,query:S.query}):S.params?a.push({name:A,params:S.params}):a.push({name:A}):a.push({path:E})}return rn(Ce,T,{detectIframe:!0}),Ae(n,()=>{k.value=-1,W()}),Ae(_,()=>{d[6].icon=st,d[6].text=$e("buttons.hswholeFullScreen")}),D(()=>{l&&(et(n.fullPath),Me.on("tagViewsChange",S=>{o(s)!==S&&(s.value=S)}),Me.on("tagViewsShowModel",S=>{p.value=S}),Me.on("changLayoutRoute",S=>{I(S),setTimeout(()=>{et(S)})}),ft(ge,W),sn().then(()=>W()))}),At(()=>{Me.off("tagViewsChange"),Me.off("tagViewsShowModel"),Me.off("changLayoutRoute")}),(S,A)=>{const E=V("IconifyIconOffline"),G=V("el-dropdown-item"),ue=V("el-dropdown-menu"),F=V("el-dropdown");return o(s)?X("",!0):(u(),M("div",{key:0,ref_key:"containerDom",ref:ye,class:"tags-view"},[ie(b("span",rs,[f(E,{icon:o(ss),onClick:A[0]||(A[0]=N=>J(200))},null,8,["icon"])],512),[[xe,Ve.value]]),b("div",{ref_key:"scrollbarDom",ref:ge,class:"scroll-container",onWheel:Fe(i,["prevent"])},[b("div",{ref_key:"tabDom",ref:te,class:"tab select-none",style:re(o(z))},[(u(!0),M(ve,null,ke(o(m),(N,fe)=>(u(),M("div",{ref_for:!0,ref:"dynamic"+fe,key:fe,class:de(["scroll-item is-closable",o(H)(N)]),onContextmenu:Fe(ze=>kn(N,ze),["prevent"]),onMouseenter:Fe(ze=>o(q)(fe),["prevent"]),onMouseleave:Fe(ze=>o(le)(fe),["prevent"]),onClick:ze=>xn(N)},[b("span",cs,ae(o(ee)(N.meta.title)),1),o(Z)(N,fe)||fe===o(k)&&fe!==0?(u(),M("span",{key:0,class:"el-icon-close",onClick:Fe(ze=>ce(N),["stop"])},[f(E,{icon:o(e)},null,8,["icon"])],8,us)):X("",!0),o(p)!=="card"?(u(),M("span",{key:1,ref_for:!0,ref:"schedule"+fe,class:de([o(U)(N)])},null,2)):X("",!0)],42,is))),128))],4)],544),ie(b("span",ds,[f(E,{icon:o(ro),onClick:A[1]||(A[1]=N=>J(-200))},null,8,["icon"])],512),[[xe,Ve.value]]),f(Et,{name:"el-zoom-in-top"},{default:x(()=>[ie((u(),M("ul",{ref_key:"contextmenuRef",ref:Ce,key:Math.random(),style:re(o(Q)),class:"contextmenu"},[(u(!0),M(ve,null,ke(o(d).slice(0,6),(N,fe)=>(u(),M("div",{key:fe,style:{display:"flex","align-items":"center"}},[N.show?(u(),M("li",{key:0,onClick:ze=>Ft(fe,N)},[f(E,{icon:N.icon},null,8,["icon"]),pe(" "+ae(o(ee)(N.text)),1)],8,hs)):X("",!0)]))),128))],4)),[[xe,o(c)]])]),_:1}),f(F,{trigger:"click",placement:"bottom-end",onCommand:we},{dropdown:x(()=>[f(ue,null,{default:x(()=>[(u(!0),M(ve,null,ke(o(d),(N,fe)=>(u(),R(G,{key:fe,command:{key:fe,item:N},divided:N.divided,disabled:N.disabled},{default:x(()=>[f(E,{icon:N.icon},null,8,["icon"]),pe(" "+ae(o(ee)(N.text)),1)]),_:2},1032,["command","divided","disabled"]))),128))]),_:1})]),default:x(()=>[b("span",fs,[f(E,{icon:o(as),class:"dark:text-white"},null,8,["icon"])])]),_:1})],512))}}}),ms=_e(ps,[["__scopeId","data-v-005b6461"]]),vs={class:"layout-footer text-[rgba(0,0,0,0.6)] dark:text-[rgba(220,220,242,0.8)]"},_s={class:"hover:text-primary",href:"https://github.com/pure-admin",target:"_blank"},gs=ne({__name:"index",setup(t){const e=Ge("Title");return(n,a)=>(u(),M("footer",vs,[pe(" Copyright © 2020-present "),b("a",_s,"  "+ae(o(e)),1)]))}}),on=_e(gs,[["__scopeId","data-v-44b5e275"]]),nt=new Map,ys=()=>{function t(a,c){nt.set(a,c)}function e(a){return a?nt.get(a):[...nt.entries()]}function n(a){nt.delete(a)}return{setMap:t,getMap:e,delMap:n,MAP:nt}},bs={class:"w-full h-full"},ws=ne({__name:"index",props:{currRoute:{},currComp:{}},setup(t){const e=t,n=It([]),{setMap:a,getMap:c,MAP:s,delMap:l}=ys(),m=j(()=>{var v,w;return Ge().KeepAlive&&((v=e.currRoute.meta)==null?void 0:v.keepAlive)&&!!((w=e.currRoute.meta)!=null&&w.frameSrc)}),d=j(()=>!m.value&&e.currComp);return Ae(Re().multiTags,v=>{if(!Array.isArray(v)||!m.value)return;if(v.filter(p=>{var g;return(g=p.meta)==null?void 0:g.frameSrc}).lengthg.path===p)||(l(p),n.value=c())}),Ae(()=>e.currRoute.fullPath,v=>{const p=Re().multiTags.filter(g=>{var y;return(y=g.meta)==null?void 0:y.frameSrc});m.value&&p.length!==s.size&&([...s.keys()].find(y=>v===y)||a(v,e.currComp)),s.size>0&&(n.value=c())},{immediate:!0}),(v,w)=>(u(),M(ve,null,[(u(!0),M(ve,null,ke(n.value,([p,g])=>{var y;return ie((u(),M("div",{key:p,class:"w-full h-full"},[dt(v.$slots,"default",{fullPath:p,Comp:g,frameInfo:{frameSrc:(y=v.currRoute.meta)==null?void 0:y.frameSrc,fullPath:p}})],512)),[[xe,p===e.currRoute.fullPath]])}),128)),ie(b("div",bs,[dt(v.$slots,"default",{Comp:d.value,fullPath:e.currRoute.fullPath})],512),[[xe,!m.value]])],64))}}),ks={class:"grow"},xs={key:1,class:"grow"},Cs=ne({__name:"appMain",props:{fixedHeader:Boolean},setup(t){const e=t,{$storage:n,$config:a}=pt(),c=j(()=>a==null?void 0:a.KeepAlive),s=j(()=>p=>p.meta.transition),l=j(()=>n==null?void 0:n.configure.hideTabs),m=j(()=>n==null?void 0:n.configure.hideFooter),d=j(()=>(n==null?void 0:n.layout.layout)==="vertical"),v=j(()=>[l.value&&d?"padding-top: 48px;":"",!l.value&&d?"padding-top: 85px;":"",l.value&&!d.value?"padding-top: 48px;":"",!l.value&&!d.value?"padding-top: 85px;":"",e.fixedHeader?"":`padding-top: 0;${l.value?"min-height: calc(100vh - 48px);":"min-height: calc(100vh - 86px);"}`]),w=ne({props:{route:{type:void 0,required:!0}},render(){var k,z,C;const p=((k=s.value(this.route))==null?void 0:k.name)||"fade-transform",g=(z=s.value(this.route))==null?void 0:z.enterTransition,y=(C=s.value(this.route))==null?void 0:C.leaveTransition;return at(Et,{name:g?"pure-classes-transition":p,enterActiveClass:g?`animate__animated ${g}`:void 0,leaveActiveClass:y?`animate__animated ${y}`:void 0,mode:"out-in",appear:!0},{default:()=>[this.$slots.default()]})}});return(p,g)=>{const y=V("el-backtop"),k=V("el-scrollbar"),z=V("router-view");return u(),M("section",{class:de([e.fixedHeader?"app-main":"app-main-nofixed-header"]),style:re(v.value)},[f(z,null,{default:x(({Component:C,route:Z})=>[f(ws,{currComp:C,currRoute:Z},{default:x(({Comp:H,fullPath:L,frameInfo:U})=>[e.fixedHeader?(u(),R(k,{key:0,"wrap-style":{display:"flex","flex-wrap":"wrap"},"view-style":{display:"flex",flex:"auto",overflow:"auto","flex-direction":"column"}},{default:x(()=>[f(y,{title:"回到顶部",target:".app-main .el-scrollbar__wrap"},{default:x(()=>[f(o(fn))]),_:1}),b("div",ks,[f(o(w),{route:Z},{default:x(()=>[c.value?(u(),R(Yt,{key:0,include:o(Te)().cachePageList},[(u(),R(Le(H),{key:L,frameInfo:U,class:"main-content"},null,8,["frameInfo"]))],1032,["include"])):(u(),R(Le(H),{key:L,frameInfo:U,class:"main-content"},null,8,["frameInfo"]))]),_:2},1032,["route"])]),m.value?X("",!0):(u(),R(on,{key:0}))]),_:2},1024)):(u(),M("div",xs,[f(o(w),{route:Z},{default:x(()=>[c.value?(u(),R(Yt,{key:0,include:o(Te)().cachePageList},[(u(),R(Le(H),{key:L,frameInfo:U,class:"main-content"},null,8,["frameInfo"]))],1032,["include"])):(u(),R(Le(H),{key:L,frameInfo:U,class:"main-content"},null,8,["frameInfo"]))]),_:2},1032,["route"])]))]),_:2},1032,["currComp","currRoute"])]),_:1}),!m.value&&!e.fixedHeader?(u(),R(on,{key:0})):X("",!0)],6)}}}),an=_e(Cs,[["__scopeId","data-v-ca0a972a"]]),_n=t=>(cn("data-v-af01f247"),t=t(),un(),t),Is=_n(()=>b("div",{class:"right-panel-background"},null,-1)),$s={class:"project-configuration border-b-[1px] border-solid border-[var(--pure-border-color)]"},Ss=_n(()=>b("h4",{class:"dark:text-white"},"项目配置",-1)),Ms={class:"flex justify-end p-3 border-t-[1px] border-solid border-[var(--pure-border-color)]"},Ts=ne({__name:"index",setup(t){const e=O(null),n=O(!1),a=j(()=>["w-[22px]","h-[22px]","flex","justify-center","items-center","outline-none","rounded-[4px]","cursor-pointer","transition-colors","hover:bg-[#0000000f]","dark:hover:bg-[#ffffff1f]","dark:hover:text-[#ffffffd9]"]),{onReset:c}=Rt();return rn(e,s=>{s.clientX>e.value.offsetLeft||(n.value=!1)}),Ue(()=>{Me.on("openPanel",()=>{n.value=!0})}),At(()=>{Me.off("openPanel")}),(s,l)=>{const m=V("IconifyIconOffline"),d=V("el-scrollbar"),v=V("el-button"),w=Qe("tippy");return u(),M("div",{class:de({show:n.value})},[Is,b("div",{ref_key:"target",ref:e,class:"right-panel bg-bg_color"},[b("div",$s,[Ss,ie((u(),M("span",{class:de(a.value)},[f(m,{class:"dark:text-white",width:"18px",height:"18px",icon:o(ht),onClick:l[0]||(l[0]=p=>n.value=!n.value)},null,8,["icon"])],2)),[[w,{content:"关闭配置",placement:"bottom-start",zIndex:41e3}]])]),f(d,null,{default:x(()=>[dt(s.$slots,"default",{},void 0,!0)]),_:3}),b("div",Ms,[ie((u(),R(v,{type:"danger",text:"",bg:"",onClick:o(c)},{default:x(()=>[pe(" 清空缓存 ")]),_:1},8,["onClick"])),[[w,{content:"清空缓存并返回登录页",placement:"left-start",zIndex:41e3}]])])],512)],2)}}}),Vs=_e(Ts,[["__scopeId","data-v-af01f247"]]),zs={xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",class:"icon",viewBox:"0 0 1024 1024"},Hs=b("path",{d:"M554 849.574c0 23.365-18.635 42.307-42 42.307s-42-18.941-42-42.307V662.719c0-23.365 18.635-42.307 42-42.307v-7.051c23.365 0 42 25.993 42 49.358z"},null,-1),Ls=b("path",{d:"M893 888.5c0 17.397-14.103 31.5-31.5 31.5h-700c-17.397 0-31.5-14.103-31.5-31.5s14.103-31.5 31.5-31.5h700c17.397 0 31.5 14.103 31.5 31.5m33-714.074C926 135.484 894.686 105 855.744 105H168.256C129.314 105 98 135.484 98 174.426V533h828zM98 630.988C98 669.931 129.314 702 168.256 702h687.488C894.686 702 926 669.931 926 630.988V596H98z"},null,-1),As=[Hs,Ls];function Es(t,e){return u(),M("svg",zs,[...As])}const Zs={render:Es},be=t=>(cn("data-v-3586024f"),t=t(),un(),t),Os={class:"p-6"},Rs=be(()=>b("p",{class:"mb-3 font-medium text-sm dark:text-white"},"整体风格",-1)),Ps=be(()=>b("p",{class:"mt-5 mb-3 font-medium text-sm dark:text-white"},"主题色",-1)),Ds={class:"theme-color"},js=["onClick"],qs=be(()=>b("p",{class:"mt-5 mb-3 font-medium text-sm dark:text-white"},"导航模式",-1)),Bs={class:"pure-theme"},Fs=be(()=>b("div",null,null,-1)),Ns=be(()=>b("div",null,null,-1)),Us=[Fs,Ns],Ws=be(()=>b("div",null,null,-1)),Gs=be(()=>b("div",null,null,-1)),Ks=[Ws,Gs],Ys=be(()=>b("div",null,null,-1)),Xs=be(()=>b("div",null,null,-1)),Js=[Ys,Xs],Qs=be(()=>b("p",{class:"mt-5 mb-3 font-medium text-base dark:text-white"},"页签风格",-1)),el=be(()=>b("p",{class:"mt-5 mb-1 font-medium text-sm dark:text-white"},"界面显示",-1)),tl={class:"setting"},nl=be(()=>b("span",{class:"dark:text-white"},"灰色模式",-1)),ol=be(()=>b("span",{class:"dark:text-white"},"色弱模式",-1)),al=be(()=>b("span",{class:"dark:text-white"},"隐藏标签页",-1)),sl=be(()=>b("span",{class:"dark:text-white"},"隐藏页脚",-1)),ll=be(()=>b("span",{class:"dark:text-white"},"Logo",-1)),rl=be(()=>b("span",{class:"dark:text-white"},"页签持久化",-1)),il=ne({__name:"index",setup(t){var $,W,se,J;const{device:e}=Ze(),{isDark:n}=dn(),{$storage:a}=pt(),c=O(),s=O(),l=O(),{dataTheme:m,overallStyle:d,layoutTheme:v,themeColors:w,toggleClass:p,dataThemeChange:g,setLayoutThemeColor:y}=Rt();if(o(v)){const i=o(v).layout,h=o(v).theme;eo({scopeName:`layout-theme-${h}`}),Ce(i)}const k=O((W=($=a.configure)==null?void 0:$.showModel)!=null?W:"smart"),z=O((J=(se=a.configure)==null?void 0:se.showLogo)!=null?J:!0),C=Lt({greyVal:a.configure.grey,weakVal:a.configure.weak,tabsVal:a.configure.hideTabs,showLogo:a.configure.showLogo,showModel:a.configure.showModel,hideFooter:a.configure.hideFooter,multiTagsCache:a.configure.multiTagsCache}),Z=j(()=>i=>({background:i})),H=j(()=>i=>!(i==="light"&&n.value));function L(i,h){const I=a.configure;I[i]=h,a.configure=I}const U=i=>{p(C.greyVal,"html-grey",document.querySelector("html")),L("grey",i)},Q=i=>{p(C.weakVal,"html-weakness",document.querySelector("html")),L("weak",i)},T=()=>{const i=C.tabsVal;L("hideTabs",i),Me.emit("tagViewsChange",i)},D=()=>{const i=C.hideFooter;L("hideFooter",i)},q=()=>{const i=C.multiTagsCache;L("multiTagsCache",i),Re().multiTagsCacheChange(i)};function le({option:i}){const{value:h}=i;k.value=h,L("showModel",h),Me.emit("tagViewsShowModel",h)}function ee(){o(z)?L("showLogo",!0):L("showLogo",!1),Me.emit("logoChange",o(z))}function P(i){i.forEach(h=>{p(!1,"is-select",o(h))})}const te=j(()=>i=>i===v.value.theme&&v.value.theme!=="light"?"#fff":i===v.value.theme&&v.value.theme==="light"?"#1d2b45":"transparent"),ye=j(()=>[{label:"浅色",icon:to,theme:"light",tip:"清新启航,点亮舒适的工作界面",iconAttrs:{fill:n.value?"#fff":"#000"}},{label:"深色",icon:no,theme:"dark",tip:"月光序曲,沉醉于夜的静谧雅致",iconAttrs:{fill:n.value?"#fff":"#000"}},{label:"自动",icon:Zs,theme:"system",tip:"同步时光,界面随晨昏自然呼应",iconAttrs:{fill:n.value?"#fff":"#000"}}]),ge=[{label:"灵动",tip:"灵动标签,添趣生辉",value:"smart"},{label:"卡片",tip:"卡片标签,高效浏览",value:"card"}];function Ce(i){var h,I,K,Y,ce;v.value.layout=i,window.document.body.setAttribute("layout",i),a.layout={layout:i,theme:v.value.theme,darkMode:(h=a.layout)==null?void 0:h.darkMode,sidebarStatus:(I=a.layout)==null?void 0:I.sidebarStatus,epThemeColor:(K=a.layout)==null?void 0:K.epThemeColor,themeColor:(Y=a.layout)==null?void 0:Y.themeColor,overallStyle:(ce=a.layout)==null?void 0:ce.overallStyle},We().setLayout(i)}Ae(a,({layout:i})=>{switch(i.layout){case"vertical":p(!0,"is-select",o(s)),Je(P([l]),50),Je(P([c]),50);break;case"horizontal":p(!0,"is-select",o(l)),Je(P([s]),50),Je(P([c]),50);break;case"mix":p(!0,"is-select",o(c)),Je(P([s]),50),Je(P([l]),50);break}});const Ve=window.matchMedia("(prefers-color-scheme: dark)");function Ie(){d.value==="system"&&(Ve.matches?m.value=!0:m.value=!1,g(d.value))}function r(){Ve.removeEventListener("change",Ie)}function _(){Ie(),r(),Ve.addEventListener("change",Ie)}return hn(()=>{Ne(()=>{var i,h;_(),C.greyVal&&((i=document.querySelector("html"))==null||i.setAttribute("class","html-grey")),C.weakVal&&((h=document.querySelector("html"))==null||h.setAttribute("class","html-weakness")),C.tabsVal&&T(),C.hideFooter&&D()})}),qn(()=>r),(i,h)=>{const I=V("IconifyIconOffline"),K=V("el-icon"),Y=V("el-switch"),ce=Qe("tippy");return u(),R(Vs,null,{default:x(()=>[b("div",Os,[Rs,f(o(Jt),{class:"select-none",modelValue:o(d)==="system"?2:o(m)?1:0,options:ye.value,onChange:h[0]||(h[0]=B=>{B.index===1&&B.index!==2?m.value=!0:m.value=!1,d.value=B.option.theme,o(g)(B.option.theme),B.index===2&&_()})},null,8,["modelValue","options"]),Ps,b("ul",Ds,[(u(!0),M(ve,null,ke(o(w),(B,we)=>ie((u(),M("li",{key:we,style:re(Z.value(B.color)),onClick:Ft=>o(y)(B.themeColor)},[f(K,{style:{margin:"0.1em 0.1em 0 0"},size:17,color:te.value(B.themeColor)},{default:x(()=>[f(I,{icon:o(Xe)},null,8,["icon"])]),_:2},1032,["color"])],12,js)),[[xe,H.value(B.themeColor)]])),128))]),qs,b("ul",Bs,[ie((u(),M("li",{ref_key:"verticalRef",ref:s,class:de(o(v).layout==="vertical"?"is-select":""),onClick:h[1]||(h[1]=B=>Ce("vertical"))},Us,2)),[[ce,{content:"左侧菜单,亲切熟悉",zIndex:41e3}]]),o(e)!=="mobile"?ie((u(),M("li",{key:0,ref_key:"horizontalRef",ref:l,class:de(o(v).layout==="horizontal"?"is-select":""),onClick:h[2]||(h[2]=B=>Ce("horizontal"))},Ks,2)),[[ce,{content:"顶部菜单,简洁概览",zIndex:41e3}]]):X("",!0),o(e)!=="mobile"?ie((u(),M("li",{key:1,ref_key:"mixRef",ref:c,class:de(o(v).layout==="mix"?"is-select":""),onClick:h[3]||(h[3]=B=>Ce("mix"))},Js,2)),[[ce,{content:"混合菜单,灵活多变",zIndex:41e3}]]):X("",!0)]),Qs,f(o(Jt),{class:"select-none",modelValue:k.value==="smart"?0:1,options:ge,onChange:le},null,8,["modelValue"]),el,b("ul",tl,[b("li",null,[nl,f(Y,{modelValue:C.greyVal,"onUpdate:modelValue":h[4]||(h[4]=B=>C.greyVal=B),"inline-prompt":"","active-text":"开","inactive-text":"关",onChange:U},null,8,["modelValue"])]),b("li",null,[ol,f(Y,{modelValue:C.weakVal,"onUpdate:modelValue":h[5]||(h[5]=B=>C.weakVal=B),"inline-prompt":"","active-text":"开","inactive-text":"关",onChange:Q},null,8,["modelValue"])]),b("li",null,[al,f(Y,{modelValue:C.tabsVal,"onUpdate:modelValue":h[6]||(h[6]=B=>C.tabsVal=B),"inline-prompt":"","active-text":"开","inactive-text":"关",onChange:T},null,8,["modelValue"])]),b("li",null,[sl,f(Y,{modelValue:C.hideFooter,"onUpdate:modelValue":h[7]||(h[7]=B=>C.hideFooter=B),"inline-prompt":"","active-text":"开","inactive-text":"关",onChange:D},null,8,["modelValue"])]),b("li",null,[ll,f(Y,{modelValue:z.value,"onUpdate:modelValue":h[8]||(h[8]=B=>z.value=B),"inline-prompt":"","active-value":!0,"inactive-value":!1,"active-text":"开","inactive-text":"关",onChange:ee},null,8,["modelValue"])]),b("li",null,[rl,f(Y,{modelValue:C.multiTagsCache,"onUpdate:modelValue":h[9]||(h[9]=B=>C.multiTagsCache=B),"inline-prompt":"","active-text":"开","inactive-text":"关",onChange:q},null,8,["modelValue"])])])])]),_:1})}}}),cl=_e(il,[["__scopeId","data-v-3586024f"]]),ul=["src"],dl={class:"sidebar-title"},hl=["src"],fl={class:"sidebar-title"},pl=ne({__name:"logo",props:{collapse:Boolean},setup(t){const e=t,{title:n,getLogo:a}=Ze();return(c,s)=>{const l=V("router-link");return u(),M("div",{class:de(["sidebar-logo-container",{collapses:e.collapse}])},[f(Et,{name:"sidebarLogoFade"},{default:x(()=>{var m,d,v,w;return[e.collapse?(u(),R(l,{key:"props.collapse",title:o(n),class:"sidebar-logo-link",to:(d=(m=o(ut)())==null?void 0:m.path)!=null?d:"/"},{default:x(()=>[b("img",{src:o(a)(),alt:"logo"},null,8,ul),b("span",dl,ae(o(n)),1)]),_:1},8,["title","to"])):(u(),R(l,{key:"expand",title:o(n),class:"sidebar-logo-link",to:(w=(v=o(ut)())==null?void 0:v.path)!=null?w:"/"},{default:x(()=>[b("img",{src:o(a)(),alt:"logo"},null,8,hl),b("span",fl,ae(o(n)),1)]),_:1},8,["title","to"]))]}),_:1})],2)}}}),ml=_e(pl,[["__scopeId","data-v-1e860333"]]);var rt={exports:{}},gn={},vl=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,n){e.super_=n,e.prototype=Object.create(n.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}})}:Mt.exports=function(e,n){e.super_=n;var a=function(){};a.prototype=n.prototype,e.prototype=new a,e.prototype.constructor=e};var _l=Mt.exports;(function(t){var e={},n=/%[sdj%]/g;t.format=function(r){if(!U(r)){for(var _=[],$=0;$=se)return h;switch(h){case"%s":return String(W[$++]);case"%d":return Number(W[$++]);case"%j":try{return JSON.stringify(W[$++])}catch(I){return"[Circular]"}default:return h}}),i=W[$];$=3&&($.depth=arguments[2]),arguments.length>=4&&($.colors=arguments[3]),C(_)?$.showHidden=_:_&&t._extend($,_),T($.showHidden)&&($.showHidden=!1),T($.depth)&&($.depth=2),T($.colors)&&($.colors=!1),T($.customInspect)&&($.customInspect=!0),$.colors&&($.stylize=l),v($,r,$.depth)}t.inspect=s,s.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]},s.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"};function l(r,_){var $=s.styles[_];return $?"\x1B["+s.colors[$][0]+"m"+r+"\x1B["+s.colors[$][1]+"m":r}function m(r,_){return r}function d(r){var _={};return r.forEach(function($,W){_[$]=!0}),_}function v(r,_,$){if(r.customInspect&&_&&P(_.inspect)&&_.inspect!==t.inspect&&!(_.constructor&&_.constructor.prototype===_)){var W=_.inspect($,r);return U(W)||(W=v(r,W,$)),W}var se=w(r,_);if(se)return se;var J=Object.keys(_),i=d(J);if(r.showHidden&&(J=Object.getOwnPropertyNames(_)),ee(_)&&(J.indexOf("message")>=0||J.indexOf("description")>=0))return p(_);if(J.length===0){if(P(_)){var h=_.name?": "+_.name:"";return r.stylize("[Function"+h+"]","special")}if(D(_))return r.stylize(RegExp.prototype.toString.call(_),"regexp");if(le(_))return r.stylize(Date.prototype.toString.call(_),"date");if(ee(_))return p(_)}var I="",K=!1,Y=["{","}"];if(z(_)&&(K=!0,Y=["[","]"]),P(_)){var ce=_.name?": "+_.name:"";I=" [Function"+ce+"]"}if(D(_)&&(I=" "+RegExp.prototype.toString.call(_)),le(_)&&(I=" "+Date.prototype.toUTCString.call(_)),ee(_)&&(I=" "+p(_)),J.length===0&&(!K||_.length==0))return Y[0]+I+Y[1];if($<0)return D(_)?r.stylize(RegExp.prototype.toString.call(_),"regexp"):r.stylize("[Object]","special");r.seen.push(_);var B;return K?B=g(r,_,$,i,J):B=J.map(function(we){return y(r,_,$,i,we,K)}),r.seen.pop(),k(B,I,Y)}function w(r,_){if(T(_))return r.stylize("undefined","undefined");if(U(_)){var $="'"+JSON.stringify(_).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return r.stylize($,"string")}if(L(_))return r.stylize(""+_,"number");if(C(_))return r.stylize(""+_,"boolean");if(Z(_))return r.stylize("null","null")}function p(r){return"["+Error.prototype.toString.call(r)+"]"}function g(r,_,$,W,se){for(var J=[],i=0,h=_.length;i-1&&(J?h=h.split(` `).map(function(K){return" "+K}).join(` `).substr(2):h=` `+h.split(` `).map(function(K){return" "+K}).join(` `))):h=r.stylize("[Circular]","special")),T(i)){if(J&&se.match(/^\d+$/))return h;i=JSON.stringify(""+se),i.match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(i=i.substr(1,i.length-2),i=r.stylize(i,"name")):(i=i.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),i=r.stylize(i,"string"))}return i+": "+h}function k(r,_,$){var W=r.reduce(function(se,J){return J.indexOf(` `)>=0,se+J.replace(/\u001b\[\d\d?m/g,"").length+1},0);return W>60?$[0]+(_===""?"":_+` `)+" "+r.join(`, `)+" "+$[1]:$[0]+_+" "+r.join(", ")+" "+$[1]}function z(r){return Array.isArray(r)}t.isArray=z;function C(r){return typeof r=="boolean"}t.isBoolean=C;function Z(r){return r===null}t.isNull=Z;function H(r){return r==null}t.isNullOrUndefined=H;function L(r){return typeof r=="number"}t.isNumber=L;function U(r){return typeof r=="string"}t.isString=U;function Q(r){return typeof r=="symbol"}t.isSymbol=Q;function T(r){return r===void 0}t.isUndefined=T;function D(r){return q(r)&&ye(r)==="[object RegExp]"}t.isRegExp=D;function q(r){return typeof r=="object"&&r!==null}t.isObject=q;function le(r){return q(r)&&ye(r)==="[object Date]"}t.isDate=le;function ee(r){return q(r)&&(ye(r)==="[object Error]"||r instanceof Error)}t.isError=ee;function P(r){return typeof r=="function"}t.isFunction=P;function te(r){return r===null||typeof r=="boolean"||typeof r=="number"||typeof r=="string"||typeof r=="symbol"||typeof r=="undefined"}t.isPrimitive=te,t.isBuffer=vl;function ye(r){return Object.prototype.toString.call(r)}function ge(r){return r<10?"0"+r.toString(10):r.toString(10)}var Ce=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function Ve(){var r=new Date,_=[ge(r.getHours()),ge(r.getMinutes()),ge(r.getSeconds())].join(":");return[r.getDate(),Ce[r.getMonth()],_].join(" ")}t.log=function(){console.log("%s - %s",Ve(),t.format.apply(t,arguments))},t.inherits=_l,t._extend=function(r,_){if(!_||!q(_))return r;for(var $=Object.keys(_),W=$.length;W--;)r[$[W]]=_[$[W]];return r};function Ie(r,_){return Object.prototype.hasOwnProperty.call(r,_)}})(gn);var gl={},yl=process.platform==="win32",Ee=gn;function vt(t,e){for(var n=[],a=0;a=0&&!t[a];a--);return n===0&&a===e?t:n>a?[]:t.slice(n,a+1)}var yn=/^([a-zA-Z]:|[\\\/]{2}[^\\\/]+[\\\/]+[^\\\/]+)?([\\\/])?([\s\S]*?)$/,bl=/^([\s\S]*?)((?:\.{1,2}|[^\\\/]+?|)(\.[^.\/\\]*|))(?:[\\\/]*)$/,he={};function _t(t){var e=yn.exec(t),n=(e[1]||"")+(e[2]||""),a=e[3]||"",c=bl.exec(a),s=c[1],l=c[2],m=c[3];return[n,s,l,m]}function Bt(t){var e=yn.exec(t),n=e[1]||"",a=!!n&&n[1]!==":";return{device:n,isUnc:a,isAbsolute:a||!!e[2],tail:e[3]}}function bn(t){return"\\\\"+t.replace(/^[\\\/]+/,"").replace(/[\\\/]+/g,"\\")}he.resolve=function(){for(var t="",e="",n=!1,a=arguments.length-1;a>=-1;a--){var c;if(a>=0?c=arguments[a]:t?(c=gl["="+t],(!c||c.substr(0,3).toLowerCase()!==t.toLowerCase()+"\\")&&(c=t+"\\")):c=process.cwd(),Ee.isString(c)){if(!c)continue}else throw new TypeError("Arguments to path.resolve must be strings");var s=Bt(c),l=s.device,m=s.isUnc,d=s.isAbsolute,v=s.tail;if(!(l&&t&&l.toLowerCase()!==t.toLowerCase())&&(t||(t=l),n||(e=v+"\\"+e,n=d),t&&n))break}return m&&(t=bn(t)),e=vt(e.split(/[\\\/]+/),!n).join("\\"),t+(n?"\\":"")+e||"."};he.normalize=function(t){var e=Bt(t),n=e.device,a=e.isUnc,c=e.isAbsolute,s=e.tail,l=/[\\\/]$/.test(s);return s=vt(s.split(/[\\\/]+/),!c).join("\\"),!s&&!c&&(s="."),s&&l&&(s+="\\"),a&&(n=bn(n)),n+(c?"\\":"")+s};he.isAbsolute=function(t){return Bt(t).isAbsolute};he.join=function(){for(var t=[],e=0;e=-1&&!e;n--){var a=n>=0?arguments[n]:process.cwd();if(Ee.isString(a)){if(!a)continue}else throw new TypeError("Arguments to path.resolve must be strings");t=a+"/"+t,e=a[0]==="/"}return t=vt(t.split("/"),!e).join("/"),(e?"/":"")+t||"."};me.normalize=function(t){var e=me.isAbsolute(t),n=t&&t[t.length-1]==="/";return t=vt(t.split("/"),!e).join("/"),!t&&!e&&(t="."),t&&n&&(t+="/"),(e?"/":"")+t};me.isAbsolute=function(t){return t.charAt(0)==="/"};me.join=function(){for(var t="",e=0;eWn(e.to.name)),a=c=>n.value?{href:c.name,target:"_blank",rel:"noopener"}:{to:c};return(c,s)=>(u(),R(Le(n.value?"a":"router-link"),Nn(Un(a(c.to))),{default:x(()=>[dt(c.$slots,"default")]),_:3},16))}}),Il={width:1024,height:1024,body:''},$l={width:1024,height:1024,body:''},Sl={width:1024,height:1024,body:''},Ml={width:1024,height:1024,body:''},wn=ne({__name:"sidebarItem",props:{item:{type:Object},isNest:{type:Boolean,default:!1},basePath:{type:String,default:""}},setup(t){const e=Gn(),{layout:n,isCollapse:a,tooltipEffect:c,getDivStyle:s}=Ze(),l=t,m=j(()=>({width:"100%",display:"flex",alignItems:"center"})),d=j(()=>({display:"flex",justifyContent:"center",alignItems:"center",margin:n.value==="horizontal"?"0 5px 0 0":a.value?"0 auto":"0 5px 0 0"})),v=j(()=>{var y;return(y=Ge())!=null&&y.MenuArrowIconNoTransition?{"expand-close-icon":Oe($l),"expand-open-icon":Oe(Il),"collapse-close-icon":Oe(Ml),"collapse-open-icon":Oe(Sl)}:""}),w=O(null);function p(y=[],k){var C,Z;const z=y.filter(H=>(w.value=H,!0));return(Z=(C=z[0])==null?void 0:C.meta)!=null&&Z.showParent?!1:z.length===1?!0:z.length===0?(w.value=kt(wt({},k),{path:"",noShowingChildren:!0}),!0):!1}function g(y){const k=/^http(s?):\/\//;return k.test(y)||k.test(l.basePath)?y||l.basePath:xl.posix.resolve(l.basePath,y)}return(y,k)=>{const z=V("el-text"),C=V("el-menu-item"),Z=V("sidebar-item",!0),H=V("el-sub-menu");return p(l.item.children,l.item)&&(!w.value.children||w.value.noShowingChildren)?(u(),R(Cl,{key:0,to:t.item},{default:x(()=>[f(C,Xt({index:g(w.value.path),class:{"submenu-title-noDropdown":!t.isNest},style:m.value},o(e)),{title:x(()=>[b("div",{style:re(o(s))},[f(o(Qt),{tippyProps:{offset:[0,-10],theme:o(c)},class:"!text-inherit"},{default:x(()=>[pe(ae(o(Pe)(w.value.meta.title)),1)]),_:1},8,["tippyProps"]),f(St,{extraIcon:w.value.meta.extraIcon},null,8,["extraIcon"])],4)]),default:x(()=>{var L,U,Q,T,D;return[Se(l.item.meta.icon)?(u(),M("div",{key:0,class:"sub-menu-icon",style:re(d.value)},[(u(),R(Le(o(Oe)(Se(w.value.meta.icon)||l.item.meta&&Se(l.item.meta.icon)))))],4)):X("",!0),!((L=l.item)!=null&&L.meta.icon)&&o(a)&&o(n)==="vertical"&&((Q=(U=l.item)==null?void 0:U.pathList)==null?void 0:Q.length)===1||!w.value.meta.icon&&o(a)&&o(n)==="mix"&&((D=(T=l.item)==null?void 0:T.pathList)==null?void 0:D.length)===2?(u(),R(z,{key:1,truncated:"",class:"!px-4 !text-inherit"},{default:x(()=>[pe(ae(o(Pe)(w.value.meta.title)),1)]),_:1})):X("",!0)]}),_:1},16,["index","class","style"])]),_:1},8,["to"])):(u(),R(H,Xt({key:1,ref:"subMenu",teleported:"",index:g(l.item.path)},v.value),{title:x(()=>[Se(l.item.meta.icon)?(u(),M("div",{key:0,style:re(d.value),class:"sub-menu-icon"},[(u(),R(Le(o(Oe)(l.item.meta&&Se(l.item.meta.icon)))))],4)):X("",!0),o(n)==="vertical"&&o(a)&&Se(l.item.meta.icon)&&l.item.parentId===null?X("",!0):(u(),R(o(Qt),{key:1,tippyProps:{offset:[0,-10],theme:o(c)},class:de({"!text-inherit":!0,"!px-4":o(n)!=="horizontal"&&o(a)&&!Se(l.item.meta.icon)&&l.item.parentId===null})},{default:x(()=>[pe(ae(o(Pe)(l.item.meta.title)),1)]),_:1},8,["tippyProps","class"])),o(a)?X("",!0):(u(),R(St,{key:2,extraIcon:l.item.meta.extraIcon},null,8,["extraIcon"]))]),default:x(()=>[(u(!0),M(ve,null,ke(l.item.children,L=>(u(),R(Z,{key:L.path,"is-nest":!0,item:L,"base-path":g(L.path),class:"nest-menu"},null,8,["item","base-path"]))),128))]),_:1},16,["index"]))}}}),Tl={class:"collapse-container"},Vl=ne({__name:"leftCollapse",props:{isActive:{type:Boolean,default:!1}},emits:["toggleClick"],setup(t,{emit:e}){const n=t,{tooltipEffect:a}=Ze(),c=j(()=>["ml-4","mb-1","w-[16px]","h-[16px]","inline-block","align-middle","cursor-pointer","duration-[100ms]"]),{$storage:s}=pt(),l=j(()=>{var v;return(v=s.layout)==null?void 0:v.themeColor}),m=e,d=()=>{m("toggleClick")};return(v,w)=>{const p=V("IconifyIconOffline"),g=Qe("tippy");return u(),M("div",Tl,[ie(f(p,{icon:o(vn),class:de([c.value,l.value==="light"?"":"text-primary"]),style:re({transform:n.isActive?"none":"rotateY(180deg)"}),onClick:d},null,8,["icon","class","style"]),[[g,{content:n.isActive?"点击折叠":"点击展开",theme:o(a),hideOnClick:"toggle",placement:"right"}]])])}}}),zl=_e(Vl,[["__scopeId","data-v-d14bd14d"]]),Hl=ne({__name:"vertical",setup(t){var k,z;const e=Ht(),n=O((z=(k=je().getItem(`${ot()}configure`))==null?void 0:k.showLogo)!=null?z:!0),{device:a,pureApp:c,isCollapse:s,tooltipEffect:l,menuSelect:m,toggleSideBar:d}=Ze(),v=O([]),w=j(()=>c.layout==="mix"&&a.value!=="mobile"?v.value:Te().wholeMenus),p=j(()=>c.layout==="mix"?!1:w.value.length===0),g=j(()=>{var C;return Ke((C=e.meta)==null?void 0:C.activePath)?e.path:e.meta.activePath});function y(){let C="";C=g.value,v.value=[];const Z=zt(C,Te().wholeMenus),H=ct(Z[0]||C,Te().wholeMenus);H!=null&&H.children&&(v.value=H==null?void 0:H.children)}return Ae(()=>[e.path,Te().wholeMenus],()=>{e.path.includes("/redirect")||(y(),m(e.path))}),Ue(()=>{y(),Me.on("logoChange",C=>{n.value=C})}),At(()=>{Me.off("logoChange")}),(C,Z)=>{const H=V("el-menu"),L=V("el-scrollbar"),U=Qe("loading");return ie((u(),M("div",{class:de(["sidebar-container",n.value?"has-logo":"no-logo"])},[n.value?(u(),R(ml,{key:0,collapse:o(s)},null,8,["collapse"])):X("",!0),f(L,{"wrap-class":"scrollbar-wrapper",class:de([o(a)==="mobile"?"mobile":"pc"])},{default:x(()=>[f(H,{router:"","unique-opened":"",mode:"vertical","popper-class":"pure-scrollbar",class:"outer-most select-none",collapse:o(s),"collapse-transition":!1,"popper-effect":o(l),"default-active":g.value},{default:x(()=>[(u(!0),M(ve,null,ke(w.value,Q=>(u(),R(wn,{key:Q.path,item:Q,"base-path":Q.path,class:"outer-most select-none"},null,8,["item","base-path"]))),128))]),_:1},8,["collapse","popper-effect","default-active"])]),_:1},8,["class"]),o(a)!=="mobile"?(u(),R(zl,{key:1,"is-active":o(c).sidebar.opened,onToggleClick:o(d)},null,8,["is-active","onToggleClick"])):X("",!0)],2)),[[U,p.value]])}}}),Ll=_e(Hl,[["__scopeId","data-v-3752e90e"]]),Al={class:"horizontal-header"},El=["src"],Zl={class:"horizontal-header-right"},Ol={class:"check-zh"},Rl={class:"check-en"},Pl={class:"el-dropdown-link navbar-bg-hover"},Dl=["src"],jl={key:0,class:"dark:text-white"},ql=["title"],Bl=ne({__name:"horizontal",setup(t){const e=O(),{t:n,route:a,locale:c,translationCh:s,translationEn:l}=Zt(e),{title:m,logout:d,backTopMenu:v,onPanel:w,getLogo:p,username:g,userAvatar:y,avatarsStyle:k,getDropdownItemStyle:z,getDropdownItemClass:C}=Ze(),Z=j(()=>{var H;return Ke((H=a.meta)==null?void 0:H.activePath)?a.path:a.meta.activePath});return Ne(()=>{var H;(H=e.value)==null||H.handleResize()}),(H,L)=>{const U=V("el-menu"),Q=V("IconifyIconOffline"),T=V("el-dropdown-item"),D=V("el-dropdown-menu"),q=V("el-dropdown"),le=Qe("loading");return ie((u(),M("div",Al,[b("div",{class:"horizontal-header-left",onClick:L[0]||(L[0]=(...ee)=>o(v)&&o(v)(...ee))},[b("img",{src:o(p)(),alt:"logo"},null,8,El),b("span",null,ae(o(m)),1)]),f(U,{ref_key:"menuRef",ref:e,router:"",mode:"horizontal","popper-class":"pure-scrollbar",class:"horizontal-header-menu","default-active":Z.value},{default:x(()=>[(u(!0),M(ve,null,ke(o(Te)().wholeMenus,ee=>(u(),R(wn,{key:ee.path,item:ee,"base-path":ee.path},null,8,["item","base-path"]))),128))]),_:1},8,["default-active"]),b("div",Zl,[f(Dt,{id:"header-search"}),f(jt,{id:"header-notice"}),f(q,{id:"header-translation",trigger:"click"},{dropdown:x(()=>[f(D,{class:"translation"},{default:x(()=>[f(T,{style:re(o(z)(o(c),"zh")),class:de(["dark:!text-white",o(C)(o(c),"zh")]),onClick:o(s)},{default:x(()=>[ie(b("span",Ol,[f(Q,{icon:o(Xe)},null,8,["icon"])],512),[[xe,o(c)==="zh"]]),pe(" 简体中文 ")]),_:1},8,["style","class","onClick"]),f(T,{style:re(o(z)(o(c),"en")),class:de(["dark:!text-white",o(C)(o(c),"en")]),onClick:o(l)},{default:x(()=>[ie(b("span",Rl,[f(Q,{icon:o(Xe)},null,8,["icon"])],512),[[xe,o(c)==="en"]]),pe(" English ")]),_:1},8,["style","class","onClick"])]),_:1})]),default:x(()=>[f(o(Ot),{class:"navbar-bg-hover w-[40px] h-[48px] p-[11px] cursor-pointer outline-none"})]),_:1}),f(q,{trigger:"click"},{dropdown:x(()=>[f(D,{class:"logout"},{default:x(()=>[f(T,{onClick:o(d)},{default:x(()=>[f(Q,{icon:o(qt),style:{margin:"5px"}},null,8,["icon"]),pe(" "+ae(o(n)("buttons.hsLoginOut")),1)]),_:1},8,["onClick"])]),_:1})]),default:x(()=>[b("span",Pl,[b("img",{src:o(y),style:re(o(k))},null,12,Dl),o(g)?(u(),M("p",jl,ae(o(g)),1)):X("",!0)])]),_:1}),b("span",{class:"set-icon navbar-bg-hover",title:o(n)("buttons.hssystemSet"),onClick:L[1]||(L[1]=(...ee)=>o(w)&&o(w)(...ee))},[f(Q,{icon:o(mt)},null,8,["icon"])],8,ql)])])),[[le,o(Te)().wholeMenus.length===0]])}}}),Fl=_e(Bl,[["__scopeId","data-v-bb9dfcbc"]]),Nl={key:0},Ul=ne({__name:"index",setup(t){const e=O(),{isDark:n}=dn(),{layout:a}=oo(),c=ln(),s=Pt(),{$storage:l}=pt(),m=Lt({sidebar:j(()=>We().sidebar),device:j(()=>We().device),fixedHeader:j(()=>s.fixedHeader),classes:j(()=>({hideSidebar:!m.sidebar.opened,openSidebar:m.sidebar.opened,withoutAnimation:m.sidebar.withoutAnimation,mobile:m.device==="mobile"})),hideTabs:j(()=>l==null?void 0:l.configure.hideTabs)});function d(g){var y,k,z,C,Z,H;window.document.body.setAttribute("layout",g),l.layout={layout:`${g}`,theme:(y=l.layout)==null?void 0:y.theme,darkMode:(k=l.layout)==null?void 0:k.darkMode,sidebarStatus:(z=l.layout)==null?void 0:z.sidebarStatus,epThemeColor:(C=l.layout)==null?void 0:C.epThemeColor,themeColor:(Z=l.layout)==null?void 0:Z.themeColor,overallStyle:(H=l.layout)==null?void 0:H.overallStyle}}function v(g,y){We().toggleDevice(g),We().toggleSideBar(y,"resize")}let w=!0;ft(e,g=>{if(c)return;const y=g[0],[{inlineSize:k}]=y.borderBoxSize;k<=760?d("vertical"):d(We().layout),k>0&&k<=760?(v("mobile",!1),w=!0):k>760&&k<=990?w&&(v("desktop",!1),w=!1):k>990&&!m.sidebar.isClickCollapse?(v("desktop",!0),w=!0):(v("desktop",!1),w=!1)}),Ue(()=>{c&&v("mobile",!1)}),hn(()=>{var g;Rt().dataThemeChange((g=l.layout)==null?void 0:g.overallStyle)});const p=ne({render(){return at("div",{class:{"fixed-header":m.fixedHeader},style:[m.hideTabs&&a.value.includes("horizontal")?n.value?"box-shadow: 0 1px 4px #0d0d0d":"box-shadow: 0 1px 4px rgba(0, 21, 41, 0.08)":""]},{default:()=>[!s.hiddenSideBar&&(a.value.includes("vertical")||a.value.includes("mix"))?at(Ja):null,!s.hiddenSideBar&&a.value.includes("horizontal")?at(Fl):null,at(ms)]})}});return(g,y)=>{const k=V("el-backtop"),z=V("el-scrollbar");return u(),M("div",{ref_key:"appWrapperRef",ref:e,class:de(["app-wrapper",m.classes])},[ie(b("div",{class:"app-mask",onClick:y[0]||(y[0]=C=>o(We)().toggleSideBar())},null,512),[[xe,m.device==="mobile"&&m.sidebar.opened&&o(a).includes("vertical")]]),ie(f(Ll,null,null,512),[[xe,!o(s).hiddenSideBar&&(o(a).includes("vertical")||o(a).includes("mix"))]]),b("div",{class:de(["main-container",o(s).hiddenSideBar?"main-hidden":""])},[m.fixedHeader?(u(),M("div",Nl,[f(o(p)),f(an,{"fixed-header":m.fixedHeader},null,8,["fixed-header"])])):(u(),R(z,{key:1},{default:x(()=>[f(k,{title:"回到顶部",target:".main-container .el-scrollbar__wrap"},{default:x(()=>[f(o(fn))]),_:1}),f(o(p)),f(an,{"fixed-header":m.fixedHeader},null,8,["fixed-header"])]),_:1}))],2),f(cl)],2)}}}),hr=_e(Ul,[["__scopeId","data-v-e1cc1ddb"]]);export{hr as default};