var Mn=Object.defineProperty,Vn=Object.defineProperties;var Tn=Object.getOwnPropertyDescriptors;var Qt=Object.getOwnPropertySymbols;var Hn=Object.prototype.hasOwnProperty,zn=Object.prototype.propertyIsEnumerable;var en=(t,e,n)=>e in t?Mn(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,kt=(t,e)=>{for(var n in e||(e={}))Hn.call(e,n)&&en(t,n,e[n]);if(Qt)for(var n of Qt(e))zn.call(e,n)&&en(t,n,e[n]);return t},Ct=(t,e)=>Vn(t,Tn(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{fy as te,au as Ln,ax as Ye,ay as An,e as c,x as S,g as v,d as oe,r as P,$ as At,c as j,c_ as mt,o as Ke,F as ye,y as Ce,n as ue,f as D,W as Ee,u as o,t as se,ad as je,m as u,_ as be,k as H,l as _e,K as J,z as ie,a3 as xe,h as We,w as Ze,c$ as un,q as Ge,d2 as En,ag as Et,U as Zn,O as St,ah as On,aa as Ve,fz as xt,j as x,dq as Rn,av as Be,d8 as Je,aG as Pn,a0 as dn,du as Se,v as et,i as le,fA as Zt,fB as dt,af as Ot,fC as De,L as Dn,fD as Qe,aw as st,b as Rt,fE as Re,fF as hn,fG as jn,fH as ut,da as Ne,fI as ht,fJ as fn,s as Pt,b6 as Dt,fK as It,fL as qn,fM as Bn,A as jt,B as qt,S as ft,fN as vt,d5 as Mt,fO as tn,M as rt,as as pn,Y as nt,a1 as mn,a as Fn,Z as Nn,V as Un,fP as Wn,ar as Gn,b7 as Kn,fv as Xn,a6 as nn}from"./index-BAaep8yZ.js";import{d as Yn,a as pt}from"./close-CObHKOmY.js";import{d as Jn}from"./home-filled-NADQtN-e.js";import{d as Qn}from"./git-branch-line-BhusJOme.js";import{d as eo}from"./admin-line-CpqWPwjZ.js";import{d as to,u as ze,a as Bt,g as Ft,b as Nt,t as no,c as oo,e as ao,f as lo}from"./dark-ClUjdXml.js";import{u as Xe}from"./app-CQnhMBwF.js";import{m as so}from"./index-QpUUYT1t.js";import{u as Vt}from"./epTheme-C6dkH2Du.js";import{u as Pe}from"./hooks-n2iC5q0_.js";import{S as ro}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 io}from"./refresh-right-Du3ZsAuC.js";import{d as Tt}from"./arrow-right-s-line-CxPb13eK.js";import{b as vn}from"./back_top-BT7DZkiX.js";import{R as $t}from"./index-Bf2XPo4E.js";import{R as on}from"./index-BJfj3QbS.js";const 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:1024,height:1024,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:''},ko={width:24,height:24,body:''},_n={width:24,height:24,body:''},_t={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:''},Ho={width:24,height:24,body:''},zo={width:24,height:24,body:''},Lo={width:24,height:24,body:''};te("ep:menu",Yn);te("ep:edit",co);te("ep:set-up",uo);te("ep:guide",ho);te("ep:monitor",fo);te("ep:lollipop",po);te("ep:histogram",mo);te("ep:home-filled",Jn);te("ri:bookmark-2-line",vo);te("ri:file-ppt-2-line",_o);te("ri:bank-card-line",go);te("ri:admin-fill",yo);te("ri:file-info-line",bo);te("ri:git-branch-line",Qn);te("ri:links-fill",ko);te("ri:table-line",wo);te("ri:search-line",_n);te("ri:admin-line",eo);te("ri:settings-3-line",_t);te("ri:bar-chart-horizontal-line",Co);te("ri:window-line",xo);te("ri:file-search-line",$o);te("ri:artboard-line",Io);te("ri:list-check",So);te("ri:ubuntu-fill",Mo);te("ri:user-voice-line",Vo);te("ri:edit-box-line",To);te("ri:history-fill",Ho);te("ri:information-line",to);te("ri:terminal-window-line",zo);te("ri:checkbox-circle-line",Lo);const Ao=Ln({id:"pure-setting",state:()=>({title:Ye().Title,fixedHeader:Ye().FixedHeader,hiddenSideBar:Ye().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 Ut(){return Ao(An)}const Eo={xmlns:"http://www.w3.org/2000/svg",width:"20",height:"20","aria-hidden":"true",class:"iconify iconify--ant-design",viewBox:"0 0 1024 1024"},Zo=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),Oo=[Zo];function Ro(t,e){return c(),S("svg",Eo,[...Oo])}const gn={render:Ro},Po=["onMouseenter"],Do={class:"result-item-title"},jo=oe({__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",Do,se(o(je)((E=w.meta)==null?void 0:E.title)),1),u(o(gn))],44,Po)}),128))],512))}}),qo=be(jo,[["__scopeId","data-v-b88fa124"]]),Bo={xmlns:"http://www.w3.org/2000/svg",width:"20",height:"20","aria-hidden":"true",class:"iconify iconify--mdi",viewBox:"0 0 24 24"},Fo=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),No=[Fo];function Uo(t,e){return c(),S("svg",Bo,[...No])}const Wo={render:Uo},Go={width:24,height:24,body:''},Ko={width:24,height:24,body:''},Xo={class:"search-footer text-[#333] dark:text-white"},Yo={class:"search-footer-item"},Jo={class:"search-footer-item"},Qo={class:"search-footer-item"},ea={key:0,class:"search-footer-total"},ta=oe({__name:"SearchFooter",props:{total:{default:0}},setup(t){const e=t,{device:n}=ze();return(a,i)=>{const s=H("IconifyIconOffline");return c(),S("div",Xo,[v("span",Yo,[u(o(gn),{class:"icon"}),_e(" 确认 ")]),v("span",Jo,[u(s,{icon:o(Go),class:"icon"},null,8,["icon"]),u(s,{icon:o(Ko),class:"icon"},null,8,["icon"]),_e(" 切换 ")]),v("span",Qo,[u(o(Wo),{class:"icon"}),_e(" 关闭 ")]),o(n)!=="mobile"&&e.total>0?(c(),S("p",ea," 共"+se(e.total)+"项 ",1)):J("",!0)])}}}),na=be(ta,[["__scopeId","data-v-f9c16431"]]),oa={width:1024,height:1024,body:''},aa={class:"history-item-title"},la=oe({__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=H("IconifyIconOffline");return c(),S(ye,null,[(c(),D(Ee(o(Pe)((h=s.item.meta)==null?void 0:h.icon)))),v("span",aa,se(o(je)((f=s.item.meta)==null?void 0:f.title)),1),ie(u(d,{icon:o(oa),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)}}}),an=be(la,[["__scopeId","data-v-a9dc41c7"]]),sa=["onMouseenter"],ra={class:"collect-container"},ia=["onMouseenter"],ca=oe({__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)}});Ze(()=>h.value,M=>{M&&s.value&&un(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=(En(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 Ze(_,M=>{M.length>1&&Ge(()=>{const B=document.querySelector(".collect-container");!B||G||(G=ro.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(an,{item:F,onDeleteItem:L,onCollectItem:k},null,8,["item"])],44,sa))),128))],64)):J("",!0),_.value.length?(c(),S(ye,{key:1},[v("div",{style:ue(b.value)}," 收藏"+se(_.value.length>1?"(可拖拽排序)":""),5),v("div",ra,[(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(an,{item:F,onDeleteItem:L},null,8,["item"])],44,ia))),128))])],64)):J("",!0)],512))}}),ua=be(ca,[["__scopeId","data-v-9fa90bc8"]]),da={class:"search-content"},ln="history",ha="collect",qe="menu-search-history",Ue="menu-search-collect",fa=oe({__name:"SearchModal",props:{value:{type:Boolean}},emits:["update:value"],setup(t,{emit:e}){const{device:n}=ze(),a=e,i=t,s=Et(),{locale:l}=Zn(),d=P(""),h=P(),f=P(),b=P(),p=P(""),g=P(""),_=St([]),k=St([]),L=Rn(ee,300),w=Ye().MenuSearchHistory,R=P(null),A=j(()=>On(Ve().wholeMenus)),E=j({get(){return i.value},set(y){a("update:value",y)}});Ze(()=>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(so(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 ae(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,ae(y)}function Le(){const{options:y,currentPath:C,isResultOptions:T}=pe();if(y.length===0)return;const V=(y.findIndex(z=>z.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(z=>z.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?$():X(),s.push(y[K].path),q())}function r(y){const C=y.type===ln?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:ha})),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),z=T.findIndex(de=>de.path===y);V||(z!==-1&&T.splice(z,1),T.length>=w&&T.pop(),T.unshift({path:y,meta:C,type:ln}),Be().setItem(qe,T))}function X(){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 ne(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=H("IconifyIconOffline"),K=H("el-input"),V=H("el-empty"),z=H("el-scrollbar"),de=H("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(na,{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",da,[u(z,{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(ua,{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:ne},null,8,["value","options"])):J("",!0),W.value?(c(),D(qo,{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"])}}}),pa=be(fa,[["__scopeId","data-v-ba7ee514"]]);function ma(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 Wt=oe({__name:"index",setup(t){const{bool:e,toggle:n}=ma();function a(){n()}return(i,s)=>{const l=H("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(pa),{value:o(e),"onUpdate:value":s[0]||(s[0]=d=>Pn(e)?e.value=d:null)},null,8,["value"])])}}}),sn=[{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"}]}],va={class:"notice-container border-b-[1px] border-solid border-[#f0f0f0] dark:border-[#303030]"},_a={class:"notice-container-text"},ga={class:"notice-text-title text-[#000000d9] dark:text-white"},ya={class:"notice-text-datetime text-[#00000073] dark:text-white"},ba=oe({__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}=ze(),d=dn();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=H("el-avatar"),_=H("el-tooltip"),k=H("el-tag");return c(),S("div",va,[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",_a,[v("div",ga,[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",ya,se(e.noticeItem.datetime),1)])])}}}),wa=be(ba,[["__scopeId","data-v-2a7dbc48"]]),ka={key:0},Ca=oe({__name:"noticeList",props:{list:{type:Array,default:()=>[]}},setup(t){const e=t;return(n,a)=>{const i=H("el-empty");return e.list.length?(c(),S("div",ka,[(c(!0),S(ye,null,Ce(e.list,(s,l)=>(c(),D(wa,{key:l,noticeItem:s},null,8,["noticeItem"]))),128))])):(c(),D(i,{key:1,description:"暂无消息"}))}}}),xa={width:1024,height:1024,body:''},Ia={class:"dropdown-badge navbar-bg-hover select-none"},$a={class:"header-notice-icon"},Sa={key:1},Ma={class:"noticeList-container"},Va=oe({__name:"index",setup(t){const e=P(0),n=P(sn),a=P(sn[0].key);return n.value.map(i=>e.value+=i.list.length),(i,s)=>{const l=H("IconifyIconOffline"),d=H("el-badge"),h=H("el-empty"),f=H("el-scrollbar"),b=H("el-tab-pane"),p=H("el-tabs"),g=H("el-dropdown-menu"),_=H("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",Sa,[(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",Ma,[u(Ca,{list:k.list},null,8,["list"])])]),_:2},1024)]),_:2},1032,["label","name"]))),128))]))]),_:1},8,["modelValue","style"])]),_:1})]),default:x(()=>[v("span",Ia,[u(d,{value:e.value,max:99},{default:x(()=>[v("span",$a,[u(l,{icon:o(xa)},null,8,["icon"])])]),_:1},8,["value"])])]),_:1})}}}),Gt=be(Va,[["__scopeId","data-v-33dc6db9"]]),Ta={key:0,class:"flex justify-center items-center"},Ht=oe({__name:"extraIcon",props:{extraIcon:{type:String,default:""}},setup(t){const e=t;return(n,a)=>e.extraIcon?(c(),S("div",Ta,[(c(),D(Ee(o(Pe)(Se(e.extraIcon))),{class:"w-[30px] h-[30px]"}))])):J("",!0)}}),Kt=oe({__name:"fullScreen",setup(t){const e=P(),{toggle:n,isFullscreen:a,Fullscreen:i,ExitFullscreen:s}=ze();return a.value=!!(document.fullscreenElement||document.webkitFullscreenElement||document.mozFullScreenElement||document.msFullscreenElement),Ze(a,l=>{e.value=l?s:i},{immediate:!0}),(l,d)=>{const h=H("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"])])}}}),Xt={width:24,height:24,body:''},Ha={key:0,class:"horizontal-header"},za={class:"select-none"},La={class:"horizontal-header-right"},Aa={class:"check-zh"},Ea={class:"check-en"},Za={class:"el-dropdown-link navbar-bg-hover select-none"},Oa=["src"],Ra={key:0,class:"dark:text-white"},Pa=["title"],Da=oe({__name:"mixNav",setup(t){const e=P(),n=P(null),{t:a,route:i,locale:s,translationCh:l,translationEn:d}=Bt(e),{device:h,logout:f,onPanel:b,resolvePath:p,username:g,userAvatar:_,getDivStyle:k,avatarsStyle:L,getDropdownItemStyle:w,getDropdownItemClass:R}=ze();function A(E){var M,B,F;const W=Ve().wholeMenus,G=Zt(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()}),Ze(()=>[i.path,Ve().wholeMenus],()=>{A(i.path)}),(E,W)=>{const G=H("el-menu-item"),M=H("el-menu"),B=H("IconifyIconOffline"),F=H("el-dropdown-item"),ce=H("el-dropdown-menu"),ee=H("el-dropdown"),q=et("loading");return o(h)!=="mobile"?ie((c(),S("div",Ha,[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,ae=>(c(),D(G,{key:ae.path,index:o(p)(ae)||ae.redirect},{title:x(()=>[Se(ae.meta.icon)?(c(),S("div",{key:0,class:le(["sub-menu-icon",ae.meta.icon])},[(c(),D(Ee(o(Pe)(ae.meta&&Se(ae.meta.icon)))))],2)):J("",!0),v("div",{style:ue(o(k))},[v("span",za,se(o(je)(ae.meta.title)),1),u(Ht,{extraIcon:ae.meta.extraIcon},null,8,["extraIcon"])],4)]),_:2},1032,["index"]))),128))]),_:1},8,["default-active"]),v("div",La,[u(Wt,{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",Aa,[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",Ea,[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(Ft),{class:"navbar-bg-hover w-[40px] h-[48px] p-[11px] cursor-pointer outline-none"})]),_:1}),u(Kt,{id:"full-screen"}),u(Gt,{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(Xt),style:{margin:"5px"}},null,8,["icon"]),_e(" "+se(o(a)("buttons.hsLoginOut")),1)]),_:1},8,["onClick"])]),_:1})]),default:x(()=>[v("span",Za,[v("img",{src:o(_),style:ue(o(L))},null,12,Oa),o(g)?(c(),S("p",Ra,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]=(...ae)=>o(b)&&o(b)(...ae))},[u(B,{icon:o(_t)},null,8,["icon"])],8,Pa)])])),[[q,o(Ve)().wholeMenus.length===0]]):J("",!0)}}}),ja=be(Da,[["__scopeId","data-v-322f62be"]]),qa=["onClick"],Ba=oe({__name:"breadCrumb",setup(t){const e=Ot(),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=Zt(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()}),Ze(()=>e.path,()=>{l()},{deep:!0}),(h,f)=>{const b=H("el-breadcrumb-item"),p=H("el-breadcrumb");return c(),D(p,{class:"!leading-[50px] select-none",separator:"/"},{default:x(()=>[u(Dn,{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,qa)]),_:2},1024))),128))]),_:1})]),_:1})}}}),yn={width:24,height:24,body:''},Fa={width:24,height:24,body:''},Na=["title"],Ua=oe({__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=H("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(Fa),class:"inline-block align-middle hover:text-primary dark:hover:!text-white"},null,8,["icon"])],8,Na)}}}),Wa={class:"navbar bg-[#fff] shadow-sm shadow-[rgba(0,21,41,0.08)]"},Ga={key:3,class:"vertical-header-right"},Ka={class:"check-en"},Xa={class:"el-dropdown-link navbar-bg-hover select-none"},Ya=["src"],Ja={key:0,class:"dark:text-white"},Qa=["title"],el=oe({__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}=ze(),{t:g,locale:_,translationCh:k,translationEn:L}=Bt();return(w,R)=>{const A=H("IconifyIconOffline"),E=H("el-dropdown-item"),W=H("el-dropdown-menu"),G=H("el-dropdown");return c(),S("div",Wa,[o(n)==="mobile"?(c(),D(Ua,{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(Ba,{key:1,class:"breadcrumb-container"})):J("",!0),o(e)==="mix"?(c(),D(ja,{key:2})):J("",!0),o(e)==="vertical"?(c(),S("div",Ga,[u(Wt,{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",Ka,[u(A,{icon:o(tt)},null,8,["icon"])],512),[[xe,o(_)==="en"]]),_e(" English ")]),_:1},8,["style","class","onClick"])]),_:1})]),default:x(()=>[u(o(Ft),{class:"navbar-bg-hover w-[40px] h-[48px] p-[11px] cursor-pointer outline-none"})]),_:1}),u(Kt,{id:"full-screen"}),u(Gt,{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(Xt),style:{margin:"5px"}},null,8,["icon"]),_e(" "+se(o(g)("buttons.hsLoginOut")),1)]),_:1},8,["onClick"])]),_:1})]),default:x(()=>[v("span",Xa,[v("img",{src:o(d),style:ue(o(h))},null,12,Ya),o(l)?(c(),S("p",Ja,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,Qa)])):J("",!0)])}}}),tl=be(el,[["__scopeId","data-v-8aa88393"]]),nl={width:24,height:24,body:''},ol={width:24,height:24,body:''},al={width:24,height:24,body:''},ll={width:24,height:24,body:''};function sl(){var ce,ee;const t=Ot(),e=Et(),n=At(),a=Ut(),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:io,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:ll,text:Re("buttons.hscloseLeftTabs"),divided:!0,disabled:!(_.value.length>1),show:!0},{icon:al,text:Re("buttons.hscloseRightTabs"),divided:!1,disabled:!(_.value.length>1),show:!0},{icon:ol,text:Re("buttons.hscloseOtherTabs"),divided:!0,disabled:!(_.value.length>2),show:!0},{icon:nl,text:Re("buttons.hscloseAllTabs"),divided:!1,disabled:!(_.value.length>1),show:!0},{icon:hn,text:Re("buttons.hscontentFullScreen"),divided:!0,disabled:!1,show:!0}]);function L(q,ae,pe){var we,Le;return jn((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)?ae:pe:Qe(t.params,q.params)?ae:pe:t.path===q.path?ae:pe}const w=j(()=>(q,ae)=>{if(ae!==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 rl={width:24,height:24,body:''},zt={width:24,height:24,body:''};var il={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 cl={class:"arrow-left"},ul=["onContextmenu","onMouseenter","onMouseleave","onClick"],dl={class:"tag-title dark:!text-text_color_primary dark:hover:!text-primary"},hl=["onClick"],fl={class:"arrow-right"},pl=["onClick"],ml={class:"arrow-down"},vl=oe({__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}=sl(),ae=P(),pe=P(),we=P(),Le=P(),Ie=P(!1),Te=(Q=ht())==null?void 0:Q.path,{VITE_HIDE_HOME:r}=il,m=()=>at(this,null,function*(){yield Ge();const I=d.value.findIndex(Z=>Je(n.query)?Je(n.params)?n.path===Z.path:Qe(n.params,Z.params):Qe(n.query,Z.query));$(I)}),$=I=>at(this,null,function*(){var ve,He;yield Ge();const Z=10;if(!l.refs["dynamic"+I])return;const O=l.refs["dynamic"+I][0],Y=O==null?void 0:O.offsetLeft,he=O==null?void 0:O.offsetWidth,N=we.value?(ve=we.value)==null?void 0:ve.offsetWidth:0,U=ae.value?(He=ae.value)==null?void 0:He.offsetWidth:0;N<=U?Ie.value=!0:Ie.value=!1,U-g.value&&Y+he<-g.value+N?g.value=Math.min(0,N-he-Y-Z):g.value=-(Y-(N-Z-he))}),X=I=>{var Y;const Z=we.value?(Y=we.value)==null?void 0:Y.offsetWidth:0,O=ae.value?ae.value.offsetWidth:0;I>0?g.value=Math.min(0,g.value+I):Z=-(O-Z)&&(g.value=Math.max(g.value+I,Z-O)):g.value=0,w.value=!1},re=I=>{w.value=!0;const Z=Math.abs(I.deltaX)+Math.abs(I.deltaY);let O=0;I.deltaX<0?O=Z>0?Z:100:O=Z>0?-Z:-100,ne(O)},ne=I=>{let O=Math.abs(I);const Y=()=>{const he=Math.sign(I)*Math.min(20,O);X(he),O-=Math.abs(he),O>0&&requestAnimationFrame(Y)};requestAnimationFrame(Y)};function y(I){const Z=d.value.some(Y=>Y.path===I);function O(Y,he){Z||Y.forEach(N=>{N.path===he?De().handleTags("push",{path:he,meta:N.meta,name:N.name}):N.children&&N.children.length>0&&O(N.children,he)})}O(a.options.routes,I)}function C(){const{fullPath:I,query:Z}=o(n);a.replace({path:"/redirect"+I,query:Z}),It(n,"refresh")}function T(I,Z,O){var U,ve,He,Jt;const Y=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,$n,Sn)=>{Sn?De().handleTags("equal",[r==="false"?Bn[0]:Se(ht()),I]):De().handleTags("splice","",{startIndex:Ae,length:$n}),m()};O==="other"?he(1,1,!0):O==="left"?he(1,Y-1):O==="right"?he(Y+1,d.value.length):he(Y,1);const N=De().handleTags("slice");if(Z===n.path){if(O==="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;(He=N[0])!=null&&He.query?a.push({name:N[0].name,query:N[0].query}):(Jt=N[0])!=null&&Jt.params?a.push({name:N[0].name,params:N[0].params}):a.push({path:N[0].path})}}function K(I,Z){T(I,I.path,Z),It(n)}function V(I,Z,O){if(Z&&Z.disabled)return;let Y;switch(O?Y={path:O.path,meta:O.meta,name:O.name,query:O==null?void 0:O.query,params:O==null?void 0:O.params}:Y={path:n.path,meta:n.meta},I){case 0:C();break;case 1:K(Y);break;case 2:K(Y,"left");break;case 3:K(Y,"right");break;case 4:K(Y,"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=qn,h[6].text=Re("buttons.hscontentExitFullScreen")):(h[6].icon=hn,h[6].text=Re("buttons.hscontentFullScreen"))},100);break}setTimeout(()=>{ke(n.fullPath,n.query)})}function z(I){const{key:Z,item:O}=I;V(Z,O)}function de(I,Z){M(),V(I,Z,E.value)}function me(I){Array.of(1,2,3,4,5).forEach(Z=>{h[Z].show=I})}function Fe(I){Array.of(1,2,3,4,5).forEach(Z=>{h[Z].disabled=I})}function ke(I,Z={},O=!1){const Y=d.value,he=d.value.length;let N=-1;Je(Z)?N=Y.findIndex(U=>U.path===I):N=Y.findIndex(U=>Qe(U.query,Z)),me(!0),O&&(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,Z){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 O=140,Y=o(pe).getBoundingClientRect().left,N=o(pe).offsetWidth-O,U=Z.clientX-Y+5;U>N?b.value=N:b.value=U,Ut().hiddenSideBar?f.value=Z.clientY:f.value=Z.clientY-40,Ge(()=>{i.value=!0})}function wt(I){const{name:Z,path:O}=I;Z?I.query?a.push({name:Z,query:I.query}):I.params?a.push({name:Z,params:I.params}):a.push({name:Z}):a.push({path:O})}return fn(Le,M,{detectIframe:!0}),Ze(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),un().then(()=>m()))}),Pt(()=>{Me.off("tagViewsChange"),Me.off("tagViewsShowModel"),Me.off("changLayoutRoute")}),(I,Z)=>{const O=H("IconifyIconOffline"),Y=H("el-dropdown-item"),he=H("el-dropdown-menu"),N=H("el-dropdown");return o(s)?J("",!0):(c(),S("div",{key:0,ref_key:"containerDom",ref:pe,class:"tags-view"},[ie(v("span",cl,[u(O,{icon:o(zt),onClick:Z[0]||(Z[0]=U=>X(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:ae,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(He=>ot(U,He),["prevent"]),onMouseenter:We(He=>o(F)(ve),["prevent"]),onMouseleave:We(He=>o(ce)(ve),["prevent"]),onClick:He=>wt(U)},[v("span",dl,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(He=>K(U),["stop"])},[u(O,{icon:o(e)},null,8,["icon"])],8,hl)):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,ul))),128))],4)],544),ie(v("span",fl,[u(O,{icon:o(Tt),onClick:Z[1]||(Z[1]=U=>X(-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:He=>de(ve,U)},[u(O,{icon:U.icon},null,8,["icon"]),_e(" "+se(o(ee)(U.text)),1)],8,pl)):J("",!0)]))),128))],4)),[[xe,o(i)]])]),_:1}),u(N,{trigger:"click",placement:"bottom-end",onCommand:z},{dropdown:x(()=>[u(he,null,{default:x(()=>[(c(!0),S(ye,null,Ce(o(h),(U,ve)=>(c(),D(Y,{key:ve,command:{key:ve,item:U},divided:U.divided,disabled:U.disabled},{default:x(()=>[u(O,{icon:U.icon},null,8,["icon"]),_e(" "+se(o(ee)(U.text)),1)]),_:2},1032,["command","divided","disabled"]))),128))]),_:1})]),default:x(()=>[v("span",ml,[u(O,{icon:o(rl),class:"dark:text-white"},null,8,["icon"])])]),_:1})],512))}}}),_l=be(vl,[["__scopeId","data-v-718536cb"]]),bn=t=>(jt("data-v-eafb8ae3"),t=t(),qt(),t),gl={class:"layout-footer text-[rgba(0,0,0,0.6)] dark:text-[rgba(220,220,242,0.8)]"},yl={class:"hover:text-primary",href:"https://github.com/pure-admin",target:"_blank"},bl=bn(()=>v("span",{class:"ml-10"},"赞助商:",-1)),wl=bn(()=>v("a",{class:"logo",href:"https://ai-tools.cn/resume/start",target:"_blank",rel:"sponsored noopener"}," 二猫 AI 简历 ",-1)),kl=oe({__name:"index",setup(t){const e=Ye("Title");return(n,a)=>(c(),S("footer",gl,[_e(" Copyright © 2020-present "),v("a",yl,"  "+se(o(e)),1),bl,wl]))}}),rn=be(kl,[["__scopeId","data-v-eafb8ae3"]]),lt=new Map,Cl=()=>{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}},xl={class:"w-full h-full"},Il=oe({__name:"index",props:{currRoute:{},currComp:{}},setup(t){const e=t,n=St([]),{setMap:a,getMap:i,MAP:s,delMap:l}=Cl(),d=j(()=>{var f,b;return Ye().KeepAlive&&((f=e.currRoute.meta)==null?void 0:f.keepAlive)&&!!((b=e.currRoute.meta)!=null&&b.frameSrc)}),h=j(()=>!d.value&&e.currComp);return Ze(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())}),Ze(()=>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",xl,[ft(f.$slots,"default",{Comp:h.value,fullPath:e.currRoute.fullPath})],512),[[xe,!d.value]])],64))}}),$l={class:"grow"},Sl={key:1,class:"grow"},Ml=oe({__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=oe({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=H("el-backtop"),w=H("el-scrollbar"),R=H("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(Il,{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",$l,[u(o(g),{route:E},{default:x(()=>[i.value?(c(),D(tn,{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(rn,{key:0}))]),_:2},1032,["wrap-style"])):(c(),S("div",Sl,[u(o(g),{route:E},{default:x(()=>[i.value?(c(),D(tn,{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(rn,{key:0})):J("",!0)],6)}}}),cn=be(Ml,[["__scopeId","data-v-918fa3f0"]]),wn=t=>(jt("data-v-af01f247"),t=t(),qt(),t),Vl=wn(()=>v("div",{class:"right-panel-background"},null,-1)),Tl={class:"project-configuration border-b-[1px] border-solid border-[var(--pure-border-color)]"},Hl=wn(()=>v("h4",{class:"dark:text-white"},"项目配置",-1)),zl={class:"flex justify-end p-3 border-t-[1px] border-solid border-[var(--pure-border-color)]"},Ll=oe({__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}=Nt();return fn(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=H("IconifyIconOffline"),h=H("el-scrollbar"),f=H("el-button"),b=et("tippy");return c(),S("div",{class:le({show:n.value})},[Vl,v("div",{ref_key:"target",ref:e,class:"right-panel bg-bg_color"},[v("div",Tl,[Hl,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",zl,[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)}}}),Al=be(Ll,[["__scopeId","data-v-af01f247"]]),El={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),Ol=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),Rl=[Zl,Ol];function Pl(t,e){return c(),S("svg",El,[...Rl])}const Dl={render:Pl},$e=t=>(jt("data-v-af47f972"),t=t(),qt(),t),jl={class:"p-5"},ql={class:"theme-color"},Bl=["onClick"],Fl={class:"pure-theme"},Nl=$e(()=>v("div",null,null,-1)),Ul=$e(()=>v("div",null,null,-1)),Wl=[Nl,Ul],Gl=$e(()=>v("div",null,null,-1)),Kl=$e(()=>v("div",null,null,-1)),Xl=[Gl,Kl],Yl=$e(()=>v("div",null,null,-1)),Jl=$e(()=>v("div",null,null,-1)),Ql=[Yl,Jl],es={key:0},ts=$e(()=>v("div",{class:"flex-grow border-b border-dashed",style:{"border-color":"var(--el-color-primary)"}},null,-1)),ns=$e(()=>v("p",{class:"mt-5 font-medium text-sm dark:text-white"},"界面显示",-1)),os={class:"setting"},as=$e(()=>v("span",{class:"dark:text-white"},"灰色模式",-1)),ls=$e(()=>v("span",{class:"dark:text-white"},"色弱模式",-1)),ss=$e(()=>v("span",{class:"dark:text-white"},"隐藏标签页",-1)),rs=$e(()=>v("span",{class:"dark:text-white"},"隐藏页脚",-1)),is=$e(()=>v("span",{class:"dark:text-white"},"Logo",-1)),cs=$e(()=>v("span",{class:"dark:text-white"},"页签持久化",-1)),us=oe({__name:"index",setup(t){var y,C,T,K;const{device:e}=ze(),{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:_}=Nt();if(o(f)){const V=o(f).layout,z=o(f).theme;no({scopeName:`layout-theme-${z}`}),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,z){const de=a.configure;de[V]=z,a.configure=de}const W=V=>{const z=document.querySelector("html");p(w.greyVal,"html-grey",z),E("grey",V)},G=V=>{const z=document.querySelector("html");p(w.weakVal,"html-weakness",z),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:z}=V;k.value=z,E("showModel",z),Me.emit("tagViewsShowModel",z)}function ee(){o(L)?E("showLogo",!0):E("showLogo",!1),Me.emit("logoChange",o(L))}function q(V){V.forEach(z=>{p(!1,"is-select",o(z))})}const ae=[{label:"固定",tip:"紧凑页面,轻松找到所需信息",value:"fixed"},{label:"自定义",tip:"最小1280、最大1600",value:"custom"}],pe=V=>{w.stretch=V,E("stretch",V)},we=({option:V})=>{const{value:z}=V;pe(z==="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:oo,theme:"light",tip:"清新启航,点亮舒适的工作界面",iconAttrs:{fill:n.value?"#fff":"#000"}},{label:"深色",icon:ao,theme:"dark",tip:"月光序曲,沉醉于夜的静谧雅致",iconAttrs:{fill:n.value?"#fff":"#000"}},{label:"自动",icon:Dl,theme:"system",tip:"同步时光,界面随晨昏自然呼应",iconAttrs:{fill:n.value?"#fff":"#000"}}]),r=[{label:"灵动",tip:"灵动标签,添趣生辉",value:"smart"},{label:"卡片",tip:"卡片标签,高效浏览",value:"card"}];function m(V){var z,de,me,Fe,ke;f.value.layout=V,window.document.body.setAttribute("layout",V),a.layout={layout:V,theme:f.value.theme,darkMode:(z=a.layout)==null?void 0:z.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},Xe().setLayout(V)}Ze(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 X(){h.value==="system"&&($.matches?d.value=!0:d.value=!1,g(h.value))}function re(){$.removeEventListener("change",X)}function ne(){X(),re(),$.addEventListener("change",X)}return mn(()=>{Ge(()=>{var V,z;ne(),w.greyVal&&((V=document.querySelector("html"))==null||V.classList.add("html-grey")),w.weakVal&&((z=document.querySelector("html"))==null||z.classList.add("html-weakness")),w.tabsVal&&M(),w.hideFooter&&B()})}),Fn(()=>re),(V,z)=>{const de=H("IconifyIconOffline"),me=H("el-icon"),Fe=H("el-input-number"),ke=H("el-switch"),ot=et("tippy"),wt=et("ripple");return c(),D(Al,null,{default:x(()=>[v("div",jl,[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:z[0]||(z[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&&ne()})},null,8,["modelValue","options"]),v("p",{class:le(["mt-5",Ie.value])},"主题色",2),v("ul",ql,[(c(!0),S(ye,null,Ce(o(b),(Q,I)=>ie((c(),S("li",{key:I,style:ue(R.value(Q.color)),onClick:Z=>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,Bl)),[[xe,A.value(Q.themeColor)]])),128))]),v("p",{class:le(["mt-5",Ie.value])},"导航模式",2),v("ul",Fl,[ie((c(),S("li",{ref_key:"verticalRef",ref:s,class:le(o(f).layout==="vertical"?"is-select":""),onClick:z[1]||(z[1]=Q=>m("vertical"))},Wl,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:z[2]||(z[2]=Q=>m("horizontal"))},Xl,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:z[3]||(z[3]=Q=>m("mix"))},Ql,2)),[[ot,{content:"混合菜单,灵活多变",zIndex:41e3}]]):J("",!0)]),o(e)!=="mobile"?(c(),S("span",es,[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:ae,onChange:we},null,8,["modelValue"]),o(Mt)(w.stretch)?(c(),D(Fe,{key:0,modelValue:w.stretch,"onUpdate:modelValue":z[4]||(z[4]=Q=>w.stretch=Q),min:1280,max:1600,"controls-position":"right",onChange:z[5]||(z[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:z[6]||(z[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(zt),height:"20"},null,8,["icon"]),ts,u(de,{icon:w.stretch?o(zt):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"]),ns,v("ul",os,[v("li",null,[as,u(ke,{modelValue:w.greyVal,"onUpdate:modelValue":z[7]||(z[7]=Q=>w.greyVal=Q),"inline-prompt":"","active-text":"开","inactive-text":"关",onChange:W},null,8,["modelValue"])]),v("li",null,[ls,u(ke,{modelValue:w.weakVal,"onUpdate:modelValue":z[8]||(z[8]=Q=>w.weakVal=Q),"inline-prompt":"","active-text":"开","inactive-text":"关",onChange:G},null,8,["modelValue"])]),v("li",null,[ss,u(ke,{modelValue:w.tabsVal,"onUpdate:modelValue":z[9]||(z[9]=Q=>w.tabsVal=Q),"inline-prompt":"","active-text":"开","inactive-text":"关",onChange:M},null,8,["modelValue"])]),v("li",null,[rs,u(ke,{modelValue:w.hideFooter,"onUpdate:modelValue":z[10]||(z[10]=Q=>w.hideFooter=Q),"inline-prompt":"","active-text":"开","inactive-text":"关",onChange:B},null,8,["modelValue"])]),v("li",null,[is,u(ke,{modelValue:L.value,"onUpdate:modelValue":z[11]||(z[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,[cs,u(ke,{modelValue:w.multiTagsCache,"onUpdate:modelValue":z[12]||(z[12]=Q=>w.multiTagsCache=Q),"inline-prompt":"","active-text":"开","inactive-text":"关",onChange:F},null,8,["modelValue"])])])])]),_:1})}}}),ds=be(us,[["__scopeId","data-v-af47f972"]]),hs=["src"],fs={class:"sidebar-title"},ps=["src"],ms={class:"sidebar-title"},vs=oe({__name:"logo",props:{collapse:Boolean},setup(t){const e=t,{title:n,getLogo:a}=ze();return(i,s)=>{const l=H("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,hs),v("span",fs,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,ps),v("span",ms,se(o(n)),1)]),_:1},8,["title","to"]))]}),_:1})],2)}}}),_s=be(vs,[["__scopeId","data-v-1e860333"]]);var ct={exports:{}},kn={},gs=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 ys=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(X[$++]);case"%d":return Number(X[$++]);case"%j":try{return JSON.stringify(X[$++])}catch(T){return"[Circular]"}default:return C}}),y=X[$];$=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($,X){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 X=m.inspect($,r);return W(X)||(X=f(r,X,$)),X}var re=b(r,m);if(re)return re;var ne=Object.keys(m),y=h(ne);if(r.showHidden&&(ne=Object.getOwnPropertyNames(m)),ee(m)&&(ne.indexOf("message")>=0||ne.indexOf("description")>=0))return p(m);if(ne.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 z=m.name?": "+m.name:"";T=" [Function"+z+"]"}if(B(m)&&(T=" "+RegExp.prototype.toString.call(m)),ce(m)&&(T=" "+Date.prototype.toUTCString.call(m)),ee(m)&&(T=" "+p(m)),ne.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,ne):de=ne.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,$,X,re){for(var ne=[],y=0,C=m.length;y-1&&(ne?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(ne&&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 X=r.reduce(function(re,ne){return ne.indexOf(` `)>=0,re+ne.replace(/\u001b\[\d\d?m/g,"").length+1},0);return X>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 ae(r){return r===null||typeof r=="boolean"||typeof r=="number"||typeof r=="string"||typeof r=="symbol"||typeof r=="undefined"}t.isPrimitive=ae,t.isBuffer=gs;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=ys,t._extend=function(r,m){if(!m||!F(m))return r;for(var $=Object.keys(m),X=$.length;X--;)r[$[X]]=m[$[X]];return r};function Te(r,m){return Object.prototype.hasOwnProperty.call(r,m)}})(kn);var bs={},ws=process.platform==="win32",Oe=kn;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 Cn=/^([a-zA-Z]:|[\\\/]{2}[^\\\/]+[\\\/]+[^\\\/]+)?([\\\/])?([\s\S]*?)$/,ks=/^([\s\S]*?)((?:\.{1,2}|[^\\\/]+?|)(\.[^.\/\\]*|))(?:[\\\/]*)$/,fe={};function yt(t){var e=Cn.exec(t),n=(e[1]||"")+(e[2]||""),a=e[3]||"",i=ks.exec(a),s=i[1],l=i[2],d=i[3];return[n,s,l,d]}function Yt(t){var e=Cn.exec(t),n=e[1]||"",a=!!n&&n[1]!==":";return{device:n,isUnc:a,isAbsolute:a||!!e[2],tail:e[3]}}function xn(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=bs["="+t],(!i||i.substr(0,3).toLowerCase()!==t.toLowerCase()+"\\")&&(i=t+"\\")):i=process.cwd(),Oe.isString(i)){if(!i)continue}else throw new TypeError("Arguments to path.resolve must be strings");var s=Yt(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=xn(t)),e=gt(e.split(/[\\\/]+/),!n).join("\\"),t+(n?"\\":"")+e||"."};fe.normalize=function(t){var e=Yt(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=xn(n)),n+(i?"\\":"")+s};fe.isAbsolute=function(t){return Yt(t).isAbsolute};fe.join=function(){for(var t=[],e=0;e=-1&&!e;n--){var a=n>=0?arguments[n]:process.cwd();if(Oe.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;eWn(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"),Gn(Kn(a(i.to))),{default:x(()=>[ft(i.$slots,"default")]),_:3},16))}}),Ss={width:1024,height:1024,body:''},Ms={width:1024,height:1024,body:''},Vs={width:1024,height:1024,body:''},Ts={width:1024,height:1024,body:''},In=oe({__name:"sidebarItem",props:{item:{type:Object},isNest:{type:Boolean,default:!1},basePath:{type:String,default:""}},setup(t){const e=Xn(),{layout:n,isCollapse:a,tooltipEffect:i,getDivStyle:s}=ze(),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(_=Ye())!=null&&_.MenuArrowIconNoTransition?{"expand-close-icon":Pe(Ms),"expand-open-icon":Pe(Ss),"collapse-close-icon":Pe(Ts),"collapse-open-icon":Pe(Vs)}:""}),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:Is.posix.resolve(l.basePath,_)}return(_,k)=>{const L=H("el-text"),w=H("el-menu-item"),R=H("sidebar-item",!0),A=H("el-sub-menu");return p(l.item.children,l.item)&&(!b.value.children||b.value.noShowingChildren)?(c(),D($s,{key:0,to:t.item},{default:x(()=>[u(w,nn({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(on),{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(Ht,{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,nn({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(on),{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(Ht,{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"]))}}}),Hs={class:"collapse-container"},zs=oe({__name:"leftCollapse",props:{isActive:{type:Boolean,default:!1}},emits:["toggleClick"],setup(t,{emit:e}){const n=t,{tooltipEffect:a}=ze(),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=H("IconifyIconOffline"),g=et("tippy");return c(),S("div",Hs,[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"}]])])}}}),Ls=be(zs,[["__scopeId","data-v-d14bd14d"]]),As=oe({__name:"vertical",setup(t){var k,L;const e=Ot(),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}=ze(),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=Zt(w,Ve().wholeMenus),A=dt(R[0]||w,Ve().wholeMenus);A!=null&&A.children&&(f.value=A==null?void 0:A.children)}return Ze(()=>[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=H("el-menu"),E=H("el-scrollbar"),W=et("loading");return ie((c(),S("div",{class:le(["sidebar-container",n.value?"has-logo":"no-logo"])},[n.value?(c(),D(_s,{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(In,{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(Ls,{key:1,"is-active":o(i).sidebar.opened,onToggleClick:o(h)},null,8,["is-active","onToggleClick"])):J("",!0)],2)),[[W,p.value]])}}}),Es=be(As,[["__scopeId","data-v-3752e90e"]]),Zs={class:"horizontal-header"},Os=["src"],Rs={class:"horizontal-header-right"},Ps={class:"check-zh"},Ds={class:"check-en"},js={class:"el-dropdown-link navbar-bg-hover"},qs=["src"],Bs={key:0,class:"dark:text-white"},Fs=["title"],Ns=oe({__name:"horizontal",setup(t){const e=P(),{t:n,route:a,locale:i,translationCh:s,translationEn:l}=Bt(e),{title:d,logout:h,backTopMenu:f,onPanel:b,getLogo:p,username:g,userAvatar:_,avatarsStyle:k,getDropdownItemStyle:L,getDropdownItemClass:w}=ze(),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=H("el-menu"),G=H("IconifyIconOffline"),M=H("el-dropdown-item"),B=H("el-dropdown-menu"),F=H("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,Os),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(In,{key:ee.path,item:ee,"base-path":ee.path},null,8,["item","base-path"]))),128))]),_:1},8,["default-active"]),v("div",Rs,[u(Wt,{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",Ps,[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",Ds,[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(Ft),{class:"navbar-bg-hover w-[40px] h-[48px] p-[11px] cursor-pointer outline-none"})]),_:1}),u(Kt,{id:"full-screen"}),u(Gt,{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(Xt),style:{margin:"5px"}},null,8,["icon"]),_e(" "+se(o(n)("buttons.hsLoginOut")),1)]),_:1},8,["onClick"])]),_:1})]),default:x(()=>[v("span",js,[v("img",{src:o(_),style:ue(o(k))},null,12,qs),o(g)?(c(),S("p",Bs,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,Fs)])])),[[ce,o(Ve)().wholeMenus.length===0]])}}}),Us=be(Ns,[["__scopeId","data-v-848e7d44"]]),Ws={key:0},Gs=oe({__name:"index",setup(t){const e=P(),{isDark:n}=pn(),{layout:a}=lo(),i=dn(),s=Ut(),{$storage:l}=vt(),d=Rt({sidebar:j(()=>Xe().sidebar),device:j(()=>Xe().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,_){Xe().toggleDevice(g),Xe().toggleSideBar(_,"resize")}let b=!0;mt(e,g=>{if(i)return;const _=g[0],[{inlineSize:k}]=_.borderBoxSize;k<=760?h("vertical"):h(Xe().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;Nt().dataThemeChange((g=l.layout)==null?void 0:g.overallStyle)});const p=oe({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(tl):null,!s.hiddenSideBar&&a.value.includes("horizontal")?rt(Us):null,rt(_l)]})}});return(g,_)=>{const k=H("el-backtop"),L=H("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(Xe)().toggleSideBar())},null,512),[[xe,d.device==="mobile"&&d.sidebar.opened&&o(a).includes("vertical")]]),ie(u(Es,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",Ws,[u(o(p)),u(cn,{"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(cn,{"fixed-header":d.fixedHeader},null,8,["fixed-header"])]),_:1}))],2),u(ds)],2)}}}),pr=be(Gs,[["__scopeId","data-v-e1cc1ddb"]]);export{pr as default};