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