var Sn=Object.defineProperty,$n=Object.defineProperties;var Mn=Object.getOwnPropertyDescriptors;var Wt=Object.getOwnPropertySymbols;var Tn=Object.prototype.hasOwnProperty,zn=Object.prototype.propertyIsEnumerable;var Gt=(t,e,n)=>e in t?Sn(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))zn.call(e,n)&&Gt(t,n,e[n]);return t},kt=(t,e)=>$n(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{di as ie,aq as Vn,at as Ge,au as Ln,e as u,k as M,f as b,d as ne,r as R,V as j,aL as ft,o as Ue,F as ve,l as ke,aI as le,c as P,I as He,u as o,B as oe,a3 as Ze,i as f,P as Tt,_ as _e,b as z,h as pe,C as Y,m as re,R as xe,af as Fe,a7 as Ae,aM as sn,n as Ne,aP as Hn,a9 as zt,H as An,bk as It,a8 as En,a1 as Te,dj as xt,w as x,bg as On,ar as je,aX as Ke,aE as Rn,L as ln,bl as $e,j as Qe,E as de,dk as Vt,dl as ct,a6 as Lt,dm as Pe,T as Pn,dn as Xe,as as ot,K as Ht,dp as Se,dq as st,dr as Zn,ds as it,a_ as qe,dt as ut,du as Dn,dv as rn,a as At,dw as Et,dx as Ct,dy as Kt,dz as jn,U as dt,dA as pt,dB as Xt,D as at,p as cn,q as un,ao as dn,N as hn,O as qn,Y as Je,J as Bn,G as Fn,am as Nn,ba as Un,dC as Wn,dD as Gn,X as Yt}from"./index-WfHhNpgX.js";import{d as Kn}from"./menu-DpbF6EVM.js";import{d as Xn}from"./home-filled-NADQtN-e.js";import{d as Yn}from"./git-branch-line-BhusJOme.js";import{d as Jn}from"./admin-line-CpqWPwjZ.js";import{d as Qn,u as Oe,a as Ot,g as Rt,b as Pt,t as eo,c as to,e as no,f as oo}from"./dark-CKuq8Q1S.js";import{u as We}from"./app-Dkdm5U1U.js";import{m as ao}from"./index-QpUUYT1t.js";import{u as St}from"./epTheme-BbhGEjVn.js";import{u as Re}from"./hooks-BN3_ji8y.js";import{S as so}from"./sortable.esm-6WsHlDA5.js";import{d as Ye}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-CA-oiBxG.js";import{R as Jt}from"./index-Csx_jgOb.js";import{R as Qt}from"./index-B-UNKb48.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:''},pn={width:24,height:24,body:''},mt={width:24,height:24,body:''},wo={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:''};ie("ep:menu",Kn);ie("ep:edit",io);ie("ep:set-up",co);ie("ep:guide",uo);ie("ep:monitor",ho);ie("ep:lollipop",fo);ie("ep:histogram",po);ie("ep:home-filled",Xn);ie("ri:bookmark-2-line",mo);ie("ri:file-ppt-2-line",vo);ie("ri:bank-card-line",_o);ie("ri:admin-fill",go);ie("ri:file-info-line",yo);ie("ri:git-branch-line",Yn);ie("ri:table-line",bo);ie("ri:search-line",pn);ie("ri:admin-line",Jn);ie("ri:settings-3-line",mt);ie("ri:artboard-line",wo);ie("ri:list-check",ko);ie("ri:ubuntu-fill",xo);ie("ri:information-line",Qn);ie("ri:terminal-window-line",Co);ie("ri:checkbox-circle-line",Io);const So=Vn({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 Zt(){return So(Ln)}const $o={xmlns:"http://www.w3.org/2000/svg",width:"20",height:"20","aria-hidden":"true",class:"iconify iconify--ant-design",viewBox:"0 0 1024 1024"},Mo=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),To=[Mo];function zo(t,e){return u(),M("svg",$o,[...To])}const mn={render:zo},Vo=["onMouseenter"],Lo={class:"result-item-title"},Ho=ne({__name:"SearchResult",props:{value:{},options:{}},emits:["update:value","enter"],setup(t,{expose:e,emit:n}){const a=R(),c=R(),s=n,l=Tt(),m=t,d=j(()=>k=>({background:(k==null?void 0:k.path)===v.value?St().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 L;const V=(L=l==null?void 0:l.proxy)==null?void 0:L.$refs[`resultItemRef${k}`];if(!V)return 0;const O=V[0].offsetTop+128;return O>c.value?O-c.value:0}return Ue(()=>{g()}),e({handleScroll:y}),(k,V)=>(u(),M("div",{ref_key:"resultRef",ref:a,class:"result"},[(u(!0),M(ve,null,ke(k.options,(C,O)=>{var L,H;return u(),M("div",{key:C.path,ref_for:!0,ref:"resultItemRef"+O,class:"result-item dark:bg-[#1d1d1d]",style:le(d.value(C)),onClick:p,onMouseenter:U=>w(C)},[(u(),P(He(o(Re)((L=C.meta)==null?void 0:L.icon)))),b("span",Lo,oe(o(Ze)((H=C.meta)==null?void 0:H.title)),1),f(o(mn))],44,Vo)}),128))],512))}}),Ao=_e(Ho,[["__scopeId","data-v-b88fa124"]]),Eo={xmlns:"http://www.w3.org/2000/svg",width:"20",height:"20","aria-hidden":"true",class:"iconify iconify--mdi",viewBox:"0 0 24 24"},Oo=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),Ro=[Oo];function Po(t,e){return u(),M("svg",Eo,[...Ro])}const Zo={render:Po},Do={width:24,height:24,body:''},jo={width:24,height:24,body:''},qo={class:"search-footer text-[#333] dark:text-white"},Bo={class:"search-footer-item"},Fo={class:"search-footer-item"},No={class:"search-footer-item"},Uo={key:0,class:"search-footer-total"},Wo=ne({__name:"SearchFooter",props:{total:{default:0}},setup(t){const e=t,{device:n}=Oe();return(a,c)=>{const s=z("IconifyIconOffline");return u(),M("div",qo,[b("span",Bo,[f(o(mn),{class:"icon"}),pe(" 确认 ")]),b("span",Fo,[f(s,{icon:o(Do),class:"icon"},null,8,["icon"]),f(s,{icon:o(jo),class:"icon"},null,8,["icon"]),pe(" 切换 ")]),b("span",No,[f(o(Zo),{class:"icon"}),pe(" 关闭 ")]),o(n)!=="mobile"&&e.total>0?(u(),M("p",Uo," 共"+oe(e.total)+"项 ",1)):Y("",!0)])}}}),Go=_e(Wo,[["__scopeId","data-v-f9c16431"]]),Ko={width:1024,height:1024,body:''},ht={width:1024,height:1024,body:''},Xo={class:"history-item-title"},Yo=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=z("IconifyIconOffline");return u(),M(ve,null,[(u(),P(He(o(Re)((d=s.item.meta)==null?void 0:d.icon)))),b("span",Xo,oe(o(Ze)((v=s.item.meta)==null?void 0:v.title)),1),re(f(m,{icon:o(Ko),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(Yo,[["__scopeId","data-v-a9dc41c7"]]),Jo=["onMouseenter"],Qo={class:"collect-container"},ea=["onMouseenter"],ta=ne({__name:"SearchHistory",props:{value:{},options:{}},emits:["update:value","enter","collect","delete","drag"],setup(t,{expose:e,emit:n}){const a=R(),c=R(),s=R(!1),l=n,m=Tt(),d=t,v=j(()=>T=>({background:(T==null?void 0:T.path)===p.value?St().epThemeColor:"",color:T.path===p.value?"#fff":"",fontSize:T.path===p.value?"16px":"14px"})),w=j(()=>({color:St().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 V(T){s.value=!0,l("delete",T)}function C(T){return tt(this,null,function*(){s.value||(p.value=T.path)})}function O(){l("enter")}function L(){c.value=window.innerHeight-window.innerHeight/10-140}ft(a,L);function H(T){var ee;const D=(ee=m==null?void 0:m.proxy)==null?void 0:ee.$refs[`historyItemRef${T}`];if(!D)return 0;const se=(Hn(D)?D[0]:D).offsetTop+128;return se>c.value?se-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}),L())})},{deep:!0,immediate:!0}),e({handleScroll:H}),(T,D)=>(u(),M("div",{ref_key:"historyRef",ref:a,class:"history"},[g.value.length?(u(),M(ve,{key:0},[b("div",{style:le(w.value)},"搜索历史",4),(u(!0),M(ve,null,ke(g.value,(q,se)=>(u(),M("div",{key:q.path,ref_for:!0,ref:"historyItemRef"+se,class:"history-item dark:bg-[#1d1d1d]",style:le(v.value(q)),onClick:O,onMouseenter:ee=>C(q)},[f(en,{item:q,onDeleteItem:V,onCollectItem:k},null,8,["item"])],44,Jo))),128))],64)):Y("",!0),y.value.length?(u(),M(ve,{key:1},[b("div",{style:le(w.value)}," 收藏"+oe(y.value.length>1?"(可拖拽排序)":""),5),b("div",Qo,[(u(!0),M(ve,null,ke(y.value,(q,se)=>(u(),M("div",{key:q.path,ref_for:!0,ref:"historyItemRef"+(se+g.value.length),class:"history-item dark:bg-[#1d1d1d]",style:le(v.value(q)),onClick:O,onMouseenter:ee=>C(q)},[f(en,{item:q,onDeleteItem:V},null,8,["item"])],44,ea))),128))])],64)):Y("",!0)],512))}}),na=_e(ta,[["__scopeId","data-v-9fa90bc8"]]),oa={class:"search-content"},tn="history",aa="collect",De="menu-search-history",Be="menu-search-collect",sa=ne({__name:"SearchModal",props:{value:{type:Boolean}},emits:["update:value"],setup(t,{emit:e}){const{device:n}=Oe(),a=e,c=t,s=zt(),{locale:l}=An(),m=R(""),d=R(),v=R(),w=R(),p=R(""),g=R(""),y=It([]),k=It([]),V=On(ee,300),C=Ge().MenuSearchHistory,O=R(null),L=j(()=>En(Te().wholeMenus)),H=j({get(){return c.value},set(i){a("update:value",i)}});Ae(()=>c.value,i=>{i&&ae()});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 se(i){const h=[];function I(K){K.forEach(X=>{h.push(X),X.children&&I(X.children)})}return I(i),h}function ee(){var h;const i=se(L.value);y.value=i.filter(I=>{var K,X;return m.value?Ze((K=I.meta)==null?void 0:K.title).toLocaleLowerCase().includes(m.value.toLocaleLowerCase().trim())||l.value==="zh"&&!Ke(ao(Ze((X=I.meta)==null?void 0:X.title).toLocaleLowerCase(),m.value.toLocaleLowerCase().trim())):!1}),p.value=((h=y.value)==null?void 0:h.length)>0?y.value[0].path:""}function Z(){H.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 X=(i.findIndex(ce=>ce.path===h)-1+i.length)%i.length;ge(X,I)}function ze(){const{options:i,currentPath:h,isResultOptions:I}=ye();if(i.length===0)return;const X=(i.findIndex(ce=>ce.path===h)+1)%i.length;ge(X,I)}function Ie(){const{options:i,currentPath:h,isResultOptions:I}=ye();if(i.length===0||h==="")return;const K=i.findIndex(X=>X.path===h);K!==-1&&(I?S():W(),s.push(i[K].path),Z())}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),ae()}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:aa})),q(Be,I)),ae()}function S(){const{path:i,meta:h}=y.value.find(B=>B.path===p.value),I=D(De),X=D(Be).some(B=>B.path===i),ce=I.findIndex(B=>B.path===i);X||(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 ae(){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",ze),(i,h)=>{const I=z("IconifyIconOffline"),K=z("el-input"),X=z("el-empty"),ce=z("el-scrollbar"),B=z("el-dialog");return u(),P(B,{modelValue:H.value,"onUpdate:modelValue":h[3]||(h[3]=we=>H.value=we),top:"5vh",class:"pure-search-dialog","show-close":!1,width:o(n)==="mobile"?"80vw":"40vw","before-close":Z,style:{borderRadius:"6px"},"append-to-body":"",onOpened:h[4]||(h[4]=we=>O.value.focus()),onClosed:h[5]||(h[5]=we=>O.value.blur())},{footer:x(()=>[f(Go,{total:y.value.length},null,8,["total"])]),default:x(()=>[f(K,{ref_key:"inputRef",ref:O,modelValue:m.value,"onUpdate:modelValue":h[0]||(h[0]=we=>m.value=we),size:"large",clearable:"",placeholder:"搜索菜单(中文模式下支持拼音搜索)",onInput:o(V)},{prefix:x(()=>[f(I,{icon:o(pn),class:"text-primary w-[24px] h-[24px]"},null,8,["icon"])]),_:1},8,["modelValue","onInput"]),b("div",oa,[f(ce,{ref_key:"scrollbarRef",ref:w,"max-height":"calc(90vh - 140px)"},{default:x(()=>[T.value?(u(),P(X,{key:0,description:"暂无搜索结果"})):Y("",!0),Q.value?(u(),P(na,{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"])):Y("",!0),U.value?(u(),P(Ao,{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"])):Y("",!0)]),_:1},512)])]),_:1},8,["modelValue","width"])}}}),la=_e(sa,[["__scopeId","data-v-ba7ee514"]]);function ra(t=!1){const e=R(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}=ra();function a(){n()}return(c,s)=>{const l=z("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(la),{value:o(e),"onUpdate:value":s[0]||(s[0]=m=>Rn(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"}]}],ia={class:"notice-container border-b-[1px] border-solid border-[#f0f0f0] dark:border-[#303030]"},ca={class:"notice-container-text"},ua={class:"notice-text-title text-[#000000d9] dark:text-white"},da={class:"notice-text-datetime text-[#00000073] dark:text-white"},ha=ne({__name:"noticeItem",props:{noticeItem:{type:Object,default:()=>{}}},setup(t){const e=t,n=R(null),a=R(!1),c=R(null),s=R(!1),{tooltipEffect:l}=Oe(),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 V,C;const g=z("el-avatar"),y=z("el-tooltip"),k=z("el-tag");return u(),M("div",ia,[e.noticeItem.avatar?(u(),P(g,{key:0,size:30,src:e.noticeItem.avatar,class:"notice-container-avatar"},null,8,["src"])):Y("",!0),b("div",ca,[b("div",ua,[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},oe(e.noticeItem.title),545)]),_:1},8,["effect","disabled","content","enterable"]),(V=e.noticeItem)!=null&&V.extra?(u(),P(k,{key:0,type:(C=e.noticeItem)==null?void 0:C.status,size:"small",class:"notice-title-extra"},{default:x(()=>{var O;return[pe(oe((O=e.noticeItem)==null?void 0:O.extra),1)]}),_:1},8,["type"])):Y("",!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]=O=>v(O,e.noticeItem.description))},oe(e.noticeItem.description),545)]),_:1},8,["effect","disabled","content"]),b("div",da,oe(e.noticeItem.datetime),1)])])}}}),fa=_e(ha,[["__scopeId","data-v-2a7dbc48"]]),pa={key:0},ma=ne({__name:"noticeList",props:{list:{type:Array,default:()=>[]}},setup(t){const e=t;return(n,a)=>{const c=z("el-empty");return e.list.length?(u(),M("div",pa,[(u(!0),M(ve,null,ke(e.list,(s,l)=>(u(),P(fa,{key:l,noticeItem:s},null,8,["noticeItem"]))),128))])):(u(),P(c,{key:1,description:"暂无消息"}))}}}),va={width:1024,height:1024,body:''},_a={class:"dropdown-badge navbar-bg-hover select-none"},ga={class:"header-notice-icon"},ya={key:1},ba={class:"noticeList-container"},wa=ne({__name:"index",setup(t){const e=R(0),n=R(nn),a=R(nn[0].key);return n.value.map(c=>e.value+=c.list.length),(c,s)=>{const l=z("IconifyIconOffline"),m=z("el-badge"),d=z("el-empty"),v=z("el-scrollbar"),w=z("el-tab-pane"),p=z("el-tabs"),g=z("el-dropdown-menu"),y=z("el-dropdown");return u(),P(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:le({width:n.value.length===0?"200px":"330px"})},{default:x(()=>[n.value.length===0?(u(),P(d,{key:0,description:"暂无消息","image-size":60})):(u(),M("span",ya,[(u(!0),M(ve,null,ke(n.value,k=>(u(),P(w,{key:k.key,label:`${k.name}(${k.list.length})`,name:`${k.key}`},{default:x(()=>[f(v,{"max-height":"330px"},{default:x(()=>[b("div",ba,[f(ma,{list:k.list},null,8,["list"])])]),_:2},1024)]),_:2},1032,["label","name"]))),128))]))]),_:1},8,["modelValue","style"])]),_:1})]),default:x(()=>[b("span",_a,[f(m,{value:e.value,max:99},{default:x(()=>[b("span",ga,[f(l,{icon:o(va)},null,8,["icon"])])]),_:1},8,["value"])])]),_:1})}}}),jt=_e(wa,[["__scopeId","data-v-33dc6db9"]]),ka={key:0,class:"flex justify-center items-center"},$t=ne({__name:"extraIcon",props:{extraIcon:{type:String,default:""}},setup(t){const e=t;return(n,a)=>e.extraIcon?(u(),M("div",ka,[(u(),P(He(o(Re)($e(e.extraIcon))),{class:"w-[30px] h-[30px]"}))])):Y("",!0)}}),qt={width:24,height:24,body:''},xa={key:0,class:"horizontal-header"},Ca={class:"select-none"},Ia={class:"horizontal-header-right"},Sa={class:"check-zh"},$a={class:"check-en"},Ma={class:"el-dropdown-link navbar-bg-hover select-none"},Ta=["src"],za={key:0,class:"dark:text-white"},Va=["title"],La=ne({__name:"mixNav",setup(t){const e=R(),n=R(null),{t:a,route:c,locale:s,translationCh:l,translationEn:m}=Ot(e),{device:d,logout:v,onPanel:w,resolvePath:p,username:g,userAvatar:y,getDivStyle:k,avatarsStyle:V,getDropdownItemStyle:C,getDropdownItemClass:O}=Oe();function L(H){var T,D,q;const U=Te().wholeMenus,Q=Vt(H,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(()=>{L(c.path)}),Ne(()=>{var H;(H=e.value)==null||H.handleResize()}),Ae(()=>[c.path,Te().wholeMenus],()=>{L(c.path)}),(H,U)=>{const Q=z("el-menu-item"),T=z("el-menu"),D=z("IconifyIconOffline"),q=z("el-dropdown-item"),se=z("el-dropdown-menu"),ee=z("el-dropdown"),Z=Qe("loading");return o(d)!=="mobile"?re((u(),M("div",xa,[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(),P(Q,{key:te.path,index:o(p)(te)||te.redirect},{title:x(()=>[$e(te.meta.icon)?(u(),M("div",{key:0,class:de(["sub-menu-icon",te.meta.icon])},[(u(),P(He(o(Re)(te.meta&&$e(te.meta.icon)))))],2)):Y("",!0),b("div",{style:le(o(k))},[b("span",Ca,oe(o(Ze)(te.meta.title)),1),f($t,{extraIcon:te.meta.extraIcon},null,8,["extraIcon"])],4)]),_:2},1032,["index"]))),128))]),_:1},8,["default-active"]),b("div",Ia,[f(Dt,{id:"header-search"}),f(jt,{id:"header-notice"}),f(ee,{id:"header-translation",trigger:"click"},{dropdown:x(()=>[f(se,{class:"translation"},{default:x(()=>[f(q,{style:le(o(C)(o(s),"zh")),class:de(["dark:!text-white",o(O)(o(s),"zh")]),onClick:o(l)},{default:x(()=>[re(b("span",Sa,[f(D,{icon:o(Ye)},null,8,["icon"])],512),[[xe,o(s)==="zh"]]),pe(" 简体中文 ")]),_:1},8,["style","class","onClick"]),f(q,{style:le(o(C)(o(s),"en")),class:de(["dark:!text-white",o(O)(o(s),"en")]),onClick:o(m)},{default:x(()=>[re(b("span",$a,[f(D,{icon:o(Ye)},null,8,["icon"])],512),[[xe,o(s)==="en"]]),pe(" English ")]),_:1},8,["style","class","onClick"])]),_:1})]),default:x(()=>[f(o(Rt),{class:"navbar-bg-hover w-[40px] h-[48px] p-[11px] cursor-pointer outline-none"})]),_:1}),f(ee,{trigger:"click"},{dropdown:x(()=>[f(se,{class:"logout"},{default:x(()=>[f(q,{onClick:o(v)},{default:x(()=>[f(D,{icon:o(qt),style:{margin:"5px"}},null,8,["icon"]),pe(" "+oe(o(a)("buttons.hsLoginOut")),1)]),_:1},8,["onClick"])]),_:1})]),default:x(()=>[b("span",Ma,[b("img",{src:o(y),style:le(o(V))},null,12,Ta),o(g)?(u(),M("p",za,oe(o(g)),1)):Y("",!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,Va)])])),[[Z,o(Te)().wholeMenus.length===0]]):Y("",!0)}}}),Ha=_e(La,[["__scopeId","data-v-63778524"]]),Aa=["onClick"],Ea=ne({__name:"breadCrumb",setup(t){const e=Lt(),n=R([]),a=zt(),c=a.options.routes,s=Pe().multiTags,l=()=>{let d;Object.keys(e.query).length>0?s.forEach(p=>{Xe(e.query,p==null?void 0:p.query)&&(d=$e(p))}):Object.keys(e.params).length>0?s.forEach(p=>{Xe(e.params,p==null?void 0:p.params)&&(d=$e(p))}):d=ct(a.currentRoute.value.path,c);const v=Vt(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,V;((k=y==null?void 0:y.meta)==null?void 0:k.title)===((V=p==null?void 0:p.meta)==null?void 0:V.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=z("el-breadcrumb-item"),p=z("el-breadcrumb");return u(),P(p,{class:"!leading-[50px] select-none",separator:"/"},{default:x(()=>[f(Pn,{name:"breadcrumb"},{default:x(()=>[(u(!0),M(ve,null,ke(n.value,g=>(u(),P(w,{key:g.path,class:"!inline !items-stretch"},{default:x(()=>[b("a",{onClick:Fe(y=>m(g),["prevent"])},oe(o(Ze)(g.meta.title)),9,Aa)]),_:2},1024))),128))]),_:1})]),_:1})}}}),vn={width:24,height:24,body:''},Oa={width:24,height:24,body:''},Ra=["title"],Pa=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=z("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(Oa),class:"inline-block align-middle hover:text-primary dark:hover:!text-white"},null,8,["icon"])],8,Ra)}}}),Za={class:"navbar bg-[#fff] shadow-sm shadow-[rgba(0,21,41,0.08)]"},Da={key:3,class:"vertical-header-right"},ja={class:"check-en"},qa={class:"el-dropdown-link navbar-bg-hover select-none"},Ba=["src"],Fa={key:0,class:"dark:text-white"},Na=["title"],Ua=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}=Oe(),{t:g,locale:y,translationCh:k,translationEn:V}=Ot();return(C,O)=>{const L=z("IconifyIconOffline"),H=z("el-dropdown-item"),U=z("el-dropdown-menu"),Q=z("el-dropdown");return u(),M("div",Za,[o(n)==="mobile"?(u(),P(Pa,{key:0,class:"hamburger-container","is-active":o(s).sidebar.opened,onToggleClick:o(v)},null,8,["is-active","onToggleClick"])):Y("",!0),o(e)!=="mix"&&o(n)!=="mobile"?(u(),P(Ea,{key:1,class:"breadcrumb-container"})):Y("",!0),o(e)==="mix"?(u(),P(Ha,{key:2})):Y("",!0),o(e)==="vertical"?(u(),M("div",Da,[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(H,{style:le(o(w)(o(y),"zh")),class:de(["dark:!text-white",o(p)(o(y),"zh")]),onClick:o(k)},{default:x(()=>[re(f(L,{class:"check-zh",icon:o(Ye)},null,8,["icon"]),[[xe,o(y)==="zh"]]),pe(" 简体中文 ")]),_:1},8,["style","class","onClick"]),f(H,{style:le(o(w)(o(y),"en")),class:de(["dark:!text-white",o(p)(o(y),"en")]),onClick:o(V)},{default:x(()=>[re(b("span",ja,[f(L,{icon:o(Ye)},null,8,["icon"])],512),[[xe,o(y)==="en"]]),pe(" English ")]),_:1},8,["style","class","onClick"])]),_:1})]),default:x(()=>[f(o(Rt),{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(H,{onClick:o(a)},{default:x(()=>[f(L,{icon:o(qt),style:{margin:"5px"}},null,8,["icon"]),pe(" "+oe(o(g)("buttons.hsLoginOut")),1)]),_:1},8,["onClick"])]),_:1})]),default:x(()=>[b("span",qa,[b("img",{src:o(m),style:le(o(d))},null,12,Ba),o(l)?(u(),M("p",Fa,oe(o(l)),1)):Y("",!0)])]),_:1}),b("span",{class:"set-icon navbar-bg-hover",title:o(g)("buttons.hssystemSet"),onClick:O[0]||(O[0]=(...T)=>o(c)&&o(c)(...T))},[f(L,{icon:o(mt)},null,8,["icon"])],8,Na)])):Y("",!0)])}}}),Wa=_e(Ua,[["__scopeId","data-v-0617a10c"]]),Ga={width:24,height:24,body:''},Ka={width:24,height:24,body:''},Xa={width:24,height:24,body:''},Ya={width:24,height:24,body:''};function Ja(){var se,ee;const t=Lt(),e=zt(),n=Tt(),a=Zt(),c=R(0),s=R(0),l=R(0),m=R(!1),d=R(-1),v=R({}),w=R(!1),p=R(((se=je().getItem(`${ot()}configure`))==null?void 0:se.showModel)||"smart"),g=(ee=R(je().getItem(`${ot()}configure`).hideTabs))!=null?ee:R("false"),y=j(()=>Pe().multiTags),k=Ht([{icon:lo,text:Se("buttons.hsreload"),divided:!1,disabled:!1,show:!0},{icon:ht,text:Se("buttons.hscloseCurrentTab"),divided:!1,disabled:!(y.value.length>1),show:!0},{icon:Ya,text:Se("buttons.hscloseLeftTabs"),divided:!0,disabled:!(y.value.length>1),show:!0},{icon:Xa,text:Se("buttons.hscloseRightTabs"),divided:!1,disabled:!(y.value.length>1),show:!0},{icon:Ka,text:Se("buttons.hscloseOtherTabs"),divided:!0,disabled:!(y.value.length>2),show:!0},{icon:Ga,text:Se("buttons.hscloseAllTabs"),divided:!1,disabled:!(y.value.length>1),show:!0},{icon:st,text:Se("buttons.hswholeFullScreen"),divided:!0,disabled:!1,show:!0},{icon:st,text:Se("buttons.hscontentFullScreen"),divided:!1,disabled:!1,show:!0}]);function V(Z,te,ye){var ge,Ce;return Zn((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?Xe(t.query,Z.query)?te:ye:Xe(t.params,Z.params)?te:ye:t.path===Z.path?te:ye}const C=j(()=>(Z,te)=>{if(te!==0)return V(Z,!0,!1)}),O=j(()=>Z=>V(Z,"is-active","")),L=j(()=>Z=>V(Z,"schedule-active","")),H=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(Z){if(Z&&(d.value=Z),o(p)==="smart"){if(it(n.refs["schedule"+Z][0],"schedule-active"))return;qe(!0,"schedule-in",n.refs["schedule"+Z][0]),qe(!1,"schedule-out",n.refs["schedule"+Z][0])}else{if(it(n.refs["dynamic"+Z][0],"is-active"))return;qe(!0,"card-in",n.refs["dynamic"+Z][0]),qe(!1,"card-out",n.refs["dynamic"+Z][0])}}function D(Z){if(d.value=-1,o(p)==="smart"){if(it(n.refs["schedule"+Z][0],"schedule-active"))return;qe(!1,"schedule-in",n.refs["schedule"+Z][0]),qe(!0,"schedule-out",n.refs["schedule"+Z][0])}else{if(it(n.refs["dynamic"+Z][0],"is-active"))return;qe(!1,"card-in",n.refs["dynamic"+Z][0]),qe(!0,"card-out",n.refs["dynamic"+Z][0])}}function q(){a.hiddenSideBar?a.changeSetting({key:"hiddenSideBar",value:!1}):a.changeSetting({key:"hiddenSideBar",value:!0})}return Ue(()=>{if(!p.value){const Z=je().getItem(`${ot()}configure`);Z.showModel="card",je().setItem(`${ot()}configure`,Z)}}),{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:H,isScrolling:w,iconIsActive:C,linkIsActive:O,currentSelect:v,scheduleIsActive:L,getContextMenuStyle:U,$t:Se,closeMenu:Q,onMounted:Ue,onMouseenter:T,onMouseleave:D,transformI18n:Ze,onContentFullScreen:q}}const Qa={width:24,height:24,body:''},es={width:24,height:24,body:''};var ts={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 ns={class:"arrow-left"},os=["onContextmenu","onMouseenter","onMouseleave","onClick"],as={class:"tag-title dark:!text-text_color_primary dark:hover:!text-primary"},ss=["onClick"],ls={class:"arrow-right"},rs=["onClick"],is={class:"arrow-down"},cs=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:V,isScrolling:C,iconIsActive:O,linkIsActive:L,currentSelect:H,scheduleIsActive:U,getContextMenuStyle:Q,closeMenu:T,onMounted:D,onMouseenter:q,onMouseleave:se,transformI18n:ee,onContentFullScreen:Z}=Ja(),te=R(),ye=R(),ge=R(),Ce=R(),ze=R(!1),Ie=(Nt=ut())==null?void 0:Nt.path,{VITE_HIDE_HOME:r}=ts,{isFullscreen:_,toggle:S}=Dn(),W=()=>tt(this,null,function*(){yield Ne();const $=m.value.findIndex(A=>Ke(n.query)?Ke(n.params)?n.path===A.path:Xe(n.params,A.params):Xe(n.query,A.query));ae($)}),ae=$=>tt(this,null,function*(){var fe,Ve;yield Ne();const A=10;if(!l.refs["dynamic"+$])return;const E=l.refs["dynamic"+$][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?(Ve=te.value)==null?void 0:Ve.offsetWidth:0;F<=N?ze.value=!0:ze.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=$=>{var G;const A=ge.value?(G=ge.value)==null?void 0:G.offsetWidth:0,E=te.value?te.value.offsetWidth:0;$>0?g.value=Math.min(0,g.value+$):A=-(E-A)&&(g.value=Math.max(g.value+$,A-E)):g.value=0,C.value=!1},i=$=>{C.value=!0;const A=Math.abs($.deltaX)+Math.abs($.deltaY);let E=0;$.deltaX<0?E=A>0?A:100:E=A>0?-A:-100,h(E)},h=$=>{let E=Math.abs($);const G=()=>{const ue=Math.sign($)*Math.min(20,E);J(ue),E-=Math.abs(ue),E>0&&requestAnimationFrame(G)};requestAnimationFrame(G)};function I($){const A=m.value.some(G=>G.path===$);function E(G,ue){A||G.forEach(F=>{F.path===ue?Pe().handleTags("push",{path:ue,meta:F.meta,name:F.name}):F.children&&F.children.length>0&&E(F.children,ue)})}E(a.options.routes,$)}function K(){const{fullPath:$,query:A}=o(n);a.replace({path:"/redirect"+$,query:A}),Ct(n,"refresh")}function X($,A,E){var N,fe,Ve,Ut;const G=m.value.findIndex(Le=>{if(Le.query){if(Le.path===$.path)return Le.query===$.query}else if(Le.params){if(Le.path===$.path)return Le.params===$.params}else return Le.path===$.path}),ue=(Le,Cn,In)=>{In?Pe().handleTags("equal",[r==="false"?jn[0]:$e(ut()),$]):Pe().handleTags("splice","",{startIndex:Le,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=Pe().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(Le=>Le.path===n.path))return;(Ve=F[0])!=null&&Ve.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($,A){X($,$.path,A),Ct(n)}function B($,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},$){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:Pe().handleTags("splice","",{startIndex:1,length:m.value.length}),a.push(Ie),Ct(n);break;case 6:S(),setTimeout(()=>{_.value?(d[6].icon=Kt,d[6].text=Se("buttons.hswholeExitFullScreen")):(d[6].icon=st,d[6].text=Se("buttons.hswholeFullScreen"))},100);break;case 7:Z(),setTimeout(()=>{y.hiddenSideBar?(d[7].icon=Kt,d[7].text=Se("buttons.hscontentExitFullScreen")):(d[7].icon=st,d[7].text=Se("buttons.hscontentFullScreen"))},100);break}setTimeout(()=>{et(n.fullPath,n.query)})}function we($){const{key:A,item:E}=$;B(A,E)}function Ft($,A){T(),B($,A,H.value)}function yt($){Array.of(1,2,3,4,5).forEach(A=>{d[A].show=$})}function bt($){Array.of(1,2,3,4,5).forEach(A=>{d[A].disabled=$})}function et($,A={},E=!1){const G=m.value,ue=m.value.length;let F=-1;Ke(A)?F=G.findIndex(N=>N.path===$):F=G.findIndex(N=>Xe(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||$===`/redirect${Ie}`?bt(!0):bt(!1)}function kn($,A){T(),$.path===Ie?(yt(!1),d[0].show=!0):n.path!==$.path&&n.name!==$.name?(d[0].show=!1,et($.path,$.query)):m.value.length===2&&n.path!==$.path?(yt(!0),d[4].show=!1):n.path===$.path&&et($.path,$.query,!0),H.value=$;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,Zt().hiddenSideBar?v.value=A.clientY:v.value=A.clientY-40,Ne(()=>{c.value=!0})}function xn($){const{name:A,path:E}=$;A?$.query?a.push({name:A,query:$.query}):$.params?a.push({name:A,params:$.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=Se("buttons.hswholeFullScreen")}),D(()=>{l&&(et(n.fullPath),Me.on("tagViewsChange",$=>{o(s)!==$&&(s.value=$)}),Me.on("tagViewsShowModel",$=>{p.value=$}),Me.on("changLayoutRoute",$=>{I($),setTimeout(()=>{et($)})}),ft(ge,W),sn().then(()=>W()))}),At(()=>{Me.off("tagViewsChange"),Me.off("tagViewsShowModel"),Me.off("changLayoutRoute")}),($,A)=>{const E=z("IconifyIconOffline"),G=z("el-dropdown-item"),ue=z("el-dropdown-menu"),F=z("el-dropdown");return o(s)?Y("",!0):(u(),M("div",{key:0,ref_key:"containerDom",ref:ye,class:"tags-view"},[re(b("span",ns,[f(E,{icon:o(es),onClick:A[0]||(A[0]=N=>J(200))},null,8,["icon"])],512),[[xe,ze.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:le(o(V))},[(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(L)(N)]),onContextmenu:Fe(Ve=>kn(N,Ve),["prevent"]),onMouseenter:Fe(Ve=>o(q)(fe),["prevent"]),onMouseleave:Fe(Ve=>o(se)(fe),["prevent"]),onClick:Ve=>xn(N)},[b("span",as,oe(o(ee)(N.meta.title)),1),o(O)(N,fe)||fe===o(k)&&fe!==0?(u(),M("span",{key:0,class:"el-icon-close",onClick:Fe(Ve=>ce(N),["stop"])},[f(E,{icon:o(e)},null,8,["icon"])],8,ss)):Y("",!0),o(p)!=="card"?(u(),M("span",{key:1,ref_for:!0,ref:"schedule"+fe,class:de([o(U)(N)])},null,2)):Y("",!0)],42,os))),128))],4)],544),re(b("span",ls,[f(E,{icon:o(ro),onClick:A[1]||(A[1]=N=>J(-200))},null,8,["icon"])],512),[[xe,ze.value]]),f(Et,{name:"el-zoom-in-top"},{default:x(()=>[re((u(),M("ul",{ref_key:"contextmenuRef",ref:Ce,key:Math.random(),style:le(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:Ve=>Ft(fe,N)},[f(E,{icon:N.icon},null,8,["icon"]),pe(" "+oe(o(ee)(N.text)),1)],8,rs)):Y("",!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(),P(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(" "+oe(o(ee)(N.text)),1)]),_:2},1032,["command","divided","disabled"]))),128))]),_:1})]),default:x(()=>[b("span",is,[f(E,{icon:o(Qa),class:"dark:text-white"},null,8,["icon"])])]),_:1})],512))}}}),us=_e(cs,[["__scopeId","data-v-005b6461"]]),ds={class:"layout-footer text-[rgba(0,0,0,0.6)] dark:text-[rgba(220,220,242,0.8)]"},hs={class:"hover:text-primary",href:"https://github.com/pure-admin",target:"_blank"},fs=ne({__name:"index",setup(t){const e=Ge("Title");return(n,a)=>(u(),M("footer",ds,[pe(" Copyright © 2020-present "),b("a",hs,"  "+oe(o(e)),1)]))}}),on=_e(fs,[["__scopeId","data-v-44b5e275"]]),nt=new Map,ps=()=>{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}},ms={class:"w-full h-full"},vs=ne({__name:"index",props:{currRoute:{},currComp:{}},setup(t){const e=t,n=It([]),{setMap:a,getMap:c,MAP:s,delMap:l}=ps(),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(Pe().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=Pe().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 re((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)),re(b("div",ms,[dt(v.$slots,"default",{Comp:d.value,fullPath:e.currRoute.fullPath})],512),[[xe,!m.value]])],64))}}),_s={class:"grow"},gs={key:1,class:"grow"},ys=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,V,C;const p=((k=s.value(this.route))==null?void 0:k.name)||"fade-transform",g=(V=s.value(this.route))==null?void 0:V.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=z("el-backtop"),k=z("el-scrollbar"),V=z("router-view");return u(),M("section",{class:de([e.fixedHeader?"app-main":"app-main-nofixed-header"]),style:le(v.value)},[f(V,null,{default:x(({Component:C,route:O})=>[f(vs,{currComp:C,currRoute:O},{default:x(({Comp:L,fullPath:H,frameInfo:U})=>[e.fixedHeader?(u(),P(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",_s,[f(o(w),{route:O},{default:x(()=>[c.value?(u(),P(Xt,{key:0,include:o(Te)().cachePageList},[(u(),P(He(L),{key:H,frameInfo:U,class:"main-content"},null,8,["frameInfo"]))],1032,["include"])):(u(),P(He(L),{key:H,frameInfo:U,class:"main-content"},null,8,["frameInfo"]))]),_:2},1032,["route"])]),m.value?Y("",!0):(u(),P(on,{key:0}))]),_:2},1024)):(u(),M("div",gs,[f(o(w),{route:O},{default:x(()=>[c.value?(u(),P(Xt,{key:0,include:o(Te)().cachePageList},[(u(),P(He(L),{key:H,frameInfo:U,class:"main-content"},null,8,["frameInfo"]))],1032,["include"])):(u(),P(He(L),{key:H,frameInfo:U,class:"main-content"},null,8,["frameInfo"]))]),_:2},1032,["route"])]))]),_:2},1032,["currComp","currRoute"])]),_:1}),!m.value&&!e.fixedHeader?(u(),P(on,{key:0})):Y("",!0)],6)}}}),an=_e(ys,[["__scopeId","data-v-ca0a972a"]]),_n=t=>(cn("data-v-af01f247"),t=t(),un(),t),bs=_n(()=>b("div",{class:"right-panel-background"},null,-1)),ws={class:"project-configuration border-b-[1px] border-solid border-[var(--pure-border-color)]"},ks=_n(()=>b("h4",{class:"dark:text-white"},"项目配置",-1)),xs={class:"flex justify-end p-3 border-t-[1px] border-solid border-[var(--pure-border-color)]"},Cs=ne({__name:"index",setup(t){const e=R(null),n=R(!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}=Pt();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=z("IconifyIconOffline"),d=z("el-scrollbar"),v=z("el-button"),w=Qe("tippy");return u(),M("div",{class:de({show:n.value})},[bs,b("div",{ref_key:"target",ref:e,class:"right-panel bg-bg_color"},[b("div",ws,[ks,re((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",xs,[re((u(),P(v,{type:"danger",text:"",bg:"",onClick:o(c)},{default:x(()=>[pe(" 清空缓存 ")]),_:1},8,["onClick"])),[[w,{content:"清空缓存并返回登录页",placement:"left-start",zIndex:41e3}]])])],512)],2)}}}),Is=_e(Cs,[["__scopeId","data-v-af01f247"]]),Ss={xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",class:"icon",viewBox:"0 0 1024 1024"},$s=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),Ms=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),Ts=[$s,Ms];function zs(t,e){return u(),M("svg",Ss,[...Ts])}const Vs={render:zs},be=t=>(cn("data-v-3586024f"),t=t(),un(),t),Ls={class:"p-6"},Hs=be(()=>b("p",{class:"mb-3 font-medium text-sm dark:text-white"},"整体风格",-1)),As=be(()=>b("p",{class:"mt-5 mb-3 font-medium text-sm dark:text-white"},"主题色",-1)),Es={class:"theme-color"},Os=["onClick"],Rs=be(()=>b("p",{class:"mt-5 mb-3 font-medium text-sm dark:text-white"},"导航模式",-1)),Ps={class:"pure-theme"},Zs=be(()=>b("div",null,null,-1)),Ds=be(()=>b("div",null,null,-1)),js=[Zs,Ds],qs=be(()=>b("div",null,null,-1)),Bs=be(()=>b("div",null,null,-1)),Fs=[qs,Bs],Ns=be(()=>b("div",null,null,-1)),Us=be(()=>b("div",null,null,-1)),Ws=[Ns,Us],Gs=be(()=>b("p",{class:"mt-5 mb-3 font-medium text-base dark:text-white"},"页签风格",-1)),Ks=be(()=>b("p",{class:"mt-5 mb-1 font-medium text-sm dark:text-white"},"界面显示",-1)),Xs={class:"setting"},Ys=be(()=>b("span",{class:"dark:text-white"},"灰色模式",-1)),Js=be(()=>b("span",{class:"dark:text-white"},"色弱模式",-1)),Qs=be(()=>b("span",{class:"dark:text-white"},"隐藏标签页",-1)),el=be(()=>b("span",{class:"dark:text-white"},"隐藏页脚",-1)),tl=be(()=>b("span",{class:"dark:text-white"},"Logo",-1)),nl=be(()=>b("span",{class:"dark:text-white"},"页签持久化",-1)),ol=ne({__name:"index",setup(t){var S,W,ae,J;const{device:e}=Oe(),{isDark:n}=dn(),{$storage:a}=pt(),c=R(),s=R(),l=R(),{dataTheme:m,overallStyle:d,layoutTheme:v,themeColors:w,toggleClass:p,dataThemeChange:g,setLayoutThemeColor:y}=Pt();if(o(v)){const i=o(v).layout,h=o(v).theme;eo({scopeName:`layout-theme-${h}`}),Ce(i)}const k=R((W=(S=a.configure)==null?void 0:S.showModel)!=null?W:"smart"),V=R((J=(ae=a.configure)==null?void 0:ae.showLogo)!=null?J:!0),C=Ht({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}),O=j(()=>i=>({background:i})),L=j(()=>i=>!(i==="light"&&n.value));function H(i,h){const I=a.configure;I[i]=h,a.configure=I}const U=i=>{p(C.greyVal,"html-grey",document.querySelector("html")),H("grey",i)},Q=i=>{p(C.weakVal,"html-weakness",document.querySelector("html")),H("weak",i)},T=()=>{const i=C.tabsVal;H("hideTabs",i),Me.emit("tagViewsChange",i)},D=()=>{const i=C.hideFooter;H("hideFooter",i)},q=()=>{const i=C.multiTagsCache;H("multiTagsCache",i),Pe().multiTagsCacheChange(i)};function se({option:i}){const{value:h}=i;k.value=h,H("showModel",h),Me.emit("tagViewsShowModel",h)}function ee(){o(V)?H("showLogo",!0):H("showLogo",!1),Me.emit("logoChange",o(V))}function Z(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:Vs,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,X,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:(X=a.layout)==null?void 0:X.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(Z([l]),50),Je(Z([c]),50);break;case"horizontal":p(!0,"is-select",o(l)),Je(Z([s]),50),Je(Z([c]),50);break;case"mix":p(!0,"is-select",o(c)),Je(Z([s]),50),Je(Z([l]),50);break}});const ze=window.matchMedia("(prefers-color-scheme: dark)");function Ie(){d.value==="system"&&(ze.matches?m.value=!0:m.value=!1,g(d.value))}function r(){ze.removeEventListener("change",Ie)}function _(){Ie(),r(),ze.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=z("IconifyIconOffline"),K=z("el-icon"),X=z("el-switch"),ce=Qe("tippy");return u(),P(Is,null,{default:x(()=>[b("div",Ls,[Hs,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"]),As,b("ul",Es,[(u(!0),M(ve,null,ke(o(w),(B,we)=>re((u(),M("li",{key:we,style:le(O.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(Ye)},null,8,["icon"])]),_:2},1032,["color"])],12,Os)),[[xe,L.value(B.themeColor)]])),128))]),Rs,b("ul",Ps,[re((u(),M("li",{ref_key:"verticalRef",ref:s,class:de(o(v).layout==="vertical"?"is-select":""),onClick:h[1]||(h[1]=B=>Ce("vertical"))},js,2)),[[ce,{content:"左侧菜单,亲切熟悉",zIndex:41e3}]]),o(e)!=="mobile"?re((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"))},Fs,2)),[[ce,{content:"顶部菜单,简洁概览",zIndex:41e3}]]):Y("",!0),o(e)!=="mobile"?re((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"))},Ws,2)),[[ce,{content:"混合菜单,灵活多变",zIndex:41e3}]]):Y("",!0)]),Gs,f(o(Jt),{class:"select-none",modelValue:k.value==="smart"?0:1,options:ge,onChange:se},null,8,["modelValue"]),Ks,b("ul",Xs,[b("li",null,[Ys,f(X,{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,[Js,f(X,{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,[Qs,f(X,{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,[el,f(X,{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,[tl,f(X,{modelValue:V.value,"onUpdate:modelValue":h[8]||(h[8]=B=>V.value=B),"inline-prompt":"","active-value":!0,"inactive-value":!1,"active-text":"开","inactive-text":"关",onChange:ee},null,8,["modelValue"])]),b("li",null,[nl,f(X,{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})}}}),al=_e(ol,[["__scopeId","data-v-3586024f"]]),sl=["src"],ll={class:"sidebar-title"},rl=["src"],il={class:"sidebar-title"},cl=ne({__name:"logo",props:{collapse:Boolean},setup(t){const e=t,{title:n,getLogo:a}=Oe();return(c,s)=>{const l=z("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(),P(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,sl),b("span",ll,oe(o(n)),1)]),_:1},8,["title","to"])):(u(),P(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,rl),b("span",il,oe(o(n)),1)]),_:1},8,["title","to"]))]}),_:1})],2)}}}),ul=_e(cl,[["__scopeId","data-v-1e860333"]]);var rt={exports:{}},gn={},dl=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 hl=Mt.exports;(function(t){var e={},n=/%[sdj%]/g;t.format=function(r){if(!U(r)){for(var _=[],S=0;S=ae)return h;switch(h){case"%s":return String(W[S++]);case"%d":return Number(W[S++]);case"%j":try{return JSON.stringify(W[S++])}catch(I){return"[Circular]"}default:return h}}),i=W[S];S=3&&(S.depth=arguments[2]),arguments.length>=4&&(S.colors=arguments[3]),C(_)?S.showHidden=_:_&&t._extend(S,_),T(S.showHidden)&&(S.showHidden=!1),T(S.depth)&&(S.depth=2),T(S.colors)&&(S.colors=!1),T(S.customInspect)&&(S.customInspect=!0),S.colors&&(S.stylize=l),v(S,r,S.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=s.styles[_];return S?"\x1B["+s.colors[S][0]+"m"+r+"\x1B["+s.colors[S][1]+"m":r}function m(r,_){return r}function d(r){var _={};return r.forEach(function(S,W){_[S]=!0}),_}function v(r,_,S){if(r.customInspect&&_&&Z(_.inspect)&&_.inspect!==t.inspect&&!(_.constructor&&_.constructor.prototype===_)){var W=_.inspect(S,r);return U(W)||(W=v(r,W,S)),W}var ae=w(r,_);if(ae)return ae;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(Z(_)){var h=_.name?": "+_.name:"";return r.stylize("[Function"+h+"]","special")}if(D(_))return r.stylize(RegExp.prototype.toString.call(_),"regexp");if(se(_))return r.stylize(Date.prototype.toString.call(_),"date");if(ee(_))return p(_)}var I="",K=!1,X=["{","}"];if(V(_)&&(K=!0,X=["[","]"]),Z(_)){var ce=_.name?": "+_.name:"";I=" [Function"+ce+"]"}if(D(_)&&(I=" "+RegExp.prototype.toString.call(_)),se(_)&&(I=" "+Date.prototype.toUTCString.call(_)),ee(_)&&(I=" "+p(_)),J.length===0&&(!K||_.length==0))return X[0]+I+X[1];if(S<0)return D(_)?r.stylize(RegExp.prototype.toString.call(_),"regexp"):r.stylize("[Object]","special");r.seen.push(_);var B;return K?B=g(r,_,S,i,J):B=J.map(function(we){return y(r,_,S,i,we,K)}),r.seen.pop(),k(B,I,X)}function w(r,_){if(T(_))return r.stylize("undefined","undefined");if(U(_)){var S="'"+JSON.stringify(_).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return r.stylize(S,"string")}if(H(_))return r.stylize(""+_,"number");if(C(_))return r.stylize(""+_,"boolean");if(O(_))return r.stylize("null","null")}function p(r){return"["+Error.prototype.toString.call(r)+"]"}function g(r,_,S,W,ae){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&&ae.match(/^\d+$/))return h;i=JSON.stringify(""+ae),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,_,S){var W=r.reduce(function(ae,J){return J.indexOf(` `)>=0,ae+J.replace(/\u001b\[\d\d?m/g,"").length+1},0);return W>60?S[0]+(_===""?"":_+` `)+" "+r.join(`, `)+" "+S[1]:S[0]+_+" "+r.join(", ")+" "+S[1]}function V(r){return Array.isArray(r)}t.isArray=V;function C(r){return typeof r=="boolean"}t.isBoolean=C;function O(r){return r===null}t.isNull=O;function L(r){return r==null}t.isNullOrUndefined=L;function H(r){return typeof r=="number"}t.isNumber=H;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 se(r){return q(r)&&ye(r)==="[object Date]"}t.isDate=se;function ee(r){return q(r)&&(ye(r)==="[object Error]"||r instanceof Error)}t.isError=ee;function Z(r){return typeof r=="function"}t.isFunction=Z;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=dl;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 ze(){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",ze(),t.format.apply(t,arguments))},t.inherits=hl,t._extend=function(r,_){if(!_||!q(_))return r;for(var S=Object.keys(_),W=S.length;W--;)r[S[W]]=_[S[W]];return r};function Ie(r,_){return Object.prototype.hasOwnProperty.call(r,_)}})(gn);var fl={},pl=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]*?)$/,ml=/^([\s\S]*?)((?:\.{1,2}|[^\\\/]+?|)(\.[^.\/\\]*|))(?:[\\\/]*)$/,he={};function _t(t){var e=yn.exec(t),n=(e[1]||"")+(e[2]||""),a=e[3]||"",c=ml.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=fl["="+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(),P(He(n.value?"a":"router-link"),Nn(Un(a(c.to))),{default:x(()=>[dt(c.$slots,"default")]),_:3},16))}}),bl={width:1024,height:1024,body:''},wl={width:1024,height:1024,body:''},kl={width:1024,height:1024,body:''},xl={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}=Oe(),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":Re(wl),"expand-open-icon":Re(bl),"collapse-close-icon":Re(xl),"collapse-open-icon":Re(kl)}:""}),w=R(null);function p(y=[],k){var C,O;const V=y.filter(L=>(w.value=L,!0));return(O=(C=V[0])==null?void 0:C.meta)!=null&&O.showParent?!1:V.length===1?!0:V.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:gl.posix.resolve(l.basePath,y)}return(y,k)=>{const V=z("el-text"),C=z("el-menu-item"),O=z("sidebar-item",!0),L=z("el-sub-menu");return p(l.item.children,l.item)&&(!w.value.children||w.value.noShowingChildren)?(u(),P(yl,{key:0,to:t.item},{default:x(()=>[f(C,Yt({index:g(w.value.path),class:{"submenu-title-noDropdown":!t.isNest},style:m.value},o(e)),{title:x(()=>[b("div",{style:le(o(s))},[f(o(Qt),{tippyProps:{offset:[0,-10],theme:o(c)},class:"!text-inherit"},{default:x(()=>[pe(oe(o(Ze)(w.value.meta.title)),1)]),_:1},8,["tippyProps"]),f($t,{extraIcon:w.value.meta.extraIcon},null,8,["extraIcon"])],4)]),default:x(()=>{var H,U,Q,T,D;return[$e(l.item.meta.icon)?(u(),M("div",{key:0,class:"sub-menu-icon",style:le(d.value)},[(u(),P(He(o(Re)($e(w.value.meta.icon)||l.item.meta&&$e(l.item.meta.icon)))))],4)):Y("",!0),!((H=l.item)!=null&&H.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(),P(V,{key:1,truncated:"",class:"!px-4 !text-inherit"},{default:x(()=>[pe(oe(o(Ze)(w.value.meta.title)),1)]),_:1})):Y("",!0)]}),_:1},16,["index","class","style"])]),_:1},8,["to"])):(u(),P(L,Yt({key:1,ref:"subMenu",teleported:"",index:g(l.item.path)},v.value),{title:x(()=>[$e(l.item.meta.icon)?(u(),M("div",{key:0,style:le(d.value),class:"sub-menu-icon"},[(u(),P(He(o(Re)(l.item.meta&&$e(l.item.meta.icon)))))],4)):Y("",!0),o(n)==="vertical"&&o(a)&&$e(l.item.meta.icon)&&l.item.parentId===null?Y("",!0):(u(),P(o(Qt),{key:1,tippyProps:{offset:[0,-10],theme:o(c)},class:de({"!text-inherit":!0,"!px-4":o(n)!=="horizontal"&&o(a)&&!$e(l.item.meta.icon)&&l.item.parentId===null})},{default:x(()=>[pe(oe(o(Ze)(l.item.meta.title)),1)]),_:1},8,["tippyProps","class"])),o(a)?Y("",!0):(u(),P($t,{key:2,extraIcon:l.item.meta.extraIcon},null,8,["extraIcon"]))]),default:x(()=>[(u(!0),M(ve,null,ke(l.item.children,H=>(u(),P(O,{key:H.path,"is-nest":!0,item:H,"base-path":g(H.path),class:"nest-menu"},null,8,["item","base-path"]))),128))]),_:1},16,["index"]))}}}),Cl={class:"collapse-container"},Il=ne({__name:"leftCollapse",props:{isActive:{type:Boolean,default:!1}},emits:["toggleClick"],setup(t,{emit:e}){const n=t,{tooltipEffect:a}=Oe(),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=z("IconifyIconOffline"),g=Qe("tippy");return u(),M("div",Cl,[re(f(p,{icon:o(vn),class:de([c.value,l.value==="light"?"":"text-primary"]),style:le({transform:n.isActive?"none":"rotateY(180deg)"}),onClick:d},null,8,["icon","class","style"]),[[g,{content:n.isActive?"点击折叠":"点击展开",theme:o(a),hideOnClick:"toggle",placement:"right"}]])])}}}),Sl=_e(Il,[["__scopeId","data-v-d14bd14d"]]),$l=ne({__name:"vertical",setup(t){var k,V;const e=Lt(),n=R((V=(k=je().getItem(`${ot()}configure`))==null?void 0:k.showLogo)!=null?V:!0),{device:a,pureApp:c,isCollapse:s,tooltipEffect:l,menuSelect:m,toggleSideBar:d}=Oe(),v=R([]),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 O=Vt(C,Te().wholeMenus),L=ct(O[0]||C,Te().wholeMenus);L!=null&&L.children&&(v.value=L==null?void 0:L.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,O)=>{const L=z("el-menu"),H=z("el-scrollbar"),U=Qe("loading");return re((u(),M("div",{class:de(["sidebar-container",n.value?"has-logo":"no-logo"])},[n.value?(u(),P(ul,{key:0,collapse:o(s)},null,8,["collapse"])):Y("",!0),f(H,{"wrap-class":"scrollbar-wrapper",class:de([o(a)==="mobile"?"mobile":"pc"])},{default:x(()=>[f(L,{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(),P(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(),P(Sl,{key:1,"is-active":o(c).sidebar.opened,onToggleClick:o(d)},null,8,["is-active","onToggleClick"])):Y("",!0)],2)),[[U,p.value]])}}}),Ml=_e($l,[["__scopeId","data-v-3752e90e"]]),Tl={class:"horizontal-header"},zl=["src"],Vl={class:"horizontal-header-right"},Ll={class:"check-zh"},Hl={class:"check-en"},Al={class:"el-dropdown-link navbar-bg-hover"},El=["src"],Ol={key:0,class:"dark:text-white"},Rl=["title"],Pl=ne({__name:"horizontal",setup(t){const e=R(),{t:n,route:a,locale:c,translationCh:s,translationEn:l}=Ot(e),{title:m,logout:d,backTopMenu:v,onPanel:w,getLogo:p,username:g,userAvatar:y,avatarsStyle:k,getDropdownItemStyle:V,getDropdownItemClass:C}=Oe(),O=j(()=>{var L;return Ke((L=a.meta)==null?void 0:L.activePath)?a.path:a.meta.activePath});return Ne(()=>{var L;(L=e.value)==null||L.handleResize()}),(L,H)=>{const U=z("el-menu"),Q=z("IconifyIconOffline"),T=z("el-dropdown-item"),D=z("el-dropdown-menu"),q=z("el-dropdown"),se=Qe("loading");return re((u(),M("div",Tl,[b("div",{class:"horizontal-header-left",onClick:H[0]||(H[0]=(...ee)=>o(v)&&o(v)(...ee))},[b("img",{src:o(p)(),alt:"logo"},null,8,zl),b("span",null,oe(o(m)),1)]),f(U,{ref_key:"menuRef",ref:e,router:"",mode:"horizontal","popper-class":"pure-scrollbar",class:"horizontal-header-menu","default-active":O.value},{default:x(()=>[(u(!0),M(ve,null,ke(o(Te)().wholeMenus,ee=>(u(),P(wn,{key:ee.path,item:ee,"base-path":ee.path},null,8,["item","base-path"]))),128))]),_:1},8,["default-active"]),b("div",Vl,[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:le(o(V)(o(c),"zh")),class:de(["dark:!text-white",o(C)(o(c),"zh")]),onClick:o(s)},{default:x(()=>[re(b("span",Ll,[f(Q,{icon:o(Ye)},null,8,["icon"])],512),[[xe,o(c)==="zh"]]),pe(" 简体中文 ")]),_:1},8,["style","class","onClick"]),f(T,{style:le(o(V)(o(c),"en")),class:de(["dark:!text-white",o(C)(o(c),"en")]),onClick:o(l)},{default:x(()=>[re(b("span",Hl,[f(Q,{icon:o(Ye)},null,8,["icon"])],512),[[xe,o(c)==="en"]]),pe(" English ")]),_:1},8,["style","class","onClick"])]),_:1})]),default:x(()=>[f(o(Rt),{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(" "+oe(o(n)("buttons.hsLoginOut")),1)]),_:1},8,["onClick"])]),_:1})]),default:x(()=>[b("span",Al,[b("img",{src:o(y),style:le(o(k))},null,12,El),o(g)?(u(),M("p",Ol,oe(o(g)),1)):Y("",!0)])]),_:1}),b("span",{class:"set-icon navbar-bg-hover",title:o(n)("buttons.hssystemSet"),onClick:H[1]||(H[1]=(...ee)=>o(w)&&o(w)(...ee))},[f(Q,{icon:o(mt)},null,8,["icon"])],8,Rl)])])),[[se,o(Te)().wholeMenus.length===0]])}}}),Zl=_e(Pl,[["__scopeId","data-v-bb9dfcbc"]]),Dl={key:0},jl=ne({__name:"index",setup(t){const e=R(),{isDark:n}=dn(),{layout:a}=oo(),c=ln(),s=Zt(),{$storage:l}=pt(),m=Ht({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,V,C,O,L;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:(V=l.layout)==null?void 0:V.sidebarStatus,epThemeColor:(C=l.layout)==null?void 0:C.epThemeColor,themeColor:(O=l.layout)==null?void 0:O.themeColor,overallStyle:(L=l.layout)==null?void 0:L.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;Pt().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(Wa):null,!s.hiddenSideBar&&a.value.includes("horizontal")?at(Zl):null,at(us)]})}});return(g,y)=>{const k=z("el-backtop"),V=z("el-scrollbar");return u(),M("div",{ref_key:"appWrapperRef",ref:e,class:de(["app-wrapper",m.classes])},[re(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")]]),re(f(Ml,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",Dl,[f(o(p)),f(an,{"fixed-header":m.fixedHeader},null,8,["fixed-header"])])):(u(),P(V,{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(al)],2)}}}),rr=_e(jl,[["__scopeId","data-v-e1cc1ddb"]]);export{rr as default};